CounterConnector_def_g.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. #ifndef __COUNTERCONNECTOR_DEF_G_H
  2. #define __COUNTERCONNECTOR_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace CounterConnector {
  7. //
  8. // const goes here
  9. //
  10. #define eState_Offline 0
  11. #define eState_Connecting 1
  12. #define eState_HandFree 2
  13. #define eState_Pickup 3
  14. #define eState_Broken 4
  15. #define eState_Fail 5
  16. #define eState_Releasing 6
  17. #define eState_LiveDetect 7
  18. #define eState_Recording 8
  19. #define ConnectService_Method_StartCall 0
  20. #define ConnectService_Method_StartCallExternal 1
  21. #define ConnectService_Method_StopCall 2
  22. #define ConnectService_Method_GetCallRouteType 3
  23. #define ConnectService_Method_SetVideoCallRouteParams 4
  24. #define ConnectService_MethodSignature_StartCall -1910459811
  25. #define ConnectService_MethodSignature_StartCallExternal 40470846
  26. #define ConnectService_MethodSignature_StopCall 181632529
  27. #define ConnectService_MethodSignature_GetCallRouteType 1911492577
  28. #define ConnectService_MethodSignature_SetVideoCallRouteParams -240588169
  29. struct ConnectService_StartCall_Req
  30. {
  31. int callingtype;
  32. CSimpleStringA connect_ip;
  33. int connect_port;
  34. CSimpleStringA connect_session;
  35. int assistant_port;
  36. CSimpleStringA subid;
  37. void Serialize(SpBuffer &Buf)
  38. {
  39. auto & buf = Buf & callingtype & connect_ip & connect_port & connect_session & assistant_port & subid;
  40. }
  41. };
  42. struct ConnectService_StartCall_Ans
  43. {
  44. void Serialize(SpBuffer &Buf)
  45. {
  46. }
  47. };
  48. struct ConnectService_StartCallExternal_Req
  49. {
  50. CBlob CommandParam;
  51. void Serialize(SpBuffer &Buf)
  52. {
  53. auto & buf = Buf & CommandParam;
  54. }
  55. };
  56. struct ConnectService_StartCallExternal_Ans
  57. {
  58. void Serialize(SpBuffer &Buf)
  59. {
  60. }
  61. };
  62. struct ConnectService_StopCall_Req
  63. {
  64. CBlob SessionParam;
  65. void Serialize(SpBuffer &Buf)
  66. {
  67. auto & buf = Buf & SessionParam;
  68. }
  69. };
  70. struct ConnectService_StopCall_Ans
  71. {
  72. void Serialize(SpBuffer &Buf)
  73. {
  74. }
  75. };
  76. struct ConnectService_GetCallRouteType_Req
  77. {
  78. void Serialize(SpBuffer &Buf)
  79. {
  80. }
  81. };
  82. struct ConnectService_GetCallRouteType_Ans
  83. {
  84. unsigned int RouteType;
  85. void Serialize(SpBuffer &Buf)
  86. {
  87. auto & buf = Buf & RouteType;
  88. }
  89. };
  90. struct ConnectService_SetVideoCallRouteParams_Req
  91. {
  92. CSimpleStringA BusinessName;
  93. CSimpleStringA CallPriority;
  94. void Serialize(SpBuffer &Buf)
  95. {
  96. auto & buf = Buf & BusinessName & CallPriority;
  97. }
  98. };
  99. struct ConnectService_SetVideoCallRouteParams_Ans
  100. {
  101. unsigned int ErrorCode;
  102. CSimpleStringW ErrorMsg;
  103. void Serialize(SpBuffer &Buf)
  104. {
  105. auto & buf = Buf & ErrorCode & ErrorMsg;
  106. }
  107. };
  108. ///////////////////////////
  109. } // namespace CounterConnector
  110. #endif // __COUNTERCONNECTOR_DEF_G_H