package com.fs.common.core.domain;

/**
 * 短信网关响应实体
 *
 * @author your-name
 */
public class SmsResponse {

    /** 状态码 */
    private String status;

    /** 消息ID */
    private String msgid;

    /** 返回消息 */
    private String message;

    /** 剩余条数 */
    private Integer remain;

    private String code;


    public String getCode() {
        return code;
    }

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

    /** 是否成功 */
    public boolean isSuccess() {
        return "0".equals(status);
    }

    // ==================== Getter & Setter ====================

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsgid() {
        return msgid;
    }

    public void setMsgid(String msgid) {
        this.msgid = msgid;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getRemain() {
        return remain;
    }

    public void setRemain(Integer remain) {
        this.remain = remain;
    }

    @Override
    public String toString() {
        return "SmsResponse{" +
                "status='" + status + '\'' +
                ", msgid='" + msgid + '\'' +
                ", message='" + message + '\'' +
                ", remain=" + remain +
                '}';
    }
}
