BeckhoffController.cs 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml.Schema;
  7. using System.Xml.Serialization;
  8. namespace FestoDebugger.Beckoff
  9. {
  10. public class BeckhoffController
  11. {
  12. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  13. public string Name { get; set; }
  14. [XmlAttribute(AttributeName = "IPAddress", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  15. public string IPAddress { get; set; }
  16. [XmlAttribute(AttributeName = "PortAddress", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  17. public string PortAddress { get; set; }
  18. [XmlElement(Type = typeof(BeckhoffInput), ElementName = "Input", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  19. public List<BeckhoffInput> Inputs { get; set; }
  20. [XmlElement(Type = typeof(BeckhoffOutput), ElementName = "Output", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  21. public List<BeckhoffOutput> Outputs { get; set; }
  22. }
  23. }