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.

MqDataType.cs 3.4KB

6 months ago
6 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace TelpoPush.Models.Enum
  7. {
  8. /// <summary>
  9. /// 数据类型,标识发布到kafka的消息的数据类型
  10. /// </summary>
  11. public enum MqDataType : int
  12. {
  13. /// <summary>
  14. /// 报警消息
  15. /// </summary>
  16. AlarmInfo = 0,
  17. /// <summary>
  18. /// 温度数据信息
  19. /// </summary>
  20. TemperatureInfo = 1,
  21. /// <summary>
  22. /// 步数信息
  23. /// </summary>
  24. StepInfo = 2,
  25. /// <summary>
  26. /// 电量信息
  27. /// </summary>
  28. BatteryLevelInfo = 3,
  29. /// <summary>
  30. /// 设备配置信息
  31. /// </summary>
  32. DeviceConfigInfo = 4,
  33. /// <summary>
  34. /// 设备通话记录
  35. /// </summary>
  36. DeviceCallLog = 5,
  37. /// <summary>
  38. /// 设备短信记录
  39. /// </summary>
  40. DeviceSmsLog = 6,
  41. /// <summary>
  42. /// 位置信息
  43. /// </summary>
  44. PositionInfo = 7,
  45. /// <summary>
  46. /// 支付
  47. /// </summary>
  48. PayInfo = 8,
  49. /// <summary>
  50. /// 设备状态(offline,online)
  51. /// </summary>
  52. Status = 9,
  53. /// <summary>
  54. /// 设备激活状态(激活1,未激活0)
  55. /// </summary>
  56. Active = 10,
  57. /// <summary>
  58. /// 指令回调
  59. /// </summary>
  60. reply = 11,
  61. /// <summary>
  62. /// 天气查询
  63. /// </summary>
  64. Weather = 12,
  65. /// <summary>
  66. /// 短信阅读事件
  67. /// </summary>
  68. ReadMsg = 13,
  69. /// <summary>
  70. /// 学习能力状态上报事件
  71. /// </summary>
  72. StudyAINotifyStatusUpload = 14,
  73. /// <summary>
  74. /// 心率
  75. /// </summary>
  76. HeartRateInfo = 15,
  77. /// <summary>
  78. /// 血氧
  79. /// </summary>
  80. Spo2Info = 16,
  81. /// <summary>
  82. /// 周期性报体温数据。
  83. /// </summary>
  84. Temperature1Info = 17,
  85. /// <summary>
  86. /// 周期心率。
  87. /// </summary>
  88. HeartRate1Info = 18,
  89. /// <summary>
  90. /// 周期性血氧
  91. /// </summary>
  92. Spo21Info = 19,
  93. /// <summary>
  94. /// 溺水状态
  95. /// </summary>
  96. DrownReportInfo = 20,
  97. /// <summary>
  98. /// 手表佩戴状态
  99. /// </summary>
  100. WearStatusInfo = 21,
  101. /// <summary>
  102. /// 血压
  103. /// </summary>
  104. BloodPressInfo = 22,
  105. /// <summary>
  106. /// 周期性血压
  107. /// </summary>
  108. BloodPress1Info = 23,
  109. /// <summary>
  110. /// 心理监测
  111. /// </summary>
  112. PsychInfo = 24,
  113. /// <summary>
  114. /// AI呼叫回调结果
  115. /// </summary>
  116. AiCallResult = 25,
  117. /// <summary>
  118. /// 越界上报(围栏进出告警)
  119. /// </summary>
  120. CrossBorder = 26,
  121. /// <summary>
  122. /// 运动数据上报
  123. /// </summary>
  124. SportResult = 27,
  125. /// <summary>
  126. /// 运动数据上报
  127. /// </summary>
  128. BloodSugar = 28,
  129. /// <summary>
  130. /// 中考实时心率数据上报
  131. /// </summary>
  132. ZkRealHeartRate = 29,
  133. /// <summary>
  134. /// 绑定业务
  135. /// </summary>
  136. BindDevice = 100
  137. }
  138. }