Skip to content

Commit

Permalink
Merge pull request #73 from Mulavar/fix-response
Browse files Browse the repository at this point in the history
fix(response): add field namespace
  • Loading branch information
Yeqi Tao committed Feb 22, 2020
2 parents 68ce2fc + 93b5b79 commit b88ed67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/cn/hyperchain/sdk/response/Response.java
Expand Up @@ -18,13 +18,16 @@ public abstract class Response {
protected int code;
@Expose
protected String message;
@Expose
protected String namespace;

public Response() {

}

/**
* create instance from a {@link Response}.
*
* @param response {@link Response}
*/
public Response(Response response) {
Expand All @@ -49,4 +52,8 @@ public int getCode() {
public String getMessage() {
return this.message;
}

public String getNamespace() {
return namespace;
}
}

0 comments on commit b88ed67

Please sign in to comment.