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

com.dahuatech.icc.multiinone.vo.BaseResponse Maven / Gradle / Ivy

There is a newer version: 1.0.13.7
Show newest version
package com.dahuatech.icc.multiinone.vo;

import com.dahuatech.icc.multiinone.Constants;

import java.io.Serializable;

/**
 * base返回对象
 */
public class BaseResponse implements Serializable {
    protected String result;
    protected String requestId;
    protected String code;
    protected boolean success = false;
    protected String errMsg;

    public String getResult() {
        return result;
    }

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

    public String getRequestId() {
        return requestId;
    }

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

    public String getCode() {
        return code;
    }

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

    public boolean isSuccess() {
        if(Constants.SUCESS_CODE.equals(code)){
            return true;
        }
        return success;
    }

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

    public String getErrMsg() {
        return errMsg;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy