using System.Runtime.Serialization; namespace OldWorldData.CommonData.DeviceData { [DataContract] [Serializable] public class AITWaterFlowSensorData { /// /// 设备的唯一名称,UI与RT交互的ID /// [DataMember] public string DeviceName { get; set; } /// /// 显示在界面上的名称 /// [DataMember] public string DisplayName { get; set; } /// /// IO 表中定义的物理编号,物理追溯使用 比如: M122 /// [DataMember] public string DeviceSchematicId { get; set; } [DataMember] public string Unit { get; set; } [DataMember] public string Description { get; set; } /// /// 量程 /// [DataMember] public double Scale { get; set; } [DataMember] public double FeedBack { get; set; } [DataMember] public bool IsWarning { get; set; } [DataMember] public bool IsError { get; set; } [DataMember] public bool IsOutOfTolerance { get; set; } public AITWaterFlowSensorData() { DisplayName = "Undefined"; Unit = "slm"; } } public class AITWaterFlowSensorPropertyName { public const string Feedback = "Feedback"; public const string IsWarning = "IsWarning"; public const string IsError = "IsError"; } }