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

com.dahuatech.icc.oauth.http.IccResponse Maven / Gradle / Ivy

There is a newer version: 1.0.13.7
Show newest version
package com.dahuatech.icc.oauth.http;

/**
 * @author 232676
 * @since 1.0.0 2020-10-24 20:59:11
 */
public abstract class IccResponse extends Response {
  /** 结果原报文 */
  private String result;
  /** 请求ID */
  private String requestId;
  /** 返回状态码 */
  private String code;
  /** 是否成功 */
  private boolean success;
  /** 错误信息 */
  private String errMsg;
  /** 用于构建错误描述的参数 **/
  private Object args;

    public Object getArgs() {
        return args;
    }

    public void setArgs(Object args) {
        this.args = args;
    }

    public String getRequestId() {
    return requestId;
  }

  public void setRequestId(String requestId) {
    this.requestId = requestId;
  }

    public IccResponse(String code, String errMsg, boolean success){
        this.code = code;
        this.errMsg = errMsg;
        this.success = success;
    }

    public IccResponse(){}

  public String getResult() {
    return result;
  }

  public void setResult(String result) {
    this.result = result;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public boolean isSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  public String getErrMsg() {
    return errMsg;
  }

  public void setErrMsg(String errMsg) {
    this.errMsg = errMsg;
  }

  @Override
  public String toString() {
    return "IccResponse{"
        + "result='"
        + result
        + '\''
        + ", requestId='"
        + requestId
        + '\''
        + ", code='"
        + code
        + '\''
        + ", success="
        + success
        + ", errMsg='"
        + errMsg
        + '\''
        + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy