class OkexResponse<V> {

  private final String code;
  private final String msg;
  private final V data;

  public OkexResponse(
      @JsonProperty("code") String code,
      @JsonProperty("msg") String msg,
      @JsonProperty("data") V data) {
    this.code = code;
    this.msg = msg;
    this.data = data;
  }

  public boolean isSuccess() {
    return "0".equals(code);
  }

  public V getData() {
    return data;
  }

  public String getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }

  @Override
  public String toString() {<FILL_FUNCTION_BODY>}
}

    return "OkexResponse{" + "code=" + code + ", msg=" + msg + '}';
  
<no_super_class>