电子药箱通讯服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using TouchSocket.Sockets;
  3. using PropertyChanged;
  4. namespace Rdh.SocketServer.Client.Models
  5. {
  6. [AddINotifyPropertyChangedInterface]
  7. public class Pocket
  8. {
  9. public Pocket() { }
  10. public Pocket(SocketClient client, EleMedKitData? data)
  11. {
  12. this.ClientIP = client.IP;
  13. this.ClientId = client.ID;
  14. if (data == null)
  15. {
  16. Data = new EleMedKitData() { Message = "数据无效" };
  17. }
  18. else
  19. {
  20. Data = data;
  21. }
  22. }
  23. public string ClientId { get; set; }
  24. public string ClientIP { get; set; }
  25. public int ClientPort { get; set; }
  26. public DateTime ReceivedTime { get; set; } = System.DateTime.Now;
  27. public bool IsHandled { get; set; }
  28. public EleMedKitData Data { get; set; }
  29. public IRequestInfo RequestInfo { get; set; }
  30. }
  31. }