InteractiveControl_msg_g.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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 eMsg_SalesRecordingFailed 20
  28. #define eMsgSig_CustomerState 175614460
  29. #define eMsgSig_Stop -150723185
  30. #define eMsgSig_Recover 572191984
  31. #define eMsgSig_EnterBFlow 1901994842
  32. #define eMsgSig_ExitBFlow -169419673
  33. #define eMsgSig_GoHome 2128281094
  34. #define eMsgSig_EnterParentMenu 2011056309
  35. #define eMsgSig_EnterSubMenu 1396641290
  36. #define eMsgSig_AgentInputState 616800629
  37. #define eMsgSig_AgentState 145893630
  38. #define eMsgSig_RecvAgentText 1590630468
  39. #define eMsgSig_BackSyncData 1170236456
  40. #define eMsgSig_TryLockScreenRequest -1563999824
  41. #define eMsgSig_CameraFaultOccurred 1614283212
  42. #define eMsgSig_WideAngleCameraFault 2114006811
  43. #define eMsgSig_RecvP2pFlwReq -1949134515
  44. #define eMsgSig_EnterBFlowFromUT 48398790
  45. #define eMsgSig_AudioEndRet -1055633973
  46. #define eMsgSig_CommonWebMsg -1026578513
  47. #define eMsgSig_H5BackSyncData -1217690931
  48. #define eMsgSig_SalesRecordingFailed -1402924427
  49. struct CustomerState
  50. {
  51. int state;
  52. CSimpleStringW status;
  53. CSimpleStringW session_id;
  54. void Serialize(SpBuffer &Buf)
  55. {
  56. auto & buf = Buf & state & status & session_id;
  57. }
  58. };
  59. ///////////////////////////
  60. struct Stop
  61. {
  62. int reason;
  63. CSimpleStringW desc;
  64. void Serialize(SpBuffer &Buf)
  65. {
  66. auto & buf = Buf & reason & desc;
  67. }
  68. };
  69. ///////////////////////////
  70. struct Recover
  71. {
  72. int reason;
  73. CSimpleStringW desc;
  74. void Serialize(SpBuffer &Buf)
  75. {
  76. auto & buf = Buf & reason & desc;
  77. }
  78. };
  79. ///////////////////////////
  80. struct EnterBFlow
  81. {
  82. CSimpleStringW menuid;
  83. void Serialize(SpBuffer &Buf)
  84. {
  85. auto & buf = Buf & menuid;
  86. }
  87. };
  88. ///////////////////////////
  89. struct ExitBFlow
  90. {
  91. void Serialize(SpBuffer &Buf)
  92. {
  93. }
  94. };
  95. ///////////////////////////
  96. struct GoHome
  97. {
  98. void Serialize(SpBuffer &Buf)
  99. {
  100. }
  101. };
  102. ///////////////////////////
  103. struct EnterParentMenu
  104. {
  105. CSimpleStringW currentmenuid;
  106. void Serialize(SpBuffer &Buf)
  107. {
  108. auto & buf = Buf & currentmenuid;
  109. }
  110. };
  111. ///////////////////////////
  112. struct EnterSubMenu
  113. {
  114. CSimpleStringW currentmenuid;
  115. CSimpleStringW submenuid;
  116. void Serialize(SpBuffer &Buf)
  117. {
  118. auto & buf = Buf & currentmenuid & submenuid;
  119. }
  120. };
  121. ///////////////////////////
  122. struct AgentInputState
  123. {
  124. int state;
  125. void Serialize(SpBuffer &Buf)
  126. {
  127. auto & buf = Buf & state;
  128. }
  129. };
  130. ///////////////////////////
  131. struct AgentState
  132. {
  133. int state;
  134. CSimpleStringW status;
  135. void Serialize(SpBuffer &Buf)
  136. {
  137. auto & buf = Buf & state & status;
  138. }
  139. };
  140. ///////////////////////////
  141. struct RecvAgentText
  142. {
  143. CSimpleStringW content;
  144. void Serialize(SpBuffer &Buf)
  145. {
  146. auto & buf = Buf & content;
  147. }
  148. };
  149. ///////////////////////////
  150. struct BackSyncData
  151. {
  152. int id;
  153. CSimpleStringW content;
  154. void Serialize(SpBuffer &Buf)
  155. {
  156. auto & buf = Buf & id & content;
  157. }
  158. };
  159. ///////////////////////////
  160. struct TryLockScreenRequest
  161. {
  162. void Serialize(SpBuffer &Buf)
  163. {
  164. }
  165. };
  166. ///////////////////////////
  167. struct CameraFaultOccurred
  168. {
  169. char state;
  170. CSimpleStringW camname;
  171. void Serialize(SpBuffer &Buf)
  172. {
  173. auto & buf = Buf & state & camname;
  174. }
  175. };
  176. ///////////////////////////
  177. struct WideAngleCameraFault
  178. {
  179. char state;
  180. CSimpleStringW camname;
  181. void Serialize(SpBuffer &Buf)
  182. {
  183. auto & buf = Buf & state & camname;
  184. }
  185. };
  186. ///////////////////////////
  187. struct RecvP2pFlwReq
  188. {
  189. CSimpleStringW content;
  190. void Serialize(SpBuffer &Buf)
  191. {
  192. auto & buf = Buf & content;
  193. }
  194. };
  195. ///////////////////////////
  196. struct EnterBFlowFromUT
  197. {
  198. CSimpleStringW xapName;
  199. CSimpleStringW command;
  200. void Serialize(SpBuffer &Buf)
  201. {
  202. auto & buf = Buf & xapName & command;
  203. }
  204. };
  205. ///////////////////////////
  206. struct AudioEndRet
  207. {
  208. CSimpleStringA AudioNames;
  209. bool ret;
  210. void Serialize(SpBuffer &Buf)
  211. {
  212. auto & buf = Buf & AudioNames & ret;
  213. }
  214. };
  215. ///////////////////////////
  216. struct CommonWebMsg
  217. {
  218. int type;
  219. int value;
  220. void Serialize(SpBuffer &Buf)
  221. {
  222. auto & buf = Buf & type & value;
  223. }
  224. };
  225. ///////////////////////////
  226. struct H5BackSyncData
  227. {
  228. CSimpleStringW content;
  229. void Serialize(SpBuffer &Buf)
  230. {
  231. auto & buf = Buf & content;
  232. }
  233. };
  234. ///////////////////////////
  235. struct SalesRecordingFailed
  236. {
  237. CSimpleStringW failedmsg;
  238. void Serialize(SpBuffer &Buf)
  239. {
  240. auto & buf = Buf & failedmsg;
  241. }
  242. };
  243. ///////////////////////////
  244. } // namespace InteractiveControl
  245. #endif // __INTERACTIVECONTROL_MSG_G_H