InteractiveControl_msg_g.h 4.4 KB

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