package com.fs.watch.domain;

import com.fs.common.annotation.Excel;
import com.fs.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 腕消息详情设置对象 watch_msg_set
 *
 * @author fs
 * @date 2024-12-07
 */
public class WatchMsgSet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Integer id;

    /** 消息类型 (0:看课提醒 1:用药提醒 2:测试提醒 3:其他 ) */
    @Excel(name = "消息类型 (0:看课提醒 1:用药提醒 2:测试提醒 3:其他 )")
    private Integer msgType;

    /** 标题 */
    @Excel(name = "标题")
    private String msgTitle;

    /** 消息详情 */
    @Excel(name = "消息详情")
    private String msgDescription;

    /** 详情类型 */
    @Excel(name = "详情类型")
    private String detailsType;

    /** 正常提醒规则(间隔时长:小时) */
    @Excel(name = "正常提醒规则(间隔时长:小时)")
    private Integer normalRule;

    /** 异常提醒规则(间隔时长:小时) */
    @Excel(name = "异常提醒规则(间隔时长:小时)")
    private Integer abnormalRule;

    /** 消息类型 (消状态(0:正常 1:停用) ) */
    @Excel(name = "消状态(0:正常 1:停用)")
    private Integer status;

    public WatchMsgSet(WatchMsgSet other) {
        if (other != null) {
            this.id = other.id;
            this.msgType = other.msgType;
            this.msgTitle = other.msgTitle;
            this.msgDescription = other.msgDescription;
            this.detailsType = other.detailsType;
            this.normalRule = other.normalRule;
            this.abnormalRule = other.abnormalRule;
            this.status = other.status;
        }
    }



    public WatchMsgSet() {
    }
    public WatchMsgSet(int status, int msgType) {
        this.status = status;
        this.msgType = msgType;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setMsgType(Integer msgType)
    {
        this.msgType = msgType;
    }

    public Integer getMsgType()
    {
        return msgType;
    }
    public void setMsgTitle(String msgTitle)
    {
        this.msgTitle = msgTitle;
    }

    public String getMsgTitle()
    {
        return msgTitle;
    }
    public void setMsgDescription(String msgDescription)
    {
        this.msgDescription = msgDescription;
    }

    public String getMsgDescription()
    {
        return msgDescription;
    }
    public void setDetailsType(String detailsType)
    {
        this.detailsType = detailsType;
    }

    public String getDetailsType()
    {
        return detailsType;
    }
    public void setNormalRule(Integer normalRule)
    {
        this.normalRule = normalRule;
    }

    public Integer getNormalRule()
    {
        return normalRule;
    }
    public void setAbnormalRule(Integer abnormalRule)
    {
        this.abnormalRule = abnormalRule;
    }

    public Integer getAbnormalRule()
    {
        return abnormalRule;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("msgType", getMsgType())
            .append("msgTitle", getMsgTitle())
            .append("msgDescription", getMsgDescription())
            .append("detailsType", getDetailsType())
            .append("normalRule", getNormalRule())
            .append("abnormalRule", getAbnormalRule())
            .append("status", getStatus())
            .toString();
    }

    public Integer getStatus() {
        return status;
    }

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