Skip to content

Commit 350a9a4

Browse files
authored
- Change Type of Protocol property for API object (#797)
Protocol property changed to int.
1 parent d5dec53 commit 350a9a4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

common/src/main/java/com/genexus/properties/GXObjectProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class GXObjectProperties
88
private String errorMessage = "";
99
private int errorCode = 0;
1010
private int statusCode = 0;
11-
private String protocol = "REST";
11+
private int protocol = 1;
1212

1313
public Location getLocation()
1414
{
@@ -46,11 +46,11 @@ public void setErrorMessage(String value)
4646
errorMessage = value;
4747
}
4848

49-
public String getProtocol()
49+
public int getProtocol()
5050
{
5151
return protocol;
5252
}
53-
public void setProtocol(String value)
53+
public void setProtocol(int value)
5454
{
5555
protocol = value;
5656
}

java/src/main/java/com/genexus/internet/GXRestAPIClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class GXRestAPIClient {
2525

2626
private String name;
2727
private Location location;
28-
private String protocol = "REST";
28+
private int protocol = 1;
2929
private String httpMethod = "GET";
3030
private int statusCode;
3131
private int errorCode;
@@ -74,7 +74,7 @@ public Location getLocation() {
7474
return location;
7575
}
7676

77-
public String getProtocol() {
77+
public int getProtocol() {
7878
return protocol;
7979
}
8080

@@ -104,7 +104,7 @@ public void setLocation( Location value) {
104104
location = value;
105105
}
106106

107-
public void setProtocol( String value) {
107+
public void setProtocol( int value) {
108108
protocol = value;
109109
}
110110

0 commit comments

Comments
 (0)