Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc1ca5d

Browse files
committed
INDUSTRY-BRAIN SDK Auto Released By siyu.yusi,Version:1.0.0
发布日志: 1, Add code and message to inovkeService API 2, User could check code and message to get more specific information 3, 1.0.0 alpha release
1 parent 2c8e7b3 commit dc1ca5d

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

aliyun-java-sdk-industry-brain/ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2019-02-20 Version: 1.0.0
2+
1, Add code and message to inovkeService API
3+
2, User could check code and message to get more specific information
4+
3, 1.0.0 alpha release
5+
16
2019-02-18 Version: 1.0.0
27
1, industrial-brain release.
38
2, publish SDK to public package stores.

aliyun-java-sdk-industry-brain/src/main/java/com/aliyuncs/industry_brain/model/v20180712/InvokeServiceRequest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package com.aliyuncs.industry_brain.model.v20180712;
1616

1717
import com.aliyuncs.RpcAcsRequest;
18-
import com.aliyuncs.http.ProtocolType;
1918
import com.aliyuncs.http.MethodType;
2019

2120
/**
@@ -26,7 +25,6 @@ public class InvokeServiceRequest extends RpcAcsRequest<InvokeServiceResponse> {
2625

2726
public InvokeServiceRequest() {
2827
super("industry-brain", "2018-07-12", "InvokeService");
29-
setProtocol(ProtocolType.HTTPS);
3028
setMethod(MethodType.POST);
3129
}
3230

aliyun-java-sdk-industry-brain/src/main/java/com/aliyuncs/industry_brain/model/v20180712/InvokeServiceResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public class InvokeServiceResponse extends AcsResponse {
2828

2929
private String data;
3030

31+
private String code;
32+
33+
private String message;
34+
3135
public String getRequestId() {
3236
return this.requestId;
3337
}
@@ -44,6 +48,22 @@ public void setData(String data) {
4448
this.data = data;
4549
}
4650

51+
public String getCode() {
52+
return this.code;
53+
}
54+
55+
public void setCode(String code) {
56+
this.code = code;
57+
}
58+
59+
public String getMessage() {
60+
return this.message;
61+
}
62+
63+
public void setMessage(String message) {
64+
this.message = message;
65+
}
66+
4767
@Override
4868
public InvokeServiceResponse getInstance(UnmarshallerContext context) {
4969
return InvokeServiceResponseUnmarshaller.unmarshall(this, context);

aliyun-java-sdk-industry-brain/src/main/java/com/aliyuncs/industry_brain/transform/v20180712/InvokeServiceResponseUnmarshaller.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public class InvokeServiceResponseUnmarshaller {
2323
public static InvokeServiceResponse unmarshall(InvokeServiceResponse invokeServiceResponse, UnmarshallerContext context) {
2424

2525
invokeServiceResponse.setRequestId(context.stringValue("InvokeServiceResponse.RequestId"));
26-
invokeServiceResponse.setData(context.stringValue("InvokeServiceResponse.Data"));
26+
invokeServiceResponse.setData(context.stringValue("InvokeServiceResponse.Data"));
27+
invokeServiceResponse.setCode(context.stringValue("InvokeServiceResponse.Code"));
28+
invokeServiceResponse.setMessage(context.stringValue("InvokeServiceResponse.Message"));
2729

2830
return invokeServiceResponse;
2931
}

0 commit comments

Comments
 (0)