using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mesnac.HighWay.ATC.Common { public class PLCAlarmInfoDTO { private string code; private string plcName; private string plcAddress; private string plcValue; private DateTime dateTime = DateTime.Now; public PLCAlarmInfoDTO(string NAME, string ADDRESS) { plcName = NAME; plcAddress = ADDRESS; } public string Code { get { return code; } set { if (value != null) { code = value; } } } public string PLCName { get { return plcName; } set { if (value != null) { plcName = value; } } } public string PLCAddress { get { return plcAddress; } set { if (value != null) { plcAddress = value; } } } public string PLCValue { get { return plcValue; } set { plcValue = value; } } public DateTime DateTime { get { return dateTime; } set { dateTime = value; } } } }