All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.hyperchain.sdk.response.Response Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
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