using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.CustomResource.Pages.Model { [AttributeUsage(AttributeTargets.Property)] public class AlarmAttribute : Attribute { public AlarmAttribute(string Info, AlarmTriggerType alarmTriggerType = AlarmTriggerType.Rising, AlarmLevel alarmLevel = AlarmLevel.一般报警) { AlarmInfo = Info; AlarmType = alarmTriggerType; @AlarmLevel = alarmLevel; } /// /// 报警信息 /// public string AlarmInfo { get; set; } /// /// 告警类型 /// public AlarmTriggerType AlarmType { get; set; } /// /// 告警级别 /// public AlarmLevel @AlarmLevel { get; set; } } }