using MECF.Framework.Common.Beckhoff.AxisProvider; using MECF.Framework.Common.CommonData; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Schema; using System.Xml.Serialization; namespace MECF.Framework.Common.Device.LinMot { public class LinmotDeviceConfig : NotifiableItem { private List _linmotDevice; [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Name { get; set; } [XmlAttribute(AttributeName = "BaudRate", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int BaudRate { get; set; } [XmlAttribute(AttributeName = "Parity", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Parity { get; set; } [XmlAttribute(AttributeName = "Data", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int Data { get; set; } [XmlAttribute(AttributeName = "StopBit", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int StopBit { get; set; } [XmlAttribute(AttributeName = "Port", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Port { get; set; } [XmlAttribute(AttributeName = "SendTimeout", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int SendTimeout { get; set; } [XmlAttribute(AttributeName = "RecvTimeout", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int RecvTimeout { get; set; } [XmlElement(Type = typeof(LinMotDevice), ElementName = "Device", IsNullable = false, Form = XmlSchemaForm.Qualified)] public List LinmotDevices { get { return _linmotDevice; } set { _linmotDevice = value; InvokePropertyChanged(nameof(LinmotDevices));}} } }