ProtocolData.cs 550 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.Serialization;
  4. using System.Text;
  5. using WCS.Protocol.SX.Station;
  6. namespace WCS.Protocol.SX.DataStructure
  7. {
  8. [DataContract]
  9. public class ProtocolData
  10. {
  11. [DataMember(Order = 0)]
  12. public string Code { get; set; }
  13. [DataMember(Order = 1)]
  14. public DateTime Frame { get; set; }
  15. }
  16. [DataContract]
  17. public class ProtocolData<T>:ProtocolData
  18. {
  19. [DataMember(Order = 2)]
  20. public T Data { get; set; }
  21. }
  22. }