cn.hyperchain.sdk.response.Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of litesdk Show documentation
Show all versions of litesdk Show documentation
A Java client tool for Hyperchain
package cn.hyperchain.sdk.response;
import com.google.gson.annotations.Expose;
/**
* {@link cn.hyperchain.sdk.request.Request} will return a Response.
*
* @author tomkk
* @version 0.0.1
*/
public abstract class Response {
@Expose
protected String jsonrpc;
@Expose
protected String id;
@Expose
protected int code;
@Expose
protected String message;
public Response() {
}
/**
* create instance from a {@link Response}.
* @param response {@link Response}
*/
public Response(Response response) {
this.jsonrpc = response.jsonrpc;
this.id = response.id;
this.code = response.code;
this.message = response.message;
}
public String getId() {
return id;
}
public String getJsonrpc() {
return jsonrpc;
}
public int getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy