CommunicationEntity.cs 727 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Core.StlMes.Client.LgResMgt.Mcms.entity
  6. {
  7. public class CommunicationEntity
  8. {
  9. public iCommunication Communication { get; set; }
  10. public string Type { get
  11. {
  12. return Communication == null
  13. ? "未知"
  14. : Communication is SocketClient ? "远程网络" : Communication is SerialPortEntity ? "本地串口" : "未知";
  15. } }
  16. public string PoundNo { get; set; }
  17. public string CommunicationInfo { get
  18. {
  19. return Communication == null
  20. ? ""
  21. : Communication.ToString();
  22. } }
  23. }
  24. }