From 4053c3aebe24a47f4040fa5551b854fac881d2ba Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 12 Apr 2021 12:39:25 +0000 Subject: [PATCH] Export config api. --- CHANGELOG | 3 + VERSION | 2 +- ccc/CMakeLists.txt | 60 ++ ccc/include/alibabacloud/ccc/CCCClient.h | 120 ++++ .../ccc/model/AddNumbersToSkillGroupRequest.h | 54 ++ .../ccc/model/AddNumbersToSkillGroupResult.h | 55 ++ .../AddPhoneNumberToSkillGroupsRequest.h | 54 ++ .../model/AddPhoneNumberToSkillGroupsResult.h | 55 ++ .../ccc/model/AddSkillGroupsToUserRequest.h | 54 ++ .../ccc/model/AddSkillGroupsToUserResult.h | 57 ++ .../ccc/model/CreateSkillGroupRequest.h | 57 ++ .../ccc/model/CreateSkillGroupResult.h | 64 +++ .../ccc/model/CreateUserRequest.h | 72 +++ .../alibabacloud/ccc/model/CreateUserResult.h | 69 +++ .../ccc/model/DeleteSkillGroupRequest.h | 54 ++ .../ccc/model/DeleteSkillGroupResult.h | 55 ++ .../ccc/model/ListContactFlowsRequest.h | 57 ++ .../ccc/model/ListContactFlowsResult.h | 79 +++ .../ccc/model/ListInstancesOfUserRequest.h | 51 ++ .../ccc/model/ListInstancesOfUserResult.h | 113 ++++ .../model/ListUserLevelsOfSkillGroupRequest.h | 63 ++ .../model/ListUserLevelsOfSkillGroupResult.h | 75 +++ .../ccc/model/ModifyPhoneNumberRequest.h | 57 ++ .../ccc/model/ModifyPhoneNumberResult.h | 55 ++ .../ccc/model/ModifySkillGroupRequest.h | 57 ++ .../ccc/model/ModifySkillGroupResult.h | 55 ++ .../ModifyUserLevelsOfSkillGroupRequest.h | 54 ++ .../ModifyUserLevelsOfSkillGroupResult.h | 57 ++ .../ccc/model/ModifyUserRequest.h | 60 ++ .../alibabacloud/ccc/model/ModifyUserResult.h | 59 ++ .../RemovePhoneNumbersFromSkillGroupRequest.h | 54 ++ .../RemovePhoneNumbersFromSkillGroupResult.h | 55 ++ .../ccc/model/StartBack2BackCallRequest.h | 69 +++ .../ccc/model/StartBack2BackCallResult.h | 105 ++++ ccc/src/CCCClient.cc | 540 ++++++++++++++++++ .../model/AddNumbersToSkillGroupRequest.cc | 62 ++ ccc/src/model/AddNumbersToSkillGroupResult.cc | 65 +++ .../AddPhoneNumberToSkillGroupsRequest.cc | 62 ++ .../AddPhoneNumberToSkillGroupsResult.cc | 65 +++ ccc/src/model/AddSkillGroupsToUserRequest.cc | 62 ++ ccc/src/model/AddSkillGroupsToUserResult.cc | 73 +++ ccc/src/model/CreateSkillGroupRequest.cc | 73 +++ ccc/src/model/CreateSkillGroupResult.cc | 79 +++ ccc/src/model/CreateUserRequest.cc | 128 +++++ ccc/src/model/CreateUserResult.cc | 93 +++ ccc/src/model/DeleteSkillGroupRequest.cc | 62 ++ ccc/src/model/DeleteSkillGroupResult.cc | 65 +++ ccc/src/model/ListContactFlowsRequest.cc | 73 +++ ccc/src/model/ListContactFlowsResult.cc | 108 ++++ ccc/src/model/ListInstancesOfUserRequest.cc | 51 ++ ccc/src/model/ListInstancesOfUserResult.cc | 173 ++++++ .../ListUserLevelsOfSkillGroupRequest.cc | 95 +++ .../model/ListUserLevelsOfSkillGroupResult.cc | 99 ++++ ccc/src/model/ModifyPhoneNumberRequest.cc | 73 +++ ccc/src/model/ModifyPhoneNumberResult.cc | 65 +++ ccc/src/model/ModifySkillGroupRequest.cc | 73 +++ ccc/src/model/ModifySkillGroupResult.cc | 65 +++ .../ModifyUserLevelsOfSkillGroupRequest.cc | 62 ++ .../ModifyUserLevelsOfSkillGroupResult.cc | 72 +++ ccc/src/model/ModifyUserRequest.cc | 84 +++ ccc/src/model/ModifyUserResult.cc | 80 +++ ...RemovePhoneNumbersFromSkillGroupRequest.cc | 62 ++ .../RemovePhoneNumbersFromSkillGroupResult.cc | 65 +++ ccc/src/model/StartBack2BackCallRequest.cc | 117 ++++ ccc/src/model/StartBack2BackCallResult.cc | 150 +++++ 65 files changed, 5055 insertions(+), 1 deletion(-) create mode 100644 ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateUserRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h create mode 100644 ccc/src/model/AddNumbersToSkillGroupRequest.cc create mode 100644 ccc/src/model/AddNumbersToSkillGroupResult.cc create mode 100644 ccc/src/model/AddPhoneNumberToSkillGroupsRequest.cc create mode 100644 ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc create mode 100644 ccc/src/model/AddSkillGroupsToUserRequest.cc create mode 100644 ccc/src/model/AddSkillGroupsToUserResult.cc create mode 100644 ccc/src/model/CreateSkillGroupRequest.cc create mode 100644 ccc/src/model/CreateSkillGroupResult.cc create mode 100644 ccc/src/model/CreateUserRequest.cc create mode 100644 ccc/src/model/CreateUserResult.cc create mode 100644 ccc/src/model/DeleteSkillGroupRequest.cc create mode 100644 ccc/src/model/DeleteSkillGroupResult.cc create mode 100644 ccc/src/model/ListContactFlowsRequest.cc create mode 100644 ccc/src/model/ListContactFlowsResult.cc create mode 100644 ccc/src/model/ListInstancesOfUserRequest.cc create mode 100644 ccc/src/model/ListInstancesOfUserResult.cc create mode 100644 ccc/src/model/ListUserLevelsOfSkillGroupRequest.cc create mode 100644 ccc/src/model/ListUserLevelsOfSkillGroupResult.cc create mode 100644 ccc/src/model/ModifyPhoneNumberRequest.cc create mode 100644 ccc/src/model/ModifyPhoneNumberResult.cc create mode 100644 ccc/src/model/ModifySkillGroupRequest.cc create mode 100644 ccc/src/model/ModifySkillGroupResult.cc create mode 100644 ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.cc create mode 100644 ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc create mode 100644 ccc/src/model/ModifyUserRequest.cc create mode 100644 ccc/src/model/ModifyUserResult.cc create mode 100644 ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc create mode 100644 ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc create mode 100644 ccc/src/model/StartBack2BackCallRequest.cc create mode 100644 ccc/src/model/StartBack2BackCallResult.cc diff --git a/CHANGELOG b/CHANGELOG index 5f68c75db..ca94d5367 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-04-12 Version: 1.36.676 +- Export config api. + 2021-04-12 Version: 1.36.675 - Support GetDBTopology API. diff --git a/VERSION b/VERSION index 0c89ed7fe..ae15466e3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.675 \ No newline at end of file +1.36.676 \ No newline at end of file diff --git a/ccc/CMakeLists.txt b/ccc/CMakeLists.txt index 9006689c2..e27d5e09a 100644 --- a/ccc/CMakeLists.txt +++ b/ccc/CMakeLists.txt @@ -21,6 +21,12 @@ set(ccc_public_header include/alibabacloud/ccc/CCCExport.h ) set(ccc_public_header_model + include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h + include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h + include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h + include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h + include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h + include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h include/alibabacloud/ccc/model/AnswerCallRequest.h include/alibabacloud/ccc/model/AnswerCallResult.h include/alibabacloud/ccc/model/BargeInCallRequest.h @@ -33,6 +39,12 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ChangeWorkModeResult.h include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h + include/alibabacloud/ccc/model/CreateSkillGroupRequest.h + include/alibabacloud/ccc/model/CreateSkillGroupResult.h + include/alibabacloud/ccc/model/CreateUserRequest.h + include/alibabacloud/ccc/model/CreateUserResult.h + include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h + include/alibabacloud/ccc/model/DeleteSkillGroupResult.h include/alibabacloud/ccc/model/GetLoginDetailsRequest.h include/alibabacloud/ccc/model/GetLoginDetailsResult.h include/alibabacloud/ccc/model/GetMonoRecordingRequest.h @@ -61,10 +73,14 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h include/alibabacloud/ccc/model/ListConfigItemsRequest.h include/alibabacloud/ccc/model/ListConfigItemsResult.h + include/alibabacloud/ccc/model/ListContactFlowsRequest.h + include/alibabacloud/ccc/model/ListContactFlowsResult.h include/alibabacloud/ccc/model/ListDevicesRequest.h include/alibabacloud/ccc/model/ListDevicesResult.h include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h + include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h + include/alibabacloud/ccc/model/ListInstancesOfUserResult.h include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h @@ -75,8 +91,18 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h + include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h + include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h include/alibabacloud/ccc/model/MakeCallRequest.h include/alibabacloud/ccc/model/MakeCallResult.h + include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h + include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h + include/alibabacloud/ccc/model/ModifySkillGroupRequest.h + include/alibabacloud/ccc/model/ModifySkillGroupResult.h + include/alibabacloud/ccc/model/ModifyUserRequest.h + include/alibabacloud/ccc/model/ModifyUserResult.h + include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h + include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h include/alibabacloud/ccc/model/MonitorCallRequest.h include/alibabacloud/ccc/model/MonitorCallResult.h include/alibabacloud/ccc/model/MuteCallRequest.h @@ -91,6 +117,8 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/RegisterDeviceResult.h include/alibabacloud/ccc/model/ReleaseCallRequest.h include/alibabacloud/ccc/model/ReleaseCallResult.h + include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h + include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h include/alibabacloud/ccc/model/ResetAgentStateRequest.h include/alibabacloud/ccc/model/ResetAgentStateResult.h include/alibabacloud/ccc/model/RetrieveCallRequest.h @@ -101,6 +129,8 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/SignInGroupResult.h include/alibabacloud/ccc/model/SignOutGroupRequest.h include/alibabacloud/ccc/model/SignOutGroupResult.h + include/alibabacloud/ccc/model/StartBack2BackCallRequest.h + include/alibabacloud/ccc/model/StartBack2BackCallResult.h include/alibabacloud/ccc/model/TakeBreakRequest.h include/alibabacloud/ccc/model/TakeBreakResult.h include/alibabacloud/ccc/model/UnmuteCallRequest.h @@ -108,6 +138,12 @@ set(ccc_public_header_model set(ccc_src src/CCCClient.cc + src/model/AddNumbersToSkillGroupRequest.cc + src/model/AddNumbersToSkillGroupResult.cc + src/model/AddPhoneNumberToSkillGroupsRequest.cc + src/model/AddPhoneNumberToSkillGroupsResult.cc + src/model/AddSkillGroupsToUserRequest.cc + src/model/AddSkillGroupsToUserResult.cc src/model/AnswerCallRequest.cc src/model/AnswerCallResult.cc src/model/BargeInCallRequest.cc @@ -120,6 +156,12 @@ set(ccc_src src/model/ChangeWorkModeResult.cc src/model/CompleteAttendedTransferRequest.cc src/model/CompleteAttendedTransferResult.cc + src/model/CreateSkillGroupRequest.cc + src/model/CreateSkillGroupResult.cc + src/model/CreateUserRequest.cc + src/model/CreateUserResult.cc + src/model/DeleteSkillGroupRequest.cc + src/model/DeleteSkillGroupResult.cc src/model/GetLoginDetailsRequest.cc src/model/GetLoginDetailsResult.cc src/model/GetMonoRecordingRequest.cc @@ -148,10 +190,14 @@ set(ccc_src src/model/ListCallDetailRecordsResult.cc src/model/ListConfigItemsRequest.cc src/model/ListConfigItemsResult.cc + src/model/ListContactFlowsRequest.cc + src/model/ListContactFlowsResult.cc src/model/ListDevicesRequest.cc src/model/ListDevicesResult.cc src/model/ListHistoricalAgentReportRequest.cc src/model/ListHistoricalAgentReportResult.cc + src/model/ListInstancesOfUserRequest.cc + src/model/ListInstancesOfUserResult.cc src/model/ListOutboundNumbersOfUserRequest.cc src/model/ListOutboundNumbersOfUserResult.cc src/model/ListPrivilegesOfUserRequest.cc @@ -162,8 +208,18 @@ set(ccc_src src/model/ListRecentCallDetailRecordsResult.cc src/model/ListSkillLevelsOfUserRequest.cc src/model/ListSkillLevelsOfUserResult.cc + src/model/ListUserLevelsOfSkillGroupRequest.cc + src/model/ListUserLevelsOfSkillGroupResult.cc src/model/MakeCallRequest.cc src/model/MakeCallResult.cc + src/model/ModifyPhoneNumberRequest.cc + src/model/ModifyPhoneNumberResult.cc + src/model/ModifySkillGroupRequest.cc + src/model/ModifySkillGroupResult.cc + src/model/ModifyUserRequest.cc + src/model/ModifyUserResult.cc + src/model/ModifyUserLevelsOfSkillGroupRequest.cc + src/model/ModifyUserLevelsOfSkillGroupResult.cc src/model/MonitorCallRequest.cc src/model/MonitorCallResult.cc src/model/MuteCallRequest.cc @@ -178,6 +234,8 @@ set(ccc_src src/model/RegisterDeviceResult.cc src/model/ReleaseCallRequest.cc src/model/ReleaseCallResult.cc + src/model/RemovePhoneNumbersFromSkillGroupRequest.cc + src/model/RemovePhoneNumbersFromSkillGroupResult.cc src/model/ResetAgentStateRequest.cc src/model/ResetAgentStateResult.cc src/model/RetrieveCallRequest.cc @@ -188,6 +246,8 @@ set(ccc_src src/model/SignInGroupResult.cc src/model/SignOutGroupRequest.cc src/model/SignOutGroupResult.cc + src/model/StartBack2BackCallRequest.cc + src/model/StartBack2BackCallResult.cc src/model/TakeBreakRequest.cc src/model/TakeBreakResult.cc src/model/UnmuteCallRequest.cc diff --git a/ccc/include/alibabacloud/ccc/CCCClient.h b/ccc/include/alibabacloud/ccc/CCCClient.h index 54ee2f30b..b49ee8690 100644 --- a/ccc/include/alibabacloud/ccc/CCCClient.h +++ b/ccc/include/alibabacloud/ccc/CCCClient.h @@ -22,6 +22,12 @@ #include #include #include "CCCExport.h" +#include "model/AddNumbersToSkillGroupRequest.h" +#include "model/AddNumbersToSkillGroupResult.h" +#include "model/AddPhoneNumberToSkillGroupsRequest.h" +#include "model/AddPhoneNumberToSkillGroupsResult.h" +#include "model/AddSkillGroupsToUserRequest.h" +#include "model/AddSkillGroupsToUserResult.h" #include "model/AnswerCallRequest.h" #include "model/AnswerCallResult.h" #include "model/BargeInCallRequest.h" @@ -34,6 +40,12 @@ #include "model/ChangeWorkModeResult.h" #include "model/CompleteAttendedTransferRequest.h" #include "model/CompleteAttendedTransferResult.h" +#include "model/CreateSkillGroupRequest.h" +#include "model/CreateSkillGroupResult.h" +#include "model/CreateUserRequest.h" +#include "model/CreateUserResult.h" +#include "model/DeleteSkillGroupRequest.h" +#include "model/DeleteSkillGroupResult.h" #include "model/GetLoginDetailsRequest.h" #include "model/GetLoginDetailsResult.h" #include "model/GetMonoRecordingRequest.h" @@ -62,10 +74,14 @@ #include "model/ListCallDetailRecordsResult.h" #include "model/ListConfigItemsRequest.h" #include "model/ListConfigItemsResult.h" +#include "model/ListContactFlowsRequest.h" +#include "model/ListContactFlowsResult.h" #include "model/ListDevicesRequest.h" #include "model/ListDevicesResult.h" #include "model/ListHistoricalAgentReportRequest.h" #include "model/ListHistoricalAgentReportResult.h" +#include "model/ListInstancesOfUserRequest.h" +#include "model/ListInstancesOfUserResult.h" #include "model/ListOutboundNumbersOfUserRequest.h" #include "model/ListOutboundNumbersOfUserResult.h" #include "model/ListPrivilegesOfUserRequest.h" @@ -76,8 +92,18 @@ #include "model/ListRecentCallDetailRecordsResult.h" #include "model/ListSkillLevelsOfUserRequest.h" #include "model/ListSkillLevelsOfUserResult.h" +#include "model/ListUserLevelsOfSkillGroupRequest.h" +#include "model/ListUserLevelsOfSkillGroupResult.h" #include "model/MakeCallRequest.h" #include "model/MakeCallResult.h" +#include "model/ModifyPhoneNumberRequest.h" +#include "model/ModifyPhoneNumberResult.h" +#include "model/ModifySkillGroupRequest.h" +#include "model/ModifySkillGroupResult.h" +#include "model/ModifyUserRequest.h" +#include "model/ModifyUserResult.h" +#include "model/ModifyUserLevelsOfSkillGroupRequest.h" +#include "model/ModifyUserLevelsOfSkillGroupResult.h" #include "model/MonitorCallRequest.h" #include "model/MonitorCallResult.h" #include "model/MuteCallRequest.h" @@ -92,6 +118,8 @@ #include "model/RegisterDeviceResult.h" #include "model/ReleaseCallRequest.h" #include "model/ReleaseCallResult.h" +#include "model/RemovePhoneNumbersFromSkillGroupRequest.h" +#include "model/RemovePhoneNumbersFromSkillGroupResult.h" #include "model/ResetAgentStateRequest.h" #include "model/ResetAgentStateResult.h" #include "model/RetrieveCallRequest.h" @@ -102,6 +130,8 @@ #include "model/SignInGroupResult.h" #include "model/SignOutGroupRequest.h" #include "model/SignOutGroupResult.h" +#include "model/StartBack2BackCallRequest.h" +#include "model/StartBack2BackCallResult.h" #include "model/TakeBreakRequest.h" #include "model/TakeBreakResult.h" #include "model/UnmuteCallRequest.h" @@ -115,6 +145,15 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient { public: + typedef Outcome AddNumbersToSkillGroupOutcome; + typedef std::future AddNumbersToSkillGroupOutcomeCallable; + typedef std::function&)> AddNumbersToSkillGroupAsyncHandler; + typedef Outcome AddPhoneNumberToSkillGroupsOutcome; + typedef std::future AddPhoneNumberToSkillGroupsOutcomeCallable; + typedef std::function&)> AddPhoneNumberToSkillGroupsAsyncHandler; + typedef Outcome AddSkillGroupsToUserOutcome; + typedef std::future AddSkillGroupsToUserOutcomeCallable; + typedef std::function&)> AddSkillGroupsToUserAsyncHandler; typedef Outcome AnswerCallOutcome; typedef std::future AnswerCallOutcomeCallable; typedef std::function&)> AnswerCallAsyncHandler; @@ -133,6 +172,15 @@ namespace AlibabaCloud typedef Outcome CompleteAttendedTransferOutcome; typedef std::future CompleteAttendedTransferOutcomeCallable; typedef std::function&)> CompleteAttendedTransferAsyncHandler; + typedef Outcome CreateSkillGroupOutcome; + typedef std::future CreateSkillGroupOutcomeCallable; + typedef std::function&)> CreateSkillGroupAsyncHandler; + typedef Outcome CreateUserOutcome; + typedef std::future CreateUserOutcomeCallable; + typedef std::function&)> CreateUserAsyncHandler; + typedef Outcome DeleteSkillGroupOutcome; + typedef std::future DeleteSkillGroupOutcomeCallable; + typedef std::function&)> DeleteSkillGroupAsyncHandler; typedef Outcome GetLoginDetailsOutcome; typedef std::future GetLoginDetailsOutcomeCallable; typedef std::function&)> GetLoginDetailsAsyncHandler; @@ -175,12 +223,18 @@ namespace AlibabaCloud typedef Outcome ListConfigItemsOutcome; typedef std::future ListConfigItemsOutcomeCallable; typedef std::function&)> ListConfigItemsAsyncHandler; + typedef Outcome ListContactFlowsOutcome; + typedef std::future ListContactFlowsOutcomeCallable; + typedef std::function&)> ListContactFlowsAsyncHandler; typedef Outcome ListDevicesOutcome; typedef std::future ListDevicesOutcomeCallable; typedef std::function&)> ListDevicesAsyncHandler; typedef Outcome ListHistoricalAgentReportOutcome; typedef std::future ListHistoricalAgentReportOutcomeCallable; typedef std::function&)> ListHistoricalAgentReportAsyncHandler; + typedef Outcome ListInstancesOfUserOutcome; + typedef std::future ListInstancesOfUserOutcomeCallable; + typedef std::function&)> ListInstancesOfUserAsyncHandler; typedef Outcome ListOutboundNumbersOfUserOutcome; typedef std::future ListOutboundNumbersOfUserOutcomeCallable; typedef std::function&)> ListOutboundNumbersOfUserAsyncHandler; @@ -196,9 +250,24 @@ namespace AlibabaCloud typedef Outcome ListSkillLevelsOfUserOutcome; typedef std::future ListSkillLevelsOfUserOutcomeCallable; typedef std::function&)> ListSkillLevelsOfUserAsyncHandler; + typedef Outcome ListUserLevelsOfSkillGroupOutcome; + typedef std::future ListUserLevelsOfSkillGroupOutcomeCallable; + typedef std::function&)> ListUserLevelsOfSkillGroupAsyncHandler; typedef Outcome MakeCallOutcome; typedef std::future MakeCallOutcomeCallable; typedef std::function&)> MakeCallAsyncHandler; + typedef Outcome ModifyPhoneNumberOutcome; + typedef std::future ModifyPhoneNumberOutcomeCallable; + typedef std::function&)> ModifyPhoneNumberAsyncHandler; + typedef Outcome ModifySkillGroupOutcome; + typedef std::future ModifySkillGroupOutcomeCallable; + typedef std::function&)> ModifySkillGroupAsyncHandler; + typedef Outcome ModifyUserOutcome; + typedef std::future ModifyUserOutcomeCallable; + typedef std::function&)> ModifyUserAsyncHandler; + typedef Outcome ModifyUserLevelsOfSkillGroupOutcome; + typedef std::future ModifyUserLevelsOfSkillGroupOutcomeCallable; + typedef std::function&)> ModifyUserLevelsOfSkillGroupAsyncHandler; typedef Outcome MonitorCallOutcome; typedef std::future MonitorCallOutcomeCallable; typedef std::function&)> MonitorCallAsyncHandler; @@ -220,6 +289,9 @@ namespace AlibabaCloud typedef Outcome ReleaseCallOutcome; typedef std::future ReleaseCallOutcomeCallable; typedef std::function&)> ReleaseCallAsyncHandler; + typedef Outcome RemovePhoneNumbersFromSkillGroupOutcome; + typedef std::future RemovePhoneNumbersFromSkillGroupOutcomeCallable; + typedef std::function&)> RemovePhoneNumbersFromSkillGroupAsyncHandler; typedef Outcome ResetAgentStateOutcome; typedef std::future ResetAgentStateOutcomeCallable; typedef std::function&)> ResetAgentStateAsyncHandler; @@ -235,6 +307,9 @@ namespace AlibabaCloud typedef Outcome SignOutGroupOutcome; typedef std::future SignOutGroupOutcomeCallable; typedef std::function&)> SignOutGroupAsyncHandler; + typedef Outcome StartBack2BackCallOutcome; + typedef std::future StartBack2BackCallOutcomeCallable; + typedef std::function&)> StartBack2BackCallAsyncHandler; typedef Outcome TakeBreakOutcome; typedef std::future TakeBreakOutcomeCallable; typedef std::function&)> TakeBreakAsyncHandler; @@ -246,6 +321,15 @@ namespace AlibabaCloud CCCClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CCCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CCCClient(); + AddNumbersToSkillGroupOutcome addNumbersToSkillGroup(const Model::AddNumbersToSkillGroupRequest &request)const; + void addNumbersToSkillGroupAsync(const Model::AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddNumbersToSkillGroupOutcomeCallable addNumbersToSkillGroupCallable(const Model::AddNumbersToSkillGroupRequest& request) const; + AddPhoneNumberToSkillGroupsOutcome addPhoneNumberToSkillGroups(const Model::AddPhoneNumberToSkillGroupsRequest &request)const; + void addPhoneNumberToSkillGroupsAsync(const Model::AddPhoneNumberToSkillGroupsRequest& request, const AddPhoneNumberToSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPhoneNumberToSkillGroupsOutcomeCallable addPhoneNumberToSkillGroupsCallable(const Model::AddPhoneNumberToSkillGroupsRequest& request) const; + AddSkillGroupsToUserOutcome addSkillGroupsToUser(const Model::AddSkillGroupsToUserRequest &request)const; + void addSkillGroupsToUserAsync(const Model::AddSkillGroupsToUserRequest& request, const AddSkillGroupsToUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSkillGroupsToUserOutcomeCallable addSkillGroupsToUserCallable(const Model::AddSkillGroupsToUserRequest& request) const; AnswerCallOutcome answerCall(const Model::AnswerCallRequest &request)const; void answerCallAsync(const Model::AnswerCallRequest& request, const AnswerCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AnswerCallOutcomeCallable answerCallCallable(const Model::AnswerCallRequest& request) const; @@ -264,6 +348,15 @@ namespace AlibabaCloud CompleteAttendedTransferOutcome completeAttendedTransfer(const Model::CompleteAttendedTransferRequest &request)const; void completeAttendedTransferAsync(const Model::CompleteAttendedTransferRequest& request, const CompleteAttendedTransferAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CompleteAttendedTransferOutcomeCallable completeAttendedTransferCallable(const Model::CompleteAttendedTransferRequest& request) const; + CreateSkillGroupOutcome createSkillGroup(const Model::CreateSkillGroupRequest &request)const; + void createSkillGroupAsync(const Model::CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSkillGroupOutcomeCallable createSkillGroupCallable(const Model::CreateSkillGroupRequest& request) const; + CreateUserOutcome createUser(const Model::CreateUserRequest &request)const; + void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const; + DeleteSkillGroupOutcome deleteSkillGroup(const Model::DeleteSkillGroupRequest &request)const; + void deleteSkillGroupAsync(const Model::DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSkillGroupOutcomeCallable deleteSkillGroupCallable(const Model::DeleteSkillGroupRequest& request) const; GetLoginDetailsOutcome getLoginDetails(const Model::GetLoginDetailsRequest &request)const; void getLoginDetailsAsync(const Model::GetLoginDetailsRequest& request, const GetLoginDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetLoginDetailsOutcomeCallable getLoginDetailsCallable(const Model::GetLoginDetailsRequest& request) const; @@ -306,12 +399,18 @@ namespace AlibabaCloud ListConfigItemsOutcome listConfigItems(const Model::ListConfigItemsRequest &request)const; void listConfigItemsAsync(const Model::ListConfigItemsRequest& request, const ListConfigItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListConfigItemsOutcomeCallable listConfigItemsCallable(const Model::ListConfigItemsRequest& request) const; + ListContactFlowsOutcome listContactFlows(const Model::ListContactFlowsRequest &request)const; + void listContactFlowsAsync(const Model::ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListContactFlowsOutcomeCallable listContactFlowsCallable(const Model::ListContactFlowsRequest& request) const; ListDevicesOutcome listDevices(const Model::ListDevicesRequest &request)const; void listDevicesAsync(const Model::ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDevicesOutcomeCallable listDevicesCallable(const Model::ListDevicesRequest& request) const; ListHistoricalAgentReportOutcome listHistoricalAgentReport(const Model::ListHistoricalAgentReportRequest &request)const; void listHistoricalAgentReportAsync(const Model::ListHistoricalAgentReportRequest& request, const ListHistoricalAgentReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListHistoricalAgentReportOutcomeCallable listHistoricalAgentReportCallable(const Model::ListHistoricalAgentReportRequest& request) const; + ListInstancesOfUserOutcome listInstancesOfUser(const Model::ListInstancesOfUserRequest &request)const; + void listInstancesOfUserAsync(const Model::ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstancesOfUserOutcomeCallable listInstancesOfUserCallable(const Model::ListInstancesOfUserRequest& request) const; ListOutboundNumbersOfUserOutcome listOutboundNumbersOfUser(const Model::ListOutboundNumbersOfUserRequest &request)const; void listOutboundNumbersOfUserAsync(const Model::ListOutboundNumbersOfUserRequest& request, const ListOutboundNumbersOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOutboundNumbersOfUserOutcomeCallable listOutboundNumbersOfUserCallable(const Model::ListOutboundNumbersOfUserRequest& request) const; @@ -327,9 +426,24 @@ namespace AlibabaCloud ListSkillLevelsOfUserOutcome listSkillLevelsOfUser(const Model::ListSkillLevelsOfUserRequest &request)const; void listSkillLevelsOfUserAsync(const Model::ListSkillLevelsOfUserRequest& request, const ListSkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSkillLevelsOfUserOutcomeCallable listSkillLevelsOfUserCallable(const Model::ListSkillLevelsOfUserRequest& request) const; + ListUserLevelsOfSkillGroupOutcome listUserLevelsOfSkillGroup(const Model::ListUserLevelsOfSkillGroupRequest &request)const; + void listUserLevelsOfSkillGroupAsync(const Model::ListUserLevelsOfSkillGroupRequest& request, const ListUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserLevelsOfSkillGroupOutcomeCallable listUserLevelsOfSkillGroupCallable(const Model::ListUserLevelsOfSkillGroupRequest& request) const; MakeCallOutcome makeCall(const Model::MakeCallRequest &request)const; void makeCallAsync(const Model::MakeCallRequest& request, const MakeCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MakeCallOutcomeCallable makeCallCallable(const Model::MakeCallRequest& request) const; + ModifyPhoneNumberOutcome modifyPhoneNumber(const Model::ModifyPhoneNumberRequest &request)const; + void modifyPhoneNumberAsync(const Model::ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPhoneNumberOutcomeCallable modifyPhoneNumberCallable(const Model::ModifyPhoneNumberRequest& request) const; + ModifySkillGroupOutcome modifySkillGroup(const Model::ModifySkillGroupRequest &request)const; + void modifySkillGroupAsync(const Model::ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySkillGroupOutcomeCallable modifySkillGroupCallable(const Model::ModifySkillGroupRequest& request) const; + ModifyUserOutcome modifyUser(const Model::ModifyUserRequest &request)const; + void modifyUserAsync(const Model::ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyUserOutcomeCallable modifyUserCallable(const Model::ModifyUserRequest& request) const; + ModifyUserLevelsOfSkillGroupOutcome modifyUserLevelsOfSkillGroup(const Model::ModifyUserLevelsOfSkillGroupRequest &request)const; + void modifyUserLevelsOfSkillGroupAsync(const Model::ModifyUserLevelsOfSkillGroupRequest& request, const ModifyUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyUserLevelsOfSkillGroupOutcomeCallable modifyUserLevelsOfSkillGroupCallable(const Model::ModifyUserLevelsOfSkillGroupRequest& request) const; MonitorCallOutcome monitorCall(const Model::MonitorCallRequest &request)const; void monitorCallAsync(const Model::MonitorCallRequest& request, const MonitorCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MonitorCallOutcomeCallable monitorCallCallable(const Model::MonitorCallRequest& request) const; @@ -351,6 +465,9 @@ namespace AlibabaCloud ReleaseCallOutcome releaseCall(const Model::ReleaseCallRequest &request)const; void releaseCallAsync(const Model::ReleaseCallRequest& request, const ReleaseCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseCallOutcomeCallable releaseCallCallable(const Model::ReleaseCallRequest& request) const; + RemovePhoneNumbersFromSkillGroupOutcome removePhoneNumbersFromSkillGroup(const Model::RemovePhoneNumbersFromSkillGroupRequest &request)const; + void removePhoneNumbersFromSkillGroupAsync(const Model::RemovePhoneNumbersFromSkillGroupRequest& request, const RemovePhoneNumbersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemovePhoneNumbersFromSkillGroupOutcomeCallable removePhoneNumbersFromSkillGroupCallable(const Model::RemovePhoneNumbersFromSkillGroupRequest& request) const; ResetAgentStateOutcome resetAgentState(const Model::ResetAgentStateRequest &request)const; void resetAgentStateAsync(const Model::ResetAgentStateRequest& request, const ResetAgentStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetAgentStateOutcomeCallable resetAgentStateCallable(const Model::ResetAgentStateRequest& request) const; @@ -366,6 +483,9 @@ namespace AlibabaCloud SignOutGroupOutcome signOutGroup(const Model::SignOutGroupRequest &request)const; void signOutGroupAsync(const Model::SignOutGroupRequest& request, const SignOutGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SignOutGroupOutcomeCallable signOutGroupCallable(const Model::SignOutGroupRequest& request) const; + StartBack2BackCallOutcome startBack2BackCall(const Model::StartBack2BackCallRequest &request)const; + void startBack2BackCallAsync(const Model::StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartBack2BackCallOutcomeCallable startBack2BackCallCallable(const Model::StartBack2BackCallRequest& request) const; TakeBreakOutcome takeBreak(const Model::TakeBreakRequest &request)const; void takeBreakAsync(const Model::TakeBreakRequest& request, const TakeBreakAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TakeBreakOutcomeCallable takeBreakCallable(const Model::TakeBreakRequest& request) const; diff --git a/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h new file mode 100644 index 000000000..3f1ee45d5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddNumbersToSkillGroupRequest : public RpcServiceRequest + { + + public: + AddNumbersToSkillGroupRequest(); + ~AddNumbersToSkillGroupRequest(); + + std::string getNumberList()const; + void setNumberList(const std::string& numberList); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + + private: + std::string numberList_; + std::string instanceId_; + std::string skillGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h new file mode 100644 index 000000000..366040577 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddNumbersToSkillGroupResult : public ServiceResult + { + public: + + + AddNumbersToSkillGroupResult(); + explicit AddNumbersToSkillGroupResult(const std::string &payload); + ~AddNumbersToSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h new file mode 100644 index 000000000..7c26846c6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberToSkillGroupsRequest : public RpcServiceRequest + { + + public: + AddPhoneNumberToSkillGroupsRequest(); + ~AddPhoneNumberToSkillGroupsRequest(); + + std::string getNumber()const; + void setNumber(const std::string& number); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupIdList()const; + void setSkillGroupIdList(const std::string& skillGroupIdList); + + private: + std::string number_; + std::string instanceId_; + std::string skillGroupIdList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h new file mode 100644 index 000000000..1e72227a3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberToSkillGroupsResult : public ServiceResult + { + public: + + + AddPhoneNumberToSkillGroupsResult(); + explicit AddPhoneNumberToSkillGroupsResult(const std::string &payload); + ~AddPhoneNumberToSkillGroupsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h new file mode 100644 index 000000000..2701bf41b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddSkillGroupsToUserRequest : public RpcServiceRequest + { + + public: + AddSkillGroupsToUserRequest(); + ~AddSkillGroupsToUserRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillLevelList()const; + void setSkillLevelList(const std::string& skillLevelList); + + private: + std::string userId_; + std::string instanceId_; + std::string skillLevelList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h new file mode 100644 index 000000000..799e37848 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddSkillGroupsToUserResult : public ServiceResult + { + public: + + + AddSkillGroupsToUserResult(); + explicit AddSkillGroupsToUserResult(const std::string &payload); + ~AddSkillGroupsToUserResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h new file mode 100644 index 000000000..15b73d15e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateSkillGroupRequest : public RpcServiceRequest + { + + public: + CreateSkillGroupRequest(); + ~CreateSkillGroupRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string description_; + std::string instanceId_; + std::string displayName_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h new file mode 100644 index 000000000..ffeb11507 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateSkillGroupResult : public ServiceResult + { + public: + struct Data + { + std::string description; + std::string instanceId; + std::string skillGroupId; + std::string name; + }; + + + CreateSkillGroupResult(); + explicit CreateSkillGroupResult(const std::string &payload); + ~CreateSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h b/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h new file mode 100644 index 000000000..6f3eac9c3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateUserRequest : public RpcServiceRequest + { + + public: + CreateUserRequest(); + ~CreateUserRequest(); + + std::string getLoginName()const; + void setLoginName(const std::string& loginName); + std::string getRoleId()const; + void setRoleId(const std::string& roleId); + std::string getMobile()const; + void setMobile(const std::string& mobile); + std::string getWorkMode()const; + void setWorkMode(const std::string& workMode); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + bool getResetPassword()const; + void setResetPassword(bool resetPassword); + std::string getSkillLevelList()const; + void setSkillLevelList(const std::string& skillLevelList); + std::string getEmail()const; + void setEmail(const std::string& email); + + private: + std::string loginName_; + std::string roleId_; + std::string mobile_; + std::string workMode_; + std::string instanceId_; + std::string displayName_; + bool resetPassword_; + std::string skillLevelList_; + std::string email_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h new file mode 100644 index 000000000..4633720ad --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateUserResult : public ServiceResult + { + public: + struct Data + { + std::string extension; + std::string loginName; + std::string email; + std::string userId; + std::string displayName; + std::string mobile; + std::string workMode; + }; + + + CreateUserResult(); + explicit CreateUserResult(const std::string &payload); + ~CreateUserResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h new file mode 100644 index 000000000..ad245f1e0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteSkillGroupRequest : public RpcServiceRequest + { + + public: + DeleteSkillGroupRequest(); + ~DeleteSkillGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + bool getForce()const; + void setForce(bool force); + + private: + std::string instanceId_; + std::string skillGroupId_; + bool force_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h new file mode 100644 index 000000000..481cbd7fb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteSkillGroupResult : public ServiceResult + { + public: + + + DeleteSkillGroupResult(); + explicit DeleteSkillGroupResult(const std::string &payload); + ~DeleteSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h b/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h new file mode 100644 index 000000000..170e58e65 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListContactFlowsRequest : public RpcServiceRequest + { + + public: + ListContactFlowsRequest(); + ~ListContactFlowsRequest(); + + std::string getType()const; + void setType(const std::string& type); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string type_; + int pageNumber_; + std::string instanceId_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h b/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h new file mode 100644 index 000000000..d36ae6edb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListContactFlowsResult : public ServiceResult + { + public: + struct Data + { + struct ContactFlow + { + std::string type; + std::string createdTime; + std::string description; + std::string contactFlowId; + std::string instanceId; + std::string definition; + bool published; + std::vector numberList; + std::string draftId; + std::string updatedTime; + std::string editor; + std::string name; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListContactFlowsResult(); + explicit ListContactFlowsResult(const std::string &payload); + ~ListContactFlowsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h new file mode 100644 index 000000000..82ea563f5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserRequest : public RpcServiceRequest + { + + public: + ListInstancesOfUserRequest(); + ~ListInstancesOfUserRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + int pageNumber_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h new file mode 100644 index 000000000..ee103f12d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserResult : public ServiceResult + { + public: + struct Data + { + struct CallCenterInstance + { + struct User + { + std::string extension; + std::string loginName; + std::string roleName; + std::string email; + std::string instanceId; + std::string userId; + std::string displayName; + std::string mobile; + std::string roleId; + std::string workMode; + }; + struct PhoneNumber + { + struct SkillGroup + { + std::string description; + std::string instanceId; + int phoneNumberCount; + int userCount; + std::string displayName; + std::string skillGroupId; + std::string name; + }; + bool active; + std::string usage; + std::string number; + std::string contactFlowId; + std::string instanceId; + std::string userId; + std::vector skillGroups; + std::string city; + std::string province; + }; + std::string status; + std::vector adminList; + std::string description; + std::string consoleUrl; + std::string domainName; + std::string aliyunUid; + std::vector numberList; + std::string id; + std::string name; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListInstancesOfUserResult(); + explicit ListInstancesOfUserResult(const std::string &payload); + ~ListInstancesOfUserResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h new file mode 100644 index 000000000..1cc8ab72b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListUserLevelsOfSkillGroupRequest : public RpcServiceRequest + { + + public: + ListUserLevelsOfSkillGroupRequest(); + ~ListUserLevelsOfSkillGroupRequest(); + + bool getIsMember()const; + void setIsMember(bool isMember); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getSearchPattern()const; + void setSearchPattern(const std::string& searchPattern); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + bool isMember_; + int pageNumber_; + std::string searchPattern_; + std::string instanceId_; + std::string skillGroupId_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h new file mode 100644 index 000000000..f2e1bfe26 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListUserLevelsOfSkillGroupResult : public ServiceResult + { + public: + struct Data + { + struct UserSkillLevel + { + std::string loginName; + std::string roleName; + std::string skillGroupName; + int skillLevel; + std::string userId; + std::string displayName; + std::string skillGroupId; + std::string roleId; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListUserLevelsOfSkillGroupResult(); + explicit ListUserLevelsOfSkillGroupResult(const std::string &payload); + ~ListUserLevelsOfSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h new file mode 100644 index 000000000..699c79e6d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyPhoneNumberRequest : public RpcServiceRequest + { + + public: + ModifyPhoneNumberRequest(); + ~ModifyPhoneNumberRequest(); + + std::string getContactFlowId()const; + void setContactFlowId(const std::string& contactFlowId); + std::string getUsage()const; + void setUsage(const std::string& usage); + std::string getNumber()const; + void setNumber(const std::string& number); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string contactFlowId_; + std::string usage_; + std::string number_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h new file mode 100644 index 000000000..ab4047766 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyPhoneNumberResult : public ServiceResult + { + public: + + + ModifyPhoneNumberResult(); + explicit ModifyPhoneNumberResult(const std::string &payload); + ~ModifyPhoneNumberResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h new file mode 100644 index 000000000..f051b234a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupRequest : public RpcServiceRequest + { + + public: + ModifySkillGroupRequest(); + ~ModifySkillGroupRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + + private: + std::string description_; + std::string instanceId_; + std::string skillGroupId_; + std::string displayName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h new file mode 100644 index 000000000..0da149c17 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupResult : public ServiceResult + { + public: + + + ModifySkillGroupResult(); + explicit ModifySkillGroupResult(const std::string &payload); + ~ModifySkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h new file mode 100644 index 000000000..ee398ad88 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyUserLevelsOfSkillGroupRequest : public RpcServiceRequest + { + + public: + ModifyUserLevelsOfSkillGroupRequest(); + ~ModifyUserLevelsOfSkillGroupRequest(); + + std::string getUserLevelList()const; + void setUserLevelList(const std::string& userLevelList); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + + private: + std::string userLevelList_; + std::string instanceId_; + std::string skillGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h new file mode 100644 index 000000000..f53ab160e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyUserLevelsOfSkillGroupResult : public ServiceResult + { + public: + + + ModifyUserLevelsOfSkillGroupResult(); + explicit ModifyUserLevelsOfSkillGroupResult(const std::string &payload); + ~ModifyUserLevelsOfSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h new file mode 100644 index 000000000..98b71f0d0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyUserRequest : public RpcServiceRequest + { + + public: + ModifyUserRequest(); + ~ModifyUserRequest(); + + std::string getRoleId()const; + void setRoleId(const std::string& roleId); + std::string getMobile()const; + void setMobile(const std::string& mobile); + std::string getWorkMode()const; + void setWorkMode(const std::string& workMode); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string roleId_; + std::string mobile_; + std::string workMode_; + std::string userId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h new file mode 100644 index 000000000..5c612e529 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyUserResult : public ServiceResult + { + public: + + + ModifyUserResult(); + explicit ModifyUserResult(const std::string &payload); + ~ModifyUserResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h new file mode 100644 index 000000000..0f48cd426 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersFromSkillGroupRequest : public RpcServiceRequest + { + + public: + RemovePhoneNumbersFromSkillGroupRequest(); + ~RemovePhoneNumbersFromSkillGroupRequest(); + + std::string getNumberList()const; + void setNumberList(const std::string& numberList); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + + private: + std::string numberList_; + std::string instanceId_; + std::string skillGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h new file mode 100644 index 000000000..d21407d64 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersFromSkillGroupResult : public ServiceResult + { + public: + + + RemovePhoneNumbersFromSkillGroupResult(); + explicit RemovePhoneNumbersFromSkillGroupResult(const std::string &payload); + ~RemovePhoneNumbersFromSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h new file mode 100644 index 000000000..5b6c24d03 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT StartBack2BackCallRequest : public RpcServiceRequest + { + + public: + StartBack2BackCallRequest(); + ~StartBack2BackCallRequest(); + + std::string getCallee()const; + void setCallee(const std::string& callee); + std::string getBroker()const; + void setBroker(const std::string& broker); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAdditionalBroker()const; + void setAdditionalBroker(const std::string& additionalBroker); + std::string getTags()const; + void setTags(const std::string& tags); + int getTimeoutSeconds()const; + void setTimeoutSeconds(int timeoutSeconds); + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string callee_; + std::string broker_; + std::string userId_; + std::string additionalBroker_; + std::string tags_; + int timeoutSeconds_; + std::string caller_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h new file mode 100644 index 000000000..131711ae4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT StartBack2BackCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + std::string associatedData; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::string uri; + std::vector signedSkillGroupIdList; + std::string extension; + std::string deviceState; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + StartBack2BackCallResult(); + explicit StartBack2BackCallResult(const std::string &payload); + ~StartBack2BackCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/src/CCCClient.cc b/ccc/src/CCCClient.cc index 7f012a404..135650789 100644 --- a/ccc/src/CCCClient.cc +++ b/ccc/src/CCCClient.cc @@ -51,6 +51,114 @@ CCCClient::CCCClient(const std::string & accessKeyId, const std::string & access CCCClient::~CCCClient() {} +CCCClient::AddNumbersToSkillGroupOutcome CCCClient::addNumbersToSkillGroup(const AddNumbersToSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddNumbersToSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddNumbersToSkillGroupOutcome(AddNumbersToSkillGroupResult(outcome.result())); + else + return AddNumbersToSkillGroupOutcome(outcome.error()); +} + +void CCCClient::addNumbersToSkillGroupAsync(const AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addNumbersToSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AddNumbersToSkillGroupOutcomeCallable CCCClient::addNumbersToSkillGroupCallable(const AddNumbersToSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addNumbersToSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::AddPhoneNumberToSkillGroupsOutcome CCCClient::addPhoneNumberToSkillGroups(const AddPhoneNumberToSkillGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddPhoneNumberToSkillGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddPhoneNumberToSkillGroupsOutcome(AddPhoneNumberToSkillGroupsResult(outcome.result())); + else + return AddPhoneNumberToSkillGroupsOutcome(outcome.error()); +} + +void CCCClient::addPhoneNumberToSkillGroupsAsync(const AddPhoneNumberToSkillGroupsRequest& request, const AddPhoneNumberToSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addPhoneNumberToSkillGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AddPhoneNumberToSkillGroupsOutcomeCallable CCCClient::addPhoneNumberToSkillGroupsCallable(const AddPhoneNumberToSkillGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addPhoneNumberToSkillGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::AddSkillGroupsToUserOutcome CCCClient::addSkillGroupsToUser(const AddSkillGroupsToUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSkillGroupsToUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSkillGroupsToUserOutcome(AddSkillGroupsToUserResult(outcome.result())); + else + return AddSkillGroupsToUserOutcome(outcome.error()); +} + +void CCCClient::addSkillGroupsToUserAsync(const AddSkillGroupsToUserRequest& request, const AddSkillGroupsToUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSkillGroupsToUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AddSkillGroupsToUserOutcomeCallable CCCClient::addSkillGroupsToUserCallable(const AddSkillGroupsToUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSkillGroupsToUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::AnswerCallOutcome CCCClient::answerCall(const AnswerCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +375,114 @@ CCCClient::CompleteAttendedTransferOutcomeCallable CCCClient::completeAttendedTr return task->get_future(); } +CCCClient::CreateSkillGroupOutcome CCCClient::createSkillGroup(const CreateSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSkillGroupOutcome(CreateSkillGroupResult(outcome.result())); + else + return CreateSkillGroupOutcome(outcome.error()); +} + +void CCCClient::createSkillGroupAsync(const CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateSkillGroupOutcomeCallable CCCClient::createSkillGroupCallable(const CreateSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateUserOutcome CCCClient::createUser(const CreateUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserOutcome(CreateUserResult(outcome.result())); + else + return CreateUserOutcome(outcome.error()); +} + +void CCCClient::createUserAsync(const CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateUserOutcomeCallable CCCClient::createUserCallable(const CreateUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DeleteSkillGroupOutcome CCCClient::deleteSkillGroup(const DeleteSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSkillGroupOutcome(DeleteSkillGroupResult(outcome.result())); + else + return DeleteSkillGroupOutcome(outcome.error()); +} + +void CCCClient::deleteSkillGroupAsync(const DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(const DeleteSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::GetLoginDetailsOutcome CCCClient::getLoginDetails(const GetLoginDetailsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +987,42 @@ CCCClient::ListConfigItemsOutcomeCallable CCCClient::listConfigItemsCallable(con return task->get_future(); } +CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListContactFlowsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListContactFlowsOutcome(ListContactFlowsResult(outcome.result())); + else + return ListContactFlowsOutcome(outcome.error()); +} + +void CCCClient::listContactFlowsAsync(const ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listContactFlows(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(const ListContactFlowsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listContactFlows(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ListDevicesOutcome CCCClient::listDevices(const ListDevicesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +1095,42 @@ CCCClient::ListHistoricalAgentReportOutcomeCallable CCCClient::listHistoricalAge return task->get_future(); } +CCCClient::ListInstancesOfUserOutcome CCCClient::listInstancesOfUser(const ListInstancesOfUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstancesOfUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstancesOfUserOutcome(ListInstancesOfUserResult(outcome.result())); + else + return ListInstancesOfUserOutcome(outcome.error()); +} + +void CCCClient::listInstancesOfUserAsync(const ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstancesOfUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListInstancesOfUserOutcomeCallable CCCClient::listInstancesOfUserCallable(const ListInstancesOfUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstancesOfUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ListOutboundNumbersOfUserOutcome CCCClient::listOutboundNumbersOfUser(const ListOutboundNumbersOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1311,42 @@ CCCClient::ListSkillLevelsOfUserOutcomeCallable CCCClient::listSkillLevelsOfUser return task->get_future(); } +CCCClient::ListUserLevelsOfSkillGroupOutcome CCCClient::listUserLevelsOfSkillGroup(const ListUserLevelsOfSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserLevelsOfSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserLevelsOfSkillGroupOutcome(ListUserLevelsOfSkillGroupResult(outcome.result())); + else + return ListUserLevelsOfSkillGroupOutcome(outcome.error()); +} + +void CCCClient::listUserLevelsOfSkillGroupAsync(const ListUserLevelsOfSkillGroupRequest& request, const ListUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserLevelsOfSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListUserLevelsOfSkillGroupOutcomeCallable CCCClient::listUserLevelsOfSkillGroupCallable(const ListUserLevelsOfSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserLevelsOfSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::MakeCallOutcome CCCClient::makeCall(const MakeCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1383,150 @@ CCCClient::MakeCallOutcomeCallable CCCClient::makeCallCallable(const MakeCallReq return task->get_future(); } +CCCClient::ModifyPhoneNumberOutcome CCCClient::modifyPhoneNumber(const ModifyPhoneNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPhoneNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPhoneNumberOutcome(ModifyPhoneNumberResult(outcome.result())); + else + return ModifyPhoneNumberOutcome(outcome.error()); +} + +void CCCClient::modifyPhoneNumberAsync(const ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPhoneNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyPhoneNumberOutcomeCallable CCCClient::modifyPhoneNumberCallable(const ModifyPhoneNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPhoneNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifySkillGroupOutcome CCCClient::modifySkillGroup(const ModifySkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySkillGroupOutcome(ModifySkillGroupResult(outcome.result())); + else + return ModifySkillGroupOutcome(outcome.error()); +} + +void CCCClient::modifySkillGroupAsync(const ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifySkillGroupOutcomeCallable CCCClient::modifySkillGroupCallable(const ModifySkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyUserOutcome CCCClient::modifyUser(const ModifyUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyUserOutcome(ModifyUserResult(outcome.result())); + else + return ModifyUserOutcome(outcome.error()); +} + +void CCCClient::modifyUserAsync(const ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyUserOutcomeCallable CCCClient::modifyUserCallable(const ModifyUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyUserLevelsOfSkillGroupOutcome CCCClient::modifyUserLevelsOfSkillGroup(const ModifyUserLevelsOfSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyUserLevelsOfSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyUserLevelsOfSkillGroupOutcome(ModifyUserLevelsOfSkillGroupResult(outcome.result())); + else + return ModifyUserLevelsOfSkillGroupOutcome(outcome.error()); +} + +void CCCClient::modifyUserLevelsOfSkillGroupAsync(const ModifyUserLevelsOfSkillGroupRequest& request, const ModifyUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyUserLevelsOfSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyUserLevelsOfSkillGroupOutcomeCallable CCCClient::modifyUserLevelsOfSkillGroupCallable(const ModifyUserLevelsOfSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyUserLevelsOfSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::MonitorCallOutcome CCCClient::monitorCall(const MonitorCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1779,42 @@ CCCClient::ReleaseCallOutcomeCallable CCCClient::releaseCallCallable(const Relea return task->get_future(); } +CCCClient::RemovePhoneNumbersFromSkillGroupOutcome CCCClient::removePhoneNumbersFromSkillGroup(const RemovePhoneNumbersFromSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemovePhoneNumbersFromSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemovePhoneNumbersFromSkillGroupOutcome(RemovePhoneNumbersFromSkillGroupResult(outcome.result())); + else + return RemovePhoneNumbersFromSkillGroupOutcome(outcome.error()); +} + +void CCCClient::removePhoneNumbersFromSkillGroupAsync(const RemovePhoneNumbersFromSkillGroupRequest& request, const RemovePhoneNumbersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removePhoneNumbersFromSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RemovePhoneNumbersFromSkillGroupOutcomeCallable CCCClient::removePhoneNumbersFromSkillGroupCallable(const RemovePhoneNumbersFromSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removePhoneNumbersFromSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ResetAgentStateOutcome CCCClient::resetAgentState(const ResetAgentStateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,6 +1995,42 @@ CCCClient::SignOutGroupOutcomeCallable CCCClient::signOutGroupCallable(const Sig return task->get_future(); } +CCCClient::StartBack2BackCallOutcome CCCClient::startBack2BackCall(const StartBack2BackCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartBack2BackCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartBack2BackCallOutcome(StartBack2BackCallResult(outcome.result())); + else + return StartBack2BackCallOutcome(outcome.error()); +} + +void CCCClient::startBack2BackCallAsync(const StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startBack2BackCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::StartBack2BackCallOutcomeCallable CCCClient::startBack2BackCallCallable(const StartBack2BackCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startBack2BackCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::TakeBreakOutcome CCCClient::takeBreak(const TakeBreakRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ccc/src/model/AddNumbersToSkillGroupRequest.cc b/ccc/src/model/AddNumbersToSkillGroupRequest.cc new file mode 100644 index 000000000..590e2d772 --- /dev/null +++ b/ccc/src/model/AddNumbersToSkillGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::AddNumbersToSkillGroupRequest; + +AddNumbersToSkillGroupRequest::AddNumbersToSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddNumbersToSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +AddNumbersToSkillGroupRequest::~AddNumbersToSkillGroupRequest() +{} + +std::string AddNumbersToSkillGroupRequest::getNumberList()const +{ + return numberList_; +} + +void AddNumbersToSkillGroupRequest::setNumberList(const std::string& numberList) +{ + numberList_ = numberList; + setParameter("NumberList", numberList); +} + +std::string AddNumbersToSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddNumbersToSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AddNumbersToSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void AddNumbersToSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + diff --git a/ccc/src/model/AddNumbersToSkillGroupResult.cc b/ccc/src/model/AddNumbersToSkillGroupResult.cc new file mode 100644 index 000000000..6f977221b --- /dev/null +++ b/ccc/src/model/AddNumbersToSkillGroupResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult() : + ServiceResult() +{} + +AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddNumbersToSkillGroupResult::~AddNumbersToSkillGroupResult() +{} + +void AddNumbersToSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string AddNumbersToSkillGroupResult::getMessage()const +{ + return message_; +} + +int AddNumbersToSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddNumbersToSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/AddPhoneNumberToSkillGroupsRequest.cc b/ccc/src/model/AddPhoneNumberToSkillGroupsRequest.cc new file mode 100644 index 000000000..7b8f4fe58 --- /dev/null +++ b/ccc/src/model/AddPhoneNumberToSkillGroupsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::AddPhoneNumberToSkillGroupsRequest; + +AddPhoneNumberToSkillGroupsRequest::AddPhoneNumberToSkillGroupsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddPhoneNumberToSkillGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +AddPhoneNumberToSkillGroupsRequest::~AddPhoneNumberToSkillGroupsRequest() +{} + +std::string AddPhoneNumberToSkillGroupsRequest::getNumber()const +{ + return number_; +} + +void AddPhoneNumberToSkillGroupsRequest::setNumber(const std::string& number) +{ + number_ = number; + setParameter("Number", number); +} + +std::string AddPhoneNumberToSkillGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddPhoneNumberToSkillGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AddPhoneNumberToSkillGroupsRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void AddPhoneNumberToSkillGroupsRequest::setSkillGroupIdList(const std::string& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + setParameter("SkillGroupIdList", skillGroupIdList); +} + diff --git a/ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc b/ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc new file mode 100644 index 000000000..9083a789a --- /dev/null +++ b/ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult() : + ServiceResult() +{} + +AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddPhoneNumberToSkillGroupsResult::~AddPhoneNumberToSkillGroupsResult() +{} + +void AddPhoneNumberToSkillGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string AddPhoneNumberToSkillGroupsResult::getMessage()const +{ + return message_; +} + +int AddPhoneNumberToSkillGroupsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddPhoneNumberToSkillGroupsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/AddSkillGroupsToUserRequest.cc b/ccc/src/model/AddSkillGroupsToUserRequest.cc new file mode 100644 index 000000000..bc6a5e5d2 --- /dev/null +++ b/ccc/src/model/AddSkillGroupsToUserRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::AddSkillGroupsToUserRequest; + +AddSkillGroupsToUserRequest::AddSkillGroupsToUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddSkillGroupsToUser") +{ + setMethod(HttpRequest::Method::Post); +} + +AddSkillGroupsToUserRequest::~AddSkillGroupsToUserRequest() +{} + +std::string AddSkillGroupsToUserRequest::getUserId()const +{ + return userId_; +} + +void AddSkillGroupsToUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string AddSkillGroupsToUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddSkillGroupsToUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AddSkillGroupsToUserRequest::getSkillLevelList()const +{ + return skillLevelList_; +} + +void AddSkillGroupsToUserRequest::setSkillLevelList(const std::string& skillLevelList) +{ + skillLevelList_ = skillLevelList; + setParameter("SkillLevelList", skillLevelList); +} + diff --git a/ccc/src/model/AddSkillGroupsToUserResult.cc b/ccc/src/model/AddSkillGroupsToUserResult.cc new file mode 100644 index 000000000..453fa45c5 --- /dev/null +++ b/ccc/src/model/AddSkillGroupsToUserResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AddSkillGroupsToUserResult::AddSkillGroupsToUserResult() : + ServiceResult() +{} + +AddSkillGroupsToUserResult::AddSkillGroupsToUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSkillGroupsToUserResult::~AddSkillGroupsToUserResult() +{} + +void AddSkillGroupsToUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string AddSkillGroupsToUserResult::getMessage()const +{ + return message_; +} + +int AddSkillGroupsToUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector AddSkillGroupsToUserResult::getParams()const +{ + return params_; +} + +std::string AddSkillGroupsToUserResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CreateSkillGroupRequest.cc b/ccc/src/model/CreateSkillGroupRequest.cc new file mode 100644 index 000000000..621eb65a7 --- /dev/null +++ b/ccc/src/model/CreateSkillGroupRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::CreateSkillGroupRequest; + +CreateSkillGroupRequest::CreateSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "CreateSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateSkillGroupRequest::~CreateSkillGroupRequest() +{} + +std::string CreateSkillGroupRequest::getDescription()const +{ + return description_; +} + +void CreateSkillGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateSkillGroupRequest::getDisplayName()const +{ + return displayName_; +} + +void CreateSkillGroupRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setParameter("DisplayName", displayName); +} + +std::string CreateSkillGroupRequest::getName()const +{ + return name_; +} + +void CreateSkillGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ccc/src/model/CreateSkillGroupResult.cc b/ccc/src/model/CreateSkillGroupResult.cc new file mode 100644 index 000000000..6e54dc696 --- /dev/null +++ b/ccc/src/model/CreateSkillGroupResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateSkillGroupResult::CreateSkillGroupResult() : + ServiceResult() +{} + +CreateSkillGroupResult::CreateSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSkillGroupResult::~CreateSkillGroupResult() +{} + +void CreateSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["SkillGroupId"].isNull()) + data_.skillGroupId = dataNode["SkillGroupId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateSkillGroupResult::getMessage()const +{ + return message_; +} + +int CreateSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +CreateSkillGroupResult::Data CreateSkillGroupResult::getData()const +{ + return data_; +} + +std::string CreateSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CreateUserRequest.cc b/ccc/src/model/CreateUserRequest.cc new file mode 100644 index 000000000..4bce8637d --- /dev/null +++ b/ccc/src/model/CreateUserRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::CreateUserRequest; + +CreateUserRequest::CreateUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "CreateUser") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateUserRequest::~CreateUserRequest() +{} + +std::string CreateUserRequest::getLoginName()const +{ + return loginName_; +} + +void CreateUserRequest::setLoginName(const std::string& loginName) +{ + loginName_ = loginName; + setParameter("LoginName", loginName); +} + +std::string CreateUserRequest::getRoleId()const +{ + return roleId_; +} + +void CreateUserRequest::setRoleId(const std::string& roleId) +{ + roleId_ = roleId; + setParameter("RoleId", roleId); +} + +std::string CreateUserRequest::getMobile()const +{ + return mobile_; +} + +void CreateUserRequest::setMobile(const std::string& mobile) +{ + mobile_ = mobile; + setParameter("Mobile", mobile); +} + +std::string CreateUserRequest::getWorkMode()const +{ + return workMode_; +} + +void CreateUserRequest::setWorkMode(const std::string& workMode) +{ + workMode_ = workMode; + setParameter("WorkMode", workMode); +} + +std::string CreateUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateUserRequest::getDisplayName()const +{ + return displayName_; +} + +void CreateUserRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setParameter("DisplayName", displayName); +} + +bool CreateUserRequest::getResetPassword()const +{ + return resetPassword_; +} + +void CreateUserRequest::setResetPassword(bool resetPassword) +{ + resetPassword_ = resetPassword; + setParameter("ResetPassword", resetPassword ? "true" : "false"); +} + +std::string CreateUserRequest::getSkillLevelList()const +{ + return skillLevelList_; +} + +void CreateUserRequest::setSkillLevelList(const std::string& skillLevelList) +{ + skillLevelList_ = skillLevelList; + setParameter("SkillLevelList", skillLevelList); +} + +std::string CreateUserRequest::getEmail()const +{ + return email_; +} + +void CreateUserRequest::setEmail(const std::string& email) +{ + email_ = email; + setParameter("Email", email); +} + diff --git a/ccc/src/model/CreateUserResult.cc b/ccc/src/model/CreateUserResult.cc new file mode 100644 index 000000000..e82683f41 --- /dev/null +++ b/ccc/src/model/CreateUserResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateUserResult::CreateUserResult() : + ServiceResult() +{} + +CreateUserResult::CreateUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserResult::~CreateUserResult() +{} + +void CreateUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["DisplayName"].isNull()) + data_.displayName = dataNode["DisplayName"].asString(); + if(!dataNode["Email"].isNull()) + data_.email = dataNode["Email"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["LoginName"].isNull()) + data_.loginName = dataNode["LoginName"].asString(); + if(!dataNode["Mobile"].isNull()) + data_.mobile = dataNode["Mobile"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateUserResult::getMessage()const +{ + return message_; +} + +int CreateUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector CreateUserResult::getParams()const +{ + return params_; +} + +CreateUserResult::Data CreateUserResult::getData()const +{ + return data_; +} + +std::string CreateUserResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/DeleteSkillGroupRequest.cc b/ccc/src/model/DeleteSkillGroupRequest.cc new file mode 100644 index 000000000..3c7eb77f6 --- /dev/null +++ b/ccc/src/model/DeleteSkillGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::DeleteSkillGroupRequest; + +DeleteSkillGroupRequest::DeleteSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "DeleteSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteSkillGroupRequest::~DeleteSkillGroupRequest() +{} + +std::string DeleteSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +bool DeleteSkillGroupRequest::getForce()const +{ + return force_; +} + +void DeleteSkillGroupRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", force ? "true" : "false"); +} + diff --git a/ccc/src/model/DeleteSkillGroupResult.cc b/ccc/src/model/DeleteSkillGroupResult.cc new file mode 100644 index 000000000..dfa967369 --- /dev/null +++ b/ccc/src/model/DeleteSkillGroupResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +DeleteSkillGroupResult::DeleteSkillGroupResult() : + ServiceResult() +{} + +DeleteSkillGroupResult::DeleteSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSkillGroupResult::~DeleteSkillGroupResult() +{} + +void DeleteSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteSkillGroupResult::getMessage()const +{ + return message_; +} + +int DeleteSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListContactFlowsRequest.cc b/ccc/src/model/ListContactFlowsRequest.cc new file mode 100644 index 000000000..51012251c --- /dev/null +++ b/ccc/src/model/ListContactFlowsRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ListContactFlowsRequest; + +ListContactFlowsRequest::ListContactFlowsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListContactFlows") +{ + setMethod(HttpRequest::Method::Post); +} + +ListContactFlowsRequest::~ListContactFlowsRequest() +{} + +std::string ListContactFlowsRequest::getType()const +{ + return type_; +} + +void ListContactFlowsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +int ListContactFlowsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListContactFlowsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListContactFlowsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListContactFlowsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListContactFlowsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListContactFlowsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListContactFlowsResult.cc b/ccc/src/model/ListContactFlowsResult.cc new file mode 100644 index 000000000..68279ea37 --- /dev/null +++ b/ccc/src/model/ListContactFlowsResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListContactFlowsResult::ListContactFlowsResult() : + ServiceResult() +{} + +ListContactFlowsResult::ListContactFlowsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListContactFlowsResult::~ListContactFlowsResult() +{} + +void ListContactFlowsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["ContactFlow"]; + for (auto dataNodeListContactFlow : allListNode) + { + Data::ContactFlow contactFlowObject; + if(!dataNodeListContactFlow["ContactFlowId"].isNull()) + contactFlowObject.contactFlowId = dataNodeListContactFlow["ContactFlowId"].asString(); + if(!dataNodeListContactFlow["CreatedTime"].isNull()) + contactFlowObject.createdTime = dataNodeListContactFlow["CreatedTime"].asString(); + if(!dataNodeListContactFlow["Definition"].isNull()) + contactFlowObject.definition = dataNodeListContactFlow["Definition"].asString(); + if(!dataNodeListContactFlow["Description"].isNull()) + contactFlowObject.description = dataNodeListContactFlow["Description"].asString(); + if(!dataNodeListContactFlow["DraftId"].isNull()) + contactFlowObject.draftId = dataNodeListContactFlow["DraftId"].asString(); + if(!dataNodeListContactFlow["Editor"].isNull()) + contactFlowObject.editor = dataNodeListContactFlow["Editor"].asString(); + if(!dataNodeListContactFlow["InstanceId"].isNull()) + contactFlowObject.instanceId = dataNodeListContactFlow["InstanceId"].asString(); + if(!dataNodeListContactFlow["Name"].isNull()) + contactFlowObject.name = dataNodeListContactFlow["Name"].asString(); + if(!dataNodeListContactFlow["Published"].isNull()) + contactFlowObject.published = dataNodeListContactFlow["Published"].asString() == "true"; + if(!dataNodeListContactFlow["Type"].isNull()) + contactFlowObject.type = dataNodeListContactFlow["Type"].asString(); + if(!dataNodeListContactFlow["UpdatedTime"].isNull()) + contactFlowObject.updatedTime = dataNodeListContactFlow["UpdatedTime"].asString(); + auto allNumberList = value["NumberList"]["NumberList"]; + for (auto value : allNumberList) + contactFlowObject.numberList.push_back(value.asString()); + data_.list.push_back(contactFlowObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListContactFlowsResult::getMessage()const +{ + return message_; +} + +int ListContactFlowsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListContactFlowsResult::Data ListContactFlowsResult::getData()const +{ + return data_; +} + +std::string ListContactFlowsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListInstancesOfUserRequest.cc b/ccc/src/model/ListInstancesOfUserRequest.cc new file mode 100644 index 000000000..b14d7ee38 --- /dev/null +++ b/ccc/src/model/ListInstancesOfUserRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ListInstancesOfUserRequest; + +ListInstancesOfUserRequest::ListInstancesOfUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListInstancesOfUser") +{ + setMethod(HttpRequest::Method::Post); +} + +ListInstancesOfUserRequest::~ListInstancesOfUserRequest() +{} + +int ListInstancesOfUserRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListInstancesOfUserRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListInstancesOfUserRequest::getPageSize()const +{ + return pageSize_; +} + +void ListInstancesOfUserRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListInstancesOfUserResult.cc b/ccc/src/model/ListInstancesOfUserResult.cc new file mode 100644 index 000000000..64288a306 --- /dev/null +++ b/ccc/src/model/ListInstancesOfUserResult.cc @@ -0,0 +1,173 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListInstancesOfUserResult::ListInstancesOfUserResult() : + ServiceResult() +{} + +ListInstancesOfUserResult::ListInstancesOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstancesOfUserResult::~ListInstancesOfUserResult() +{} + +void ListInstancesOfUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["CallCenterInstance"]; + for (auto dataNodeListCallCenterInstance : allListNode) + { + Data::CallCenterInstance callCenterInstanceObject; + if(!dataNodeListCallCenterInstance["AliyunUid"].isNull()) + callCenterInstanceObject.aliyunUid = dataNodeListCallCenterInstance["AliyunUid"].asString(); + if(!dataNodeListCallCenterInstance["ConsoleUrl"].isNull()) + callCenterInstanceObject.consoleUrl = dataNodeListCallCenterInstance["ConsoleUrl"].asString(); + if(!dataNodeListCallCenterInstance["Description"].isNull()) + callCenterInstanceObject.description = dataNodeListCallCenterInstance["Description"].asString(); + if(!dataNodeListCallCenterInstance["DomainName"].isNull()) + callCenterInstanceObject.domainName = dataNodeListCallCenterInstance["DomainName"].asString(); + if(!dataNodeListCallCenterInstance["Id"].isNull()) + callCenterInstanceObject.id = dataNodeListCallCenterInstance["Id"].asString(); + if(!dataNodeListCallCenterInstance["Name"].isNull()) + callCenterInstanceObject.name = dataNodeListCallCenterInstance["Name"].asString(); + if(!dataNodeListCallCenterInstance["Status"].isNull()) + callCenterInstanceObject.status = dataNodeListCallCenterInstance["Status"].asString(); + auto allAdminListNode = dataNodeListCallCenterInstance["AdminList"]["User"]; + for (auto dataNodeListCallCenterInstanceAdminListUser : allAdminListNode) + { + Data::CallCenterInstance::User adminListObject; + if(!dataNodeListCallCenterInstanceAdminListUser["DisplayName"].isNull()) + adminListObject.displayName = dataNodeListCallCenterInstanceAdminListUser["DisplayName"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["Email"].isNull()) + adminListObject.email = dataNodeListCallCenterInstanceAdminListUser["Email"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["Extension"].isNull()) + adminListObject.extension = dataNodeListCallCenterInstanceAdminListUser["Extension"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["InstanceId"].isNull()) + adminListObject.instanceId = dataNodeListCallCenterInstanceAdminListUser["InstanceId"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["LoginName"].isNull()) + adminListObject.loginName = dataNodeListCallCenterInstanceAdminListUser["LoginName"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["Mobile"].isNull()) + adminListObject.mobile = dataNodeListCallCenterInstanceAdminListUser["Mobile"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["RoleId"].isNull()) + adminListObject.roleId = dataNodeListCallCenterInstanceAdminListUser["RoleId"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["RoleName"].isNull()) + adminListObject.roleName = dataNodeListCallCenterInstanceAdminListUser["RoleName"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["UserId"].isNull()) + adminListObject.userId = dataNodeListCallCenterInstanceAdminListUser["UserId"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["WorkMode"].isNull()) + adminListObject.workMode = dataNodeListCallCenterInstanceAdminListUser["WorkMode"].asString(); + callCenterInstanceObject.adminList.push_back(adminListObject); + } + auto allNumberListNode = dataNodeListCallCenterInstance["NumberList"]["PhoneNumber"]; + for (auto dataNodeListCallCenterInstanceNumberListPhoneNumber : allNumberListNode) + { + Data::CallCenterInstance::PhoneNumber numberListObject; + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Active"].isNull()) + numberListObject.active = dataNodeListCallCenterInstanceNumberListPhoneNumber["Active"].asString() == "true"; + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["City"].isNull()) + numberListObject.city = dataNodeListCallCenterInstanceNumberListPhoneNumber["City"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["ContactFlowId"].isNull()) + numberListObject.contactFlowId = dataNodeListCallCenterInstanceNumberListPhoneNumber["ContactFlowId"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["InstanceId"].isNull()) + numberListObject.instanceId = dataNodeListCallCenterInstanceNumberListPhoneNumber["InstanceId"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].isNull()) + numberListObject.number = dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Province"].isNull()) + numberListObject.province = dataNodeListCallCenterInstanceNumberListPhoneNumber["Province"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Usage"].isNull()) + numberListObject.usage = dataNodeListCallCenterInstanceNumberListPhoneNumber["Usage"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["UserId"].isNull()) + numberListObject.userId = dataNodeListCallCenterInstanceNumberListPhoneNumber["UserId"].asString(); + auto allSkillGroupsNode = dataNodeListCallCenterInstanceNumberListPhoneNumber["SkillGroups"]["SkillGroup"]; + for (auto dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode) + { + Data::CallCenterInstance::PhoneNumber::SkillGroup skillGroupsObject; + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Description"].isNull()) + skillGroupsObject.description = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Description"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].isNull()) + skillGroupsObject.displayName = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].isNull()) + skillGroupsObject.instanceId = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Name"].isNull()) + skillGroupsObject.name = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Name"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].isNull()) + skillGroupsObject.phoneNumberCount = std::stoi(dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].asString()); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull()) + skillGroupsObject.skillGroupId = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].isNull()) + skillGroupsObject.userCount = std::stoi(dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].asString()); + numberListObject.skillGroups.push_back(skillGroupsObject); + } + callCenterInstanceObject.numberList.push_back(numberListObject); + } + data_.list.push_back(callCenterInstanceObject); + } + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListInstancesOfUserResult::getMessage()const +{ + return message_; +} + +int ListInstancesOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListInstancesOfUserResult::getParams()const +{ + return params_; +} + +ListInstancesOfUserResult::Data ListInstancesOfUserResult::getData()const +{ + return data_; +} + +std::string ListInstancesOfUserResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListUserLevelsOfSkillGroupRequest.cc b/ccc/src/model/ListUserLevelsOfSkillGroupRequest.cc new file mode 100644 index 000000000..5d2562836 --- /dev/null +++ b/ccc/src/model/ListUserLevelsOfSkillGroupRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ListUserLevelsOfSkillGroupRequest; + +ListUserLevelsOfSkillGroupRequest::ListUserLevelsOfSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListUserLevelsOfSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ListUserLevelsOfSkillGroupRequest::~ListUserLevelsOfSkillGroupRequest() +{} + +bool ListUserLevelsOfSkillGroupRequest::getIsMember()const +{ + return isMember_; +} + +void ListUserLevelsOfSkillGroupRequest::setIsMember(bool isMember) +{ + isMember_ = isMember; + setParameter("IsMember", isMember ? "true" : "false"); +} + +int ListUserLevelsOfSkillGroupRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListUserLevelsOfSkillGroupRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListUserLevelsOfSkillGroupRequest::getSearchPattern()const +{ + return searchPattern_; +} + +void ListUserLevelsOfSkillGroupRequest::setSearchPattern(const std::string& searchPattern) +{ + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); +} + +std::string ListUserLevelsOfSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListUserLevelsOfSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListUserLevelsOfSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListUserLevelsOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +int ListUserLevelsOfSkillGroupRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUserLevelsOfSkillGroupRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc b/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc new file mode 100644 index 000000000..f052e37fe --- /dev/null +++ b/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListUserLevelsOfSkillGroupResult::ListUserLevelsOfSkillGroupResult() : + ServiceResult() +{} + +ListUserLevelsOfSkillGroupResult::ListUserLevelsOfSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserLevelsOfSkillGroupResult::~ListUserLevelsOfSkillGroupResult() +{} + +void ListUserLevelsOfSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["UserSkillLevel"]; + for (auto dataNodeListUserSkillLevel : allListNode) + { + Data::UserSkillLevel userSkillLevelObject; + if(!dataNodeListUserSkillLevel["DisplayName"].isNull()) + userSkillLevelObject.displayName = dataNodeListUserSkillLevel["DisplayName"].asString(); + if(!dataNodeListUserSkillLevel["LoginName"].isNull()) + userSkillLevelObject.loginName = dataNodeListUserSkillLevel["LoginName"].asString(); + if(!dataNodeListUserSkillLevel["RoleId"].isNull()) + userSkillLevelObject.roleId = dataNodeListUserSkillLevel["RoleId"].asString(); + if(!dataNodeListUserSkillLevel["RoleName"].isNull()) + userSkillLevelObject.roleName = dataNodeListUserSkillLevel["RoleName"].asString(); + if(!dataNodeListUserSkillLevel["SkillGroupId"].isNull()) + userSkillLevelObject.skillGroupId = dataNodeListUserSkillLevel["SkillGroupId"].asString(); + if(!dataNodeListUserSkillLevel["SkillGroupName"].isNull()) + userSkillLevelObject.skillGroupName = dataNodeListUserSkillLevel["SkillGroupName"].asString(); + if(!dataNodeListUserSkillLevel["SkillLevel"].isNull()) + userSkillLevelObject.skillLevel = std::stoi(dataNodeListUserSkillLevel["SkillLevel"].asString()); + if(!dataNodeListUserSkillLevel["UserId"].isNull()) + userSkillLevelObject.userId = dataNodeListUserSkillLevel["UserId"].asString(); + data_.list.push_back(userSkillLevelObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListUserLevelsOfSkillGroupResult::getMessage()const +{ + return message_; +} + +int ListUserLevelsOfSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListUserLevelsOfSkillGroupResult::Data ListUserLevelsOfSkillGroupResult::getData()const +{ + return data_; +} + +std::string ListUserLevelsOfSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ModifyPhoneNumberRequest.cc b/ccc/src/model/ModifyPhoneNumberRequest.cc new file mode 100644 index 000000000..2d0712dc4 --- /dev/null +++ b/ccc/src/model/ModifyPhoneNumberRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifyPhoneNumberRequest; + +ModifyPhoneNumberRequest::ModifyPhoneNumberRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ModifyPhoneNumber") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyPhoneNumberRequest::~ModifyPhoneNumberRequest() +{} + +std::string ModifyPhoneNumberRequest::getContactFlowId()const +{ + return contactFlowId_; +} + +void ModifyPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId) +{ + contactFlowId_ = contactFlowId; + setParameter("ContactFlowId", contactFlowId); +} + +std::string ModifyPhoneNumberRequest::getUsage()const +{ + return usage_; +} + +void ModifyPhoneNumberRequest::setUsage(const std::string& usage) +{ + usage_ = usage; + setParameter("Usage", usage); +} + +std::string ModifyPhoneNumberRequest::getNumber()const +{ + return number_; +} + +void ModifyPhoneNumberRequest::setNumber(const std::string& number) +{ + number_ = number; + setParameter("Number", number); +} + +std::string ModifyPhoneNumberRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyPhoneNumberRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/ModifyPhoneNumberResult.cc b/ccc/src/model/ModifyPhoneNumberResult.cc new file mode 100644 index 000000000..abeba16b4 --- /dev/null +++ b/ccc/src/model/ModifyPhoneNumberResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyPhoneNumberResult::ModifyPhoneNumberResult() : + ServiceResult() +{} + +ModifyPhoneNumberResult::ModifyPhoneNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPhoneNumberResult::~ModifyPhoneNumberResult() +{} + +void ModifyPhoneNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyPhoneNumberResult::getMessage()const +{ + return message_; +} + +int ModifyPhoneNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyPhoneNumberResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ModifySkillGroupRequest.cc b/ccc/src/model/ModifySkillGroupRequest.cc new file mode 100644 index 000000000..74e0d5be2 --- /dev/null +++ b/ccc/src/model/ModifySkillGroupRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifySkillGroupRequest; + +ModifySkillGroupRequest::ModifySkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ModifySkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifySkillGroupRequest::~ModifySkillGroupRequest() +{} + +std::string ModifySkillGroupRequest::getDescription()const +{ + return description_; +} + +void ModifySkillGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifySkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifySkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifySkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifySkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string ModifySkillGroupRequest::getDisplayName()const +{ + return displayName_; +} + +void ModifySkillGroupRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setParameter("DisplayName", displayName); +} + diff --git a/ccc/src/model/ModifySkillGroupResult.cc b/ccc/src/model/ModifySkillGroupResult.cc new file mode 100644 index 000000000..d395efcc7 --- /dev/null +++ b/ccc/src/model/ModifySkillGroupResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifySkillGroupResult::ModifySkillGroupResult() : + ServiceResult() +{} + +ModifySkillGroupResult::ModifySkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySkillGroupResult::~ModifySkillGroupResult() +{} + +void ModifySkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifySkillGroupResult::getMessage()const +{ + return message_; +} + +int ModifySkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifySkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.cc b/ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.cc new file mode 100644 index 000000000..6ce1f3211 --- /dev/null +++ b/ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifyUserLevelsOfSkillGroupRequest; + +ModifyUserLevelsOfSkillGroupRequest::ModifyUserLevelsOfSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ModifyUserLevelsOfSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyUserLevelsOfSkillGroupRequest::~ModifyUserLevelsOfSkillGroupRequest() +{} + +std::string ModifyUserLevelsOfSkillGroupRequest::getUserLevelList()const +{ + return userLevelList_; +} + +void ModifyUserLevelsOfSkillGroupRequest::setUserLevelList(const std::string& userLevelList) +{ + userLevelList_ = userLevelList; + setParameter("UserLevelList", userLevelList); +} + +std::string ModifyUserLevelsOfSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyUserLevelsOfSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyUserLevelsOfSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifyUserLevelsOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + diff --git a/ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc b/ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc new file mode 100644 index 000000000..2d310e22a --- /dev/null +++ b/ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult() : + ServiceResult() +{} + +ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyUserLevelsOfSkillGroupResult::~ModifyUserLevelsOfSkillGroupResult() +{} + +void ModifyUserLevelsOfSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyUserLevelsOfSkillGroupResult::getMessage()const +{ + return message_; +} + +int ModifyUserLevelsOfSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyUserLevelsOfSkillGroupResult::getData()const +{ + return data_; +} + +std::string ModifyUserLevelsOfSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ModifyUserRequest.cc b/ccc/src/model/ModifyUserRequest.cc new file mode 100644 index 000000000..929ad1dc6 --- /dev/null +++ b/ccc/src/model/ModifyUserRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifyUserRequest; + +ModifyUserRequest::ModifyUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ModifyUser") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyUserRequest::~ModifyUserRequest() +{} + +std::string ModifyUserRequest::getRoleId()const +{ + return roleId_; +} + +void ModifyUserRequest::setRoleId(const std::string& roleId) +{ + roleId_ = roleId; + setParameter("RoleId", roleId); +} + +std::string ModifyUserRequest::getMobile()const +{ + return mobile_; +} + +void ModifyUserRequest::setMobile(const std::string& mobile) +{ + mobile_ = mobile; + setParameter("Mobile", mobile); +} + +std::string ModifyUserRequest::getWorkMode()const +{ + return workMode_; +} + +void ModifyUserRequest::setWorkMode(const std::string& workMode) +{ + workMode_ = workMode; + setParameter("WorkMode", workMode); +} + +std::string ModifyUserRequest::getUserId()const +{ + return userId_; +} + +void ModifyUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ModifyUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/ModifyUserResult.cc b/ccc/src/model/ModifyUserResult.cc new file mode 100644 index 000000000..a40a2bd12 --- /dev/null +++ b/ccc/src/model/ModifyUserResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyUserResult::ModifyUserResult() : + ServiceResult() +{} + +ModifyUserResult::ModifyUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyUserResult::~ModifyUserResult() +{} + +void ModifyUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyUserResult::getMessage()const +{ + return message_; +} + +int ModifyUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ModifyUserResult::getParams()const +{ + return params_; +} + +std::string ModifyUserResult::getData()const +{ + return data_; +} + +std::string ModifyUserResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc b/ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc new file mode 100644 index 000000000..36a700cb9 --- /dev/null +++ b/ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::RemovePhoneNumbersFromSkillGroupRequest; + +RemovePhoneNumbersFromSkillGroupRequest::RemovePhoneNumbersFromSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "RemovePhoneNumbersFromSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +RemovePhoneNumbersFromSkillGroupRequest::~RemovePhoneNumbersFromSkillGroupRequest() +{} + +std::string RemovePhoneNumbersFromSkillGroupRequest::getNumberList()const +{ + return numberList_; +} + +void RemovePhoneNumbersFromSkillGroupRequest::setNumberList(const std::string& numberList) +{ + numberList_ = numberList; + setParameter("NumberList", numberList); +} + +std::string RemovePhoneNumbersFromSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemovePhoneNumbersFromSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RemovePhoneNumbersFromSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void RemovePhoneNumbersFromSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + diff --git a/ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc b/ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc new file mode 100644 index 000000000..8957c2a81 --- /dev/null +++ b/ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult() : + ServiceResult() +{} + +RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemovePhoneNumbersFromSkillGroupResult::~RemovePhoneNumbersFromSkillGroupResult() +{} + +void RemovePhoneNumbersFromSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string RemovePhoneNumbersFromSkillGroupResult::getMessage()const +{ + return message_; +} + +int RemovePhoneNumbersFromSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemovePhoneNumbersFromSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/StartBack2BackCallRequest.cc b/ccc/src/model/StartBack2BackCallRequest.cc new file mode 100644 index 000000000..5c55f0ce0 --- /dev/null +++ b/ccc/src/model/StartBack2BackCallRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::StartBack2BackCallRequest; + +StartBack2BackCallRequest::StartBack2BackCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "StartBack2BackCall") +{ + setMethod(HttpRequest::Method::Post); +} + +StartBack2BackCallRequest::~StartBack2BackCallRequest() +{} + +std::string StartBack2BackCallRequest::getCallee()const +{ + return callee_; +} + +void StartBack2BackCallRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setParameter("Callee", callee); +} + +std::string StartBack2BackCallRequest::getBroker()const +{ + return broker_; +} + +void StartBack2BackCallRequest::setBroker(const std::string& broker) +{ + broker_ = broker; + setParameter("Broker", broker); +} + +std::string StartBack2BackCallRequest::getUserId()const +{ + return userId_; +} + +void StartBack2BackCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string StartBack2BackCallRequest::getAdditionalBroker()const +{ + return additionalBroker_; +} + +void StartBack2BackCallRequest::setAdditionalBroker(const std::string& additionalBroker) +{ + additionalBroker_ = additionalBroker; + setParameter("AdditionalBroker", additionalBroker); +} + +std::string StartBack2BackCallRequest::getTags()const +{ + return tags_; +} + +void StartBack2BackCallRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +int StartBack2BackCallRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void StartBack2BackCallRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); +} + +std::string StartBack2BackCallRequest::getCaller()const +{ + return caller_; +} + +void StartBack2BackCallRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setParameter("Caller", caller); +} + +std::string StartBack2BackCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartBack2BackCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/StartBack2BackCallResult.cc b/ccc/src/model/StartBack2BackCallResult.cc new file mode 100644 index 000000000..666188468 --- /dev/null +++ b/ccc/src/model/StartBack2BackCallResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +StartBack2BackCallResult::StartBack2BackCallResult() : + ServiceResult() +{} + +StartBack2BackCallResult::StartBack2BackCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartBack2BackCallResult::~StartBack2BackCallResult() +{} + +void StartBack2BackCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["DeviceState"].isNull()) + data_.userContext.deviceState = userContextNode["DeviceState"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["Uri"].isNull()) + data_.userContext.uri = userContextNode["Uri"].asString(); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string StartBack2BackCallResult::getMessage()const +{ + return message_; +} + +int StartBack2BackCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector StartBack2BackCallResult::getParams()const +{ + return params_; +} + +StartBack2BackCallResult::Data StartBack2BackCallResult::getData()const +{ + return data_; +} + +std::string StartBack2BackCallResult::getCode()const +{ + return code_; +} +