CounterConnector_def_g.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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_Method_GetPickUpStatus 5
  25. #define ConnectService_MethodSignature_StartCall -1910459811
  26. #define ConnectService_MethodSignature_StartCallExternal 40470846
  27. #define ConnectService_MethodSignature_StopCall 181632529
  28. #define ConnectService_MethodSignature_GetCallRouteType 1911492577
  29. #define ConnectService_MethodSignature_SetVideoCallRouteParams -240588169
  30. #define ConnectService_MethodSignature_GetPickUpStatus 1969791211
  31. #define ConnectService_LogCode_StartCall "QLR040230400"
  32. #define ConnectService_LogCode_StartCallExternal "QLR040230401"
  33. #define ConnectService_LogCode_StopCall "QLR040230402"
  34. #define ConnectService_LogCode_GetCallRouteType "QLR040230403"
  35. #define ConnectService_LogCode_SetVideoCallRouteParams "QLR040230404"
  36. #define ConnectService_LogCode_GetPickUpStatus "QLR040230405"
  37. struct ConnectService_StartCall_Req
  38. {
  39. int callingtype;
  40. CSimpleStringA connect_ip;
  41. int connect_port;
  42. CSimpleStringA connect_session;
  43. int assistant_port;
  44. CSimpleStringA subid;
  45. void Serialize(SpBuffer &Buf)
  46. {
  47. auto & buf = Buf & callingtype & connect_ip & connect_port & connect_session & assistant_port & subid;
  48. }
  49. };
  50. struct ConnectService_StartCall_Ans
  51. {
  52. void Serialize(SpBuffer &Buf)
  53. {
  54. }
  55. };
  56. struct ConnectService_StartCallExternal_Req
  57. {
  58. CBlob CommandParam;
  59. void Serialize(SpBuffer &Buf)
  60. {
  61. auto & buf = Buf & CommandParam;
  62. }
  63. };
  64. struct ConnectService_StartCallExternal_Ans
  65. {
  66. void Serialize(SpBuffer &Buf)
  67. {
  68. }
  69. };
  70. struct ConnectService_StopCall_Req
  71. {
  72. CBlob SessionParam;
  73. void Serialize(SpBuffer &Buf)
  74. {
  75. auto & buf = Buf & SessionParam;
  76. }
  77. };
  78. struct ConnectService_StopCall_Ans
  79. {
  80. void Serialize(SpBuffer &Buf)
  81. {
  82. }
  83. };
  84. struct ConnectService_GetCallRouteType_Req
  85. {
  86. void Serialize(SpBuffer &Buf)
  87. {
  88. }
  89. };
  90. struct ConnectService_GetCallRouteType_Ans
  91. {
  92. unsigned int RouteType;
  93. void Serialize(SpBuffer &Buf)
  94. {
  95. auto & buf = Buf & RouteType;
  96. }
  97. };
  98. struct ConnectService_SetVideoCallRouteParams_Req
  99. {
  100. CSimpleStringA BusinessName;
  101. CSimpleStringA CallPriority;
  102. void Serialize(SpBuffer &Buf)
  103. {
  104. auto & buf = Buf & BusinessName & CallPriority;
  105. }
  106. };
  107. struct ConnectService_SetVideoCallRouteParams_Ans
  108. {
  109. unsigned int ErrorCode;
  110. CSimpleStringW ErrorMsg;
  111. void Serialize(SpBuffer &Buf)
  112. {
  113. auto & buf = Buf & ErrorCode & ErrorMsg;
  114. }
  115. };
  116. struct ConnectService_GetPickUpStatus_Req
  117. {
  118. void Serialize(SpBuffer &Buf)
  119. {
  120. }
  121. };
  122. struct ConnectService_GetPickUpStatus_Ans
  123. {
  124. int iStatus;
  125. void Serialize(SpBuffer &Buf)
  126. {
  127. auto & buf = Buf & iStatus;
  128. }
  129. };
  130. ///////////////////////////
  131. } // namespace CounterConnector
  132. #endif // __COUNTERCONNECTOR_DEF_G_H