Skip to content

Commit

Permalink
updates (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp authored Jul 13, 2022
1 parent d3812d2 commit aa3576f
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"license": "MIT",
"dependencies": {
"@abaplint/cli": "^2.91.8",
"@abaplint/runtime": "^2.0.70",
"@abaplint/cli": "^2.91.9",
"@abaplint/runtime": "^2.0.71",
"@abaplint/database-sqlite": "^2.0.58",
"@abaplint/transpiler-cli": "^2.0.70"
"@abaplint/transpiler-cli": "^2.0.71"
}
}
16 changes: 10 additions & 6 deletions src/gui/cl_salv_columns_table.clas.abap
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
CLASS cl_salv_columns_table DEFINITION PUBLIC.
PUBLIC SECTION.
METHODS set_cell_type_column IMPORTING value TYPE string.
METHODS set_optimize IMPORTING value TYPE abap_bool DEFAULT abap_true.
METHODS set_color_column IMPORTING value TYPE string.
METHODS set_cell_type_column
IMPORTING value TYPE string.
METHODS set_optimize
IMPORTING value TYPE abap_bool DEFAULT abap_true.
METHODS set_color_column
IMPORTING value TYPE string.
METHODS get_column
IMPORTING name TYPE string
RETURNING VALUE(val) TYPE REF TO cl_salv_column.
METHODS get RETURNING VALUE(value) TYPE any.
IMPORTING columnname TYPE string
RETURNING VALUE(value) TYPE REF TO cl_salv_column.
METHODS get
RETURNING VALUE(value) TYPE any.
ENDCLASS.

CLASS cl_salv_columns_table IMPLEMENTATION.
Expand Down
12 changes: 12 additions & 0 deletions src/http/cl_http_client.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ CLASS cl_http_client DEFINITION PUBLIC CREATE PRIVATE.
proxy_service TYPE string OPTIONAL
EXPORTING
VALUE(client) TYPE REF TO if_http_client.
* todo, add classic exceptions

CLASS-METHODS create_by_destination
IMPORTING
destination TYPE string
EXPORTING
VALUE(client) TYPE REF TO if_http_client.
* todo, add classic exceptions

METHODS constructor
IMPORTING
Expand Down Expand Up @@ -70,6 +78,10 @@ CLASS cl_http_client IMPLEMENTATION.
RETURN.
ENDMETHOD.

METHOD create_by_destination.
ASSERT 1 = 'todo'.
ENDMETHOD.

METHOD if_http_client~send.
DATA lv_method TYPE string.
DATA lv_url TYPE string.
Expand Down
1 change: 1 addition & 0 deletions src/http/if_http_request.intf.abap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ INTERFACE if_http_request PUBLIC.

CONSTANTS:
co_protocol_version_1_1 TYPE string VALUE 'VER11',
co_protocol_version_1_0 TYPE string VALUE 'VER10',
co_request_method_get TYPE string VALUE 'GET',
co_request_method_post TYPE string VALUE 'POST'.

Expand Down
17 changes: 14 additions & 3 deletions src/json/#ui2#cl_json.clas.abap
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
CLASS /ui2/cl_json DEFINITION PUBLIC.
PUBLIC SECTION.
CONSTANTS: BEGIN OF pretty_mode,
low_case TYPE string VALUE 'low_case',
END OF pretty_mode.

CLASS-METHODS deserialize
IMPORTING
json TYPE string OPTIONAL
json TYPE string OPTIONAL
assoc_arrays TYPE abap_bool OPTIONAL
assoc_arrays_opt TYPE abap_bool OPTIONAL
CHANGING
data TYPE data.
data TYPE data.

CLASS-METHODS serialize
IMPORTING
data TYPE data
data TYPE data
compress TYPE abap_bool OPTIONAL
pretty_name TYPE string OPTIONAL
assoc_arrays TYPE abap_bool OPTIONAL
RETURNING
VALUE(r_json) TYPE string.

PRIVATE SECTION.
CLASS-DATA mo_parsed TYPE REF TO lcl_parser.
CLASS-METHODS _deserialize
Expand Down

0 comments on commit aa3576f

Please sign in to comment.