NetProtocol.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. using System.Collections.Generic;
  2. public class NetProtocol
  3. {
  4. }
  5. public class SendNetConnectProtocolBlue
  6. {
  7. public string Tagid { get; set; }
  8. public int Port { get; set; }
  9. public int ProjectId { get; set; }
  10. }
  11. public class SendNetConnectProtocol
  12. {
  13. public string Tagid { get; set; }
  14. public int Port { get; set; }
  15. public int ProjectID { get; set; }
  16. }
  17. public class SendNetConnectPointCloud
  18. {
  19. public string reporter { get; set; }
  20. public string sn { get; set; }
  21. public string cmd { get; set; }
  22. public string positionTs { get; set; }
  23. public string project { get; set; }
  24. public string positionType { get; set; }
  25. // public string viewpointId { get; set; }
  26. public Position position;
  27. public SendNetConnectPointCloud()
  28. {
  29. this.position = new Position();
  30. }
  31. }
  32. public class SendNetConnectPointTrigger
  33. {
  34. //projectId:"<uuid>",
  35. //sn:"<string>",
  36. //cmdType:"increasePointTrigger",
  37. //viewpointId:"<uuid>",
  38. //triggerTs:<int64>
  39. //
  40. public string projectId;
  41. public string sn;
  42. public string cmdType = "increasePointTrigger";
  43. public string viewpointId;
  44. public long triggerTs;
  45. }
  46. public class ReceiveNetConnectProtocol
  47. {
  48. public int Status { get; set; }
  49. public string Registe { get; set; }
  50. public string Tagid { get; set; }
  51. }
  52. public class SendNetConnectElectricity
  53. {
  54. public string sn;
  55. public string cmd = "showElectricity";
  56. public int electricity;
  57. public string status;
  58. }
  59. public class ReceiveMessage
  60. {
  61. /// <summary>
  62. ///
  63. /// </summary>
  64. public string ID { get; set; }
  65. /// <summary>
  66. ///
  67. /// </summary>
  68. public Position Position { get; set; }
  69. /// <summary>
  70. ///
  71. /// </summary>
  72. public string EngineType { get; set; }
  73. /// <summary>
  74. ///
  75. /// </summary>
  76. public string Identify { get; set; }
  77. /// <summary>
  78. ///
  79. /// </summary>
  80. public int LastActive { get; set; }
  81. }
  82. public class Position
  83. {
  84. /// <summary>
  85. ///
  86. /// </summary>
  87. public double x { get; set; }
  88. /// <summary>
  89. ///
  90. /// </summary>
  91. public double y { get; set; }
  92. /// <summary>
  93. ///
  94. /// </summary>
  95. public double z { get; set; }
  96. }