CounterConnector_def_g.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 ConnectService_Method_StartCall 0
  19. #define ConnectService_Method_StartCallExternal 1
  20. #define ConnectService_Method_StopCall 2
  21. #define ConnectService_MethodSignature_StartCall -1910459811
  22. #define ConnectService_MethodSignature_StartCallExternal 40470846
  23. #define ConnectService_MethodSignature_StopCall 181632529
  24. struct ConnectService_StartCall_Req
  25. {
  26. int callingtype;
  27. CSimpleStringA connect_ip;
  28. int connect_port;
  29. CSimpleStringA connect_session;
  30. int assistant_port;
  31. CSimpleStringA subid;
  32. void Serialize(SpBuffer &Buf)
  33. {
  34. auto & buf = Buf & callingtype & connect_ip & connect_port & connect_session & assistant_port & subid;
  35. }
  36. };
  37. struct ConnectService_StartCall_Ans
  38. {
  39. void Serialize(SpBuffer &Buf)
  40. {
  41. }
  42. };
  43. struct ConnectService_StartCallExternal_Req
  44. {
  45. CBlob CommandParam;
  46. void Serialize(SpBuffer &Buf)
  47. {
  48. auto & buf = Buf & CommandParam;
  49. }
  50. };
  51. struct ConnectService_StartCallExternal_Ans
  52. {
  53. void Serialize(SpBuffer &Buf)
  54. {
  55. }
  56. };
  57. struct ConnectService_StopCall_Req
  58. {
  59. CBlob SessionParam;
  60. void Serialize(SpBuffer &Buf)
  61. {
  62. auto & buf = Buf & SessionParam;
  63. }
  64. };
  65. struct ConnectService_StopCall_Ans
  66. {
  67. void Serialize(SpBuffer &Buf)
  68. {
  69. }
  70. };
  71. ///////////////////////////
  72. } // namespace CounterConnector
  73. #endif // __COUNTERCONNECTOR_DEF_G_H