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

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

There is a newer version: 1.4.3
Show newest version
package cn.hyperchain.sdk.response;

import com.google.gson.JsonElement;
import com.google.gson.annotations.Expose;

public class TCertResponse extends Response {

    @Expose
    private JsonElement result;

    public String getTCert() {
        return result.getAsJsonObject().get("tcert").getAsString();
    }

    @Override
    public String toString() {
        return "TCertResponse{" +
                "result=" + result +
                ", jsonrpc='" + jsonrpc + '\'' +
                ", id='" + id + '\'' +
                ", code=" + code +
                ", message='" + message + '\'' +
                ", namespace='" + namespace + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy