InteractiveControl_msg_g.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. #ifndef __INTERACTIVECONTROL_MSG_G_H
  2. #define __INTERACTIVECONTROL_MSG_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace InteractiveControl {
  7. #define eMsg_CustomerState 0
  8. #define eMsg_Stop 1
  9. #define eMsg_Recover 2
  10. #define eMsg_EnterBFlow 3
  11. #define eMsg_ExitBFlow 4
  12. #define eMsg_GoHome 5
  13. #define eMsg_EnterParentMenu 6
  14. #define eMsg_EnterSubMenu 7
  15. #define eMsg_AgentInputState 8
  16. #define eMsg_AgentState 9
  17. #define eMsg_RecvAgentText 10
  18. #define eMsg_BackSyncData 11
  19. #define eMsg_TryLockScreenRequest 12
  20. #define eMsg_CameraFaultOccurred 13
  21. #define eMsg_WideAngleCameraFault 14
  22. #define eMsg_RecvP2pFlwReq 15
  23. #define eMsg_EnterBFlowFromUT 16
  24. #define eMsg_AudioEndRet 17
  25. #define eMsg_CommonWebMsg 18
  26. #define eMsg_H5BackSyncData 19
  27. #define eMsgSig_CustomerState 175614460
  28. #define eMsgSig_Stop -150723185
  29. #define eMsgSig_Recover 572191984
  30. #define eMsgSig_EnterBFlow 1901994842
  31. #define eMsgSig_ExitBFlow -169419673
  32. #define eMsgSig_GoHome 2128281094
  33. #define eMsgSig_EnterParentMenu 2011056309
  34. #define eMsgSig_EnterSubMenu 1396641290
  35. #define eMsgSig_AgentInputState 616800629
  36. #define eMsgSig_AgentState 145893630
  37. #define eMsgSig_RecvAgentText 1590630468
  38. #define eMsgSig_BackSyncData 1170236456
  39. #define eMsgSig_TryLockScreenRequest -1563999824
  40. #define eMsgSig_CameraFaultOccurred 1614283212
  41. #define eMsgSig_WideAngleCameraFault 2114006811
  42. #define eMsgSig_RecvP2pFlwReq -1949134515
  43. #define eMsgSig_EnterBFlowFromUT 48398790
  44. #define eMsgSig_AudioEndRet -1055633973
  45. #define eMsgSig_CommonWebMsg -1026578513
  46. #define eMsgSig_H5BackSyncData -1217690931
  47. struct CustomerState
  48. {
  49. int state;
  50. CSimpleStringW status;
  51. CSimpleStringW session_id;
  52. void Serialize(SpBuffer &Buf)
  53. {
  54. auto & buf = Buf & state & status & session_id;
  55. }
  56. };
  57. ///////////////////////////
  58. struct Stop
  59. {
  60. int reason;
  61. CSimpleStringW desc;
  62. void Serialize(SpBuffer &Buf)
  63. {
  64. auto & buf = Buf & reason & desc;
  65. }
  66. };
  67. ///////////////////////////
  68. struct Recover
  69. {
  70. int reason;
  71. CSimpleStringW desc;
  72. void Serialize(SpBuffer &Buf)
  73. {
  74. auto & buf = Buf & reason & desc;
  75. }
  76. };
  77. ///////////////////////////
  78. struct EnterBFlow
  79. {
  80. CSimpleStringW menuid;
  81. void Serialize(SpBuffer &Buf)
  82. {
  83. auto & buf = Buf & menuid;
  84. }
  85. };
  86. ///////////////////////////
  87. struct ExitBFlow
  88. {
  89. void Serialize(SpBuffer &Buf)
  90. {
  91. }
  92. };
  93. ///////////////////////////
  94. struct GoHome
  95. {
  96. void Serialize(SpBuffer &Buf)
  97. {
  98. }
  99. };
  100. ///////////////////////////
  101. struct EnterParentMenu
  102. {
  103. CSimpleStringW currentmenuid;
  104. void Serialize(SpBuffer &Buf)
  105. {
  106. auto & buf = Buf & currentmenuid;
  107. }
  108. };
  109. ///////////////////////////
  110. struct EnterSubMenu
  111. {
  112. CSimpleStringW currentmenuid;
  113. CSimpleStringW submenuid;
  114. void Serialize(SpBuffer &Buf)
  115. {
  116. auto & buf = Buf & currentmenuid & submenuid;
  117. }
  118. };
  119. ///////////////////////////
  120. struct AgentInputState
  121. {
  122. int state;
  123. void Serialize(SpBuffer &Buf)
  124. {
  125. auto & buf = Buf & state;
  126. }
  127. };
  128. ///////////////////////////
  129. struct AgentState
  130. {
  131. int state;
  132. CSimpleStringW status;
  133. void Serialize(SpBuffer &Buf)
  134. {
  135. auto & buf = Buf & state & status;
  136. }
  137. };
  138. ///////////////////////////
  139. struct RecvAgentText
  140. {
  141. CSimpleStringW content;
  142. void Serialize(SpBuffer &Buf)
  143. {
  144. auto & buf = Buf & content;
  145. }
  146. };
  147. ///////////////////////////
  148. struct BackSyncData
  149. {
  150. int id;
  151. CSimpleStringW content;
  152. void Serialize(SpBuffer &Buf)
  153. {
  154. auto & buf = Buf & id & content;
  155. }
  156. };
  157. ///////////////////////////
  158. struct TryLockScreenRequest
  159. {
  160. void Serialize(SpBuffer &Buf)
  161. {
  162. }
  163. };
  164. ///////////////////////////
  165. struct CameraFaultOccurred
  166. {
  167. char state;
  168. CSimpleStringW camname;
  169. void Serialize(SpBuffer &Buf)
  170. {
  171. auto & buf = Buf & state & camname;
  172. }
  173. };
  174. ///////////////////////////
  175. struct WideAngleCameraFault
  176. {
  177. char state;
  178. CSimpleStringW camname;
  179. void Serialize(SpBuffer &Buf)
  180. {
  181. auto & buf = Buf & state & camname;
  182. }
  183. };
  184. ///////////////////////////
  185. struct RecvP2pFlwReq
  186. {
  187. CSimpleStringW content;
  188. void Serialize(SpBuffer &Buf)
  189. {
  190. auto & buf = Buf & content;
  191. }
  192. };
  193. ///////////////////////////
  194. struct EnterBFlowFromUT
  195. {
  196. CSimpleStringW xapName;
  197. CSimpleStringW command;
  198. void Serialize(SpBuffer &Buf)
  199. {
  200. auto & buf = Buf & xapName & command;
  201. }
  202. };
  203. ///////////////////////////
  204. struct AudioEndRet
  205. {
  206. CSimpleStringA AudioNames;
  207. bool ret;
  208. void Serialize(SpBuffer &Buf)
  209. {
  210. auto & buf = Buf & AudioNames & ret;
  211. }
  212. };
  213. ///////////////////////////
  214. struct CommonWebMsg
  215. {
  216. int type;
  217. int value;
  218. void Serialize(SpBuffer &Buf)
  219. {
  220. auto & buf = Buf & type & value;
  221. }
  222. };
  223. ///////////////////////////
  224. struct H5BackSyncData
  225. {
  226. CSimpleStringW content;
  227. void Serialize(SpBuffer &Buf)
  228. {
  229. auto & buf = Buf & content;
  230. }
  231. };
  232. ///////////////////////////
  233. } // namespace InteractiveControl
  234. #endif // __INTERACTIVECONTROL_MSG_G_H