namespace MWS.Model.Model
{
    public class AlertTagModel
    {
        public int Id { get; set; }

        /// <summary>
        /// 设备Id
        /// </summary>
        public short DeviceId { get; set; }
 
        /// <summary>
        /// 变量名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 报警条件 EQUAL/NOTEQUAL/GREATER为/GREATERTHAN/LESS为/LESSTHAN
        /// </summary>
        public string AlertConditions { get; set; }

        /// <summary>
        /// 报警消息 报警消息内容
        /// </summary>
        public string AlertMessage { get; set; }

        /// <summary>
        /// 报警值 报警阈值 配合报警条件来判断是否达到报警条件
        /// </summary>
        public string AlertValue { get; set; }

        /// <summary>
        /// 数据类型 1 bool 2 ushort 3 short 4 uint 5 int 6 float 7 string
        /// </summary>
        public short DataType { get; set; } = 1;
 
        /// <summary>
        /// 是否报警
        /// </summary>
        public bool IsAlert { get; set; } = false;
 
        /// <summary>
        /// 是否关联总接触器
        /// </summary>
        public bool IsLinkedContactor { get; set; } = true;

        
    }
}
