#ifndef __COUNTERCONNECTOR_DEF_G_H #define __COUNTERCONNECTOR_DEF_G_H #pragma once // This code is generated by spgen tool! #include "SpHelper.h" namespace CounterConnector { // // const goes here // #define eState_Offline 0 #define eState_Connecting 1 #define eState_HandFree 2 #define eState_Pickup 3 #define eState_Broken 4 #define eState_Fail 5 #define eState_Releasing 6 #define eState_LiveDetect 7 #define eState_Recording 8 #define ConnectService_Method_StartCall 0 #define ConnectService_Method_StartCallExternal 1 #define ConnectService_Method_StopCall 2 #define ConnectService_Method_GetCallRouteType 3 #define ConnectService_Method_SetVideoCallRouteParams 4 #define ConnectService_Method_GetPickUpStatus 5 #define ConnectService_MethodSignature_StartCall -1910459811 #define ConnectService_MethodSignature_StartCallExternal 40470846 #define ConnectService_MethodSignature_StopCall 181632529 #define ConnectService_MethodSignature_GetCallRouteType 1911492577 #define ConnectService_MethodSignature_SetVideoCallRouteParams -240588169 #define ConnectService_MethodSignature_GetPickUpStatus 1969791211 #define ConnectService_LogCode_StartCall "QLR040230400" #define ConnectService_LogCode_StartCallExternal "QLR040230401" #define ConnectService_LogCode_StopCall "QLR040230402" #define ConnectService_LogCode_GetCallRouteType "QLR040230403" #define ConnectService_LogCode_SetVideoCallRouteParams "QLR040230404" #define ConnectService_LogCode_GetPickUpStatus "QLR040230405" struct ConnectService_StartCall_Req { int callingtype; CSimpleStringA connect_ip; int connect_port; CSimpleStringA connect_session; int assistant_port; CSimpleStringA subid; void Serialize(SpBuffer &Buf) { auto & buf = Buf & callingtype & connect_ip & connect_port & connect_session & assistant_port & subid; } }; struct ConnectService_StartCall_Ans { void Serialize(SpBuffer &Buf) { } }; struct ConnectService_StartCallExternal_Req { CBlob CommandParam; void Serialize(SpBuffer &Buf) { auto & buf = Buf & CommandParam; } }; struct ConnectService_StartCallExternal_Ans { void Serialize(SpBuffer &Buf) { } }; struct ConnectService_StopCall_Req { CBlob SessionParam; void Serialize(SpBuffer &Buf) { auto & buf = Buf & SessionParam; } }; struct ConnectService_StopCall_Ans { void Serialize(SpBuffer &Buf) { } }; struct ConnectService_GetCallRouteType_Req { void Serialize(SpBuffer &Buf) { } }; struct ConnectService_GetCallRouteType_Ans { unsigned int RouteType; void Serialize(SpBuffer &Buf) { auto & buf = Buf & RouteType; } }; struct ConnectService_SetVideoCallRouteParams_Req { CSimpleStringA BusinessName; CSimpleStringA CallPriority; void Serialize(SpBuffer &Buf) { auto & buf = Buf & BusinessName & CallPriority; } }; struct ConnectService_SetVideoCallRouteParams_Ans { unsigned int ErrorCode; CSimpleStringW ErrorMsg; void Serialize(SpBuffer &Buf) { auto & buf = Buf & ErrorCode & ErrorMsg; } }; struct ConnectService_GetPickUpStatus_Req { void Serialize(SpBuffer &Buf) { } }; struct ConnectService_GetPickUpStatus_Ans { int iStatus; void Serialize(SpBuffer &Buf) { auto & buf = Buf & iStatus; } }; /////////////////////////// } // namespace CounterConnector #endif // __COUNTERCONNECTOR_DEF_G_H