PowerSupplierDeviceConfig.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using MECF.Framework.Common.CommonData;
  2. using MECF.Framework.Common.Device.LinMot;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Xml.Schema;
  9. using System.Xml.Serialization;
  10. namespace MECF.Framework.Common.Device.PowerSupplier
  11. {
  12. public class PowerSupplierDeviceConfig : NotifiableItem
  13. {
  14. #region 内部变量
  15. private List<PowerSupplierDevice> _devices;
  16. #endregion
  17. #region 属性
  18. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  19. public string Name { get; set; }
  20. [XmlAttribute(AttributeName = "IpAddress", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  21. public string IpAddress { get; set; }
  22. [XmlAttribute(AttributeName = "Port", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  23. public int Port { get; set; }
  24. [XmlAttribute(AttributeName = "SendTimeout", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  25. public int SendTimeout { get; set; }
  26. [XmlAttribute(AttributeName = "RecvTimeout", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  27. public int RecvTimeout { get; set; }
  28. [XmlElement(Type = typeof(PowerSupplierDevice), ElementName = "Device", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  29. public List<PowerSupplierDevice> Devices { get { return _devices; } set { _devices = value; InvokePropertyChanged(nameof(Devices)); } }
  30. #endregion
  31. }
  32. }