using System;
using System.Runtime.Serialization;
using Aitex.Core.Common.DeviceData.IoDevice.Base;

namespace Aitex.Core.Common.DeviceData
{
	[Serializable]
	[DataContract]
	public class AITSensorAnalogData : XDataBase
	{
		[DataMember]
		public string DeviceName { get; set; }

		[DataMember]
		public string DisplayName { get; set; }

		[DataMember]
		public string DeviceSchematicId { get; set; }
		
		/// <summary>
		/// 设置或返回警告下限。
		/// </summary>
		[DataMember]
		public double WarningLimitLow { get; set; }
		
		/// <summary>
		/// 设置或返回警告上限。
		/// </summary>
		[DataMember]
		public double WarningLimitHigh { get; set; }

		/// <summary>
		/// 设置或返回报警下限。
		/// </summary>
		[DataMember]
		public double AlarmLimitLow { get; set; }
		
		/// <summary>
		/// 设置或返回报警上限。
		/// </summary>
		[DataMember]
		public double AlarmLimitHigh { get; set; }
		
		[DataMember]
		public double Value { get; set; }

		[DataMember]
		public bool IsAlarm { get; set; }

		[DataMember]
		public bool IsWarning { get; set; }
	}
}
