From 51b845ce560648eb90ffef251edadb954d7d8ce0 Mon Sep 17 00:00:00 2001 From: "yixiong.jxy" Date: Wed, 1 Aug 2018 14:06:35 +0800 Subject: [PATCH] =?UTF-8?q?CCC=20SDK=20Auto=20Released=20By=20yonghong.lyh?= =?UTF-8?q?,Version=EF=BC=9A1.20.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yixiong.jxy --- CHANGELOG | 3 + VERSION | 2 +- ccc/CMakeLists.txt | 320 +- ccc/include/alibabacloud/ccc/CCCClient.h | 736 ++++- .../ccc/model/AddPhoneNumberResult.h | 62 +- .../ccc/model/AssignJobsRequest.h | 63 + .../alibabacloud/ccc/model/AssignJobsResult.h | 59 + .../ccc/model/AssignUsersRequest.h | 63 + .../ccc/model/AssignUsersResult.h | 57 + .../ccc/model/CancelJobsRequest.h | 63 + .../alibabacloud/ccc/model/CancelJobsResult.h | 57 + .../ccc/model/CancelPredictiveJobsRequest.h | 57 + .../ccc/model/CancelPredictiveJobsResult.h | 57 + .../ccc/model/CreateBatchJobsRequest.h | 69 + .../ccc/model/CreateBatchJobsResult.h | 93 + .../ccc/model/CreateJobGroupRequest.h | 63 + .../ccc/model/CreateJobGroupResult.h | 93 + .../ccc/model/CreatePredictiveJobsRequest.h | 57 + .../ccc/model/CreatePredictiveJobsResult.h | 59 + .../model/CreateScenarioFromTemplateRequest.h | 60 + .../model/CreateScenarioFromTemplateResult.h | 113 + .../ccc/model/CreateScenarioRequest.h | 63 + .../ccc/model/CreateScenarioResult.h | 113 + .../ccc/model/CreateSkillGroupRequest.h | 66 + .../ccc/model/CreateSkillGroupResult.h | 59 + .../ccc/model/CreateSurveyRequest.h | 75 + .../ccc/model/CreateSurveyResult.h | 84 + .../ccc/model/CreateUserRequest.h | 72 + .../alibabacloud/ccc/model/CreateUserResult.h | 59 + .../ccc/model/DeleteJobGroupRequest.h | 51 + .../ccc/model/DeleteJobGroupResult.h | 57 + .../ccc/model/DeleteSkillGroupResult.h | 16 +- .../ccc/model/DeleteSurveyRequest.h | 54 + .../ccc/model/DeleteSurveyResult.h | 57 + .../alibabacloud/ccc/model/DialogueRequest.h | 72 + .../alibabacloud/ccc/model/DialogueResult.h | 65 + .../DownloadOriginalStatisticsReportRequest.h | 51 + .../DownloadOriginalStatisticsReportResult.h | 63 + .../ccc/model/DownloadRecordingResult.h | 30 +- .../DownloadUnreachableContactsRequest.h | 51 + .../model/DownloadUnreachableContactsResult.h | 63 + .../alibabacloud/ccc/model/EncryptRequest.h | 54 + .../alibabacloud/ccc/model/EncryptResult.h | 66 + .../GenerateAgentStatisticReportRequest.h | 66 + .../GenerateAgentStatisticReportResult.h | 144 + .../ccc/model/GetAgentDataRequest.h | 66 + .../ccc/model/GetAgentDataResult.h | 144 + .../alibabacloud/ccc/model/GetConfigResult.h | 30 +- .../GetConversationDetailByContactIdRequest.h | 60 + .../GetConversationDetailByContactIdResult.h | 74 + .../ccc/model/GetConversationListRequest.h | 51 + .../ccc/model/GetConversationListResult.h | 72 + .../ccc/model/GetJobDataUploadParamsRequest.h | 51 + .../ccc/model/GetJobDataUploadParamsResult.h | 68 + .../ccc/model/GetJobGroupRequest.h | 51 + .../ccc/model/GetJobGroupResult.h | 109 + .../ccc/model/GetJobListRequest.h | 63 + .../alibabacloud/ccc/model/GetJobListResult.h | 109 + .../alibabacloud/ccc/model/GetJobRequest.h | 51 + .../alibabacloud/ccc/model/GetJobResult.h | 137 + .../ccc/model/GetJobStatusByCallIdRequest.h | 51 + .../ccc/model/GetJobStatusByCallIdResult.h | 142 + .../GetJobTemplateDownloadParamsRequest.h | 51 + .../GetJobTemplateDownloadParamsResult.h | 63 + .../ccc/model/GetNumberRegionInfoRequest.h | 54 + .../ccc/model/GetNumberRegionInfoResult.h | 63 + .../ccc/model/GetScenarioRequest.h | 51 + .../ccc/model/GetScenarioResult.h | 113 + .../ccc/model/GetServiceExtensionsResult.h | 30 +- .../alibabacloud/ccc/model/GetSurveyRequest.h | 54 + .../alibabacloud/ccc/model/GetSurveyResult.h | 84 + .../ccc/model/GetTaskListRequest.h | 51 + .../ccc/model/GetTaskListResult.h | 100 + .../alibabacloud/ccc/model/GetUserResult.h | 94 +- .../ccc/model/LaunchAppraiseRequest.h | 54 + .../ccc/model/LaunchAppraiseResult.h | 57 + ...ListBasicStatisticsReportSubItemsRequest.h | 60 + .../ListBasicStatisticsReportSubItemsResult.h | 79 + .../ccc/model/ListCallDetailRecordsRequest.h | 9 +- .../ccc/model/ListCallDetailRecordsResult.h | 126 +- .../ccc/model/ListConfigRequest.h | 54 + .../alibabacloud/ccc/model/ListConfigResult.h | 64 + .../ccc/model/ListContactFlowsResult.h | 86 +- .../ccc/model/ListJobGroupsRequest.h | 60 + .../ccc/model/ListJobGroupsResult.h | 116 + .../ccc/model/ListJobStatusRequest.h | 75 + .../ccc/model/ListJobStatusResult.h | 136 + .../ccc/model/ListJobsByGroupRequest.h | 63 + .../ccc/model/ListJobsByGroupResult.h | 109 + .../ccc/model/ListPhoneNumbersResult.h | 64 +- .../model/ListPredictiveJobStatusRequest.h | 72 + .../ccc/model/ListPredictiveJobStatusResult.h | 136 + .../ccc/model/ListPrivilegesOfUserRequest.h | 54 + .../ccc/model/ListPrivilegesOfUserResult.h | 65 + .../ccc/model/ListRealTimeAgentRequest.h | 51 + .../ccc/model/ListRealTimeAgentResult.h | 82 + .../model/ListRecordingsByContactIdResult.h | 52 +- .../ccc/model/ListRecordingsRequest.h | 6 +- .../ccc/model/ListRecordingsResult.h | 66 +- .../alibabacloud/ccc/model/ListRolesResult.h | 34 +- .../ccc/model/ListScenarioTemplatesRequest.h | 45 + .../ccc/model/ListScenarioTemplatesResult.h | 97 + .../ccc/model/ListScenariosRequest.h | 48 + .../ccc/model/ListScenariosResult.h | 113 + .../ccc/model/ListSkillGroupsOfUserResult.h | 74 +- .../ccc/model/ListSkillGroupsResult.h | 66 +- .../ccc/model/ListSurveysRequest.h | 51 + .../ccc/model/ListSurveysResult.h | 84 + .../model/ListUnreachableContactsRequest.h | 57 + .../ccc/model/ListUnreachableContactsResult.h | 80 + .../ccc/model/ListUsersOfSkillGroupResult.h | 124 +- .../alibabacloud/ccc/model/ListUsersResult.h | 110 +- .../ccc/model/ModifyPhoneNumberResult.h | 62 +- .../ccc/model/ModifyScenarioRequest.h | 60 + .../ccc/model/ModifyScenarioResult.h | 113 + .../ccc/model/ModifySkillGroupRequest.h | 69 + .../ccc/model/ModifySkillGroupResult.h | 57 + .../ccc/model/ModifySurveyRequest.h | 81 + .../ccc/model/ModifySurveyResult.h | 84 + .../ccc/model/ModifyUserRequest.h | 72 + .../alibabacloud/ccc/model/ModifyUserResult.h | 57 + .../ccc/model/PickLocalNumberRequest.h | 57 + .../ccc/model/PickLocalNumberResult.h | 74 + .../ccc/model/PublishSurveyRequest.h | 54 + .../ccc/model/PublishSurveyResult.h | 57 + .../ccc/model/RefreshTokenResult.h | 30 +- .../ccc/model/RemovePhoneNumberResult.h | 16 +- .../ccc/model/RemoveUsersRequest.h | 54 + .../ccc/model/RemoveUsersResult.h | 57 + .../ccc/model/RequestLoginInfoResult.h | 46 +- .../ccc/model/ResumeJobsRequest.h | 63 + .../alibabacloud/ccc/model/ResumeJobsResult.h | 57 + .../ccc/model/StartBack2BackCallRequest.h | 63 + .../ccc/model/StartBack2BackCallResult.h | 65 + .../alibabacloud/ccc/model/StartJobRequest.h | 63 + .../alibabacloud/ccc/model/StartJobResult.h | 64 + .../ccc/model/SubmitBatchJobsRequest.h | 51 + .../ccc/model/SubmitBatchJobsResult.h | 57 + .../ccc/model/SuspendJobsRequest.h | 63 + .../ccc/model/SuspendJobsResult.h | 57 + .../ccc/model/TwoPartiesCallRequest.h | 60 + .../ccc/model/TwoPartiesCallResult.h | 65 + ccc/src/CCCClient.cc | 2794 ++++++++++++++--- ccc/src/model/AddPhoneNumberResult.cc | 136 +- ccc/src/model/AssignJobsRequest.cc | 95 + ccc/src/model/AssignJobsResult.cc | 80 + ccc/src/model/AssignUsersRequest.cc | 97 + ccc/src/model/AssignUsersResult.cc | 73 + ccc/src/model/CancelJobsRequest.cc | 95 + ccc/src/model/CancelJobsResult.cc | 73 + ccc/src/model/CancelPredictiveJobsRequest.cc | 72 + ccc/src/model/CancelPredictiveJobsResult.cc | 73 + ccc/src/model/CreateBatchJobsRequest.cc | 116 + ccc/src/model/CreateBatchJobsResult.cc | 134 + ccc/src/model/CreateJobGroupRequest.cc | 94 + ccc/src/model/CreateJobGroupResult.cc | 134 + ccc/src/model/CreatePredictiveJobsRequest.cc | 72 + ccc/src/model/CreatePredictiveJobsResult.cc | 80 + .../CreateScenarioFromTemplateRequest.cc | 82 + .../model/CreateScenarioFromTemplateResult.cc | 167 + ccc/src/model/CreateScenarioRequest.cc | 94 + ccc/src/model/CreateScenarioResult.cc | 167 + ccc/src/model/CreateSkillGroupRequest.cc | 107 + ccc/src/model/CreateSkillGroupResult.cc | 80 + ccc/src/model/CreateSurveyRequest.cc | 137 + ccc/src/model/CreateSurveyResult.cc | 109 + ccc/src/model/CreateUserRequest.cc | 129 + ccc/src/model/CreateUserResult.cc | 80 + ccc/src/model/DeleteJobGroupRequest.cc | 49 + ccc/src/model/DeleteJobGroupResult.cc | 73 + ccc/src/model/DeleteSkillGroupResult.cc | 56 +- ccc/src/model/DeleteSurveyRequest.cc | 60 + ccc/src/model/DeleteSurveyResult.cc | 73 + ccc/src/model/DialogueRequest.cc | 126 + ccc/src/model/DialogueResult.cc | 85 + ...DownloadOriginalStatisticsReportRequest.cc | 49 + .../DownloadOriginalStatisticsReportResult.cc | 81 + ccc/src/model/DownloadRecordingResult.cc | 81 +- .../DownloadUnreachableContactsRequest.cc | 49 + .../DownloadUnreachableContactsResult.cc | 81 + ccc/src/model/EncryptRequest.cc | 61 + ccc/src/model/EncryptResult.cc | 95 + .../GenerateAgentStatisticReportRequest.cc | 104 + .../GenerateAgentStatisticReportResult.cc | 220 ++ ccc/src/model/GetAgentDataRequest.cc | 104 + ccc/src/model/GetAgentDataResult.cc | 220 ++ ccc/src/model/GetConfigResult.cc | 81 +- ...GetConversationDetailByContactIdRequest.cc | 82 + .../GetConversationDetailByContactIdResult.cc | 101 + ccc/src/model/GetConversationListRequest.cc | 49 + ccc/src/model/GetConversationListResult.cc | 102 + .../model/GetJobDataUploadParamsRequest.cc | 49 + ccc/src/model/GetJobDataUploadParamsResult.cc | 91 + ccc/src/model/GetJobGroupRequest.cc | 49 + ccc/src/model/GetJobGroupResult.cc | 157 + ccc/src/model/GetJobListRequest.cc | 93 + ccc/src/model/GetJobListResult.cc | 166 + ccc/src/model/GetJobRequest.cc | 49 + ccc/src/model/GetJobResult.cc | 211 ++ ccc/src/model/GetJobStatusByCallIdRequest.cc | 49 + ccc/src/model/GetJobStatusByCallIdResult.cc | 221 ++ .../GetJobTemplateDownloadParamsRequest.cc | 49 + .../GetJobTemplateDownloadParamsResult.cc | 81 + ccc/src/model/GetNumberRegionInfoRequest.cc | 60 + ccc/src/model/GetNumberRegionInfoResult.cc | 78 + ccc/src/model/GetScenarioRequest.cc | 49 + ccc/src/model/GetScenarioResult.cc | 167 + ccc/src/model/GetServiceExtensionsResult.cc | 86 +- ccc/src/model/GetSurveyRequest.cc | 60 + ccc/src/model/GetSurveyResult.cc | 109 + ccc/src/model/GetTaskListRequest.cc | 49 + ccc/src/model/GetTaskListResult.cc | 149 + ccc/src/model/GetUserResult.cc | 183 +- ccc/src/model/LaunchAppraiseRequest.cc | 60 + ccc/src/model/LaunchAppraiseResult.cc | 73 + ...istBasicStatisticsReportSubItemsRequest.cc | 82 + ...ListBasicStatisticsReportSubItemsResult.cc | 109 + ccc/src/model/ListCallDetailRecordsRequest.cc | 21 +- ccc/src/model/ListCallDetailRecordsResult.cc | 261 +- ccc/src/model/ListConfigRequest.cc | 61 + ccc/src/model/ListConfigResult.cc | 88 + ccc/src/model/ListContactFlowsResult.cc | 190 +- ccc/src/model/ListJobGroupsRequest.cc | 82 + ccc/src/model/ListJobGroupsResult.cc | 169 + ccc/src/model/ListJobStatusRequest.cc | 137 + ccc/src/model/ListJobStatusResult.cc | 211 ++ ccc/src/model/ListJobsByGroupRequest.cc | 93 + ccc/src/model/ListJobsByGroupResult.cc | 166 + ccc/src/model/ListPhoneNumbersResult.cc | 145 +- .../model/ListPredictiveJobStatusRequest.cc | 126 + .../model/ListPredictiveJobStatusResult.cc | 211 ++ ccc/src/model/ListPrivilegesOfUserRequest.cc | 60 + ccc/src/model/ListPrivilegesOfUserResult.cc | 90 + ccc/src/model/ListRealTimeAgentRequest.cc | 49 + ccc/src/model/ListRealTimeAgentResult.cc | 115 + .../model/ListRecordingsByContactIdResult.cc | 130 +- ccc/src/model/ListRecordingsRequest.cc | 22 +- ccc/src/model/ListRecordingsResult.cc | 149 +- ccc/src/model/ListRolesResult.cc | 94 +- ccc/src/model/ListScenarioTemplatesRequest.cc | 27 + ccc/src/model/ListScenarioTemplatesResult.cc | 141 + ccc/src/model/ListScenariosRequest.cc | 38 + ccc/src/model/ListScenariosResult.cc | 172 + ccc/src/model/ListSkillGroupsOfUserResult.cc | 161 +- ccc/src/model/ListSkillGroupsResult.cc | 154 +- ccc/src/model/ListSurveysRequest.cc | 49 + ccc/src/model/ListSurveysResult.cc | 114 + .../model/ListUnreachableContactsRequest.cc | 71 + .../model/ListUnreachableContactsResult.cc | 111 + ccc/src/model/ListUsersOfSkillGroupResult.cc | 235 +- ccc/src/model/ListUsersResult.cc | 211 +- ccc/src/model/ModifyPhoneNumberResult.cc | 136 +- ccc/src/model/ModifyScenarioRequest.cc | 82 + ccc/src/model/ModifyScenarioResult.cc | 167 + ccc/src/model/ModifySkillGroupRequest.cc | 118 + ccc/src/model/ModifySkillGroupResult.cc | 73 + ccc/src/model/ModifySurveyRequest.cc | 159 + ccc/src/model/ModifySurveyResult.cc | 109 + ccc/src/model/ModifyUserRequest.cc | 129 + ccc/src/model/ModifyUserResult.cc | 73 + ccc/src/model/PickLocalNumberRequest.cc | 72 + ccc/src/model/PickLocalNumberResult.cc | 86 + ccc/src/model/PublishSurveyRequest.cc | 60 + ccc/src/model/PublishSurveyResult.cc | 73 + ccc/src/model/RefreshTokenResult.cc | 81 +- ccc/src/model/RemovePhoneNumberResult.cc | 56 +- ccc/src/model/RemoveUsersRequest.cc | 61 + ccc/src/model/RemoveUsersResult.cc | 73 + ccc/src/model/RequestLoginInfoResult.cc | 113 +- ccc/src/model/ResumeJobsRequest.cc | 95 + ccc/src/model/ResumeJobsResult.cc | 73 + ccc/src/model/StartBack2BackCallRequest.cc | 93 + ccc/src/model/StartBack2BackCallResult.cc | 101 + ccc/src/model/StartJobRequest.cc | 94 + ccc/src/model/StartJobResult.cc | 88 + ccc/src/model/SubmitBatchJobsRequest.cc | 49 + ccc/src/model/SubmitBatchJobsResult.cc | 73 + ccc/src/model/SuspendJobsRequest.cc | 95 + ccc/src/model/SuspendJobsResult.cc | 73 + ccc/src/model/TwoPartiesCallRequest.cc | 82 + ccc/src/model/TwoPartiesCallResult.cc | 101 + 281 files changed, 24843 insertions(+), 2581 deletions(-) create mode 100644 ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AssignJobsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AssignUsersResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CancelJobsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CancelPredictiveJobsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CancelPredictiveJobsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreatePredictiveJobsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateScenarioResult.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/CreateSurveyRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateSurveyResult.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/DeleteJobGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DialogueRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DialogueResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/EncryptRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/EncryptResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetConversationListRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetConversationListResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobListRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobListResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetScenarioRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetScenarioResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetSurveyResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetTaskListResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListConfigRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListConfigResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListJobStatusResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListScenariosResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSurveysRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSurveysResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.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/ModifySurveyRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifySurveyResult.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/PickLocalNumberRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PublishSurveyResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ResumeJobsResult.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/include/alibabacloud/ccc/model/StartJobRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/StartJobResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/SuspendJobsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/TwoPartiesCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/TwoPartiesCallResult.h create mode 100644 ccc/src/model/AssignJobsRequest.cc create mode 100644 ccc/src/model/AssignJobsResult.cc create mode 100644 ccc/src/model/AssignUsersRequest.cc create mode 100644 ccc/src/model/AssignUsersResult.cc create mode 100644 ccc/src/model/CancelJobsRequest.cc create mode 100644 ccc/src/model/CancelJobsResult.cc create mode 100644 ccc/src/model/CancelPredictiveJobsRequest.cc create mode 100644 ccc/src/model/CancelPredictiveJobsResult.cc create mode 100644 ccc/src/model/CreateBatchJobsRequest.cc create mode 100644 ccc/src/model/CreateBatchJobsResult.cc create mode 100644 ccc/src/model/CreateJobGroupRequest.cc create mode 100644 ccc/src/model/CreateJobGroupResult.cc create mode 100644 ccc/src/model/CreatePredictiveJobsRequest.cc create mode 100644 ccc/src/model/CreatePredictiveJobsResult.cc create mode 100644 ccc/src/model/CreateScenarioFromTemplateRequest.cc create mode 100644 ccc/src/model/CreateScenarioFromTemplateResult.cc create mode 100644 ccc/src/model/CreateScenarioRequest.cc create mode 100644 ccc/src/model/CreateScenarioResult.cc create mode 100644 ccc/src/model/CreateSkillGroupRequest.cc create mode 100644 ccc/src/model/CreateSkillGroupResult.cc create mode 100644 ccc/src/model/CreateSurveyRequest.cc create mode 100644 ccc/src/model/CreateSurveyResult.cc create mode 100644 ccc/src/model/CreateUserRequest.cc create mode 100644 ccc/src/model/CreateUserResult.cc create mode 100644 ccc/src/model/DeleteJobGroupRequest.cc create mode 100644 ccc/src/model/DeleteJobGroupResult.cc create mode 100644 ccc/src/model/DeleteSurveyRequest.cc create mode 100644 ccc/src/model/DeleteSurveyResult.cc create mode 100644 ccc/src/model/DialogueRequest.cc create mode 100644 ccc/src/model/DialogueResult.cc create mode 100644 ccc/src/model/DownloadOriginalStatisticsReportRequest.cc create mode 100644 ccc/src/model/DownloadOriginalStatisticsReportResult.cc create mode 100644 ccc/src/model/DownloadUnreachableContactsRequest.cc create mode 100644 ccc/src/model/DownloadUnreachableContactsResult.cc create mode 100644 ccc/src/model/EncryptRequest.cc create mode 100644 ccc/src/model/EncryptResult.cc create mode 100644 ccc/src/model/GenerateAgentStatisticReportRequest.cc create mode 100644 ccc/src/model/GenerateAgentStatisticReportResult.cc create mode 100644 ccc/src/model/GetAgentDataRequest.cc create mode 100644 ccc/src/model/GetAgentDataResult.cc create mode 100644 ccc/src/model/GetConversationDetailByContactIdRequest.cc create mode 100644 ccc/src/model/GetConversationDetailByContactIdResult.cc create mode 100644 ccc/src/model/GetConversationListRequest.cc create mode 100644 ccc/src/model/GetConversationListResult.cc create mode 100644 ccc/src/model/GetJobDataUploadParamsRequest.cc create mode 100644 ccc/src/model/GetJobDataUploadParamsResult.cc create mode 100644 ccc/src/model/GetJobGroupRequest.cc create mode 100644 ccc/src/model/GetJobGroupResult.cc create mode 100644 ccc/src/model/GetJobListRequest.cc create mode 100644 ccc/src/model/GetJobListResult.cc create mode 100644 ccc/src/model/GetJobRequest.cc create mode 100644 ccc/src/model/GetJobResult.cc create mode 100644 ccc/src/model/GetJobStatusByCallIdRequest.cc create mode 100644 ccc/src/model/GetJobStatusByCallIdResult.cc create mode 100644 ccc/src/model/GetJobTemplateDownloadParamsRequest.cc create mode 100644 ccc/src/model/GetJobTemplateDownloadParamsResult.cc create mode 100644 ccc/src/model/GetNumberRegionInfoRequest.cc create mode 100644 ccc/src/model/GetNumberRegionInfoResult.cc create mode 100644 ccc/src/model/GetScenarioRequest.cc create mode 100644 ccc/src/model/GetScenarioResult.cc create mode 100644 ccc/src/model/GetSurveyRequest.cc create mode 100644 ccc/src/model/GetSurveyResult.cc create mode 100644 ccc/src/model/GetTaskListRequest.cc create mode 100644 ccc/src/model/GetTaskListResult.cc create mode 100644 ccc/src/model/LaunchAppraiseRequest.cc create mode 100644 ccc/src/model/LaunchAppraiseResult.cc create mode 100644 ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc create mode 100644 ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc create mode 100644 ccc/src/model/ListConfigRequest.cc create mode 100644 ccc/src/model/ListConfigResult.cc create mode 100644 ccc/src/model/ListJobGroupsRequest.cc create mode 100644 ccc/src/model/ListJobGroupsResult.cc create mode 100644 ccc/src/model/ListJobStatusRequest.cc create mode 100644 ccc/src/model/ListJobStatusResult.cc create mode 100644 ccc/src/model/ListJobsByGroupRequest.cc create mode 100644 ccc/src/model/ListJobsByGroupResult.cc create mode 100644 ccc/src/model/ListPredictiveJobStatusRequest.cc create mode 100644 ccc/src/model/ListPredictiveJobStatusResult.cc create mode 100644 ccc/src/model/ListPrivilegesOfUserRequest.cc create mode 100644 ccc/src/model/ListPrivilegesOfUserResult.cc create mode 100644 ccc/src/model/ListRealTimeAgentRequest.cc create mode 100644 ccc/src/model/ListRealTimeAgentResult.cc create mode 100644 ccc/src/model/ListScenarioTemplatesRequest.cc create mode 100644 ccc/src/model/ListScenarioTemplatesResult.cc create mode 100644 ccc/src/model/ListScenariosRequest.cc create mode 100644 ccc/src/model/ListScenariosResult.cc create mode 100644 ccc/src/model/ListSurveysRequest.cc create mode 100644 ccc/src/model/ListSurveysResult.cc create mode 100644 ccc/src/model/ListUnreachableContactsRequest.cc create mode 100644 ccc/src/model/ListUnreachableContactsResult.cc create mode 100644 ccc/src/model/ModifyScenarioRequest.cc create mode 100644 ccc/src/model/ModifyScenarioResult.cc create mode 100644 ccc/src/model/ModifySkillGroupRequest.cc create mode 100644 ccc/src/model/ModifySkillGroupResult.cc create mode 100644 ccc/src/model/ModifySurveyRequest.cc create mode 100644 ccc/src/model/ModifySurveyResult.cc create mode 100644 ccc/src/model/ModifyUserRequest.cc create mode 100644 ccc/src/model/ModifyUserResult.cc create mode 100644 ccc/src/model/PickLocalNumberRequest.cc create mode 100644 ccc/src/model/PickLocalNumberResult.cc create mode 100644 ccc/src/model/PublishSurveyRequest.cc create mode 100644 ccc/src/model/PublishSurveyResult.cc create mode 100644 ccc/src/model/RemoveUsersRequest.cc create mode 100644 ccc/src/model/RemoveUsersResult.cc create mode 100644 ccc/src/model/ResumeJobsRequest.cc create mode 100644 ccc/src/model/ResumeJobsResult.cc create mode 100644 ccc/src/model/StartBack2BackCallRequest.cc create mode 100644 ccc/src/model/StartBack2BackCallResult.cc create mode 100644 ccc/src/model/StartJobRequest.cc create mode 100644 ccc/src/model/StartJobResult.cc create mode 100644 ccc/src/model/SubmitBatchJobsRequest.cc create mode 100644 ccc/src/model/SubmitBatchJobsResult.cc create mode 100644 ccc/src/model/SuspendJobsRequest.cc create mode 100644 ccc/src/model/SuspendJobsResult.cc create mode 100644 ccc/src/model/TwoPartiesCallRequest.cc create mode 100644 ccc/src/model/TwoPartiesCallResult.cc diff --git a/CHANGELOG b/CHANGELOG index 5e198cff5..9006d61c7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2018-08-01 Version: 1.20.5 +1, Add new API GetConversationDetailByContactId + 2018-08-01 Version: 1.20.4 1, Add api: MoPenQueryCanvas, MoPenDoRecognize, MoPenSendMqttMessage, MoPenFindGroup diff --git a/VERSION b/VERSION index 1b9335f13..ae45fe86f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.20.4 \ No newline at end of file +1.20.5 \ No newline at end of file diff --git a/ccc/CMakeLists.txt b/ccc/CMakeLists.txt index 5f9963808..570226644 100644 --- a/ccc/CMakeLists.txt +++ b/ccc/CMakeLists.txt @@ -21,89 +21,321 @@ set(ccc_public_header include/alibabacloud/ccc/CCCExport.h ) set(ccc_public_header_model - include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h - include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h - include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h - include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h - include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h - include/alibabacloud/ccc/model/DeleteSkillGroupResult.h - include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h - include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h + include/alibabacloud/ccc/model/GetJobListRequest.h + include/alibabacloud/ccc/model/GetJobListResult.h include/alibabacloud/ccc/model/ListUsersRequest.h include/alibabacloud/ccc/model/ListUsersResult.h - include/alibabacloud/ccc/model/ListSkillGroupsRequest.h - include/alibabacloud/ccc/model/ListSkillGroupsResult.h include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h - include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h - include/alibabacloud/ccc/model/RemovePhoneNumberResult.h + include/alibabacloud/ccc/model/TwoPartiesCallRequest.h + include/alibabacloud/ccc/model/TwoPartiesCallResult.h + include/alibabacloud/ccc/model/DeleteSurveyRequest.h + include/alibabacloud/ccc/model/DeleteSurveyResult.h + include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h + include/alibabacloud/ccc/model/ListPhoneNumbersResult.h + include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h + include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h + include/alibabacloud/ccc/model/DialogueRequest.h + include/alibabacloud/ccc/model/DialogueResult.h + include/alibabacloud/ccc/model/RefreshTokenRequest.h + include/alibabacloud/ccc/model/RefreshTokenResult.h + include/alibabacloud/ccc/model/CreateBatchJobsRequest.h + include/alibabacloud/ccc/model/CreateBatchJobsResult.h + include/alibabacloud/ccc/model/RequestLoginInfoRequest.h + include/alibabacloud/ccc/model/RequestLoginInfoResult.h + include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h + include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h + include/alibabacloud/ccc/model/RemoveUsersRequest.h + include/alibabacloud/ccc/model/RemoveUsersResult.h + include/alibabacloud/ccc/model/CancelPredictiveJobsRequest.h + include/alibabacloud/ccc/model/CancelPredictiveJobsResult.h + include/alibabacloud/ccc/model/StartBack2BackCallRequest.h + include/alibabacloud/ccc/model/StartBack2BackCallResult.h + include/alibabacloud/ccc/model/PublishSurveyRequest.h + include/alibabacloud/ccc/model/PublishSurveyResult.h + include/alibabacloud/ccc/model/GetUserRequest.h + include/alibabacloud/ccc/model/GetUserResult.h + include/alibabacloud/ccc/model/GetConversationListRequest.h + include/alibabacloud/ccc/model/GetConversationListResult.h + include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h + include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h + include/alibabacloud/ccc/model/ListJobsByGroupRequest.h + include/alibabacloud/ccc/model/ListJobsByGroupResult.h + include/alibabacloud/ccc/model/ListPredictiveJobStatusRequest.h + include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h + include/alibabacloud/ccc/model/ListJobGroupsRequest.h + include/alibabacloud/ccc/model/ListJobGroupsResult.h include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h include/alibabacloud/ccc/model/AddPhoneNumberRequest.h include/alibabacloud/ccc/model/AddPhoneNumberResult.h include/alibabacloud/ccc/model/ListRecordingsRequest.h include/alibabacloud/ccc/model/ListRecordingsResult.h + include/alibabacloud/ccc/model/EncryptRequest.h + include/alibabacloud/ccc/model/EncryptResult.h + include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h + include/alibabacloud/ccc/model/SubmitBatchJobsResult.h + include/alibabacloud/ccc/model/ListSurveysRequest.h + include/alibabacloud/ccc/model/ListSurveysResult.h + include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h + include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h + include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h + include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h + include/alibabacloud/ccc/model/SuspendJobsRequest.h + include/alibabacloud/ccc/model/SuspendJobsResult.h + include/alibabacloud/ccc/model/GetJobGroupRequest.h + include/alibabacloud/ccc/model/GetJobGroupResult.h + include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h + include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h + include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h + include/alibabacloud/ccc/model/ListUnreachableContactsResult.h + include/alibabacloud/ccc/model/ModifySkillGroupRequest.h + include/alibabacloud/ccc/model/ModifySkillGroupResult.h + include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h + include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h + include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h + include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h + include/alibabacloud/ccc/model/LaunchAppraiseRequest.h + include/alibabacloud/ccc/model/LaunchAppraiseResult.h + include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h + include/alibabacloud/ccc/model/DeleteSkillGroupResult.h + include/alibabacloud/ccc/model/ModifyUserRequest.h + include/alibabacloud/ccc/model/ModifyUserResult.h + include/alibabacloud/ccc/model/ListSkillGroupsRequest.h + include/alibabacloud/ccc/model/ListSkillGroupsResult.h + include/alibabacloud/ccc/model/CreateScenarioRequest.h + include/alibabacloud/ccc/model/CreateScenarioResult.h + include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h + include/alibabacloud/ccc/model/RemovePhoneNumberResult.h + include/alibabacloud/ccc/model/PickLocalNumberRequest.h + include/alibabacloud/ccc/model/PickLocalNumberResult.h + include/alibabacloud/ccc/model/GetJobRequest.h + include/alibabacloud/ccc/model/GetJobResult.h + include/alibabacloud/ccc/model/StartJobRequest.h + include/alibabacloud/ccc/model/StartJobResult.h + include/alibabacloud/ccc/model/CancelJobsRequest.h + include/alibabacloud/ccc/model/CancelJobsResult.h include/alibabacloud/ccc/model/GetConfigRequest.h include/alibabacloud/ccc/model/GetConfigResult.h include/alibabacloud/ccc/model/DownloadRecordingRequest.h include/alibabacloud/ccc/model/DownloadRecordingResult.h - include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h - include/alibabacloud/ccc/model/ListPhoneNumbersResult.h - include/alibabacloud/ccc/model/RefreshTokenRequest.h - include/alibabacloud/ccc/model/RefreshTokenResult.h - include/alibabacloud/ccc/model/RequestLoginInfoRequest.h - include/alibabacloud/ccc/model/RequestLoginInfoResult.h + include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h + include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h + include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h + include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h + include/alibabacloud/ccc/model/CreateJobGroupRequest.h + include/alibabacloud/ccc/model/CreateJobGroupResult.h + include/alibabacloud/ccc/model/GetTaskListRequest.h + include/alibabacloud/ccc/model/GetTaskListResult.h + include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h + include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h + include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h + include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h + include/alibabacloud/ccc/model/ResumeJobsRequest.h + include/alibabacloud/ccc/model/ResumeJobsResult.h + include/alibabacloud/ccc/model/AssignUsersRequest.h + include/alibabacloud/ccc/model/AssignUsersResult.h + include/alibabacloud/ccc/model/GetSurveyRequest.h + include/alibabacloud/ccc/model/GetSurveyResult.h + include/alibabacloud/ccc/model/ListRolesRequest.h + include/alibabacloud/ccc/model/ListRolesResult.h + include/alibabacloud/ccc/model/ListConfigRequest.h + include/alibabacloud/ccc/model/ListConfigResult.h + include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h + include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h + include/alibabacloud/ccc/model/ListScenariosRequest.h + include/alibabacloud/ccc/model/ListScenariosResult.h + include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h + include/alibabacloud/ccc/model/ListRealTimeAgentResult.h + include/alibabacloud/ccc/model/AssignJobsRequest.h + include/alibabacloud/ccc/model/AssignJobsResult.h + include/alibabacloud/ccc/model/CreateUserRequest.h + include/alibabacloud/ccc/model/CreateUserResult.h + include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h + include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h + include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h + include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h + include/alibabacloud/ccc/model/GetScenarioRequest.h + include/alibabacloud/ccc/model/GetScenarioResult.h + include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.h + include/alibabacloud/ccc/model/CreatePredictiveJobsResult.h + include/alibabacloud/ccc/model/GetAgentDataRequest.h + include/alibabacloud/ccc/model/GetAgentDataResult.h + include/alibabacloud/ccc/model/CreateSurveyRequest.h + include/alibabacloud/ccc/model/CreateSurveyResult.h + include/alibabacloud/ccc/model/ListJobStatusRequest.h + include/alibabacloud/ccc/model/ListJobStatusResult.h + include/alibabacloud/ccc/model/ModifySurveyRequest.h + include/alibabacloud/ccc/model/ModifySurveyResult.h + include/alibabacloud/ccc/model/ModifyScenarioRequest.h + include/alibabacloud/ccc/model/ModifyScenarioResult.h + include/alibabacloud/ccc/model/CreateSkillGroupRequest.h + include/alibabacloud/ccc/model/CreateSkillGroupResult.h include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h include/alibabacloud/ccc/model/GetServiceExtensionsResult.h include/alibabacloud/ccc/model/ListContactFlowsRequest.h include/alibabacloud/ccc/model/ListContactFlowsResult.h - include/alibabacloud/ccc/model/ListRolesRequest.h - include/alibabacloud/ccc/model/ListRolesResult.h - include/alibabacloud/ccc/model/GetUserRequest.h - include/alibabacloud/ccc/model/GetUserResult.h ) + include/alibabacloud/ccc/model/DeleteJobGroupRequest.h + include/alibabacloud/ccc/model/DeleteJobGroupResult.h ) set(ccc_src src/CCCClient.cc - src/model/ListRecordingsByContactIdRequest.cc - src/model/ListRecordingsByContactIdResult.cc - src/model/ListUsersOfSkillGroupRequest.cc - src/model/ListUsersOfSkillGroupResult.cc - src/model/DeleteSkillGroupRequest.cc - src/model/DeleteSkillGroupResult.cc - src/model/ModifyPhoneNumberRequest.cc - src/model/ModifyPhoneNumberResult.cc + src/model/GetJobListRequest.cc + src/model/GetJobListResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc - src/model/ListSkillGroupsRequest.cc - src/model/ListSkillGroupsResult.cc src/model/ListSkillGroupsOfUserRequest.cc src/model/ListSkillGroupsOfUserResult.cc - src/model/RemovePhoneNumberRequest.cc - src/model/RemovePhoneNumberResult.cc + src/model/TwoPartiesCallRequest.cc + src/model/TwoPartiesCallResult.cc + src/model/DeleteSurveyRequest.cc + src/model/DeleteSurveyResult.cc + src/model/ListPhoneNumbersRequest.cc + src/model/ListPhoneNumbersResult.cc + src/model/DownloadUnreachableContactsRequest.cc + src/model/DownloadUnreachableContactsResult.cc + src/model/DialogueRequest.cc + src/model/DialogueResult.cc + src/model/RefreshTokenRequest.cc + src/model/RefreshTokenResult.cc + src/model/CreateBatchJobsRequest.cc + src/model/CreateBatchJobsResult.cc + src/model/RequestLoginInfoRequest.cc + src/model/RequestLoginInfoResult.cc + src/model/GetJobTemplateDownloadParamsRequest.cc + src/model/GetJobTemplateDownloadParamsResult.cc + src/model/RemoveUsersRequest.cc + src/model/RemoveUsersResult.cc + src/model/CancelPredictiveJobsRequest.cc + src/model/CancelPredictiveJobsResult.cc + src/model/StartBack2BackCallRequest.cc + src/model/StartBack2BackCallResult.cc + src/model/PublishSurveyRequest.cc + src/model/PublishSurveyResult.cc + src/model/GetUserRequest.cc + src/model/GetUserResult.cc + src/model/GetConversationListRequest.cc + src/model/GetConversationListResult.cc + src/model/ListUsersOfSkillGroupRequest.cc + src/model/ListUsersOfSkillGroupResult.cc + src/model/ListJobsByGroupRequest.cc + src/model/ListJobsByGroupResult.cc + src/model/ListPredictiveJobStatusRequest.cc + src/model/ListPredictiveJobStatusResult.cc + src/model/ListJobGroupsRequest.cc + src/model/ListJobGroupsResult.cc src/model/ListCallDetailRecordsRequest.cc src/model/ListCallDetailRecordsResult.cc src/model/AddPhoneNumberRequest.cc src/model/AddPhoneNumberResult.cc src/model/ListRecordingsRequest.cc src/model/ListRecordingsResult.cc + src/model/EncryptRequest.cc + src/model/EncryptResult.cc + src/model/SubmitBatchJobsRequest.cc + src/model/SubmitBatchJobsResult.cc + src/model/ListSurveysRequest.cc + src/model/ListSurveysResult.cc + src/model/GetJobDataUploadParamsRequest.cc + src/model/GetJobDataUploadParamsResult.cc + src/model/ListBasicStatisticsReportSubItemsRequest.cc + src/model/ListBasicStatisticsReportSubItemsResult.cc + src/model/SuspendJobsRequest.cc + src/model/SuspendJobsResult.cc + src/model/GetJobGroupRequest.cc + src/model/GetJobGroupResult.cc + src/model/GetJobStatusByCallIdRequest.cc + src/model/GetJobStatusByCallIdResult.cc + src/model/ListUnreachableContactsRequest.cc + src/model/ListUnreachableContactsResult.cc + src/model/ModifySkillGroupRequest.cc + src/model/ModifySkillGroupResult.cc + src/model/GetConversationDetailByContactIdRequest.cc + src/model/GetConversationDetailByContactIdResult.cc + src/model/ListRecordingsByContactIdRequest.cc + src/model/ListRecordingsByContactIdResult.cc + src/model/LaunchAppraiseRequest.cc + src/model/LaunchAppraiseResult.cc + src/model/DeleteSkillGroupRequest.cc + src/model/DeleteSkillGroupResult.cc + src/model/ModifyUserRequest.cc + src/model/ModifyUserResult.cc + src/model/ListSkillGroupsRequest.cc + src/model/ListSkillGroupsResult.cc + src/model/CreateScenarioRequest.cc + src/model/CreateScenarioResult.cc + src/model/RemovePhoneNumberRequest.cc + src/model/RemovePhoneNumberResult.cc + src/model/PickLocalNumberRequest.cc + src/model/PickLocalNumberResult.cc + src/model/GetJobRequest.cc + src/model/GetJobResult.cc + src/model/StartJobRequest.cc + src/model/StartJobResult.cc + src/model/CancelJobsRequest.cc + src/model/CancelJobsResult.cc src/model/GetConfigRequest.cc src/model/GetConfigResult.cc src/model/DownloadRecordingRequest.cc src/model/DownloadRecordingResult.cc - src/model/ListPhoneNumbersRequest.cc - src/model/ListPhoneNumbersResult.cc - src/model/RefreshTokenRequest.cc - src/model/RefreshTokenResult.cc - src/model/RequestLoginInfoRequest.cc - src/model/RequestLoginInfoResult.cc + src/model/GenerateAgentStatisticReportRequest.cc + src/model/GenerateAgentStatisticReportResult.cc + src/model/CreateScenarioFromTemplateRequest.cc + src/model/CreateScenarioFromTemplateResult.cc + src/model/CreateJobGroupRequest.cc + src/model/CreateJobGroupResult.cc + src/model/GetTaskListRequest.cc + src/model/GetTaskListResult.cc + src/model/DownloadOriginalStatisticsReportRequest.cc + src/model/DownloadOriginalStatisticsReportResult.cc + src/model/ListScenarioTemplatesRequest.cc + src/model/ListScenarioTemplatesResult.cc + src/model/ResumeJobsRequest.cc + src/model/ResumeJobsResult.cc + src/model/AssignUsersRequest.cc + src/model/AssignUsersResult.cc + src/model/GetSurveyRequest.cc + src/model/GetSurveyResult.cc + src/model/ListRolesRequest.cc + src/model/ListRolesResult.cc + src/model/ListConfigRequest.cc + src/model/ListConfigResult.cc + src/model/ModifyPhoneNumberRequest.cc + src/model/ModifyPhoneNumberResult.cc + src/model/ListScenariosRequest.cc + src/model/ListScenariosResult.cc + src/model/ListRealTimeAgentRequest.cc + src/model/ListRealTimeAgentResult.cc + src/model/AssignJobsRequest.cc + src/model/AssignJobsResult.cc + src/model/CreateUserRequest.cc + src/model/CreateUserResult.cc + src/model/ListPrivilegesOfUserRequest.cc + src/model/ListPrivilegesOfUserResult.cc + src/model/GetNumberRegionInfoRequest.cc + src/model/GetNumberRegionInfoResult.cc + src/model/GetScenarioRequest.cc + src/model/GetScenarioResult.cc + src/model/CreatePredictiveJobsRequest.cc + src/model/CreatePredictiveJobsResult.cc + src/model/GetAgentDataRequest.cc + src/model/GetAgentDataResult.cc + src/model/CreateSurveyRequest.cc + src/model/CreateSurveyResult.cc + src/model/ListJobStatusRequest.cc + src/model/ListJobStatusResult.cc + src/model/ModifySurveyRequest.cc + src/model/ModifySurveyResult.cc + src/model/ModifyScenarioRequest.cc + src/model/ModifyScenarioResult.cc + src/model/CreateSkillGroupRequest.cc + src/model/CreateSkillGroupResult.cc src/model/GetServiceExtensionsRequest.cc src/model/GetServiceExtensionsResult.cc src/model/ListContactFlowsRequest.cc src/model/ListContactFlowsResult.cc - src/model/ListRolesRequest.cc - src/model/ListRolesResult.cc - src/model/GetUserRequest.cc - src/model/GetUserResult.cc ) + src/model/DeleteJobGroupRequest.cc + src/model/DeleteJobGroupResult.cc ) add_library(ccc ${LIB_TYPE} ${ccc_public_header} diff --git a/ccc/include/alibabacloud/ccc/CCCClient.h b/ccc/include/alibabacloud/ccc/CCCClient.h index e8d59fbf4..50b99514d 100644 --- a/ccc/include/alibabacloud/ccc/CCCClient.h +++ b/ccc/include/alibabacloud/ccc/CCCClient.h @@ -22,46 +22,162 @@ #include #include #include "CCCExport.h" -#include "model/ListRecordingsByContactIdRequest.h" -#include "model/ListRecordingsByContactIdResult.h" -#include "model/ListUsersOfSkillGroupRequest.h" -#include "model/ListUsersOfSkillGroupResult.h" -#include "model/DeleteSkillGroupRequest.h" -#include "model/DeleteSkillGroupResult.h" -#include "model/ModifyPhoneNumberRequest.h" -#include "model/ModifyPhoneNumberResult.h" +#include "model/GetJobListRequest.h" +#include "model/GetJobListResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" -#include "model/ListSkillGroupsRequest.h" -#include "model/ListSkillGroupsResult.h" #include "model/ListSkillGroupsOfUserRequest.h" #include "model/ListSkillGroupsOfUserResult.h" -#include "model/RemovePhoneNumberRequest.h" -#include "model/RemovePhoneNumberResult.h" +#include "model/TwoPartiesCallRequest.h" +#include "model/TwoPartiesCallResult.h" +#include "model/DeleteSurveyRequest.h" +#include "model/DeleteSurveyResult.h" +#include "model/ListPhoneNumbersRequest.h" +#include "model/ListPhoneNumbersResult.h" +#include "model/DownloadUnreachableContactsRequest.h" +#include "model/DownloadUnreachableContactsResult.h" +#include "model/DialogueRequest.h" +#include "model/DialogueResult.h" +#include "model/RefreshTokenRequest.h" +#include "model/RefreshTokenResult.h" +#include "model/CreateBatchJobsRequest.h" +#include "model/CreateBatchJobsResult.h" +#include "model/RequestLoginInfoRequest.h" +#include "model/RequestLoginInfoResult.h" +#include "model/GetJobTemplateDownloadParamsRequest.h" +#include "model/GetJobTemplateDownloadParamsResult.h" +#include "model/RemoveUsersRequest.h" +#include "model/RemoveUsersResult.h" +#include "model/CancelPredictiveJobsRequest.h" +#include "model/CancelPredictiveJobsResult.h" +#include "model/StartBack2BackCallRequest.h" +#include "model/StartBack2BackCallResult.h" +#include "model/PublishSurveyRequest.h" +#include "model/PublishSurveyResult.h" +#include "model/GetUserRequest.h" +#include "model/GetUserResult.h" +#include "model/GetConversationListRequest.h" +#include "model/GetConversationListResult.h" +#include "model/ListUsersOfSkillGroupRequest.h" +#include "model/ListUsersOfSkillGroupResult.h" +#include "model/ListJobsByGroupRequest.h" +#include "model/ListJobsByGroupResult.h" +#include "model/ListPredictiveJobStatusRequest.h" +#include "model/ListPredictiveJobStatusResult.h" +#include "model/ListJobGroupsRequest.h" +#include "model/ListJobGroupsResult.h" #include "model/ListCallDetailRecordsRequest.h" #include "model/ListCallDetailRecordsResult.h" #include "model/AddPhoneNumberRequest.h" #include "model/AddPhoneNumberResult.h" #include "model/ListRecordingsRequest.h" #include "model/ListRecordingsResult.h" +#include "model/EncryptRequest.h" +#include "model/EncryptResult.h" +#include "model/SubmitBatchJobsRequest.h" +#include "model/SubmitBatchJobsResult.h" +#include "model/ListSurveysRequest.h" +#include "model/ListSurveysResult.h" +#include "model/GetJobDataUploadParamsRequest.h" +#include "model/GetJobDataUploadParamsResult.h" +#include "model/ListBasicStatisticsReportSubItemsRequest.h" +#include "model/ListBasicStatisticsReportSubItemsResult.h" +#include "model/SuspendJobsRequest.h" +#include "model/SuspendJobsResult.h" +#include "model/GetJobGroupRequest.h" +#include "model/GetJobGroupResult.h" +#include "model/GetJobStatusByCallIdRequest.h" +#include "model/GetJobStatusByCallIdResult.h" +#include "model/ListUnreachableContactsRequest.h" +#include "model/ListUnreachableContactsResult.h" +#include "model/ModifySkillGroupRequest.h" +#include "model/ModifySkillGroupResult.h" +#include "model/GetConversationDetailByContactIdRequest.h" +#include "model/GetConversationDetailByContactIdResult.h" +#include "model/ListRecordingsByContactIdRequest.h" +#include "model/ListRecordingsByContactIdResult.h" +#include "model/LaunchAppraiseRequest.h" +#include "model/LaunchAppraiseResult.h" +#include "model/DeleteSkillGroupRequest.h" +#include "model/DeleteSkillGroupResult.h" +#include "model/ModifyUserRequest.h" +#include "model/ModifyUserResult.h" +#include "model/ListSkillGroupsRequest.h" +#include "model/ListSkillGroupsResult.h" +#include "model/CreateScenarioRequest.h" +#include "model/CreateScenarioResult.h" +#include "model/RemovePhoneNumberRequest.h" +#include "model/RemovePhoneNumberResult.h" +#include "model/PickLocalNumberRequest.h" +#include "model/PickLocalNumberResult.h" +#include "model/GetJobRequest.h" +#include "model/GetJobResult.h" +#include "model/StartJobRequest.h" +#include "model/StartJobResult.h" +#include "model/CancelJobsRequest.h" +#include "model/CancelJobsResult.h" #include "model/GetConfigRequest.h" #include "model/GetConfigResult.h" #include "model/DownloadRecordingRequest.h" #include "model/DownloadRecordingResult.h" -#include "model/ListPhoneNumbersRequest.h" -#include "model/ListPhoneNumbersResult.h" -#include "model/RefreshTokenRequest.h" -#include "model/RefreshTokenResult.h" -#include "model/RequestLoginInfoRequest.h" -#include "model/RequestLoginInfoResult.h" +#include "model/GenerateAgentStatisticReportRequest.h" +#include "model/GenerateAgentStatisticReportResult.h" +#include "model/CreateScenarioFromTemplateRequest.h" +#include "model/CreateScenarioFromTemplateResult.h" +#include "model/CreateJobGroupRequest.h" +#include "model/CreateJobGroupResult.h" +#include "model/GetTaskListRequest.h" +#include "model/GetTaskListResult.h" +#include "model/DownloadOriginalStatisticsReportRequest.h" +#include "model/DownloadOriginalStatisticsReportResult.h" +#include "model/ListScenarioTemplatesRequest.h" +#include "model/ListScenarioTemplatesResult.h" +#include "model/ResumeJobsRequest.h" +#include "model/ResumeJobsResult.h" +#include "model/AssignUsersRequest.h" +#include "model/AssignUsersResult.h" +#include "model/GetSurveyRequest.h" +#include "model/GetSurveyResult.h" +#include "model/ListRolesRequest.h" +#include "model/ListRolesResult.h" +#include "model/ListConfigRequest.h" +#include "model/ListConfigResult.h" +#include "model/ModifyPhoneNumberRequest.h" +#include "model/ModifyPhoneNumberResult.h" +#include "model/ListScenariosRequest.h" +#include "model/ListScenariosResult.h" +#include "model/ListRealTimeAgentRequest.h" +#include "model/ListRealTimeAgentResult.h" +#include "model/AssignJobsRequest.h" +#include "model/AssignJobsResult.h" +#include "model/CreateUserRequest.h" +#include "model/CreateUserResult.h" +#include "model/ListPrivilegesOfUserRequest.h" +#include "model/ListPrivilegesOfUserResult.h" +#include "model/GetNumberRegionInfoRequest.h" +#include "model/GetNumberRegionInfoResult.h" +#include "model/GetScenarioRequest.h" +#include "model/GetScenarioResult.h" +#include "model/CreatePredictiveJobsRequest.h" +#include "model/CreatePredictiveJobsResult.h" +#include "model/GetAgentDataRequest.h" +#include "model/GetAgentDataResult.h" +#include "model/CreateSurveyRequest.h" +#include "model/CreateSurveyResult.h" +#include "model/ListJobStatusRequest.h" +#include "model/ListJobStatusResult.h" +#include "model/ModifySurveyRequest.h" +#include "model/ModifySurveyResult.h" +#include "model/ModifyScenarioRequest.h" +#include "model/ModifyScenarioResult.h" +#include "model/CreateSkillGroupRequest.h" +#include "model/CreateSkillGroupResult.h" #include "model/GetServiceExtensionsRequest.h" #include "model/GetServiceExtensionsResult.h" #include "model/ListContactFlowsRequest.h" #include "model/ListContactFlowsResult.h" -#include "model/ListRolesRequest.h" -#include "model/ListRolesResult.h" -#include "model/GetUserRequest.h" -#include "model/GetUserResult.h" +#include "model/DeleteJobGroupRequest.h" +#include "model/DeleteJobGroupResult.h" namespace AlibabaCloud @@ -71,131 +187,479 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient { public: - typedef Outcome ListRecordingsByContactIdOutcome; - typedef std::future ListRecordingsByContactIdOutcomeCallable; - typedef std::function&)> ListRecordingsByContactIdAsyncHandler; - typedef Outcome ListUsersOfSkillGroupOutcome; - typedef std::future ListUsersOfSkillGroupOutcomeCallable; - typedef std::function&)> ListUsersOfSkillGroupAsyncHandler; - typedef Outcome DeleteSkillGroupOutcome; - typedef std::future DeleteSkillGroupOutcomeCallable; - typedef std::function&)> DeleteSkillGroupAsyncHandler; - typedef Outcome ModifyPhoneNumberOutcome; - typedef std::future ModifyPhoneNumberOutcomeCallable; - typedef std::function&)> ModifyPhoneNumberAsyncHandler; - typedef Outcome ListUsersOutcome; - typedef std::future ListUsersOutcomeCallable; + typedef Outcome GetJobListOutcome; + typedef std::future GetJobListOutcomeCallable; + typedef std::function&)> GetJobListAsyncHandler; + typedef Outcome ListUsersOutcome; + typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; - typedef Outcome ListSkillGroupsOutcome; - typedef std::future ListSkillGroupsOutcomeCallable; - typedef std::function&)> ListSkillGroupsAsyncHandler; - typedef Outcome ListSkillGroupsOfUserOutcome; - typedef std::future ListSkillGroupsOfUserOutcomeCallable; + typedef Outcome ListSkillGroupsOfUserOutcome; + typedef std::future ListSkillGroupsOfUserOutcomeCallable; typedef std::function&)> ListSkillGroupsOfUserAsyncHandler; - typedef Outcome RemovePhoneNumberOutcome; - typedef std::future RemovePhoneNumberOutcomeCallable; - typedef std::function&)> RemovePhoneNumberAsyncHandler; - typedef Outcome ListCallDetailRecordsOutcome; - typedef std::future ListCallDetailRecordsOutcomeCallable; - typedef std::function&)> ListCallDetailRecordsAsyncHandler; - typedef Outcome AddPhoneNumberOutcome; - typedef std::future AddPhoneNumberOutcomeCallable; - typedef std::function&)> AddPhoneNumberAsyncHandler; - typedef Outcome ListRecordingsOutcome; - typedef std::future ListRecordingsOutcomeCallable; - typedef std::function&)> ListRecordingsAsyncHandler; - typedef Outcome GetConfigOutcome; - typedef std::future GetConfigOutcomeCallable; - typedef std::function&)> GetConfigAsyncHandler; - typedef Outcome DownloadRecordingOutcome; - typedef std::future DownloadRecordingOutcomeCallable; - typedef std::function&)> DownloadRecordingAsyncHandler; - typedef Outcome ListPhoneNumbersOutcome; - typedef std::future ListPhoneNumbersOutcomeCallable; + typedef Outcome TwoPartiesCallOutcome; + typedef std::future TwoPartiesCallOutcomeCallable; + typedef std::function&)> TwoPartiesCallAsyncHandler; + typedef Outcome DeleteSurveyOutcome; + typedef std::future DeleteSurveyOutcomeCallable; + typedef std::function&)> DeleteSurveyAsyncHandler; + typedef Outcome ListPhoneNumbersOutcome; + typedef std::future ListPhoneNumbersOutcomeCallable; typedef std::function&)> ListPhoneNumbersAsyncHandler; - typedef Outcome RefreshTokenOutcome; - typedef std::future RefreshTokenOutcomeCallable; + typedef Outcome DownloadUnreachableContactsOutcome; + typedef std::future DownloadUnreachableContactsOutcomeCallable; + typedef std::function&)> DownloadUnreachableContactsAsyncHandler; + typedef Outcome DialogueOutcome; + typedef std::future DialogueOutcomeCallable; + typedef std::function&)> DialogueAsyncHandler; + typedef Outcome RefreshTokenOutcome; + typedef std::future RefreshTokenOutcomeCallable; typedef std::function&)> RefreshTokenAsyncHandler; - typedef Outcome RequestLoginInfoOutcome; - typedef std::future RequestLoginInfoOutcomeCallable; + typedef Outcome CreateBatchJobsOutcome; + typedef std::future CreateBatchJobsOutcomeCallable; + typedef std::function&)> CreateBatchJobsAsyncHandler; + typedef Outcome RequestLoginInfoOutcome; + typedef std::future RequestLoginInfoOutcomeCallable; typedef std::function&)> RequestLoginInfoAsyncHandler; - typedef Outcome GetServiceExtensionsOutcome; - typedef std::future GetServiceExtensionsOutcomeCallable; - typedef std::function&)> GetServiceExtensionsAsyncHandler; - typedef Outcome ListContactFlowsOutcome; - typedef std::future ListContactFlowsOutcomeCallable; - typedef std::function&)> ListContactFlowsAsyncHandler; - typedef Outcome ListRolesOutcome; - typedef std::future ListRolesOutcomeCallable; - typedef std::function&)> ListRolesAsyncHandler; - typedef Outcome GetUserOutcome; - typedef std::future GetUserOutcomeCallable; + typedef Outcome GetJobTemplateDownloadParamsOutcome; + typedef std::future GetJobTemplateDownloadParamsOutcomeCallable; + typedef std::function&)> GetJobTemplateDownloadParamsAsyncHandler; + typedef Outcome RemoveUsersOutcome; + typedef std::future RemoveUsersOutcomeCallable; + typedef std::function&)> RemoveUsersAsyncHandler; + typedef Outcome CancelPredictiveJobsOutcome; + typedef std::future CancelPredictiveJobsOutcomeCallable; + typedef std::function&)> CancelPredictiveJobsAsyncHandler; + typedef Outcome StartBack2BackCallOutcome; + typedef std::future StartBack2BackCallOutcomeCallable; + typedef std::function&)> StartBack2BackCallAsyncHandler; + typedef Outcome PublishSurveyOutcome; + typedef std::future PublishSurveyOutcomeCallable; + typedef std::function&)> PublishSurveyAsyncHandler; + typedef Outcome GetUserOutcome; + typedef std::future GetUserOutcomeCallable; typedef std::function&)> GetUserAsyncHandler; + typedef Outcome GetConversationListOutcome; + typedef std::future GetConversationListOutcomeCallable; + typedef std::function&)> GetConversationListAsyncHandler; + typedef Outcome ListUsersOfSkillGroupOutcome; + typedef std::future ListUsersOfSkillGroupOutcomeCallable; + typedef std::function&)> ListUsersOfSkillGroupAsyncHandler; + typedef Outcome ListJobsByGroupOutcome; + typedef std::future ListJobsByGroupOutcomeCallable; + typedef std::function&)> ListJobsByGroupAsyncHandler; + typedef Outcome ListPredictiveJobStatusOutcome; + typedef std::future ListPredictiveJobStatusOutcomeCallable; + typedef std::function&)> ListPredictiveJobStatusAsyncHandler; + typedef Outcome ListJobGroupsOutcome; + typedef std::future ListJobGroupsOutcomeCallable; + typedef std::function&)> ListJobGroupsAsyncHandler; + typedef Outcome ListCallDetailRecordsOutcome; + typedef std::future ListCallDetailRecordsOutcomeCallable; + typedef std::function&)> ListCallDetailRecordsAsyncHandler; + typedef Outcome AddPhoneNumberOutcome; + typedef std::future AddPhoneNumberOutcomeCallable; + typedef std::function&)> AddPhoneNumberAsyncHandler; + typedef Outcome ListRecordingsOutcome; + typedef std::future ListRecordingsOutcomeCallable; + typedef std::function&)> ListRecordingsAsyncHandler; + typedef Outcome EncryptOutcome; + typedef std::future EncryptOutcomeCallable; + typedef std::function&)> EncryptAsyncHandler; + typedef Outcome SubmitBatchJobsOutcome; + typedef std::future SubmitBatchJobsOutcomeCallable; + typedef std::function&)> SubmitBatchJobsAsyncHandler; + typedef Outcome ListSurveysOutcome; + typedef std::future ListSurveysOutcomeCallable; + typedef std::function&)> ListSurveysAsyncHandler; + typedef Outcome GetJobDataUploadParamsOutcome; + typedef std::future GetJobDataUploadParamsOutcomeCallable; + typedef std::function&)> GetJobDataUploadParamsAsyncHandler; + typedef Outcome ListBasicStatisticsReportSubItemsOutcome; + typedef std::future ListBasicStatisticsReportSubItemsOutcomeCallable; + typedef std::function&)> ListBasicStatisticsReportSubItemsAsyncHandler; + typedef Outcome SuspendJobsOutcome; + typedef std::future SuspendJobsOutcomeCallable; + typedef std::function&)> SuspendJobsAsyncHandler; + typedef Outcome GetJobGroupOutcome; + typedef std::future GetJobGroupOutcomeCallable; + typedef std::function&)> GetJobGroupAsyncHandler; + typedef Outcome GetJobStatusByCallIdOutcome; + typedef std::future GetJobStatusByCallIdOutcomeCallable; + typedef std::function&)> GetJobStatusByCallIdAsyncHandler; + typedef Outcome ListUnreachableContactsOutcome; + typedef std::future ListUnreachableContactsOutcomeCallable; + typedef std::function&)> ListUnreachableContactsAsyncHandler; + typedef Outcome ModifySkillGroupOutcome; + typedef std::future ModifySkillGroupOutcomeCallable; + typedef std::function&)> ModifySkillGroupAsyncHandler; + typedef Outcome GetConversationDetailByContactIdOutcome; + typedef std::future GetConversationDetailByContactIdOutcomeCallable; + typedef std::function&)> GetConversationDetailByContactIdAsyncHandler; + typedef Outcome ListRecordingsByContactIdOutcome; + typedef std::future ListRecordingsByContactIdOutcomeCallable; + typedef std::function&)> ListRecordingsByContactIdAsyncHandler; + typedef Outcome LaunchAppraiseOutcome; + typedef std::future LaunchAppraiseOutcomeCallable; + typedef std::function&)> LaunchAppraiseAsyncHandler; + typedef Outcome DeleteSkillGroupOutcome; + typedef std::future DeleteSkillGroupOutcomeCallable; + typedef std::function&)> DeleteSkillGroupAsyncHandler; + typedef Outcome ModifyUserOutcome; + typedef std::future ModifyUserOutcomeCallable; + typedef std::function&)> ModifyUserAsyncHandler; + typedef Outcome ListSkillGroupsOutcome; + typedef std::future ListSkillGroupsOutcomeCallable; + typedef std::function&)> ListSkillGroupsAsyncHandler; + typedef Outcome CreateScenarioOutcome; + typedef std::future CreateScenarioOutcomeCallable; + typedef std::function&)> CreateScenarioAsyncHandler; + typedef Outcome RemovePhoneNumberOutcome; + typedef std::future RemovePhoneNumberOutcomeCallable; + typedef std::function&)> RemovePhoneNumberAsyncHandler; + typedef Outcome PickLocalNumberOutcome; + typedef std::future PickLocalNumberOutcomeCallable; + typedef std::function&)> PickLocalNumberAsyncHandler; + typedef Outcome GetJobOutcome; + typedef std::future GetJobOutcomeCallable; + typedef std::function&)> GetJobAsyncHandler; + typedef Outcome StartJobOutcome; + typedef std::future StartJobOutcomeCallable; + typedef std::function&)> StartJobAsyncHandler; + typedef Outcome CancelJobsOutcome; + typedef std::future CancelJobsOutcomeCallable; + typedef std::function&)> CancelJobsAsyncHandler; + typedef Outcome GetConfigOutcome; + typedef std::future GetConfigOutcomeCallable; + typedef std::function&)> GetConfigAsyncHandler; + typedef Outcome DownloadRecordingOutcome; + typedef std::future DownloadRecordingOutcomeCallable; + typedef std::function&)> DownloadRecordingAsyncHandler; + typedef Outcome GenerateAgentStatisticReportOutcome; + typedef std::future GenerateAgentStatisticReportOutcomeCallable; + typedef std::function&)> GenerateAgentStatisticReportAsyncHandler; + typedef Outcome CreateScenarioFromTemplateOutcome; + typedef std::future CreateScenarioFromTemplateOutcomeCallable; + typedef std::function&)> CreateScenarioFromTemplateAsyncHandler; + typedef Outcome CreateJobGroupOutcome; + typedef std::future CreateJobGroupOutcomeCallable; + typedef std::function&)> CreateJobGroupAsyncHandler; + typedef Outcome GetTaskListOutcome; + typedef std::future GetTaskListOutcomeCallable; + typedef std::function&)> GetTaskListAsyncHandler; + typedef Outcome DownloadOriginalStatisticsReportOutcome; + typedef std::future DownloadOriginalStatisticsReportOutcomeCallable; + typedef std::function&)> DownloadOriginalStatisticsReportAsyncHandler; + typedef Outcome ListScenarioTemplatesOutcome; + typedef std::future ListScenarioTemplatesOutcomeCallable; + typedef std::function&)> ListScenarioTemplatesAsyncHandler; + typedef Outcome ResumeJobsOutcome; + typedef std::future ResumeJobsOutcomeCallable; + typedef std::function&)> ResumeJobsAsyncHandler; + typedef Outcome AssignUsersOutcome; + typedef std::future AssignUsersOutcomeCallable; + typedef std::function&)> AssignUsersAsyncHandler; + typedef Outcome GetSurveyOutcome; + typedef std::future GetSurveyOutcomeCallable; + typedef std::function&)> GetSurveyAsyncHandler; + typedef Outcome ListRolesOutcome; + typedef std::future ListRolesOutcomeCallable; + typedef std::function&)> ListRolesAsyncHandler; + typedef Outcome ListConfigOutcome; + typedef std::future ListConfigOutcomeCallable; + typedef std::function&)> ListConfigAsyncHandler; + typedef Outcome ModifyPhoneNumberOutcome; + typedef std::future ModifyPhoneNumberOutcomeCallable; + typedef std::function&)> ModifyPhoneNumberAsyncHandler; + typedef Outcome ListScenariosOutcome; + typedef std::future ListScenariosOutcomeCallable; + typedef std::function&)> ListScenariosAsyncHandler; + typedef Outcome ListRealTimeAgentOutcome; + typedef std::future ListRealTimeAgentOutcomeCallable; + typedef std::function&)> ListRealTimeAgentAsyncHandler; + typedef Outcome AssignJobsOutcome; + typedef std::future AssignJobsOutcomeCallable; + typedef std::function&)> AssignJobsAsyncHandler; + typedef Outcome CreateUserOutcome; + typedef std::future CreateUserOutcomeCallable; + typedef std::function&)> CreateUserAsyncHandler; + typedef Outcome ListPrivilegesOfUserOutcome; + typedef std::future ListPrivilegesOfUserOutcomeCallable; + typedef std::function&)> ListPrivilegesOfUserAsyncHandler; + typedef Outcome GetNumberRegionInfoOutcome; + typedef std::future GetNumberRegionInfoOutcomeCallable; + typedef std::function&)> GetNumberRegionInfoAsyncHandler; + typedef Outcome GetScenarioOutcome; + typedef std::future GetScenarioOutcomeCallable; + typedef std::function&)> GetScenarioAsyncHandler; + typedef Outcome CreatePredictiveJobsOutcome; + typedef std::future CreatePredictiveJobsOutcomeCallable; + typedef std::function&)> CreatePredictiveJobsAsyncHandler; + typedef Outcome GetAgentDataOutcome; + typedef std::future GetAgentDataOutcomeCallable; + typedef std::function&)> GetAgentDataAsyncHandler; + typedef Outcome CreateSurveyOutcome; + typedef std::future CreateSurveyOutcomeCallable; + typedef std::function&)> CreateSurveyAsyncHandler; + typedef Outcome ListJobStatusOutcome; + typedef std::future ListJobStatusOutcomeCallable; + typedef std::function&)> ListJobStatusAsyncHandler; + typedef Outcome ModifySurveyOutcome; + typedef std::future ModifySurveyOutcomeCallable; + typedef std::function&)> ModifySurveyAsyncHandler; + typedef Outcome ModifyScenarioOutcome; + typedef std::future ModifyScenarioOutcomeCallable; + typedef std::function&)> ModifyScenarioAsyncHandler; + typedef Outcome CreateSkillGroupOutcome; + typedef std::future CreateSkillGroupOutcomeCallable; + typedef std::function&)> CreateSkillGroupAsyncHandler; + typedef Outcome GetServiceExtensionsOutcome; + typedef std::future GetServiceExtensionsOutcomeCallable; + typedef std::function&)> GetServiceExtensionsAsyncHandler; + typedef Outcome ListContactFlowsOutcome; + typedef std::future ListContactFlowsOutcomeCallable; + typedef std::function&)> ListContactFlowsAsyncHandler; + typedef Outcome DeleteJobGroupOutcome; + typedef std::future DeleteJobGroupOutcomeCallable; + typedef std::function&)> DeleteJobGroupAsyncHandler; CCCClient(const Credentials &credentials, const ClientConfiguration &configuration); CCCClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CCCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CCCClient(); - ListRecordingsByContactIdOutcome listRecordingsByContactId(const Model::ListRecordingsByContactIdRequest &request)const; - void listRecordingsByContactIdAsync(const Model::ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRecordingsByContactIdOutcomeCallable listRecordingsByContactIdCallable(const Model::ListRecordingsByContactIdRequest& request) const; - ListUsersOfSkillGroupOutcome listUsersOfSkillGroup(const Model::ListUsersOfSkillGroupRequest &request)const; - void listUsersOfSkillGroupAsync(const Model::ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListUsersOfSkillGroupOutcomeCallable listUsersOfSkillGroupCallable(const Model::ListUsersOfSkillGroupRequest& 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; - 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; - ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; - void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; - ListSkillGroupsOutcome listSkillGroups(const Model::ListSkillGroupsRequest &request)const; - void listSkillGroupsAsync(const Model::ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSkillGroupsOutcomeCallable listSkillGroupsCallable(const Model::ListSkillGroupsRequest& request) const; - ListSkillGroupsOfUserOutcome listSkillGroupsOfUser(const Model::ListSkillGroupsOfUserRequest &request)const; - void listSkillGroupsOfUserAsync(const Model::ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSkillGroupsOfUserOutcomeCallable listSkillGroupsOfUserCallable(const Model::ListSkillGroupsOfUserRequest& request) const; - RemovePhoneNumberOutcome removePhoneNumber(const Model::RemovePhoneNumberRequest &request)const; - void removePhoneNumberAsync(const Model::RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemovePhoneNumberOutcomeCallable removePhoneNumberCallable(const Model::RemovePhoneNumberRequest& request) const; - ListCallDetailRecordsOutcome listCallDetailRecords(const Model::ListCallDetailRecordsRequest &request)const; - void listCallDetailRecordsAsync(const Model::ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCallDetailRecordsOutcomeCallable listCallDetailRecordsCallable(const Model::ListCallDetailRecordsRequest& request) const; - AddPhoneNumberOutcome addPhoneNumber(const Model::AddPhoneNumberRequest &request)const; - void addPhoneNumberAsync(const Model::AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddPhoneNumberOutcomeCallable addPhoneNumberCallable(const Model::AddPhoneNumberRequest& request) const; - ListRecordingsOutcome listRecordings(const Model::ListRecordingsRequest &request)const; - void listRecordingsAsync(const Model::ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRecordingsOutcomeCallable listRecordingsCallable(const Model::ListRecordingsRequest& request) const; - GetConfigOutcome getConfig(const Model::GetConfigRequest &request)const; - void getConfigAsync(const Model::GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetConfigOutcomeCallable getConfigCallable(const Model::GetConfigRequest& request) const; - DownloadRecordingOutcome downloadRecording(const Model::DownloadRecordingRequest &request)const; - void downloadRecordingAsync(const Model::DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DownloadRecordingOutcomeCallable downloadRecordingCallable(const Model::DownloadRecordingRequest& request) const; - ListPhoneNumbersOutcome listPhoneNumbers(const Model::ListPhoneNumbersRequest &request)const; - void listPhoneNumbersAsync(const Model::ListPhoneNumbersRequest& request, const ListPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPhoneNumbersOutcomeCallable listPhoneNumbersCallable(const Model::ListPhoneNumbersRequest& request) const; - RefreshTokenOutcome refreshToken(const Model::RefreshTokenRequest &request)const; - void refreshTokenAsync(const Model::RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RefreshTokenOutcomeCallable refreshTokenCallable(const Model::RefreshTokenRequest& request) const; - RequestLoginInfoOutcome requestLoginInfo(const Model::RequestLoginInfoRequest &request)const; - void requestLoginInfoAsync(const Model::RequestLoginInfoRequest& request, const RequestLoginInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RequestLoginInfoOutcomeCallable requestLoginInfoCallable(const Model::RequestLoginInfoRequest& request) const; - GetServiceExtensionsOutcome getServiceExtensions(const Model::GetServiceExtensionsRequest &request)const; - void getServiceExtensionsAsync(const Model::GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetServiceExtensionsOutcomeCallable getServiceExtensionsCallable(const Model::GetServiceExtensionsRequest& 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; - ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; - void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const; - GetUserOutcome getUser(const Model::GetUserRequest &request)const; - void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + GetJobListOutcome getJobList(const Model::GetJobListRequest &request)const; + void getJobListAsync(const Model::GetJobListRequest& request, const GetJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobListOutcomeCallable getJobListCallable(const Model::GetJobListRequest& request) const; + ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; + void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + ListSkillGroupsOfUserOutcome listSkillGroupsOfUser(const Model::ListSkillGroupsOfUserRequest &request)const; + void listSkillGroupsOfUserAsync(const Model::ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupsOfUserOutcomeCallable listSkillGroupsOfUserCallable(const Model::ListSkillGroupsOfUserRequest& request) const; + TwoPartiesCallOutcome twoPartiesCall(const Model::TwoPartiesCallRequest &request)const; + void twoPartiesCallAsync(const Model::TwoPartiesCallRequest& request, const TwoPartiesCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TwoPartiesCallOutcomeCallable twoPartiesCallCallable(const Model::TwoPartiesCallRequest& request) const; + DeleteSurveyOutcome deleteSurvey(const Model::DeleteSurveyRequest &request)const; + void deleteSurveyAsync(const Model::DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSurveyOutcomeCallable deleteSurveyCallable(const Model::DeleteSurveyRequest& request) const; + ListPhoneNumbersOutcome listPhoneNumbers(const Model::ListPhoneNumbersRequest &request)const; + void listPhoneNumbersAsync(const Model::ListPhoneNumbersRequest& request, const ListPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhoneNumbersOutcomeCallable listPhoneNumbersCallable(const Model::ListPhoneNumbersRequest& request) const; + DownloadUnreachableContactsOutcome downloadUnreachableContacts(const Model::DownloadUnreachableContactsRequest &request)const; + void downloadUnreachableContactsAsync(const Model::DownloadUnreachableContactsRequest& request, const DownloadUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadUnreachableContactsOutcomeCallable downloadUnreachableContactsCallable(const Model::DownloadUnreachableContactsRequest& request) const; + DialogueOutcome dialogue(const Model::DialogueRequest &request)const; + void dialogueAsync(const Model::DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DialogueOutcomeCallable dialogueCallable(const Model::DialogueRequest& request) const; + RefreshTokenOutcome refreshToken(const Model::RefreshTokenRequest &request)const; + void refreshTokenAsync(const Model::RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshTokenOutcomeCallable refreshTokenCallable(const Model::RefreshTokenRequest& request) const; + CreateBatchJobsOutcome createBatchJobs(const Model::CreateBatchJobsRequest &request)const; + void createBatchJobsAsync(const Model::CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBatchJobsOutcomeCallable createBatchJobsCallable(const Model::CreateBatchJobsRequest& request) const; + RequestLoginInfoOutcome requestLoginInfo(const Model::RequestLoginInfoRequest &request)const; + void requestLoginInfoAsync(const Model::RequestLoginInfoRequest& request, const RequestLoginInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RequestLoginInfoOutcomeCallable requestLoginInfoCallable(const Model::RequestLoginInfoRequest& request) const; + GetJobTemplateDownloadParamsOutcome getJobTemplateDownloadParams(const Model::GetJobTemplateDownloadParamsRequest &request)const; + void getJobTemplateDownloadParamsAsync(const Model::GetJobTemplateDownloadParamsRequest& request, const GetJobTemplateDownloadParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobTemplateDownloadParamsOutcomeCallable getJobTemplateDownloadParamsCallable(const Model::GetJobTemplateDownloadParamsRequest& request) const; + RemoveUsersOutcome removeUsers(const Model::RemoveUsersRequest &request)const; + void removeUsersAsync(const Model::RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveUsersOutcomeCallable removeUsersCallable(const Model::RemoveUsersRequest& request) const; + CancelPredictiveJobsOutcome cancelPredictiveJobs(const Model::CancelPredictiveJobsRequest &request)const; + void cancelPredictiveJobsAsync(const Model::CancelPredictiveJobsRequest& request, const CancelPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelPredictiveJobsOutcomeCallable cancelPredictiveJobsCallable(const Model::CancelPredictiveJobsRequest& 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; + PublishSurveyOutcome publishSurvey(const Model::PublishSurveyRequest &request)const; + void publishSurveyAsync(const Model::PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishSurveyOutcomeCallable publishSurveyCallable(const Model::PublishSurveyRequest& request) const; + GetUserOutcome getUser(const Model::GetUserRequest &request)const; + void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + GetConversationListOutcome getConversationList(const Model::GetConversationListRequest &request)const; + void getConversationListAsync(const Model::GetConversationListRequest& request, const GetConversationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConversationListOutcomeCallable getConversationListCallable(const Model::GetConversationListRequest& request) const; + ListUsersOfSkillGroupOutcome listUsersOfSkillGroup(const Model::ListUsersOfSkillGroupRequest &request)const; + void listUsersOfSkillGroupAsync(const Model::ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersOfSkillGroupOutcomeCallable listUsersOfSkillGroupCallable(const Model::ListUsersOfSkillGroupRequest& request) const; + ListJobsByGroupOutcome listJobsByGroup(const Model::ListJobsByGroupRequest &request)const; + void listJobsByGroupAsync(const Model::ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobsByGroupOutcomeCallable listJobsByGroupCallable(const Model::ListJobsByGroupRequest& request) const; + ListPredictiveJobStatusOutcome listPredictiveJobStatus(const Model::ListPredictiveJobStatusRequest &request)const; + void listPredictiveJobStatusAsync(const Model::ListPredictiveJobStatusRequest& request, const ListPredictiveJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPredictiveJobStatusOutcomeCallable listPredictiveJobStatusCallable(const Model::ListPredictiveJobStatusRequest& request) const; + ListJobGroupsOutcome listJobGroups(const Model::ListJobGroupsRequest &request)const; + void listJobGroupsAsync(const Model::ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobGroupsOutcomeCallable listJobGroupsCallable(const Model::ListJobGroupsRequest& request) const; + ListCallDetailRecordsOutcome listCallDetailRecords(const Model::ListCallDetailRecordsRequest &request)const; + void listCallDetailRecordsAsync(const Model::ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCallDetailRecordsOutcomeCallable listCallDetailRecordsCallable(const Model::ListCallDetailRecordsRequest& request) const; + AddPhoneNumberOutcome addPhoneNumber(const Model::AddPhoneNumberRequest &request)const; + void addPhoneNumberAsync(const Model::AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPhoneNumberOutcomeCallable addPhoneNumberCallable(const Model::AddPhoneNumberRequest& request) const; + ListRecordingsOutcome listRecordings(const Model::ListRecordingsRequest &request)const; + void listRecordingsAsync(const Model::ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecordingsOutcomeCallable listRecordingsCallable(const Model::ListRecordingsRequest& request) const; + EncryptOutcome encrypt(const Model::EncryptRequest &request)const; + void encryptAsync(const Model::EncryptRequest& request, const EncryptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EncryptOutcomeCallable encryptCallable(const Model::EncryptRequest& request) const; + SubmitBatchJobsOutcome submitBatchJobs(const Model::SubmitBatchJobsRequest &request)const; + void submitBatchJobsAsync(const Model::SubmitBatchJobsRequest& request, const SubmitBatchJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitBatchJobsOutcomeCallable submitBatchJobsCallable(const Model::SubmitBatchJobsRequest& request) const; + ListSurveysOutcome listSurveys(const Model::ListSurveysRequest &request)const; + void listSurveysAsync(const Model::ListSurveysRequest& request, const ListSurveysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSurveysOutcomeCallable listSurveysCallable(const Model::ListSurveysRequest& request) const; + GetJobDataUploadParamsOutcome getJobDataUploadParams(const Model::GetJobDataUploadParamsRequest &request)const; + void getJobDataUploadParamsAsync(const Model::GetJobDataUploadParamsRequest& request, const GetJobDataUploadParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobDataUploadParamsOutcomeCallable getJobDataUploadParamsCallable(const Model::GetJobDataUploadParamsRequest& request) const; + ListBasicStatisticsReportSubItemsOutcome listBasicStatisticsReportSubItems(const Model::ListBasicStatisticsReportSubItemsRequest &request)const; + void listBasicStatisticsReportSubItemsAsync(const Model::ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBasicStatisticsReportSubItemsOutcomeCallable listBasicStatisticsReportSubItemsCallable(const Model::ListBasicStatisticsReportSubItemsRequest& request) const; + SuspendJobsOutcome suspendJobs(const Model::SuspendJobsRequest &request)const; + void suspendJobsAsync(const Model::SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SuspendJobsOutcomeCallable suspendJobsCallable(const Model::SuspendJobsRequest& request) const; + GetJobGroupOutcome getJobGroup(const Model::GetJobGroupRequest &request)const; + void getJobGroupAsync(const Model::GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobGroupOutcomeCallable getJobGroupCallable(const Model::GetJobGroupRequest& request) const; + GetJobStatusByCallIdOutcome getJobStatusByCallId(const Model::GetJobStatusByCallIdRequest &request)const; + void getJobStatusByCallIdAsync(const Model::GetJobStatusByCallIdRequest& request, const GetJobStatusByCallIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobStatusByCallIdOutcomeCallable getJobStatusByCallIdCallable(const Model::GetJobStatusByCallIdRequest& request) const; + ListUnreachableContactsOutcome listUnreachableContacts(const Model::ListUnreachableContactsRequest &request)const; + void listUnreachableContactsAsync(const Model::ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUnreachableContactsOutcomeCallable listUnreachableContactsCallable(const Model::ListUnreachableContactsRequest& 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; + GetConversationDetailByContactIdOutcome getConversationDetailByContactId(const Model::GetConversationDetailByContactIdRequest &request)const; + void getConversationDetailByContactIdAsync(const Model::GetConversationDetailByContactIdRequest& request, const GetConversationDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConversationDetailByContactIdOutcomeCallable getConversationDetailByContactIdCallable(const Model::GetConversationDetailByContactIdRequest& request) const; + ListRecordingsByContactIdOutcome listRecordingsByContactId(const Model::ListRecordingsByContactIdRequest &request)const; + void listRecordingsByContactIdAsync(const Model::ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecordingsByContactIdOutcomeCallable listRecordingsByContactIdCallable(const Model::ListRecordingsByContactIdRequest& request) const; + LaunchAppraiseOutcome launchAppraise(const Model::LaunchAppraiseRequest &request)const; + void launchAppraiseAsync(const Model::LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LaunchAppraiseOutcomeCallable launchAppraiseCallable(const Model::LaunchAppraiseRequest& 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; + 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; + ListSkillGroupsOutcome listSkillGroups(const Model::ListSkillGroupsRequest &request)const; + void listSkillGroupsAsync(const Model::ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupsOutcomeCallable listSkillGroupsCallable(const Model::ListSkillGroupsRequest& request) const; + CreateScenarioOutcome createScenario(const Model::CreateScenarioRequest &request)const; + void createScenarioAsync(const Model::CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScenarioOutcomeCallable createScenarioCallable(const Model::CreateScenarioRequest& request) const; + RemovePhoneNumberOutcome removePhoneNumber(const Model::RemovePhoneNumberRequest &request)const; + void removePhoneNumberAsync(const Model::RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemovePhoneNumberOutcomeCallable removePhoneNumberCallable(const Model::RemovePhoneNumberRequest& request) const; + PickLocalNumberOutcome pickLocalNumber(const Model::PickLocalNumberRequest &request)const; + void pickLocalNumberAsync(const Model::PickLocalNumberRequest& request, const PickLocalNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PickLocalNumberOutcomeCallable pickLocalNumberCallable(const Model::PickLocalNumberRequest& request) const; + GetJobOutcome getJob(const Model::GetJobRequest &request)const; + void getJobAsync(const Model::GetJobRequest& request, const GetJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobOutcomeCallable getJobCallable(const Model::GetJobRequest& request) const; + StartJobOutcome startJob(const Model::StartJobRequest &request)const; + void startJobAsync(const Model::StartJobRequest& request, const StartJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartJobOutcomeCallable startJobCallable(const Model::StartJobRequest& request) const; + CancelJobsOutcome cancelJobs(const Model::CancelJobsRequest &request)const; + void cancelJobsAsync(const Model::CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelJobsOutcomeCallable cancelJobsCallable(const Model::CancelJobsRequest& request) const; + GetConfigOutcome getConfig(const Model::GetConfigRequest &request)const; + void getConfigAsync(const Model::GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigOutcomeCallable getConfigCallable(const Model::GetConfigRequest& request) const; + DownloadRecordingOutcome downloadRecording(const Model::DownloadRecordingRequest &request)const; + void downloadRecordingAsync(const Model::DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadRecordingOutcomeCallable downloadRecordingCallable(const Model::DownloadRecordingRequest& request) const; + GenerateAgentStatisticReportOutcome generateAgentStatisticReport(const Model::GenerateAgentStatisticReportRequest &request)const; + void generateAgentStatisticReportAsync(const Model::GenerateAgentStatisticReportRequest& request, const GenerateAgentStatisticReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateAgentStatisticReportOutcomeCallable generateAgentStatisticReportCallable(const Model::GenerateAgentStatisticReportRequest& request) const; + CreateScenarioFromTemplateOutcome createScenarioFromTemplate(const Model::CreateScenarioFromTemplateRequest &request)const; + void createScenarioFromTemplateAsync(const Model::CreateScenarioFromTemplateRequest& request, const CreateScenarioFromTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScenarioFromTemplateOutcomeCallable createScenarioFromTemplateCallable(const Model::CreateScenarioFromTemplateRequest& request) const; + CreateJobGroupOutcome createJobGroup(const Model::CreateJobGroupRequest &request)const; + void createJobGroupAsync(const Model::CreateJobGroupRequest& request, const CreateJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobGroupOutcomeCallable createJobGroupCallable(const Model::CreateJobGroupRequest& request) const; + GetTaskListOutcome getTaskList(const Model::GetTaskListRequest &request)const; + void getTaskListAsync(const Model::GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskListOutcomeCallable getTaskListCallable(const Model::GetTaskListRequest& request) const; + DownloadOriginalStatisticsReportOutcome downloadOriginalStatisticsReport(const Model::DownloadOriginalStatisticsReportRequest &request)const; + void downloadOriginalStatisticsReportAsync(const Model::DownloadOriginalStatisticsReportRequest& request, const DownloadOriginalStatisticsReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadOriginalStatisticsReportOutcomeCallable downloadOriginalStatisticsReportCallable(const Model::DownloadOriginalStatisticsReportRequest& request) const; + ListScenarioTemplatesOutcome listScenarioTemplates(const Model::ListScenarioTemplatesRequest &request)const; + void listScenarioTemplatesAsync(const Model::ListScenarioTemplatesRequest& request, const ListScenarioTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScenarioTemplatesOutcomeCallable listScenarioTemplatesCallable(const Model::ListScenarioTemplatesRequest& request) const; + ResumeJobsOutcome resumeJobs(const Model::ResumeJobsRequest &request)const; + void resumeJobsAsync(const Model::ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeJobsOutcomeCallable resumeJobsCallable(const Model::ResumeJobsRequest& request) const; + AssignUsersOutcome assignUsers(const Model::AssignUsersRequest &request)const; + void assignUsersAsync(const Model::AssignUsersRequest& request, const AssignUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssignUsersOutcomeCallable assignUsersCallable(const Model::AssignUsersRequest& request) const; + GetSurveyOutcome getSurvey(const Model::GetSurveyRequest &request)const; + void getSurveyAsync(const Model::GetSurveyRequest& request, const GetSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSurveyOutcomeCallable getSurveyCallable(const Model::GetSurveyRequest& request) const; + ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; + void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const; + ListConfigOutcome listConfig(const Model::ListConfigRequest &request)const; + void listConfigAsync(const Model::ListConfigRequest& request, const ListConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigOutcomeCallable listConfigCallable(const Model::ListConfigRequest& 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; + ListScenariosOutcome listScenarios(const Model::ListScenariosRequest &request)const; + void listScenariosAsync(const Model::ListScenariosRequest& request, const ListScenariosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScenariosOutcomeCallable listScenariosCallable(const Model::ListScenariosRequest& request) const; + ListRealTimeAgentOutcome listRealTimeAgent(const Model::ListRealTimeAgentRequest &request)const; + void listRealTimeAgentAsync(const Model::ListRealTimeAgentRequest& request, const ListRealTimeAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRealTimeAgentOutcomeCallable listRealTimeAgentCallable(const Model::ListRealTimeAgentRequest& request) const; + AssignJobsOutcome assignJobs(const Model::AssignJobsRequest &request)const; + void assignJobsAsync(const Model::AssignJobsRequest& request, const AssignJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssignJobsOutcomeCallable assignJobsCallable(const Model::AssignJobsRequest& 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; + ListPrivilegesOfUserOutcome listPrivilegesOfUser(const Model::ListPrivilegesOfUserRequest &request)const; + void listPrivilegesOfUserAsync(const Model::ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPrivilegesOfUserOutcomeCallable listPrivilegesOfUserCallable(const Model::ListPrivilegesOfUserRequest& request) const; + GetNumberRegionInfoOutcome getNumberRegionInfo(const Model::GetNumberRegionInfoRequest &request)const; + void getNumberRegionInfoAsync(const Model::GetNumberRegionInfoRequest& request, const GetNumberRegionInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNumberRegionInfoOutcomeCallable getNumberRegionInfoCallable(const Model::GetNumberRegionInfoRequest& request) const; + GetScenarioOutcome getScenario(const Model::GetScenarioRequest &request)const; + void getScenarioAsync(const Model::GetScenarioRequest& request, const GetScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetScenarioOutcomeCallable getScenarioCallable(const Model::GetScenarioRequest& request) const; + CreatePredictiveJobsOutcome createPredictiveJobs(const Model::CreatePredictiveJobsRequest &request)const; + void createPredictiveJobsAsync(const Model::CreatePredictiveJobsRequest& request, const CreatePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePredictiveJobsOutcomeCallable createPredictiveJobsCallable(const Model::CreatePredictiveJobsRequest& request) const; + GetAgentDataOutcome getAgentData(const Model::GetAgentDataRequest &request)const; + void getAgentDataAsync(const Model::GetAgentDataRequest& request, const GetAgentDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAgentDataOutcomeCallable getAgentDataCallable(const Model::GetAgentDataRequest& request) const; + CreateSurveyOutcome createSurvey(const Model::CreateSurveyRequest &request)const; + void createSurveyAsync(const Model::CreateSurveyRequest& request, const CreateSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSurveyOutcomeCallable createSurveyCallable(const Model::CreateSurveyRequest& request) const; + ListJobStatusOutcome listJobStatus(const Model::ListJobStatusRequest &request)const; + void listJobStatusAsync(const Model::ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobStatusOutcomeCallable listJobStatusCallable(const Model::ListJobStatusRequest& request) const; + ModifySurveyOutcome modifySurvey(const Model::ModifySurveyRequest &request)const; + void modifySurveyAsync(const Model::ModifySurveyRequest& request, const ModifySurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySurveyOutcomeCallable modifySurveyCallable(const Model::ModifySurveyRequest& request) const; + ModifyScenarioOutcome modifyScenario(const Model::ModifyScenarioRequest &request)const; + void modifyScenarioAsync(const Model::ModifyScenarioRequest& request, const ModifyScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyScenarioOutcomeCallable modifyScenarioCallable(const Model::ModifyScenarioRequest& 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; + GetServiceExtensionsOutcome getServiceExtensions(const Model::GetServiceExtensionsRequest &request)const; + void getServiceExtensionsAsync(const Model::GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceExtensionsOutcomeCallable getServiceExtensionsCallable(const Model::GetServiceExtensionsRequest& 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; + DeleteJobGroupOutcome deleteJobGroup(const Model::DeleteJobGroupRequest &request)const; + void deleteJobGroupAsync(const Model::DeleteJobGroupRequest& request, const DeleteJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteJobGroupOutcomeCallable deleteJobGroupCallable(const Model::DeleteJobGroupRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h index 82e349d40..5d4a3a7c2 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h @@ -32,46 +32,46 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberResult : public ServiceResult { public: - struct PhoneNumber - { - struct ContactFlow - { - std::string type; - std::string contactFlowId; - std::string instanceId; - std::string contactFlowName; - std::string contactFlowDescription; - }; - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; - std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::vector contactFlow; - std::string phoneNumberDescription; - }; + struct PhoneNumber + { + struct ContactFlow + { + std::string type; + std::string contactFlowId; + std::string instanceId; + std::string contactFlowName; + std::string contactFlowDescription; + }; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + ContactFlow contactFlow; + std::string phoneNumberDescription; + }; AddPhoneNumberResult(); explicit AddPhoneNumberResult(const std::string &payload); ~AddPhoneNumberResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getPhoneNumber()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + PhoneNumber getPhoneNumber()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector phoneNumber_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + PhoneNumber phoneNumber_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h b/ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h new file mode 100644 index 000000000..b146391fe --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AssignJobsRequest.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_ASSIGNJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AssignJobsRequest : public RpcServiceRequest + { + + public: + AssignJobsRequest(); + ~AssignJobsRequest(); + + std::vector getCallingNumber()const; + void setCallingNumber(const std::vector& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getStrategyJson()const; + void setStrategyJson(const std::string& strategyJson); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + std::vector getJobsJson()const; + void setJobsJson(const std::vector& jobsJson); + + private: + std::vector callingNumber_; + std::string instanceId_; + std::string groupId_; + std::string strategyJson_; + std::string scenarioId_; + std::vector jobsJson_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AssignJobsResult.h b/ccc/include/alibabacloud/ccc/model/AssignJobsResult.h new file mode 100644 index 000000000..c6deb0518 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AssignJobsResult.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_ASSIGNJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AssignJobsResult : public ServiceResult + { + public: + + + AssignJobsResult(); + explicit AssignJobsResult(const std::string &payload); + ~AssignJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h b/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h new file mode 100644 index 000000000..6750e3bbb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.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_ASSIGNUSERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AssignUsersRequest : public RpcServiceRequest + { + + public: + AssignUsersRequest(); + ~AssignUsersRequest(); + + std::vector getUserRamId()const; + void setUserRamId(const std::vector& userRamId); + std::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector userRamId_; + std::vector skillLevel_; + std::string instanceId_; + std::vector roleId_; + std::vector skillGroupId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h b/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h new file mode 100644 index 000000000..a49f3f8fa --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AssignUsersResult.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_ASSIGNUSERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AssignUsersResult : public ServiceResult + { + public: + + + AssignUsersResult(); + explicit AssignUsersResult(const std::string &payload); + ~AssignUsersResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h b/ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h new file mode 100644 index 000000000..379aaa2bc --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CancelJobsRequest.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_CANCELJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CANCELJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CancelJobsRequest : public RpcServiceRequest + { + + public: + CancelJobsRequest(); + ~CancelJobsRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getJobId()const; + void setJobId(const std::vector& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getJobReferenceId()const; + void setJobReferenceId(const std::vector& jobReferenceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + bool all_; + std::vector jobId_; + std::string instanceId_; + std::vector jobReferenceId_; + std::string groupId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CANCELJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CancelJobsResult.h b/ccc/include/alibabacloud/ccc/model/CancelJobsResult.h new file mode 100644 index 000000000..0ab2e9b41 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CancelJobsResult.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_CANCELJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CANCELJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CancelJobsResult : public ServiceResult + { + public: + + + CancelJobsResult(); + explicit CancelJobsResult(const std::string &payload); + ~CancelJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CANCELJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CancelPredictiveJobsRequest.h b/ccc/include/alibabacloud/ccc/model/CancelPredictiveJobsRequest.h new file mode 100644 index 000000000..2032184e1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CancelPredictiveJobsRequest.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_CANCELPREDICTIVEJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CancelPredictiveJobsRequest : public RpcServiceRequest + { + + public: + CancelPredictiveJobsRequest(); + ~CancelPredictiveJobsRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getJobId()const; + void setJobId(const std::vector& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + bool all_; + std::vector jobId_; + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CancelPredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/CancelPredictiveJobsResult.h new file mode 100644 index 000000000..94ceeb3fd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CancelPredictiveJobsResult.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_CANCELPREDICTIVEJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CancelPredictiveJobsResult : public ServiceResult + { + public: + + + CancelPredictiveJobsResult(); + explicit CancelPredictiveJobsResult(const std::string &payload); + ~CancelPredictiveJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.h b/ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.h new file mode 100644 index 000000000..7b510372f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.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_CREATEBATCHJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateBatchJobsRequest : public RpcServiceRequest + { + + public: + CreateBatchJobsRequest(); + ~CreateBatchJobsRequest(); + + std::vector getCallingNumber()const; + void setCallingNumber(const std::vector& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getSubmitted()const; + void setSubmitted(bool submitted); + std::string getStrategyJson()const; + void setStrategyJson(const std::string& strategyJson); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + std::string getJobFilePath()const; + void setJobFilePath(const std::string& jobFilePath); + + private: + std::vector callingNumber_; + std::string instanceId_; + bool submitted_; + std::string strategyJson_; + std::string name_; + std::string description_; + std::string scenarioId_; + std::string jobFilePath_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h b/ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h new file mode 100644 index 000000000..0dde4707d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateBatchJobsResult : public ServiceResult + { + public: + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + std::string jobGroupId; + std::string scenarioId; + std::string jobGroupName; + long creationTime; + Strategy strategy; + std::string jobFilePath; + std::string jobGroupDescription; + std::vector callingNumbers; + }; + + + CreateBatchJobsResult(); + explicit CreateBatchJobsResult(const std::string &payload); + ~CreateBatchJobsResult(); + JobGroup getJobGroup()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + JobGroup jobGroup_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h new file mode 100644 index 000000000..193ea02f0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.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_CREATEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateJobGroupRequest : public RpcServiceRequest + { + + public: + CreateJobGroupRequest(); + ~CreateJobGroupRequest(); + + std::vector getCallingNumber()const; + void setCallingNumber(const std::vector& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getStrategyJson()const; + void setStrategyJson(const std::string& strategyJson); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::vector callingNumber_; + std::string instanceId_; + std::string strategyJson_; + std::string name_; + std::string description_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h new file mode 100644 index 000000000..6165cda67 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateJobGroupResult : public ServiceResult + { + public: + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string from; + std::string to; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + std::string jobGroupId; + std::string scenarioId; + std::string jobGroupName; + long creationTime; + Strategy strategy; + std::string jobFilePath; + std::string jobGroupDescription; + std::vector callingNumbers; + }; + + + CreateJobGroupResult(); + explicit CreateJobGroupResult(const std::string &payload); + ~CreateJobGroupResult(); + JobGroup getJobGroup()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + JobGroup jobGroup_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.h b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.h new file mode 100644 index 000000000..3a5e01379 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.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_CREATEPREDICTIVEJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobsRequest : public RpcServiceRequest + { + + public: + CreatePredictiveJobsRequest(); + ~CreatePredictiveJobsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getStrategyJson()const; + void setStrategyJson(const std::string& strategyJson); + std::vector getJobsJson()const; + void setJobsJson(const std::vector& jobsJson); + + private: + std::string instanceId_; + std::string skillGroupId_; + std::string strategyJson_; + std::vector jobsJson_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobsResult.h new file mode 100644 index 000000000..ff9b24869 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobsResult.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_CREATEPREDICTIVEJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobsResult : public ServiceResult + { + public: + + + CreatePredictiveJobsResult(); + explicit CreatePredictiveJobsResult(const std::string &payload); + ~CreatePredictiveJobsResult(); + std::string getJobGroupId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobGroupId_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h b/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h new file mode 100644 index 000000000..79b9870e2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.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_CREATESCENARIOFROMTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateScenarioFromTemplateRequest : public RpcServiceRequest + { + + public: + CreateScenarioFromTemplateRequest(); + ~CreateScenarioFromTemplateRequest(); + + std::string getVariables()const; + void setVariables(const std::string& variables); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getTemplateId()const; + void setTemplateId(const std::string& templateId); + + private: + std::string variables_; + std::string instanceId_; + std::string name_; + std::string description_; + std::string templateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h b/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h new file mode 100644 index 000000000..28076f68a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.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_CREATESCENARIOFROMTEMPLATERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateScenarioFromTemplateResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string surveyId; + std::string beebotId; + std::string surveyName; + std::string surveyDescription; + std::vector intents; + int round; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string scenarioId; + std::string scenarioDescription; + Strategy strategy; + std::string scenarioName; + }; + + + CreateScenarioFromTemplateResult(); + explicit CreateScenarioFromTemplateResult(const std::string &payload); + ~CreateScenarioFromTemplateResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + Scenario getScenario()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + Scenario scenario_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h b/ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h new file mode 100644 index 000000000..ab1093cc1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.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_CREATESCENARIOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateScenarioRequest : public RpcServiceRequest + { + + public: + CreateScenarioRequest(); + ~CreateScenarioRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getSurveysJson()const; + void setSurveysJson(const std::vector& surveysJson); + std::string getStrategyJson()const; + void setStrategyJson(const std::string& strategyJson); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string instanceId_; + std::vector surveysJson_; + std::string strategyJson_; + std::string name_; + std::string description_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateScenarioResult.h b/ccc/include/alibabacloud/ccc/model/CreateScenarioResult.h new file mode 100644 index 000000000..c59439b2b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateScenarioResult.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_CREATESCENARIORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateScenarioResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string surveyId; + std::string beebotId; + std::string surveyName; + std::string surveyDescription; + std::vector intents; + int round; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string scenarioId; + std::string scenarioDescription; + Strategy strategy; + std::string scenarioName; + }; + + + CreateScenarioResult(); + explicit CreateScenarioResult(const std::string &payload); + ~CreateScenarioResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + Scenario getScenario()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + Scenario scenario_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIORESULT_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..0902b0dd6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h @@ -0,0 +1,66 @@ +/* + * 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::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getOutboundPhoneNumberId()const; + void setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::vector getUserId()const; + void setUserId(const std::vector& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector skillLevel_; + std::string instanceId_; + std::vector outboundPhoneNumberId_; + std::string name_; + std::string description_; + std::vector userId_; + std::string accessKeyId_; + + }; + } + } +} +#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..c594714e9 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.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_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: + + + CreateSkillGroupResult(); + explicit CreateSkillGroupResult(const std::string &payload); + ~CreateSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getSkillGroupId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string skillGroupId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h new file mode 100644 index 000000000..94d23ced5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.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_CREATESURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateSurveyRequest : public RpcServiceRequest + { + + public: + CreateSurveyRequest(); + ~CreateSurveyRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRole()const; + void setRole(const std::string& role); + int getRound()const; + void setRound(int round); + std::string getFlowJson()const; + void setFlowJson(const std::string& flowJson); + std::string getName()const; + void setName(const std::string& name); + std::string getGlobalQuestions()const; + void setGlobalQuestions(const std::string& globalQuestions); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCorpora()const; + void setCorpora(const std::string& corpora); + std::string getSpeechOptimizationParam()const; + void setSpeechOptimizationParam(const std::string& speechOptimizationParam); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string instanceId_; + std::string role_; + int round_; + std::string flowJson_; + std::string name_; + std::string globalQuestions_; + std::string description_; + std::string corpora_; + std::string speechOptimizationParam_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h b/ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h new file mode 100644 index 000000000..31300b817 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateSurveyResult : public ServiceResult + { + public: + struct Survey + { + struct Flow + { + std::string flowId; + bool isPublished; + std::string flowJson; + }; + struct AsrCustomModel + { + int customModelStatus; + std::string corpora; + }; + std::string role; + std::string description; + std::string hotWords; + AsrCustomModel asrCustomModel; + int round; + std::string speechOptimizationParam; + std::string id; + std::string globalQuestions; + Flow flow; + std::string scenarioUuid; + std::string name; + }; + + + CreateSurveyResult(); + explicit CreateSurveyResult(const std::string &payload); + ~CreateSurveyResult(); + Survey getSurvey()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Survey survey_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESURVEYRESULT_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..3244e2977 --- /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::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getLoginName()const; + void setLoginName(const std::string& loginName); + std::string getPhone()const; + void setPhone(const std::string& phone); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + std::string getEmail()const; + void setEmail(const std::string& email); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector skillLevel_; + std::string instanceId_; + std::string loginName_; + std::string phone_; + std::vector roleId_; + std::string displayName_; + std::vector skillGroupId_; + std::string email_; + std::string accessKeyId_; + + }; + } + } +} +#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..0117738a0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateUserResult.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_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: + + + CreateUserResult(); + explicit CreateUserResult(const std::string &payload); + ~CreateUserResult(); + std::string getMessage()const; + std::string getUserId()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string userId_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h new file mode 100644 index 000000000..81318e551 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.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_DELETEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteJobGroupRequest : public RpcServiceRequest + { + + public: + DeleteJobGroupRequest(); + ~DeleteJobGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h new file mode 100644 index 000000000..91d39927d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.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_DELETEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteJobGroupResult : public ServiceResult + { + public: + + + DeleteJobGroupResult(); + explicit DeleteJobGroupResult(const std::string &payload); + ~DeleteJobGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPRESULT_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 index b2c23e8f9..a1223b3c2 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h @@ -37,18 +37,18 @@ namespace AlibabaCloud DeleteSkillGroupResult(); explicit DeleteSkillGroupResult(const std::string &payload); ~DeleteSkillGroupResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h new file mode 100644 index 000000000..051dd88bd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.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_DELETESURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteSurveyRequest : public RpcServiceRequest + { + + public: + DeleteSurveyRequest(); + ~DeleteSurveyRequest(); + + std::string getSurveyId()const; + void setSurveyId(const std::string& surveyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string surveyId_; + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h b/ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h new file mode 100644 index 000000000..924f9f70c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.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_DELETESURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETESURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteSurveyResult : public ServiceResult + { + public: + + + DeleteSurveyResult(); + explicit DeleteSurveyResult(const std::string &payload); + ~DeleteSurveyResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETESURVEYRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DialogueRequest.h b/ccc/include/alibabacloud/ccc/model/DialogueRequest.h new file mode 100644 index 000000000..6ae1f0364 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DialogueRequest.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_DIALOGUEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DIALOGUEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DialogueRequest : public RpcServiceRequest + { + + public: + DialogueRequest(); + ~DialogueRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + std::string getActionParams()const; + void setActionParams(const std::string& actionParams); + std::string getCallType()const; + void setCallType(const std::string& callType); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getUtterance()const; + void setUtterance(const std::string& utterance); + + private: + std::string callId_; + std::string callingNumber_; + std::string instanceId_; + std::string calledNumber_; + std::string actionParams_; + std::string callType_; + std::string scenarioId_; + std::string taskId_; + std::string utterance_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DIALOGUEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DialogueResult.h b/ccc/include/alibabacloud/ccc/model/DialogueResult.h new file mode 100644 index 000000000..be088cd22 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DialogueResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DIALOGUERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DIALOGUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DialogueResult : public ServiceResult + { + public: + struct Feedback + { + std::string action; + std::string content; + std::string actionParams; + }; + + + DialogueResult(); + explicit DialogueResult(const std::string &payload); + ~DialogueResult(); + std::string getMessage()const; + Feedback getFeedback()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Feedback feedback_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DIALOGUERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h new file mode 100644 index 000000000..69c116d1d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.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_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadOriginalStatisticsReportRequest : public RpcServiceRequest + { + + public: + DownloadOriginalStatisticsReportRequest(); + ~DownloadOriginalStatisticsReportRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h b/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h new file mode 100644 index 000000000..f77d2836e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.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_DOWNLOADORIGINALSTATISTICSREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadOriginalStatisticsReportResult : public ServiceResult + { + public: + struct DownloadParams + { + std::string signatureUrl; + }; + + + DownloadOriginalStatisticsReportResult(); + explicit DownloadOriginalStatisticsReportResult(const std::string &payload); + ~DownloadOriginalStatisticsReportResult(); + DownloadParams getDownloadParams()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DownloadParams downloadParams_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h b/ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h index 7731ef293..4e1bfac5c 100644 --- a/ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h +++ b/ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h @@ -32,30 +32,30 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT DownloadRecordingResult : public ServiceResult { public: - struct MediaDownloadParam - { - std::string fileName; - std::string signatureUrl; - }; + struct MediaDownloadParam + { + std::string fileName; + std::string signatureUrl; + }; DownloadRecordingResult(); explicit DownloadRecordingResult(const std::string &payload); ~DownloadRecordingResult(); - std::vector getMediaDownloadParam()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + MediaDownloadParam getMediaDownloadParam()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector mediaDownloadParam_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; + MediaDownloadParam mediaDownloadParam_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h new file mode 100644 index 000000000..2c3cae1fd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.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_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadUnreachableContactsRequest : public RpcServiceRequest + { + + public: + DownloadUnreachableContactsRequest(); + ~DownloadUnreachableContactsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h new file mode 100644 index 000000000..3fa3e3f01 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.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_DOWNLOADUNREACHABLECONTACTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadUnreachableContactsResult : public ServiceResult + { + public: + struct DownloadParams + { + std::string signatureUrl; + }; + + + DownloadUnreachableContactsResult(); + explicit DownloadUnreachableContactsResult(const std::string &payload); + ~DownloadUnreachableContactsResult(); + DownloadParams getDownloadParams()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DownloadParams downloadParams_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/EncryptRequest.h b/ccc/include/alibabacloud/ccc/model/EncryptRequest.h new file mode 100644 index 000000000..ce5440f79 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/EncryptRequest.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_ENCRYPTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ENCRYPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT EncryptRequest : public RpcServiceRequest + { + + public: + EncryptRequest(); + ~EncryptRequest(); + + std::string getPublicKey()const; + void setPublicKey(const std::string& publicKey); + std::vector getPlainText()const; + void setPlainText(const std::vector& plainText); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string publicKey_; + std::vector plainText_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ENCRYPTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/EncryptResult.h b/ccc/include/alibabacloud/ccc/model/EncryptResult.h new file mode 100644 index 000000000..0e304db46 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/EncryptResult.h @@ -0,0 +1,66 @@ +/* + * 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_ENCRYPTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ENCRYPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT EncryptResult : public ServiceResult + { + public: + struct CypherContent + { + std::string plainText; + std::string cypherText; + }; + + + EncryptResult(); + explicit EncryptResult(const std::string &payload); + ~EncryptResult(); + std::vector getCypherContents()const; + std::string getMessage()const; + std::string getPublicKey()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector cypherContents_; + std::string message_; + std::string publicKey_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ENCRYPTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h b/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h new file mode 100644 index 000000000..0fa5cfa6f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h @@ -0,0 +1,66 @@ +/* + * 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_GENERATEAGENTSTATISTICREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GenerateAgentStatisticReportRequest : public RpcServiceRequest + { + + public: + GenerateAgentStatisticReportRequest(); + ~GenerateAgentStatisticReportRequest(); + + std::string getAgentId()const; + void setAgentId(const std::string& agentId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getEndDate()const; + void setEndDate(const std::string& endDate); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string agentId_; + std::string instanceId_; + std::string endDate_; + int pageSize_; + std::string startDate_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h b/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h new file mode 100644 index 000000000..816ed065a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h @@ -0,0 +1,144 @@ +/* + * 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_GENERATEAGENTSTATISTICREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GenerateAgentStatisticReportResult : public ServiceResult + { + public: + struct DataList + { + struct GenerateAgentStatistic + { + struct Inbound + { + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsHandled; + long satisfactionSurveysResponded; + long totalRingTime; + float handleRate; + long totalTalkTime; + long averageRingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long totalTalkTime; + long callsDialed; + long totalDialingTime1; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + float answerRate; + }; + struct Overall + { + long totalCalls; + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + }; + long totalReadyTime; + Overall overall; + std::string loginName; + std::string skillGroupIds; + long totalBreakTime; + std::string instanceId; + std::string recordDate; + Inbound inbound; + Outbound outbound; + long averageReadyTime; + std::string skillGroupNames; + long totalLoggedInTime; + std::string agentId; + std::string agentName; + long maxReadyTime; + float occupancyRate; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GenerateAgentStatisticReportResult(); + explicit GenerateAgentStatisticReportResult(const std::string &payload); + ~GenerateAgentStatisticReportResult(); + DataList getDataList()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DataList dataList_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h b/ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h new file mode 100644 index 000000000..8829586ee --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h @@ -0,0 +1,66 @@ +/* + * 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_GETAGENTDATAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetAgentDataRequest : public RpcServiceRequest + { + + public: + GetAgentDataRequest(); + ~GetAgentDataRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getStartDay()const; + void setStartDay(const std::string& startDay); + std::string getEndDay()const; + void setEndDay(const std::string& endDay); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string startDay_; + std::string endDay_; + int pageSize_; + std::string userId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h b/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h new file mode 100644 index 000000000..19129dc0d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h @@ -0,0 +1,144 @@ +/* + * 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_GETAGENTDATARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetAgentDataResult : public ServiceResult + { + public: + struct DataList + { + struct GenerateAgentStatistic + { + struct Inbound + { + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsHandled; + long satisfactionSurveysResponded; + long totalRingTime; + float handleRate; + long totalTalkTime; + long averageRingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long totalTalkTime; + long callsDialed; + long totalDialingTime1; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + float answerRate; + }; + struct Overall + { + long totalCalls; + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + }; + long totalReadyTime; + Overall overall; + std::string loginName; + std::string skillGroupIds; + long totalBreakTime; + std::string instanceId; + std::string recordDate; + Inbound inbound; + Outbound outbound; + long averageReadyTime; + std::string skillGroupNames; + long totalLoggedInTime; + std::string agentId; + std::string agentName; + long maxReadyTime; + float occupancyRate; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetAgentDataResult(); + explicit GetAgentDataResult(const std::string &payload); + ~GetAgentDataResult(); + DataList getDataList()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DataList dataList_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConfigResult.h b/ccc/include/alibabacloud/ccc/model/GetConfigResult.h index 7a20407de..881af8071 100644 --- a/ccc/include/alibabacloud/ccc/model/GetConfigResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetConfigResult.h @@ -32,30 +32,30 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT GetConfigResult : public ServiceResult { public: - struct ConfigItem - { - std::string value; - std::string name; - }; + struct ConfigItem + { + std::string value; + std::string name; + }; GetConfigResult(); explicit GetConfigResult(const std::string &payload); ~GetConfigResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getConfigItem()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + ConfigItem getConfigItem()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector configItem_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + ConfigItem configItem_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h new file mode 100644 index 000000000..3b21aebc1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.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_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetConversationDetailByContactIdRequest : public RpcServiceRequest + { + + public: + GetConversationDetailByContactIdRequest(); + ~GetConversationDetailByContactIdRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactId()const; + void setContactId(const std::string& contactId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string contactId_; + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h new file mode 100644 index 000000000..04b5551e8 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h @@ -0,0 +1,74 @@ +/* + * 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_GETCONVERSATIONDETAILBYCONTACTIDRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetConversationDetailByContactIdResult : public ServiceResult + { + public: + struct DataList + { + struct QualityCheckPhrase + { + std::string role; + std::string words; + long begin; + long end; + std::string identity; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetConversationDetailByContactIdResult(); + explicit GetConversationDetailByContactIdResult(const std::string &payload); + ~GetConversationDetailByContactIdResult(); + DataList getDataList()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DataList dataList_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationListRequest.h b/ccc/include/alibabacloud/ccc/model/GetConversationListRequest.h new file mode 100644 index 000000000..eab0b3ff3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetConversationListRequest.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_GETCONVERSATIONLISTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetConversationListRequest : public RpcServiceRequest + { + + public: + GetConversationListRequest(); + ~GetConversationListRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string instanceId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationListResult.h b/ccc/include/alibabacloud/ccc/model/GetConversationListResult.h new file mode 100644 index 000000000..584d60267 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetConversationListResult.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_GETCONVERSATIONLISTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetConversationListResult : public ServiceResult + { + public: + struct ConversationDetail + { + struct SummaryItem + { + std::string category; + std::string content; + std::string summaryName; + }; + std::string script; + std::vector summary; + long timestamp; + std::string speaker; + }; + + + GetConversationListResult(); + explicit GetConversationListResult(const std::string &payload); + ~GetConversationListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getConversations()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector conversations_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h new file mode 100644 index 000000000..a26dc098b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.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_GETJOBDATAUPLOADPARAMSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobDataUploadParamsRequest : public RpcServiceRequest + { + + public: + GetJobDataUploadParamsRequest(); + ~GetJobDataUploadParamsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + + private: + std::string instanceId_; + std::string fileName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h b/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h new file mode 100644 index 000000000..314c08170 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h @@ -0,0 +1,68 @@ +/* + * 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_GETJOBDATAUPLOADPARAMSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobDataUploadParamsResult : public ServiceResult + { + public: + struct UploadParams + { + std::string policy; + int expire; + std::string accessId; + std::string signature; + std::string host; + std::string folder; + }; + + + GetJobDataUploadParamsResult(); + explicit GetJobDataUploadParamsResult(const std::string &payload); + ~GetJobDataUploadParamsResult(); + UploadParams getUploadParams()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + UploadParams uploadParams_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h new file mode 100644 index 000000000..2b15e1f9f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.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_GETJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobGroupRequest : public RpcServiceRequest + { + + public: + GetJobGroupRequest(); + ~GetJobGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h new file mode 100644 index 000000000..23ec7ffd4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h @@ -0,0 +1,109 @@ +/* + * 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_GETJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobGroupResult : public ServiceResult + { + public: + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string description; + std::string repeatBy; + int minAttemptInterval; + long endTime; + long startTime; + std::string name; + std::string followUpStrategy; + std::string type; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + std::string id; + }; + struct Progress + { + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::string status; + std::vector categories; + long startTime; + int duration; + int totalCompleted; + int totalNotAnswered; + int totalJobs; + }; + Progress progress; + std::string description; + std::string scenarioId; + long creationTime; + Strategy strategy; + std::string jobFilePath; + std::string id; + std::string name; + std::vector callingNumbers; + }; + + + GetJobGroupResult(); + explicit GetJobGroupResult(const std::string &payload); + ~GetJobGroupResult(); + JobGroup getJobGroup()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + JobGroup jobGroup_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobListRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobListRequest.h new file mode 100644 index 000000000..3cb692ce3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobListRequest.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_GETJOBLISTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobListRequest : public RpcServiceRequest + { + + public: + GetJobListRequest(); + ~GetJobListRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getStatus()const; + void setStatus(int status); + bool getQueryAll()const; + void setQueryAll(bool queryAll); + + private: + std::string instanceId_; + std::string jobGroupId_; + int pageSize_; + int pageNumber_; + int status_; + bool queryAll_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBLISTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobListResult.h b/ccc/include/alibabacloud/ccc/model/GetJobListResult.h new file mode 100644 index 000000000..0ff0021a2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobListResult.h @@ -0,0 +1,109 @@ +/* + * 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_GETJOBLISTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobListResult : public ServiceResult + { + public: + struct Jobs + { + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct SummaryItem + { + std::string taskId; + std::string category; + std::string conversationDetailId; + std::string content; + std::string summaryId; + std::string summaryName; + std::string jobId; + std::string groupId; + }; + std::string status; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + int systemPriority; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetJobListResult(); + explicit GetJobListResult(const std::string &payload); + ~GetJobListResult(); + std::string getMessage()const; + Jobs getJobs()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Jobs jobs_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBLISTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobRequest.h new file mode 100644 index 000000000..75a07085f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobRequest.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_GETJOBREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobRequest : public RpcServiceRequest + { + + public: + GetJobRequest(); + ~GetJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobResult.h b/ccc/include/alibabacloud/ccc/model/GetJobResult.h new file mode 100644 index 000000000..c2210bbf5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobResult.h @@ -0,0 +1,137 @@ +/* + * 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_GETJOBRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobResult : public ServiceResult + { + public: + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct Task + { + struct Contact2 + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + }; + struct ConversationDetail + { + struct SummaryItem + { + std::string category; + std::string content; + std::string summaryName; + }; + std::string script; + std::vector summary1; + long timestamp; + std::string speaker; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + std::vector conversation; + int duration; + std::string brief; + std::string callingNumber; + Contact2 contact2; + std::string jobId; + }; + struct SummaryItem3 + { + std::string category; + std::string content; + std::string summaryName; + }; + std::string status; + std::vector tasks; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + int systemPriority; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + + + GetJobResult(); + explicit GetJobResult(const std::string &payload); + ~GetJobResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Job getJob()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Job job_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h new file mode 100644 index 000000000..c7fce5597 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.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_GETJOBSTATUSBYCALLIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBSTATUSBYCALLIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobStatusByCallIdRequest : public RpcServiceRequest + { + + public: + GetJobStatusByCallIdRequest(); + ~GetJobStatusByCallIdRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string callId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBSTATUSBYCALLIDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h new file mode 100644 index 000000000..6cae598bd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h @@ -0,0 +1,142 @@ +/* + * 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_GETJOBSTATUSBYCALLIDRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBSTATUSBYCALLIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobStatusByCallIdResult : public ServiceResult + { + public: + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct Task + { + struct Contact2 + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct ConversationDetail + { + struct SummaryItem + { + std::string category; + std::string content; + std::string summaryId; + std::string summaryName; + }; + std::string script; + std::vector summary1; + std::string taskId; + std::string conversationDetailId; + long timestamp; + std::string speaker; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + std::vector conversation; + int duration; + std::string brief; + std::string callingNumber; + Contact2 contact2; + std::string jobId; + }; + struct SummaryItem3 + { + std::string category; + std::string content; + std::string summaryId; + std::string summaryName; + }; + std::string status; + std::vector tasks; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + + + GetJobStatusByCallIdResult(); + explicit GetJobStatusByCallIdResult(const std::string &payload); + ~GetJobStatusByCallIdResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Job getJob()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Job job_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBSTATUSBYCALLIDRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h new file mode 100644 index 000000000..068dea5f2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.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_GETJOBTEMPLATEDOWNLOADPARAMSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobTemplateDownloadParamsRequest : public RpcServiceRequest + { + + public: + GetJobTemplateDownloadParamsRequest(); + ~GetJobTemplateDownloadParamsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h b/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h new file mode 100644 index 000000000..1e7100401 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.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_GETJOBTEMPLATEDOWNLOADPARAMSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobTemplateDownloadParamsResult : public ServiceResult + { + public: + struct DownloadParams + { + std::string signatureUrl; + }; + + + GetJobTemplateDownloadParamsResult(); + explicit GetJobTemplateDownloadParamsResult(const std::string &payload); + ~GetJobTemplateDownloadParamsResult(); + DownloadParams getDownloadParams()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DownloadParams downloadParams_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h b/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h new file mode 100644 index 000000000..7128a513c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.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_GETNUMBERREGIONINFOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetNumberRegionInfoRequest : public RpcServiceRequest + { + + public: + GetNumberRegionInfoRequest(); + ~GetNumberRegionInfoRequest(); + + std::string getNumber()const; + void setNumber(const std::string& number); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string number_; + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h b/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h new file mode 100644 index 000000000..dfb3b6a2b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.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_GETNUMBERREGIONINFORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetNumberRegionInfoResult : public ServiceResult + { + public: + struct PhoneNumber + { + std::string number; + std::string city; + std::string province; + }; + + + GetNumberRegionInfoResult(); + explicit GetNumberRegionInfoResult(const std::string &payload); + ~GetNumberRegionInfoResult(); + std::string getMessage()const; + PhoneNumber getPhoneNumber()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + PhoneNumber phoneNumber_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFORESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetScenarioRequest.h b/ccc/include/alibabacloud/ccc/model/GetScenarioRequest.h new file mode 100644 index 000000000..081487d12 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetScenarioRequest.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_GETSCENARIOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSCENARIOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetScenarioRequest : public RpcServiceRequest + { + + public: + GetScenarioRequest(); + ~GetScenarioRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSCENARIOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetScenarioResult.h b/ccc/include/alibabacloud/ccc/model/GetScenarioResult.h new file mode 100644 index 000000000..32e359fb0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetScenarioResult.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_GETSCENARIORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetScenarioResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string description; + std::string repeatBy; + int minAttemptInterval; + long endTime; + long startTime; + std::string name; + std::string followUpStrategy; + std::string type; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + std::string id; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string description; + std::string beebotId; + std::vector intents; + int round; + std::string id; + std::string name; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string description; + Strategy strategy; + std::string id; + std::string name; + }; + + + GetScenarioResult(); + explicit GetScenarioResult(const std::string &payload); + ~GetScenarioResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + Scenario getScenario()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + Scenario scenario_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSCENARIORESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsResult.h b/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsResult.h index a3d4da521..4b5ff1306 100644 --- a/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsResult.h @@ -32,30 +32,30 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT GetServiceExtensionsResult : public ServiceResult { public: - struct ServiceExtension - { - std::string number; - std::string name; - }; + struct ServiceExtension + { + std::string number; + std::string name; + }; GetServiceExtensionsResult(); explicit GetServiceExtensionsResult(const std::string &payload); ~GetServiceExtensionsResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getServiceExtensions()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getServiceExtensions()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector serviceExtensions_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + std::vector serviceExtensions_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h new file mode 100644 index 000000000..6bc39fc06 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.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_GETSURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetSurveyRequest : public RpcServiceRequest + { + + public: + GetSurveyRequest(); + ~GetSurveyRequest(); + + std::string getSurveyId()const; + void setSurveyId(const std::string& surveyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string surveyId_; + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetSurveyResult.h b/ccc/include/alibabacloud/ccc/model/GetSurveyResult.h new file mode 100644 index 000000000..1f557b150 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetSurveyResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETSURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetSurveyResult : public ServiceResult + { + public: + struct Survey + { + struct Flow + { + std::string flowId; + bool isPublished; + std::string flowJson; + }; + struct AsrCustomModel + { + int customModelStatus; + std::string corpora; + }; + std::string role; + std::string description; + std::string hotWords; + AsrCustomModel asrCustomModel; + int round; + std::string speechOptimizationParam; + std::string id; + std::string globalQuestions; + Flow flow; + std::string scenarioUuid; + std::string name; + }; + + + GetSurveyResult(); + explicit GetSurveyResult(const std::string &payload); + ~GetSurveyResult(); + Survey getSurvey()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Survey survey_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSURVEYRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h b/ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h new file mode 100644 index 000000000..c36b02b26 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetTaskListRequest.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_GETTASKLISTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETTASKLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetTaskListRequest : public RpcServiceRequest + { + + public: + GetTaskListRequest(); + ~GetTaskListRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETTASKLISTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetTaskListResult.h b/ccc/include/alibabacloud/ccc/model/GetTaskListResult.h new file mode 100644 index 000000000..9778faf46 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetTaskListResult.h @@ -0,0 +1,100 @@ +/* + * 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_GETTASKLISTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETTASKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetTaskListResult : public ServiceResult + { + public: + struct Task + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct ConversationDetail + { + struct SummaryItem + { + std::string category; + std::string content; + std::string summaryName; + }; + std::string script; + std::vector summary; + long timestamp; + std::string speaker; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + std::vector conversation; + int duration; + std::string brief; + std::string callingNumber; + Contact contact; + std::string jobId; + }; + + + GetTaskListResult(); + explicit GetTaskListResult(const std::string &payload); + ~GetTaskListResult(); + std::vector getTasks()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tasks_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETTASKLISTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetUserResult.h b/ccc/include/alibabacloud/ccc/model/GetUserResult.h index 18f71ae8d..95b6c033a 100644 --- a/ccc/include/alibabacloud/ccc/model/GetUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetUserResult.h @@ -32,62 +32,62 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT GetUserResult : public ServiceResult { public: - struct User - { - struct Detail - { - std::string loginName; - std::string department; - std::string email; - std::string phone; - std::string displayName; - }; - struct Role - { - std::string roleName; - std::string instanceId; - std::string roleDescription; - std::string roleId; - }; - struct SkillLevel - { - struct Skill - { - std::string skillGroupName; - std::string instanceId; - std::string skillGroupId; - std::string skillGroupDescription; - }; - std::vector skill; - std::string skillLevelId; - int level; - }; - std::vector skillLevels; - std::string instanceId; - std::string userId; - std::string ramId; - std::vector roles; - std::vector detail; - }; + struct User + { + struct Detail + { + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; + }; + struct Role + { + std::string roleName; + std::string instanceId; + std::string roleDescription; + std::string roleId; + }; + struct SkillLevel + { + struct Skill + { + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + std::string skillGroupDescription; + }; + Skill skill; + std::string skillLevelId; + int level; + }; + std::vector skillLevels; + std::string instanceId; + std::string userId; + std::string ramId; + std::vector roles; + Detail detail; + }; GetUserResult(); explicit GetUserResult(const std::string &payload); ~GetUserResult(); - std::vector getUser()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + User getUser()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector user_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; + User user_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h new file mode 100644 index 000000000..4f7260461 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.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_LAUNCHAPPRAISEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchAppraiseRequest : public RpcServiceRequest + { + + public: + LaunchAppraiseRequest(); + ~LaunchAppraiseRequest(); + + std::string getAcid()const; + void setAcid(const std::string& acid); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string acid_; + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.h new file mode 100644 index 000000000..8175a8eff --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.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_LAUNCHAPPRAISERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchAppraiseResult : public ServiceResult + { + public: + + + LaunchAppraiseResult(); + explicit LaunchAppraiseResult(const std::string &payload); + ~LaunchAppraiseResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h b/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h new file mode 100644 index 000000000..03509c9bd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.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_LISTBASICSTATISTICSREPORTSUBITEMSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListBasicStatisticsReportSubItemsRequest : public RpcServiceRequest + { + + public: + ListBasicStatisticsReportSubItemsRequest(); + ~ListBasicStatisticsReportSubItemsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTitle()const; + void setTitle(const std::string& title); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string instanceId_; + std::string jobGroupId_; + int pageSize_; + std::string title_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h b/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h new file mode 100644 index 000000000..aa242bdcf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.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_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListBasicStatisticsReportSubItemsResult : public ServiceResult + { + public: + struct SubItems + { + struct BasicStatisticsReportSubItem + { + struct KeyValuePair + { + std::string value; + std::string key; + }; + int percentage; + std::string basicStatisticsReportSubItemName; + std::string value; + std::vector row; + int count; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListBasicStatisticsReportSubItemsResult(); + explicit ListBasicStatisticsReportSubItemsResult(const std::string &payload); + ~ListBasicStatisticsReportSubItemsResult(); + SubItems getSubItems()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + SubItems subItems_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h index d25c4a67e..11e21c674 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h @@ -47,10 +47,12 @@ namespace AlibabaCloud void setPhoneNumber(const std::string& phoneNumber); int getPageSize()const; void setPageSize(int pageSize); - long getStartTime()const; - void setStartTime(long startTime); + std::string getOrderBy()const; + void setOrderBy(const std::string& orderBy); long getStopTime()const; void setStopTime(long stopTime); + long getStartTime()const; + void setStartTime(long startTime); int getPageNumber()const; void setPageNumber(int pageNumber); std::string getAccessKeyId()const; @@ -65,8 +67,9 @@ namespace AlibabaCloud std::string criteria_; std::string phoneNumber_; int pageSize_; - long startTime_; + std::string orderBy_; long stopTime_; + long startTime_; int pageNumber_; std::string accessKeyId_; bool withRecording_; diff --git a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h index f8b8bc25d..d156e8fc2 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h @@ -32,78 +32,78 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListCallDetailRecordsResult : public ServiceResult { public: - struct CallDetailRecords - { - struct CallDetailRecord - { - struct CallDetailAgent - { - int holdTime; - int workTime; - std::string skillGroupName; - long startTime; - int queueTime; - std::string contactId; - std::string agentId; - std::string agentName; - int ringTime; - int talkTime; - }; - struct Recording - { - std::string filePath; - std::string calledNumber; - std::string contactType; - std::string instanceId; - std::string fileName; - std::string channel; - long startTime; - int duration; - std::string contactId; - std::string callingNumber; - std::string fileDescription; - std::string agentId; - std::string agentName; - }; - std::string calledNumber; - std::string contactType; - std::string contactDisposition; - std::string instanceId; - int satisfaction; - std::vector agents; - long startTime; - int duration; - std::vector recordings; - std::string contactId; - std::string callingNumber; - std::string extraAttr; - std::string skillGroupNames; - std::string agentNames; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; + struct CallDetailRecords + { + struct CallDetailRecord + { + struct CallDetailAgent + { + int holdTime; + int workTime; + std::string skillGroupName; + long startTime; + int queueTime; + std::string contactId; + std::string agentId; + std::string agentName; + int ringTime; + int talkTime; + }; + struct Recording + { + std::string filePath; + std::string calledNumber; + std::string contactType; + std::string instanceId; + std::string fileName; + std::string channel; + long startTime; + int duration; + std::string contactId; + std::string callingNumber; + std::string fileDescription; + std::string agentId; + std::string agentName; + }; + std::string calledNumber; + std::string contactType; + std::string contactDisposition; + std::string instanceId; + int satisfaction; + std::vector agents; + long startTime; + int duration; + std::vector recordings; + std::string contactId; + std::string callingNumber; + std::string extraAttr; + std::string skillGroupNames; + std::string agentNames; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; ListCallDetailRecordsResult(); explicit ListCallDetailRecordsResult(const std::string &payload); ~ListCallDetailRecordsResult(); - std::string getMessage()const; - std::vector getCallDetailRecords()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + CallDetailRecords getCallDetailRecords()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::vector callDetailRecords_; - int httpStatusCode_; - std::string code_; - bool success_; + std::string message_; + CallDetailRecords callDetailRecords_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListConfigRequest.h b/ccc/include/alibabacloud/ccc/model/ListConfigRequest.h new file mode 100644 index 000000000..e9433425f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListConfigRequest.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_LISTCONFIGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListConfigRequest : public RpcServiceRequest + { + + public: + ListConfigRequest(); + ~ListConfigRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getConfigItem()const; + void setConfigItem(const std::vector& configItem); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::vector configItem_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListConfigResult.h b/ccc/include/alibabacloud/ccc/model/ListConfigResult.h new file mode 100644 index 000000000..36b767103 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListConfigResult.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_LISTCONFIGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListConfigResult : public ServiceResult + { + public: + struct ConfigItem + { + std::string value; + std::string name; + }; + + + ListConfigResult(); + explicit ListConfigResult(const std::string &payload); + ~ListConfigResult(); + std::vector getConfigItems()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector configItems_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONFIGRESULT_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 index 77d2bfb8a..4e8e490d1 100644 --- a/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h @@ -32,58 +32,58 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListContactFlowsResult : public ServiceResult { public: - struct ContactFlow - { - struct ContactFlowVersion - { - std::string lastModified; - std::string status; - std::string lastModifiedBy; - std::string lockedBy; - std::string contactFlowVersionId; - std::string version; - std::string contactFlowVersionDescription; - }; - struct PhoneNumber - { - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; - std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::string phoneNumberDescription; - }; - std::vector phoneNumbers; - std::string type; - std::string appliedVersion; - std::vector versions; - std::string contactFlowId; - std::string instanceId; - std::string contactFlowName; - std::string contactFlowDescription; - }; + struct ContactFlow + { + struct ContactFlowVersion + { + std::string lastModified; + std::string status; + std::string lastModifiedBy; + std::string lockedBy; + std::string contactFlowVersionId; + std::string version; + std::string contactFlowVersionDescription; + }; + struct PhoneNumber + { + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; + }; + std::vector phoneNumbers; + std::string type; + std::string appliedVersion; + std::vector versions; + std::string contactFlowId; + std::string instanceId; + std::string contactFlowName; + std::string contactFlowDescription; + }; ListContactFlowsResult(); explicit ListContactFlowsResult(const std::string &payload); ~ListContactFlowsResult(); - std::string getMessage()const; - std::vector getContactFlows()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + std::vector getContactFlows()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::vector contactFlows_; - int httpStatusCode_; - std::string code_; - bool success_; + std::string message_; + std::vector contactFlows_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h new file mode 100644 index 000000000..fe472a25d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.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_LISTJOBGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobGroupsRequest : public RpcServiceRequest + { + + public: + ListJobGroupsRequest(); + ~ListJobGroupsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string instanceId_; + int pageSize_; + long endTime_; + long startTime_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h new file mode 100644 index 000000000..a74ad7963 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h @@ -0,0 +1,116 @@ +/* + * 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_LISTJOBGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobGroupsResult : public ServiceResult + { + public: + struct JobGroups + { + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string description; + std::string repeatBy; + int minAttemptInterval; + long endTime; + long startTime; + std::string name; + std::string followUpStrategy; + std::string type; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + std::string id; + }; + struct Progress + { + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::string status; + std::vector categories; + long startTime; + int duration; + int totalCompleted; + int totalNotAnswered; + int totalJobs; + }; + Progress progress; + std::string description; + std::string scenarioId; + long creationTime; + Strategy strategy; + std::string jobFilePath; + std::string id; + std::string name; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListJobGroupsResult(); + explicit ListJobGroupsResult(const std::string &payload); + ~ListJobGroupsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + JobGroups getJobGroups()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + JobGroups jobGroups_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.h b/ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.h new file mode 100644 index 000000000..811bb3120 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.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_LISTJOBSTATUSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobStatusRequest : public RpcServiceRequest + { + + public: + ListJobStatusRequest(); + ~ListJobStatusRequest(); + + std::string getContactName()const; + void setContactName(const std::string& contactName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTimeAlignment()const; + void setTimeAlignment(const std::string& timeAlignment); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getPhoneNumber()const; + void setPhoneNumber(const std::string& phoneNumber); + int getPageSize()const; + void setPageSize(int pageSize); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string contactName_; + std::string instanceId_; + std::string timeAlignment_; + std::string groupId_; + std::string phoneNumber_; + int pageSize_; + long endTime_; + long startTime_; + std::string scenarioId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobStatusResult.h b/ccc/include/alibabacloud/ccc/model/ListJobStatusResult.h new file mode 100644 index 000000000..0ec06d5d2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobStatusResult.h @@ -0,0 +1,136 @@ +/* + * 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_LISTJOBSTATUSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobStatusResult : public ServiceResult + { + public: + struct Jobs + { + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct Task + { + struct Contact1 + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + int duration; + std::string brief; + std::string callingNumber; + Contact1 contact1; + std::string jobId; + }; + struct SummaryItem + { + std::string taskId; + std::string category; + std::string conversationDetailId; + std::string content; + std::string summaryId; + std::string summaryName; + std::string jobId; + std::string groupId; + }; + std::string status; + std::vector tasks; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListJobStatusResult(); + explicit ListJobStatusResult(const std::string &payload); + ~ListJobStatusResult(); + std::string getMessage()const; + Jobs getJobs()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Jobs jobs_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h new file mode 100644 index 000000000..8587783da --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.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_LISTJOBSBYGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobsByGroupRequest : public RpcServiceRequest + { + + public: + ListJobsByGroupRequest(); + ~ListJobsByGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobFailureReason()const; + void setJobFailureReason(const std::string& jobFailureReason); + std::string getJobStatus()const; + void setJobStatus(const std::string& jobStatus); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string instanceId_; + std::string jobFailureReason_; + std::string jobStatus_; + std::string jobGroupId_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h new file mode 100644 index 000000000..c7a807f7b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h @@ -0,0 +1,109 @@ +/* + * 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_LISTJOBSBYGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobsByGroupResult : public ServiceResult + { + public: + struct Jobs + { + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct SummaryItem + { + std::string taskId; + std::string category; + std::string conversationDetailId; + std::string content; + std::string summaryId; + std::string summaryName; + std::string jobId; + std::string groupId; + }; + std::string status; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + int systemPriority; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListJobsByGroupResult(); + explicit ListJobsByGroupResult(const std::string &payload); + ~ListJobsByGroupResult(); + std::string getMessage()const; + Jobs getJobs()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Jobs jobs_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h index 0770478e8..47726d070 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h @@ -32,46 +32,48 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListPhoneNumbersResult : public ServiceResult { public: - struct PhoneNumber - { - struct ContactFlow - { - std::string type; - std::string contactFlowId; - std::string instanceId; - std::string contactFlowName; - std::string contactFlowDescription; - }; - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; - std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::vector contactFlow; - std::string phoneNumberDescription; - }; + struct PhoneNumber + { + struct ContactFlow + { + std::string type; + std::string contactFlowId; + std::string instanceId; + std::string contactFlowName; + std::string contactFlowDescription; + }; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string city; + std::string phoneNumberId; + ContactFlow contactFlow; + std::string province; + std::string phoneNumberDescription; + }; ListPhoneNumbersResult(); explicit ListPhoneNumbersResult(const std::string &payload); ~ListPhoneNumbersResult(); - std::vector getPhoneNumbers()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + std::vector getPhoneNumbers()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector phoneNumbers_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; + std::vector phoneNumbers_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusRequest.h b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusRequest.h new file mode 100644 index 000000000..51d20c999 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusRequest.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_LISTPREDICTIVEJOBSTATUSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListPredictiveJobStatusRequest : public RpcServiceRequest + { + + public: + ListPredictiveJobStatusRequest(); + ~ListPredictiveJobStatusRequest(); + + std::string getContactName()const; + void setContactName(const std::string& contactName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTimeAlignment()const; + void setTimeAlignment(const std::string& timeAlignment); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + std::string getPhoneNumber()const; + void setPhoneNumber(const std::string& phoneNumber); + int getPageSize()const; + void setPageSize(int pageSize); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string contactName_; + std::string instanceId_; + std::string timeAlignment_; + std::string jobGroupId_; + std::string phoneNumber_; + int pageSize_; + long endTime_; + long startTime_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h new file mode 100644 index 000000000..7c539931f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h @@ -0,0 +1,136 @@ +/* + * 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_LISTPREDICTIVEJOBSTATUSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListPredictiveJobStatusResult : public ServiceResult + { + public: + struct Jobs + { + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct Task + { + struct Contact1 + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + int duration; + std::string brief; + std::string callingNumber; + Contact1 contact1; + std::string jobId; + }; + struct SummaryItem + { + std::string taskId; + std::string category; + std::string conversationDetailId; + std::string content; + std::string summaryId; + std::string summaryName; + std::string jobId; + std::string groupId; + }; + std::string status; + std::vector tasks; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListPredictiveJobStatusResult(); + explicit ListPredictiveJobStatusResult(const std::string &payload); + ~ListPredictiveJobStatusResult(); + std::string getMessage()const; + Jobs getJobs()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Jobs jobs_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h new file mode 100644 index 000000000..dae3aa780 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.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_LISTPRIVILEGESOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListPrivilegesOfUserRequest : public RpcServiceRequest + { + + public: + ListPrivilegesOfUserRequest(); + ~ListPrivilegesOfUserRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h new file mode 100644 index 000000000..19263c27c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListPrivilegesOfUserResult : public ServiceResult + { + public: + struct Privilege + { + std::string privilegeDescription; + std::string privilegeId; + std::string privilegeName; + }; + + + ListPrivilegesOfUserResult(); + explicit ListPrivilegesOfUserResult(const std::string &payload); + ~ListPrivilegesOfUserResult(); + std::string getMessage()const; + std::vector getPrivileges()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector privileges_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h b/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h new file mode 100644 index 000000000..6dbcf9905 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.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_LISTREALTIMEAGENTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListRealTimeAgentRequest : public RpcServiceRequest + { + + public: + ListRealTimeAgentRequest(); + ~ListRealTimeAgentRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h b/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h new file mode 100644 index 000000000..715eda223 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h @@ -0,0 +1,82 @@ +/* + * 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_LISTREALTIMEAGENTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListRealTimeAgentResult : public ServiceResult + { + public: + struct User + { + struct SkillLevel + { + struct Skill + { + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + std::string skillGroupDescription; + }; + Skill skill; + std::string skillLevelId; + int level; + }; + std::vector skillLevels; + std::string stateDesc; + std::string phone; + std::string state; + std::string ramId; + std::string displayName; + std::string dn; + }; + + + ListRealTimeAgentResult(); + explicit ListRealTimeAgentResult(const std::string &payload); + ~ListRealTimeAgentResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h b/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h index b463ccae1..e61d090a1 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h @@ -32,41 +32,41 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListRecordingsByContactIdResult : public ServiceResult { public: - struct Recording - { - std::string filePath; - std::string calledNumber; - std::string contactType; - std::string instanceId; - std::string fileName; - std::string channel; - long startTime; - int duration; - std::string contactId; - std::string callingNumber; - std::string fileDescription; - std::string agentId; - std::string agentName; - }; + struct Recording + { + std::string filePath; + std::string calledNumber; + std::string contactType; + std::string instanceId; + std::string fileName; + std::string channel; + long startTime; + int duration; + std::string contactId; + std::string callingNumber; + std::string fileDescription; + std::string agentId; + std::string agentName; + }; ListRecordingsByContactIdResult(); explicit ListRecordingsByContactIdResult(const std::string &payload); ~ListRecordingsByContactIdResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getRecordings()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getRecordings()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector recordings_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + std::vector recordings_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h index d5f9e298a..95123f6d8 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h @@ -45,10 +45,10 @@ namespace AlibabaCloud void setPhoneNumber(const std::string& phoneNumber); int getPageSize()const; void setPageSize(int pageSize); - long getStartTime()const; - void setStartTime(long startTime); long getStopTime()const; void setStopTime(long stopTime); + long getStartTime()const; + void setStartTime(long startTime); int getPageNumber()const; void setPageNumber(int pageNumber); std::string getAccessKeyId()const; @@ -60,8 +60,8 @@ namespace AlibabaCloud std::string criteria_; std::string phoneNumber_; int pageSize_; - long startTime_; long stopTime_; + long startTime_; int pageNumber_; std::string accessKeyId_; diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h b/ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h index 3add26fe3..c823d649f 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h @@ -32,48 +32,48 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListRecordingsResult : public ServiceResult { public: - struct Recordings - { - struct Recording - { - std::string filePath; - std::string calledNumber; - std::string contactType; - std::string instanceId; - std::string fileName; - std::string channel; - long startTime; - int duration; - std::string contactId; - std::string callingNumber; - std::string fileDescription; - std::string agentId; - std::string agentName; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; + struct Recordings + { + struct Recording + { + std::string filePath; + std::string calledNumber; + std::string contactType; + std::string instanceId; + std::string fileName; + std::string channel; + long startTime; + int duration; + std::string contactId; + std::string callingNumber; + std::string fileDescription; + std::string agentId; + std::string agentName; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; ListRecordingsResult(); explicit ListRecordingsResult(const std::string &payload); ~ListRecordingsResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getRecordings()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + Recordings getRecordings()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector recordings_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + Recordings recordings_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListRolesResult.h b/ccc/include/alibabacloud/ccc/model/ListRolesResult.h index 18fe40f40..8958f4eca 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRolesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRolesResult.h @@ -32,32 +32,32 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListRolesResult : public ServiceResult { public: - struct Role - { - std::string roleName; - std::string instanceId; - std::string roleDescription; - std::string roleId; - }; + struct Role + { + std::string roleName; + std::string instanceId; + std::string roleDescription; + std::string roleId; + }; ListRolesResult(); explicit ListRolesResult(const std::string &payload); ~ListRolesResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getRoles()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getRoles()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector roles_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + std::vector roles_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h new file mode 100644 index 000000000..ea3eb8ff9 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h @@ -0,0 +1,45 @@ +/* + * 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_LISTSCENARIOTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListScenarioTemplatesRequest : public RpcServiceRequest + { + + public: + ListScenarioTemplatesRequest(); + ~ListScenarioTemplatesRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h new file mode 100644 index 000000000..b10f46fcb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h @@ -0,0 +1,97 @@ +/* + * 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_LISTSCENARIOTEMPLATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListScenarioTemplatesResult : public ServiceResult + { + public: + struct Scenario + { + struct Survey + { + struct Flow + { + std::string flowId; + bool isPublished; + std::string flowJson; + }; + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string description; + std::string beebotId; + std::vector intents; + int round; + std::string id; + std::string globalQuestions; + Flow flow; + std::string name; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string description; + std::string id; + std::string name; + }; + + + ListScenarioTemplatesResult(); + explicit ListScenarioTemplatesResult(const std::string &payload); + ~ListScenarioTemplatesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getScenarioTemplates()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector scenarioTemplates_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h b/ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h new file mode 100644 index 000000000..0323d91da --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h @@ -0,0 +1,48 @@ +/* + * 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_LISTSCENARIOSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListScenariosRequest : public RpcServiceRequest + { + + public: + ListScenariosRequest(); + ~ListScenariosRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListScenariosResult.h b/ccc/include/alibabacloud/ccc/model/ListScenariosResult.h new file mode 100644 index 000000000..134bb7efa --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListScenariosResult.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_LISTSCENARIOSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListScenariosResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string description; + std::string repeatBy; + int minAttemptInterval; + long endTime; + long startTime; + std::string name; + std::string followUpStrategy; + std::string type; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + std::string id; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string description; + std::string beebotId; + std::vector intents; + int round; + std::string id; + std::string name; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string description; + Strategy strategy; + std::string id; + std::string name; + }; + + + ListScenariosResult(); + explicit ListScenariosResult(const std::string &payload); + ~ListScenariosResult(); + std::string getMessage()const; + std::vector getScenarios()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector scenarios_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h index 5a18e3682..67e9507a0 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h @@ -32,51 +32,53 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListSkillGroupsOfUserResult : public ServiceResult { public: - struct SkillLevel - { - struct Skill - { - struct PhoneNumber - { - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; - std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::string phoneNumberDescription; - }; - std::string skillGroupName; - std::string instanceId; - std::string skillGroupId; - std::vector outboundPhoneNumbers; - std::string skillGroupDescription; - }; - std::vector skill; - std::string skillLevelId; - int level; - }; + struct SkillLevel + { + struct Skill + { + struct PhoneNumber + { + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string city; + std::string phoneNumberId; + std::string province; + std::string phoneNumberDescription; + }; + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + std::vector outboundPhoneNumbers; + std::string skillGroupDescription; + }; + Skill skill; + std::string skillLevelId; + int level; + }; ListSkillGroupsOfUserResult(); explicit ListSkillGroupsOfUserResult(const std::string &payload); ~ListSkillGroupsOfUserResult(); - std::vector getSkillLevels()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + std::vector getSkillLevels()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector skillLevels_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; + std::vector skillLevels_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h index a1447cafe..7c03b7eff 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h @@ -32,48 +32,48 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListSkillGroupsResult : public ServiceResult { public: - struct SkillGroup - { - struct PhoneNumber - { - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; - std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::string phoneNumberDescription; - }; - std::string skillGroupName; - std::string accSkillGroupName; - std::string instanceId; - int userCount; - std::string skillGroupId; - std::vector outboundPhoneNumbers; - std::string accQueueName; - std::string skillGroupDescription; - }; + struct SkillGroup + { + struct PhoneNumber + { + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; + }; + std::string skillGroupName; + std::string accSkillGroupName; + std::string instanceId; + int userCount; + std::string skillGroupId; + std::vector outboundPhoneNumbers; + std::string accQueueName; + std::string skillGroupDescription; + }; ListSkillGroupsResult(); explicit ListSkillGroupsResult(const std::string &payload); ~ListSkillGroupsResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getSkillGroups()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getSkillGroups()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector skillGroups_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + std::vector skillGroups_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListSurveysRequest.h b/ccc/include/alibabacloud/ccc/model/ListSurveysRequest.h new file mode 100644 index 000000000..7b986d293 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSurveysRequest.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_LISTSURVEYSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSURVEYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSurveysRequest : public RpcServiceRequest + { + + public: + ListSurveysRequest(); + ~ListSurveysRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSURVEYSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSurveysResult.h b/ccc/include/alibabacloud/ccc/model/ListSurveysResult.h new file mode 100644 index 000000000..f4ddfbd0b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSurveysResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSURVEYSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSURVEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSurveysResult : public ServiceResult + { + public: + struct Survey + { + struct Flow + { + std::string flowId; + bool isPublished; + std::string flowJson; + }; + struct AsrCustomModel + { + int customModelStatus; + std::string corpora; + }; + std::string role; + std::string description; + std::string hotWords; + AsrCustomModel asrCustomModel; + int round; + std::string speechOptimizationParam; + std::string id; + std::string globalQuestions; + Flow flow; + std::string scenarioUuid; + std::string name; + }; + + + ListSurveysResult(); + explicit ListSurveysResult(const std::string &payload); + ~ListSurveysResult(); + std::vector getSurveys()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector surveys_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSURVEYSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h b/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h new file mode 100644 index 000000000..2967257fc --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.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_LISTUNREACHABLECONTACTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListUnreachableContactsRequest : public RpcServiceRequest + { + + public: + ListUnreachableContactsRequest(); + ~ListUnreachableContactsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string instanceId_; + std::string jobGroupId_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h b/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h new file mode 100644 index 000000000..e8f1c855a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListUnreachableContactsResult : public ServiceResult + { + public: + struct UnreachableContacts + { + struct UnreachableContact + { + struct Contact + { + std::string role; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + }; + std::vector contacts; + int totalAttempts; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListUnreachableContactsResult(); + explicit ListUnreachableContactsResult(const std::string &payload); + ~ListUnreachableContactsResult(); + UnreachableContacts getUnreachableContacts()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + UnreachableContacts unreachableContacts_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h index 8c3678895..5df48ab78 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h @@ -32,77 +32,77 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListUsersOfSkillGroupResult : public ServiceResult { public: - struct Users - { - struct User - { - struct Detail - { - std::string loginName; - std::string department; - std::string email; - std::string phone; - std::string displayName; - }; - struct Role - { - struct Privilege - { - std::string privilegeDescription; - std::string privilegeId; - std::string privilegeName; - }; - std::string roleName; - std::string instanceId; - int userCount; - std::vector privileges; - std::string roleDescription; - std::string roleId; - }; - struct SkillLevel - { - struct Skill - { - std::string skillGroupName; - std::string instanceId; - std::string skillGroupId; - std::string skillGroupDescription; - }; - std::vector skill; - std::string skillLevelId; - int level; - }; - std::vector skillLevels; - std::string instanceId; - std::string userId; - std::string ramId; - std::vector roles; - std::vector detail; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; + struct Users + { + struct User + { + struct Detail + { + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; + }; + struct Role + { + struct Privilege + { + std::string privilegeDescription; + std::string privilegeId; + std::string privilegeName; + }; + std::string roleName; + std::string instanceId; + int userCount; + std::vector privileges; + std::string roleDescription; + std::string roleId; + }; + struct SkillLevel + { + struct Skill + { + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + std::string skillGroupDescription; + }; + Skill skill; + std::string skillLevelId; + int level; + }; + std::vector skillLevels; + std::string instanceId; + std::string userId; + std::string ramId; + std::vector roles; + Detail detail; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; ListUsersOfSkillGroupResult(); explicit ListUsersOfSkillGroupResult(const std::string &payload); ~ListUsersOfSkillGroupResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getUsers()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + Users getUsers()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector users_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + Users users_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h index 1567e21ae..910318c7f 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h @@ -32,70 +32,70 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListUsersResult : public ServiceResult { public: - struct Users - { - struct User - { - struct Detail - { - std::string loginName; - std::string department; - std::string email; - std::string phone; - std::string displayName; - }; - struct Role - { - std::string roleName; - std::string instanceId; - std::string roleDescription; - std::string roleId; - }; - struct SkillLevel - { - struct Skill - { - std::string skillGroupName; - std::string instanceId; - std::string skillGroupId; - std::string skillGroupDescription; - }; - std::vector skill; - std::string skillLevelId; - int level; - }; - std::vector skillLevels; - std::string instanceId; - std::string userId; - bool primary; - std::string ramId; - std::vector roles; - std::vector detail; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; + struct Users + { + struct User + { + struct Detail + { + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; + }; + struct Role + { + std::string roleName; + std::string instanceId; + std::string roleDescription; + std::string roleId; + }; + struct SkillLevel + { + struct Skill + { + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + std::string skillGroupDescription; + }; + Skill skill; + std::string skillLevelId; + int level; + }; + std::vector skillLevels; + std::string instanceId; + std::string userId; + bool primary; + std::string ramId; + std::vector roles; + Detail detail; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; ListUsersResult(); explicit ListUsersResult(const std::string &payload); ~ListUsersResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getUsers()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + Users getUsers()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector users_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + Users users_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h index f6fc5357e..e7b3b5ddb 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h @@ -32,46 +32,46 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ModifyPhoneNumberResult : public ServiceResult { public: - struct PhoneNumber - { - struct ContactFlow - { - std::string type; - std::string contactFlowId; - std::string instanceId; - std::string contactFlowName; - std::string contactFlowDescription; - }; - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; - std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::vector contactFlow; - std::string phoneNumberDescription; - }; + struct PhoneNumber + { + struct ContactFlow + { + std::string type; + std::string contactFlowId; + std::string instanceId; + std::string contactFlowName; + std::string contactFlowDescription; + }; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + ContactFlow contactFlow; + std::string phoneNumberDescription; + }; ModifyPhoneNumberResult(); explicit ModifyPhoneNumberResult(const std::string &payload); ~ModifyPhoneNumberResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getPhoneNumber()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + PhoneNumber getPhoneNumber()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector phoneNumber_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + PhoneNumber phoneNumber_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h new file mode 100644 index 000000000..b9d8e13dd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.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_MODIFYSCENARIOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyScenarioRequest : public RpcServiceRequest + { + + public: + ModifyScenarioRequest(); + ~ModifyScenarioRequest(); + + std::string getVariables()const; + void setVariables(const std::string& variables); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string variables_; + std::string instanceId_; + std::string name_; + std::string description_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.h b/ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.h new file mode 100644 index 000000000..6e8d47ee6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.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_MODIFYSCENARIORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyScenarioResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string surveyId; + std::string beebotId; + std::string surveyName; + std::string surveyDescription; + std::vector intents; + int round; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string scenarioId; + std::string scenarioDescription; + Strategy strategy; + std::string scenarioName; + }; + + + ModifyScenarioResult(); + explicit ModifyScenarioResult(const std::string &payload); + ~ModifyScenarioResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + Scenario getScenario()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + Scenario scenario_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIORESULT_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..21a5e9c0b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.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_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::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getOutboundPhoneNumberId()const; + void setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::vector getUserId()const; + void setUserId(const std::vector& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector skillLevel_; + std::string instanceId_; + std::vector outboundPhoneNumberId_; + std::string skillGroupId_; + std::string name_; + std::string description_; + std::vector userId_; + std::string accessKeyId_; + + }; + } + } +} +#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..52905d804 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.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_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; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySurveyRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySurveyRequest.h new file mode 100644 index 000000000..24737703d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySurveyRequest.h @@ -0,0 +1,81 @@ +/* + * 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_MODIFYSURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySurveyRequest : public RpcServiceRequest + { + + public: + ModifySurveyRequest(); + ~ModifySurveyRequest(); + + std::string getSurveyId()const; + void setSurveyId(const std::string& surveyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRole()const; + void setRole(const std::string& role); + int getRound()const; + void setRound(int round); + std::string getFlowJson()const; + void setFlowJson(const std::string& flowJson); + std::string getName()const; + void setName(const std::string& name); + std::string getGlobalQuestions()const; + void setGlobalQuestions(const std::string& globalQuestions); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCorpora()const; + void setCorpora(const std::string& corpora); + std::string getSpeechOptimizationParam()const; + void setSpeechOptimizationParam(const std::string& speechOptimizationParam); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + std::string getFlowId()const; + void setFlowId(const std::string& flowId); + + private: + std::string surveyId_; + std::string instanceId_; + std::string role_; + int round_; + std::string flowJson_; + std::string name_; + std::string globalQuestions_; + std::string description_; + std::string corpora_; + std::string speechOptimizationParam_; + std::string scenarioId_; + std::string flowId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySurveyResult.h b/ccc/include/alibabacloud/ccc/model/ModifySurveyResult.h new file mode 100644 index 000000000..dac8eb3bb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySurveyResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySurveyResult : public ServiceResult + { + public: + struct Survey + { + struct Flow + { + std::string flowId; + bool isPublished; + std::string flowJson; + }; + struct AsrCustomModel + { + int customModelStatus; + std::string corpora; + }; + std::string role; + std::string description; + std::string hotWords; + AsrCustomModel asrCustomModel; + int round; + std::string speechOptimizationParam; + std::string id; + std::string globalQuestions; + Flow flow; + std::string scenarioUuid; + std::string name; + }; + + + ModifySurveyResult(); + explicit ModifySurveyResult(const std::string &payload); + ~ModifySurveyResult(); + Survey getSurvey()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Survey survey_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYRESULT_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..13b5f258e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.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_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::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getPhone()const; + void setPhone(const std::string& phone); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getEmail()const; + void setEmail(const std::string& email); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector skillLevel_; + std::string instanceId_; + std::string phone_; + std::vector roleId_; + std::string displayName_; + std::vector skillGroupId_; + std::string userId_; + std::string email_; + std::string accessKeyId_; + + }; + } + } +} +#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..8ec1130e0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.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_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::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickLocalNumberRequest.h b/ccc/include/alibabacloud/ccc/model/PickLocalNumberRequest.h new file mode 100644 index 000000000..714709ef1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickLocalNumberRequest.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_PICKLOCALNUMBERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickLocalNumberRequest : public RpcServiceRequest + { + + public: + PickLocalNumberRequest(); + ~PickLocalNumberRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getCandidateNumber()const; + void setCandidateNumber(const std::vector& candidateNumber); + std::string getCalleeNumber()const; + void setCalleeNumber(const std::string& calleeNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::vector candidateNumber_; + std::string calleeNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h b/ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h new file mode 100644 index 000000000..fae3afb58 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h @@ -0,0 +1,74 @@ +/* + * 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_PICKLOCALNUMBERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickLocalNumberResult : public ServiceResult + { + public: + struct Data + { + struct Callee + { + std::string number; + std::string city; + std::string province; + }; + struct Caller + { + std::string number; + std::string city; + std::string province; + }; + Callee callee; + Caller caller; + }; + + + PickLocalNumberResult(); + explicit PickLocalNumberResult(const std::string &payload); + ~PickLocalNumberResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.h new file mode 100644 index 000000000..92b9cbf2a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.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_PUBLISHSURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishSurveyRequest : public RpcServiceRequest + { + + public: + PublishSurveyRequest(); + ~PublishSurveyRequest(); + + std::string getSurveyId()const; + void setSurveyId(const std::string& surveyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string surveyId_; + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishSurveyResult.h b/ccc/include/alibabacloud/ccc/model/PublishSurveyResult.h new file mode 100644 index 000000000..6dca13e09 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishSurveyResult.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_PUBLISHSURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishSurveyResult : public ServiceResult + { + public: + + + PublishSurveyResult(); + explicit PublishSurveyResult(const std::string &payload); + ~PublishSurveyResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h b/ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h index 198521ce1..5104ecdd1 100644 --- a/ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h +++ b/ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h @@ -32,30 +32,30 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT RefreshTokenResult : public ServiceResult { public: - struct Token - { - std::string signData; - std::string signature; - }; + struct Token + { + std::string signData; + std::string signature; + }; RefreshTokenResult(); explicit RefreshTokenResult(const std::string &payload); ~RefreshTokenResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getToken()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + Token getToken()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::vector token_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + Token token_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h index 5fceb6f58..c23aec746 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h @@ -37,18 +37,18 @@ namespace AlibabaCloud RemovePhoneNumberResult(); explicit RemovePhoneNumberResult(const std::string &payload); ~RemovePhoneNumberResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h new file mode 100644 index 000000000..c29b4d962 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.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_REMOVEUSERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemoveUsersRequest : public RpcServiceRequest + { + + public: + RemoveUsersRequest(); + ~RemoveUsersRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getUserId()const; + void setUserId(const std::vector& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::vector userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEUSERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h new file mode 100644 index 000000000..85f577d26 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersResult.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_REMOVEUSERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemoveUsersResult : public ServiceResult + { + public: + + + RemoveUsersResult(); + explicit RemoveUsersResult(const std::string &payload); + ~RemoveUsersResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEUSERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h b/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h index c49ab5a99..6cc050863 100644 --- a/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h +++ b/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h @@ -32,38 +32,38 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT RequestLoginInfoResult : public ServiceResult { public: - struct LoginInfo - { - std::string agentServerUrl; - std::string extension; - std::string tenantId; - std::string userName; - std::string signData; - std::string signature; - std::string displayName; - std::string phoneNumber; - std::string region; - std::string webRtcUrl; - }; + struct LoginInfo + { + std::string agentServerUrl; + std::string extension; + std::string tenantId; + std::string userName; + std::string signData; + std::string signature; + std::string displayName; + std::string phoneNumber; + std::string region; + std::string webRtcUrl; + }; RequestLoginInfoResult(); explicit RequestLoginInfoResult(const std::string &payload); ~RequestLoginInfoResult(); - std::vector getLoginInfo()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; + LoginInfo getLoginInfo()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector loginInfo_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; + LoginInfo loginInfo_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.h b/ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.h new file mode 100644 index 000000000..8f2d4e4ae --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.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_RESUMEJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RESUMEJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ResumeJobsRequest : public RpcServiceRequest + { + + public: + ResumeJobsRequest(); + ~ResumeJobsRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getJobId()const; + void setJobId(const std::vector& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getJobReferenceId()const; + void setJobReferenceId(const std::vector& jobReferenceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + bool all_; + std::vector jobId_; + std::string instanceId_; + std::vector jobReferenceId_; + std::string groupId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RESUMEJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResumeJobsResult.h b/ccc/include/alibabacloud/ccc/model/ResumeJobsResult.h new file mode 100644 index 000000000..228542741 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ResumeJobsResult.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_RESUMEJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_RESUMEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ResumeJobsResult : public ServiceResult + { + public: + + + ResumeJobsResult(); + explicit ResumeJobsResult(const std::string &payload); + ~ResumeJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RESUMEJOBSRESULT_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..5ff5363bd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.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_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 getCaller()const; + void setCaller(const std::string& caller); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCallCenterNumber()const; + void setCallCenterNumber(const std::string& callCenterNumber); + std::string getCallee()const; + void setCallee(const std::string& callee); + std::string getWorkflowId()const; + void setWorkflowId(const std::string& workflowId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string caller_; + std::string instanceId_; + std::string callCenterNumber_; + std::string callee_; + std::string workflowId_; + std::string accessKeyId_; + + }; + } + } +} +#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..57f9b4383 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h @@ -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. + */ + +#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: + + + StartBack2BackCallResult(); + explicit StartBack2BackCallResult(const std::string &payload); + ~StartBack2BackCallResult(); + std::string getStatusDesc()const; + std::string getTaskId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + std::string getStatusCode()const; + bool getSuccess()const; + std::string getTimeStamp()const; + + protected: + void parse(const std::string &payload); + private: + std::string statusDesc_; + std::string taskId_; + std::string message_; + int httpStatusCode_; + std::string code_; + std::string statusCode_; + bool success_; + std::string timeStamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/StartJobRequest.h b/ccc/include/alibabacloud/ccc/model/StartJobRequest.h new file mode 100644 index 000000000..d26c929d1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartJobRequest.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_STARTJOBREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT StartJobRequest : public RpcServiceRequest + { + + public: + StartJobRequest(); + ~StartJobRequest(); + + std::string getJobJson()const; + void setJobJson(const std::string& jobJson); + std::vector getCallingNumber()const; + void setCallingNumber(const std::vector& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + bool getSelfHostedCallCenter()const; + void setSelfHostedCallCenter(bool selfHostedCallCenter); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string jobJson_; + std::vector callingNumber_; + std::string instanceId_; + std::string groupId_; + bool selfHostedCallCenter_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_STARTJOBREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/StartJobResult.h b/ccc/include/alibabacloud/ccc/model/StartJobResult.h new file mode 100644 index 000000000..22e8c1627 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartJobResult.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_STARTJOBRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT StartJobResult : public ServiceResult + { + public: + struct KeyValuePair + { + std::string value; + std::string key; + }; + + + StartJobResult(); + explicit StartJobResult(const std::string &payload); + ~StartJobResult(); + std::vector getTaskIds()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector taskIds_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_STARTJOBRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h b/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h new file mode 100644 index 000000000..7aa78c8ca --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.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_SUBMITBATCHJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SubmitBatchJobsRequest : public RpcServiceRequest + { + + public: + SubmitBatchJobsRequest(); + ~SubmitBatchJobsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.h b/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.h new file mode 100644 index 000000000..b83c9f616 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.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_SUBMITBATCHJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SubmitBatchJobsResult : public ServiceResult + { + public: + + + SubmitBatchJobsResult(); + explicit SubmitBatchJobsResult(const std::string &payload); + ~SubmitBatchJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.h b/ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.h new file mode 100644 index 000000000..14237e93c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.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_SUSPENDJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SuspendJobsRequest : public RpcServiceRequest + { + + public: + SuspendJobsRequest(); + ~SuspendJobsRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getJobId()const; + void setJobId(const std::vector& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getJobReferenceId()const; + void setJobReferenceId(const std::vector& jobReferenceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + bool all_; + std::vector jobId_; + std::string instanceId_; + std::vector jobReferenceId_; + std::string groupId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SuspendJobsResult.h b/ccc/include/alibabacloud/ccc/model/SuspendJobsResult.h new file mode 100644 index 000000000..76017e879 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SuspendJobsResult.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_SUSPENDJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SuspendJobsResult : public ServiceResult + { + public: + + + SuspendJobsResult(); + explicit SuspendJobsResult(const std::string &payload); + ~SuspendJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/TwoPartiesCallRequest.h b/ccc/include/alibabacloud/ccc/model/TwoPartiesCallRequest.h new file mode 100644 index 000000000..4a1554cc9 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/TwoPartiesCallRequest.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_TWOPARTIESCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_TWOPARTIESCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT TwoPartiesCallRequest : public RpcServiceRequest + { + + public: + TwoPartiesCallRequest(); + ~TwoPartiesCallRequest(); + + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCalleeCustomer()const; + void setCalleeCustomer(const std::string& calleeCustomer); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCalleeAgent()const; + void setCalleeAgent(const std::string& calleeAgent); + + private: + std::string caller_; + std::string instanceId_; + std::string calleeCustomer_; + std::string accessKeyId_; + std::string calleeAgent_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_TWOPARTIESCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/TwoPartiesCallResult.h b/ccc/include/alibabacloud/ccc/model/TwoPartiesCallResult.h new file mode 100644 index 000000000..9348f90e6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/TwoPartiesCallResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_TWOPARTIESCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_TWOPARTIESCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT TwoPartiesCallResult : public ServiceResult + { + public: + + + TwoPartiesCallResult(); + explicit TwoPartiesCallResult(const std::string &payload); + ~TwoPartiesCallResult(); + std::string getStatusDesc()const; + std::string getTaskId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + std::string getStatusCode()const; + bool getSuccess()const; + std::string getTimeStamp()const; + + protected: + void parse(const std::string &payload); + private: + std::string statusDesc_; + std::string taskId_; + std::string message_; + int httpStatusCode_; + std::string code_; + std::string statusCode_; + bool success_; + std::string timeStamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_TWOPARTIESCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/src/CCCClient.cc b/ccc/src/CCCClient.cc index b77018fc5..131b97116 100644 --- a/ccc/src/CCCClient.cc +++ b/ccc/src/CCCClient.cc @@ -31,170 +31,62 @@ CCCClient::CCCClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "CCC"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ccc"); } CCCClient::CCCClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "CCC"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ccc"); } CCCClient::CCCClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "CCC"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ccc"); } CCCClient::~CCCClient() {} -CCCClient::ListRecordingsByContactIdOutcome CCCClient::listRecordingsByContactId(const ListRecordingsByContactIdRequest &request) const +CCCClient::GetJobListOutcome CCCClient::getJobList(const GetJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRecordingsByContactIdOutcome(endpointOutcome.error()); + return GetJobListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRecordingsByContactIdOutcome(ListRecordingsByContactIdResult(outcome.result())); + return GetJobListOutcome(GetJobListResult(outcome.result())); else - return ListRecordingsByContactIdOutcome(outcome.error()); + return GetJobListOutcome(outcome.error()); } -void CCCClient::listRecordingsByContactIdAsync(const ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getJobListAsync(const GetJobListRequest& request, const GetJobListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRecordingsByContactId(request), context); + handler(this, request, getJobList(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRecordingsByContactIdOutcomeCallable CCCClient::listRecordingsByContactIdCallable(const ListRecordingsByContactIdRequest &request) const +CCCClient::GetJobListOutcomeCallable CCCClient::getJobListCallable(const GetJobListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRecordingsByContactId(request); + return this->getJobList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CCCClient::ListUsersOfSkillGroupOutcome CCCClient::listUsersOfSkillGroup(const ListUsersOfSkillGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListUsersOfSkillGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListUsersOfSkillGroupOutcome(ListUsersOfSkillGroupResult(outcome.result())); - else - return ListUsersOfSkillGroupOutcome(outcome.error()); -} - -void CCCClient::listUsersOfSkillGroupAsync(const ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listUsersOfSkillGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListUsersOfSkillGroupOutcomeCallable CCCClient::listUsersOfSkillGroupCallable(const ListUsersOfSkillGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listUsersOfSkillGroup(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::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::ListUsersOutcome CCCClient::listUsers(const ListUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -230,43 +122,7 @@ CCCClient::ListUsersOutcomeCallable CCCClient::listUsersCallable(const ListUsers asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CCCClient::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSkillGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSkillGroupsOutcome(ListSkillGroupsResult(outcome.result())); - else - return ListSkillGroupsOutcome(outcome.error()); -} - -void CCCClient::listSkillGroupsAsync(const ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSkillGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(const ListSkillGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSkillGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - + CCCClient::ListSkillGroupsOfUserOutcome CCCClient::listSkillGroupsOfUser(const ListSkillGroupsOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -302,223 +158,79 @@ CCCClient::ListSkillGroupsOfUserOutcomeCallable CCCClient::listSkillGroupsOfUser asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CCCClient::RemovePhoneNumberOutcome CCCClient::removePhoneNumber(const RemovePhoneNumberRequest &request) const + +CCCClient::TwoPartiesCallOutcome CCCClient::twoPartiesCall(const TwoPartiesCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RemovePhoneNumberOutcome(endpointOutcome.error()); + return TwoPartiesCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RemovePhoneNumberOutcome(RemovePhoneNumberResult(outcome.result())); + return TwoPartiesCallOutcome(TwoPartiesCallResult(outcome.result())); else - return RemovePhoneNumberOutcome(outcome.error()); + return TwoPartiesCallOutcome(outcome.error()); } -void CCCClient::removePhoneNumberAsync(const RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::twoPartiesCallAsync(const TwoPartiesCallRequest& request, const TwoPartiesCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, removePhoneNumber(request), context); + handler(this, request, twoPartiesCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable(const RemovePhoneNumberRequest &request) const +CCCClient::TwoPartiesCallOutcomeCallable CCCClient::twoPartiesCallCallable(const TwoPartiesCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->removePhoneNumber(request); + return this->twoPartiesCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CCCClient::ListCallDetailRecordsOutcome CCCClient::listCallDetailRecords(const ListCallDetailRecordsRequest &request) const + +CCCClient::DeleteSurveyOutcome CCCClient::deleteSurvey(const DeleteSurveyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListCallDetailRecordsOutcome(endpointOutcome.error()); + return DeleteSurveyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListCallDetailRecordsOutcome(ListCallDetailRecordsResult(outcome.result())); + return DeleteSurveyOutcome(DeleteSurveyResult(outcome.result())); else - return ListCallDetailRecordsOutcome(outcome.error()); + return DeleteSurveyOutcome(outcome.error()); } -void CCCClient::listCallDetailRecordsAsync(const ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::deleteSurveyAsync(const DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listCallDetailRecords(request), context); + handler(this, request, deleteSurvey(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecordsCallable(const ListCallDetailRecordsRequest &request) const +CCCClient::DeleteSurveyOutcomeCallable CCCClient::deleteSurveyCallable(const DeleteSurveyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listCallDetailRecords(request); + return this->deleteSurvey(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddPhoneNumberOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddPhoneNumberOutcome(AddPhoneNumberResult(outcome.result())); - else - return AddPhoneNumberOutcome(outcome.error()); -} - -void CCCClient::addPhoneNumberAsync(const AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addPhoneNumber(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const AddPhoneNumberRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addPhoneNumber(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListRecordingsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListRecordingsOutcome(ListRecordingsResult(outcome.result())); - else - return ListRecordingsOutcome(outcome.error()); -} - -void CCCClient::listRecordingsAsync(const ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listRecordings(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const ListRecordingsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listRecordings(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetConfigOutcome CCCClient::getConfig(const GetConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetConfigOutcome(GetConfigResult(outcome.result())); - else - return GetConfigOutcome(outcome.error()); -} - -void CCCClient::getConfigAsync(const GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetConfigOutcomeCallable CCCClient::getConfigCallable(const GetConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::DownloadRecordingOutcome CCCClient::downloadRecording(const DownloadRecordingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DownloadRecordingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DownloadRecordingOutcome(DownloadRecordingResult(outcome.result())); - else - return DownloadRecordingOutcome(outcome.error()); -} - -void CCCClient::downloadRecordingAsync(const DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, downloadRecording(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DownloadRecordingOutcomeCallable CCCClient::downloadRecordingCallable(const DownloadRecordingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->downloadRecording(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - + CCCClient::ListPhoneNumbersOutcome CCCClient::listPhoneNumbers(const ListPhoneNumbersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -554,7 +266,79 @@ CCCClient::ListPhoneNumbersOutcomeCallable CCCClient::listPhoneNumbersCallable(c asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CCCClient::DownloadUnreachableContactsOutcome CCCClient::downloadUnreachableContacts(const DownloadUnreachableContactsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadUnreachableContactsOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadUnreachableContactsOutcome(DownloadUnreachableContactsResult(outcome.result())); + else + return DownloadUnreachableContactsOutcome(outcome.error()); +} + +void CCCClient::downloadUnreachableContactsAsync(const DownloadUnreachableContactsRequest& request, const DownloadUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadUnreachableContacts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DownloadUnreachableContactsOutcomeCallable CCCClient::downloadUnreachableContactsCallable(const DownloadUnreachableContactsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadUnreachableContacts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DialogueOutcome CCCClient::dialogue(const DialogueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DialogueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DialogueOutcome(DialogueResult(outcome.result())); + else + return DialogueOutcome(outcome.error()); +} + +void CCCClient::dialogueAsync(const DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dialogue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DialogueOutcomeCallable CCCClient::dialogueCallable(const DialogueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dialogue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::RefreshTokenOutcome CCCClient::refreshToken(const RefreshTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -590,7 +374,43 @@ CCCClient::RefreshTokenOutcomeCallable CCCClient::refreshTokenCallable(const Ref asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CCCClient::CreateBatchJobsOutcome CCCClient::createBatchJobs(const CreateBatchJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBatchJobsOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBatchJobsOutcome(CreateBatchJobsResult(outcome.result())); + else + return CreateBatchJobsOutcome(outcome.error()); +} + +void CCCClient::createBatchJobsAsync(const CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBatchJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateBatchJobsOutcomeCallable CCCClient::createBatchJobsCallable(const CreateBatchJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBatchJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::RequestLoginInfoOutcome CCCClient::requestLoginInfo(const RequestLoginInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -626,115 +446,187 @@ CCCClient::RequestLoginInfoOutcomeCallable CCCClient::requestLoginInfoCallable(c asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CCCClient::GetServiceExtensionsOutcome CCCClient::getServiceExtensions(const GetServiceExtensionsRequest &request) const + +CCCClient::GetJobTemplateDownloadParamsOutcome CCCClient::getJobTemplateDownloadParams(const GetJobTemplateDownloadParamsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetServiceExtensionsOutcome(endpointOutcome.error()); + return GetJobTemplateDownloadParamsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetServiceExtensionsOutcome(GetServiceExtensionsResult(outcome.result())); + return GetJobTemplateDownloadParamsOutcome(GetJobTemplateDownloadParamsResult(outcome.result())); else - return GetServiceExtensionsOutcome(outcome.error()); + return GetJobTemplateDownloadParamsOutcome(outcome.error()); } -void CCCClient::getServiceExtensionsAsync(const GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getJobTemplateDownloadParamsAsync(const GetJobTemplateDownloadParamsRequest& request, const GetJobTemplateDownloadParamsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getServiceExtensions(request), context); + handler(this, request, getJobTemplateDownloadParams(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetServiceExtensionsOutcomeCallable CCCClient::getServiceExtensionsCallable(const GetServiceExtensionsRequest &request) const +CCCClient::GetJobTemplateDownloadParamsOutcomeCallable CCCClient::getJobTemplateDownloadParamsCallable(const GetJobTemplateDownloadParamsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getServiceExtensions(request); + return this->getJobTemplateDownloadParams(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const + +CCCClient::RemoveUsersOutcome CCCClient::removeUsers(const RemoveUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListContactFlowsOutcome(endpointOutcome.error()); + return RemoveUsersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListContactFlowsOutcome(ListContactFlowsResult(outcome.result())); + return RemoveUsersOutcome(RemoveUsersResult(outcome.result())); else - return ListContactFlowsOutcome(outcome.error()); + return RemoveUsersOutcome(outcome.error()); } -void CCCClient::listContactFlowsAsync(const ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::removeUsersAsync(const RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listContactFlows(request), context); + handler(this, request, removeUsers(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(const ListContactFlowsRequest &request) const +CCCClient::RemoveUsersOutcomeCallable CCCClient::removeUsersCallable(const RemoveUsersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listContactFlows(request); + return this->removeUsers(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -CCCClient::ListRolesOutcome CCCClient::listRoles(const ListRolesRequest &request) const + +CCCClient::CancelPredictiveJobsOutcome CCCClient::cancelPredictiveJobs(const CancelPredictiveJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRolesOutcome(endpointOutcome.error()); + return CancelPredictiveJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRolesOutcome(ListRolesResult(outcome.result())); + return CancelPredictiveJobsOutcome(CancelPredictiveJobsResult(outcome.result())); else - return ListRolesOutcome(outcome.error()); + return CancelPredictiveJobsOutcome(outcome.error()); } -void CCCClient::listRolesAsync(const ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::cancelPredictiveJobsAsync(const CancelPredictiveJobsRequest& request, const CancelPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRoles(request), context); + handler(this, request, cancelPredictiveJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRolesRequest &request) const +CCCClient::CancelPredictiveJobsOutcomeCallable CCCClient::cancelPredictiveJobsCallable(const CancelPredictiveJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRoles(request); + return this->cancelPredictiveJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); 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::PublishSurveyOutcome CCCClient::publishSurvey(const PublishSurveyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishSurveyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishSurveyOutcome(PublishSurveyResult(outcome.result())); + else + return PublishSurveyOutcome(outcome.error()); +} + +void CCCClient::publishSurveyAsync(const PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishSurvey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PublishSurveyOutcomeCallable CCCClient::publishSurveyCallable(const PublishSurveyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishSurvey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::GetUserOutcome CCCClient::getUser(const GetUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -770,4 +662,2200 @@ CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserReques asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +CCCClient::GetConversationListOutcome CCCClient::getConversationList(const GetConversationListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConversationListOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConversationListOutcome(GetConversationListResult(outcome.result())); + else + return GetConversationListOutcome(outcome.error()); +} + +void CCCClient::getConversationListAsync(const GetConversationListRequest& request, const GetConversationListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConversationList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetConversationListOutcomeCallable CCCClient::getConversationListCallable(const GetConversationListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConversationList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListUsersOfSkillGroupOutcome CCCClient::listUsersOfSkillGroup(const ListUsersOfSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersOfSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersOfSkillGroupOutcome(ListUsersOfSkillGroupResult(outcome.result())); + else + return ListUsersOfSkillGroupOutcome(outcome.error()); +} + +void CCCClient::listUsersOfSkillGroupAsync(const ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsersOfSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListUsersOfSkillGroupOutcomeCallable CCCClient::listUsersOfSkillGroupCallable(const ListUsersOfSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsersOfSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListJobsByGroupOutcome CCCClient::listJobsByGroup(const ListJobsByGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobsByGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobsByGroupOutcome(ListJobsByGroupResult(outcome.result())); + else + return ListJobsByGroupOutcome(outcome.error()); +} + +void CCCClient::listJobsByGroupAsync(const ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobsByGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListJobsByGroupOutcomeCallable CCCClient::listJobsByGroupCallable(const ListJobsByGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobsByGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListPredictiveJobStatusOutcome CCCClient::listPredictiveJobStatus(const ListPredictiveJobStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPredictiveJobStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPredictiveJobStatusOutcome(ListPredictiveJobStatusResult(outcome.result())); + else + return ListPredictiveJobStatusOutcome(outcome.error()); +} + +void CCCClient::listPredictiveJobStatusAsync(const ListPredictiveJobStatusRequest& request, const ListPredictiveJobStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPredictiveJobStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListPredictiveJobStatusOutcomeCallable CCCClient::listPredictiveJobStatusCallable(const ListPredictiveJobStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPredictiveJobStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListJobGroupsOutcome CCCClient::listJobGroups(const ListJobGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobGroupsOutcome(ListJobGroupsResult(outcome.result())); + else + return ListJobGroupsOutcome(outcome.error()); +} + +void CCCClient::listJobGroupsAsync(const ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListJobGroupsOutcomeCallable CCCClient::listJobGroupsCallable(const ListJobGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListCallDetailRecordsOutcome CCCClient::listCallDetailRecords(const ListCallDetailRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCallDetailRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCallDetailRecordsOutcome(ListCallDetailRecordsResult(outcome.result())); + else + return ListCallDetailRecordsOutcome(outcome.error()); +} + +void CCCClient::listCallDetailRecordsAsync(const ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCallDetailRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecordsCallable(const ListCallDetailRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCallDetailRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddPhoneNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddPhoneNumberOutcome(AddPhoneNumberResult(outcome.result())); + else + return AddPhoneNumberOutcome(outcome.error()); +} + +void CCCClient::addPhoneNumberAsync(const AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addPhoneNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const AddPhoneNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addPhoneNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRecordingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRecordingsOutcome(ListRecordingsResult(outcome.result())); + else + return ListRecordingsOutcome(outcome.error()); +} + +void CCCClient::listRecordingsAsync(const ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRecordings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const ListRecordingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRecordings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::EncryptOutcome CCCClient::encrypt(const EncryptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EncryptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EncryptOutcome(EncryptResult(outcome.result())); + else + return EncryptOutcome(outcome.error()); +} + +void CCCClient::encryptAsync(const EncryptRequest& request, const EncryptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, encrypt(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::EncryptOutcomeCallable CCCClient::encryptCallable(const EncryptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->encrypt(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::SubmitBatchJobsOutcome CCCClient::submitBatchJobs(const SubmitBatchJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitBatchJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitBatchJobsOutcome(SubmitBatchJobsResult(outcome.result())); + else + return SubmitBatchJobsOutcome(outcome.error()); +} + +void CCCClient::submitBatchJobsAsync(const SubmitBatchJobsRequest& request, const SubmitBatchJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitBatchJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::SubmitBatchJobsOutcomeCallable CCCClient::submitBatchJobsCallable(const SubmitBatchJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitBatchJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListSurveysOutcome CCCClient::listSurveys(const ListSurveysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSurveysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSurveysOutcome(ListSurveysResult(outcome.result())); + else + return ListSurveysOutcome(outcome.error()); +} + +void CCCClient::listSurveysAsync(const ListSurveysRequest& request, const ListSurveysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSurveys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListSurveysOutcomeCallable CCCClient::listSurveysCallable(const ListSurveysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSurveys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetJobDataUploadParamsOutcome CCCClient::getJobDataUploadParams(const GetJobDataUploadParamsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobDataUploadParamsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobDataUploadParamsOutcome(GetJobDataUploadParamsResult(outcome.result())); + else + return GetJobDataUploadParamsOutcome(outcome.error()); +} + +void CCCClient::getJobDataUploadParamsAsync(const GetJobDataUploadParamsRequest& request, const GetJobDataUploadParamsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobDataUploadParams(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetJobDataUploadParamsOutcomeCallable CCCClient::getJobDataUploadParamsCallable(const GetJobDataUploadParamsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobDataUploadParams(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListBasicStatisticsReportSubItemsOutcome CCCClient::listBasicStatisticsReportSubItems(const ListBasicStatisticsReportSubItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBasicStatisticsReportSubItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBasicStatisticsReportSubItemsOutcome(ListBasicStatisticsReportSubItemsResult(outcome.result())); + else + return ListBasicStatisticsReportSubItemsOutcome(outcome.error()); +} + +void CCCClient::listBasicStatisticsReportSubItemsAsync(const ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBasicStatisticsReportSubItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListBasicStatisticsReportSubItemsOutcomeCallable CCCClient::listBasicStatisticsReportSubItemsCallable(const ListBasicStatisticsReportSubItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBasicStatisticsReportSubItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::SuspendJobsOutcome CCCClient::suspendJobs(const SuspendJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SuspendJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SuspendJobsOutcome(SuspendJobsResult(outcome.result())); + else + return SuspendJobsOutcome(outcome.error()); +} + +void CCCClient::suspendJobsAsync(const SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, suspendJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::SuspendJobsOutcomeCallable CCCClient::suspendJobsCallable(const SuspendJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->suspendJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetJobGroupOutcome CCCClient::getJobGroup(const GetJobGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobGroupOutcome(GetJobGroupResult(outcome.result())); + else + return GetJobGroupOutcome(outcome.error()); +} + +void CCCClient::getJobGroupAsync(const GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetJobGroupOutcomeCallable CCCClient::getJobGroupCallable(const GetJobGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetJobStatusByCallIdOutcome CCCClient::getJobStatusByCallId(const GetJobStatusByCallIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobStatusByCallIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobStatusByCallIdOutcome(GetJobStatusByCallIdResult(outcome.result())); + else + return GetJobStatusByCallIdOutcome(outcome.error()); +} + +void CCCClient::getJobStatusByCallIdAsync(const GetJobStatusByCallIdRequest& request, const GetJobStatusByCallIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobStatusByCallId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetJobStatusByCallIdOutcomeCallable CCCClient::getJobStatusByCallIdCallable(const GetJobStatusByCallIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobStatusByCallId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListUnreachableContactsOutcome CCCClient::listUnreachableContacts(const ListUnreachableContactsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUnreachableContactsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUnreachableContactsOutcome(ListUnreachableContactsResult(outcome.result())); + else + return ListUnreachableContactsOutcome(outcome.error()); +} + +void CCCClient::listUnreachableContactsAsync(const ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUnreachableContacts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListUnreachableContactsOutcomeCallable CCCClient::listUnreachableContactsCallable(const ListUnreachableContactsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUnreachableContacts(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::GetConversationDetailByContactIdOutcome CCCClient::getConversationDetailByContactId(const GetConversationDetailByContactIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConversationDetailByContactIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConversationDetailByContactIdOutcome(GetConversationDetailByContactIdResult(outcome.result())); + else + return GetConversationDetailByContactIdOutcome(outcome.error()); +} + +void CCCClient::getConversationDetailByContactIdAsync(const GetConversationDetailByContactIdRequest& request, const GetConversationDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConversationDetailByContactId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetConversationDetailByContactIdOutcomeCallable CCCClient::getConversationDetailByContactIdCallable(const GetConversationDetailByContactIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConversationDetailByContactId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListRecordingsByContactIdOutcome CCCClient::listRecordingsByContactId(const ListRecordingsByContactIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRecordingsByContactIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRecordingsByContactIdOutcome(ListRecordingsByContactIdResult(outcome.result())); + else + return ListRecordingsByContactIdOutcome(outcome.error()); +} + +void CCCClient::listRecordingsByContactIdAsync(const ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRecordingsByContactId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListRecordingsByContactIdOutcomeCallable CCCClient::listRecordingsByContactIdCallable(const ListRecordingsByContactIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRecordingsByContactId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::LaunchAppraiseOutcome CCCClient::launchAppraise(const LaunchAppraiseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LaunchAppraiseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LaunchAppraiseOutcome(LaunchAppraiseResult(outcome.result())); + else + return LaunchAppraiseOutcome(outcome.error()); +} + +void CCCClient::launchAppraiseAsync(const LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, launchAppraise(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::LaunchAppraiseOutcomeCallable CCCClient::launchAppraiseCallable(const LaunchAppraiseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->launchAppraise(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::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::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSkillGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSkillGroupsOutcome(ListSkillGroupsResult(outcome.result())); + else + return ListSkillGroupsOutcome(outcome.error()); +} + +void CCCClient::listSkillGroupsAsync(const ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSkillGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(const ListSkillGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSkillGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateScenarioOutcome CCCClient::createScenario(const CreateScenarioRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateScenarioOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateScenarioOutcome(CreateScenarioResult(outcome.result())); + else + return CreateScenarioOutcome(outcome.error()); +} + +void CCCClient::createScenarioAsync(const CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createScenario(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateScenarioOutcomeCallable CCCClient::createScenarioCallable(const CreateScenarioRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createScenario(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::RemovePhoneNumberOutcome CCCClient::removePhoneNumber(const RemovePhoneNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemovePhoneNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemovePhoneNumberOutcome(RemovePhoneNumberResult(outcome.result())); + else + return RemovePhoneNumberOutcome(outcome.error()); +} + +void CCCClient::removePhoneNumberAsync(const RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removePhoneNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable(const RemovePhoneNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removePhoneNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::PickLocalNumberOutcome CCCClient::pickLocalNumber(const PickLocalNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PickLocalNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PickLocalNumberOutcome(PickLocalNumberResult(outcome.result())); + else + return PickLocalNumberOutcome(outcome.error()); +} + +void CCCClient::pickLocalNumberAsync(const PickLocalNumberRequest& request, const PickLocalNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pickLocalNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PickLocalNumberOutcomeCallable CCCClient::pickLocalNumberCallable(const PickLocalNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pickLocalNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetJobOutcome CCCClient::getJob(const GetJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobOutcome(GetJobResult(outcome.result())); + else + return GetJobOutcome(outcome.error()); +} + +void CCCClient::getJobAsync(const GetJobRequest& request, const GetJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetJobOutcomeCallable CCCClient::getJobCallable(const GetJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::StartJobOutcome CCCClient::startJob(const StartJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartJobOutcome(StartJobResult(outcome.result())); + else + return StartJobOutcome(outcome.error()); +} + +void CCCClient::startJobAsync(const StartJobRequest& request, const StartJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::StartJobOutcomeCallable CCCClient::startJobCallable(const StartJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CancelJobsOutcome CCCClient::cancelJobs(const CancelJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelJobsOutcome(CancelJobsResult(outcome.result())); + else + return CancelJobsOutcome(outcome.error()); +} + +void CCCClient::cancelJobsAsync(const CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CancelJobsOutcomeCallable CCCClient::cancelJobsCallable(const CancelJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetConfigOutcome CCCClient::getConfig(const GetConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigOutcome(GetConfigResult(outcome.result())); + else + return GetConfigOutcome(outcome.error()); +} + +void CCCClient::getConfigAsync(const GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetConfigOutcomeCallable CCCClient::getConfigCallable(const GetConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DownloadRecordingOutcome CCCClient::downloadRecording(const DownloadRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadRecordingOutcome(DownloadRecordingResult(outcome.result())); + else + return DownloadRecordingOutcome(outcome.error()); +} + +void CCCClient::downloadRecordingAsync(const DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DownloadRecordingOutcomeCallable CCCClient::downloadRecordingCallable(const DownloadRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GenerateAgentStatisticReportOutcome CCCClient::generateAgentStatisticReport(const GenerateAgentStatisticReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateAgentStatisticReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateAgentStatisticReportOutcome(GenerateAgentStatisticReportResult(outcome.result())); + else + return GenerateAgentStatisticReportOutcome(outcome.error()); +} + +void CCCClient::generateAgentStatisticReportAsync(const GenerateAgentStatisticReportRequest& request, const GenerateAgentStatisticReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateAgentStatisticReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GenerateAgentStatisticReportOutcomeCallable CCCClient::generateAgentStatisticReportCallable(const GenerateAgentStatisticReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateAgentStatisticReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateScenarioFromTemplateOutcome CCCClient::createScenarioFromTemplate(const CreateScenarioFromTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateScenarioFromTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateScenarioFromTemplateOutcome(CreateScenarioFromTemplateResult(outcome.result())); + else + return CreateScenarioFromTemplateOutcome(outcome.error()); +} + +void CCCClient::createScenarioFromTemplateAsync(const CreateScenarioFromTemplateRequest& request, const CreateScenarioFromTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createScenarioFromTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateScenarioFromTemplateOutcomeCallable CCCClient::createScenarioFromTemplateCallable(const CreateScenarioFromTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createScenarioFromTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateJobGroupOutcome CCCClient::createJobGroup(const CreateJobGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateJobGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateJobGroupOutcome(CreateJobGroupResult(outcome.result())); + else + return CreateJobGroupOutcome(outcome.error()); +} + +void CCCClient::createJobGroupAsync(const CreateJobGroupRequest& request, const CreateJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createJobGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateJobGroupOutcomeCallable CCCClient::createJobGroupCallable(const CreateJobGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createJobGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetTaskListOutcome CCCClient::getTaskList(const GetTaskListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskListOutcome(GetTaskListResult(outcome.result())); + else + return GetTaskListOutcome(outcome.error()); +} + +void CCCClient::getTaskListAsync(const GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetTaskListOutcomeCallable CCCClient::getTaskListCallable(const GetTaskListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DownloadOriginalStatisticsReportOutcome CCCClient::downloadOriginalStatisticsReport(const DownloadOriginalStatisticsReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadOriginalStatisticsReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadOriginalStatisticsReportOutcome(DownloadOriginalStatisticsReportResult(outcome.result())); + else + return DownloadOriginalStatisticsReportOutcome(outcome.error()); +} + +void CCCClient::downloadOriginalStatisticsReportAsync(const DownloadOriginalStatisticsReportRequest& request, const DownloadOriginalStatisticsReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadOriginalStatisticsReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DownloadOriginalStatisticsReportOutcomeCallable CCCClient::downloadOriginalStatisticsReportCallable(const DownloadOriginalStatisticsReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadOriginalStatisticsReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListScenarioTemplatesOutcome CCCClient::listScenarioTemplates(const ListScenarioTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScenarioTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScenarioTemplatesOutcome(ListScenarioTemplatesResult(outcome.result())); + else + return ListScenarioTemplatesOutcome(outcome.error()); +} + +void CCCClient::listScenarioTemplatesAsync(const ListScenarioTemplatesRequest& request, const ListScenarioTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScenarioTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListScenarioTemplatesOutcomeCallable CCCClient::listScenarioTemplatesCallable(const ListScenarioTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScenarioTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ResumeJobsOutcome CCCClient::resumeJobs(const ResumeJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeJobsOutcome(ResumeJobsResult(outcome.result())); + else + return ResumeJobsOutcome(outcome.error()); +} + +void CCCClient::resumeJobsAsync(const ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ResumeJobsOutcomeCallable CCCClient::resumeJobsCallable(const ResumeJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::AssignUsersOutcome CCCClient::assignUsers(const AssignUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssignUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssignUsersOutcome(AssignUsersResult(outcome.result())); + else + return AssignUsersOutcome(outcome.error()); +} + +void CCCClient::assignUsersAsync(const AssignUsersRequest& request, const AssignUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, assignUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AssignUsersOutcomeCallable CCCClient::assignUsersCallable(const AssignUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->assignUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetSurveyOutcome CCCClient::getSurvey(const GetSurveyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSurveyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSurveyOutcome(GetSurveyResult(outcome.result())); + else + return GetSurveyOutcome(outcome.error()); +} + +void CCCClient::getSurveyAsync(const GetSurveyRequest& request, const GetSurveyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSurvey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetSurveyOutcomeCallable CCCClient::getSurveyCallable(const GetSurveyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSurvey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListRolesOutcome CCCClient::listRoles(const ListRolesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRolesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRolesOutcome(ListRolesResult(outcome.result())); + else + return ListRolesOutcome(outcome.error()); +} + +void CCCClient::listRolesAsync(const ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRoles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRolesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRoles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListConfigOutcome CCCClient::listConfig(const ListConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListConfigOutcome(ListConfigResult(outcome.result())); + else + return ListConfigOutcome(outcome.error()); +} + +void CCCClient::listConfigAsync(const ListConfigRequest& request, const ListConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListConfigOutcomeCallable CCCClient::listConfigCallable(const ListConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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::ListScenariosOutcome CCCClient::listScenarios(const ListScenariosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScenariosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScenariosOutcome(ListScenariosResult(outcome.result())); + else + return ListScenariosOutcome(outcome.error()); +} + +void CCCClient::listScenariosAsync(const ListScenariosRequest& request, const ListScenariosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScenarios(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListScenariosOutcomeCallable CCCClient::listScenariosCallable(const ListScenariosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScenarios(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListRealTimeAgentOutcome CCCClient::listRealTimeAgent(const ListRealTimeAgentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRealTimeAgentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRealTimeAgentOutcome(ListRealTimeAgentResult(outcome.result())); + else + return ListRealTimeAgentOutcome(outcome.error()); +} + +void CCCClient::listRealTimeAgentAsync(const ListRealTimeAgentRequest& request, const ListRealTimeAgentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRealTimeAgent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListRealTimeAgentOutcomeCallable CCCClient::listRealTimeAgentCallable(const ListRealTimeAgentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRealTimeAgent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::AssignJobsOutcome CCCClient::assignJobs(const AssignJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssignJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssignJobsOutcome(AssignJobsResult(outcome.result())); + else + return AssignJobsOutcome(outcome.error()); +} + +void CCCClient::assignJobsAsync(const AssignJobsRequest& request, const AssignJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, assignJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AssignJobsOutcomeCallable CCCClient::assignJobsCallable(const AssignJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->assignJobs(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::ListPrivilegesOfUserOutcome CCCClient::listPrivilegesOfUser(const ListPrivilegesOfUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPrivilegesOfUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPrivilegesOfUserOutcome(ListPrivilegesOfUserResult(outcome.result())); + else + return ListPrivilegesOfUserOutcome(outcome.error()); +} + +void CCCClient::listPrivilegesOfUserAsync(const ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPrivilegesOfUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListPrivilegesOfUserOutcomeCallable CCCClient::listPrivilegesOfUserCallable(const ListPrivilegesOfUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPrivilegesOfUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetNumberRegionInfoOutcome CCCClient::getNumberRegionInfo(const GetNumberRegionInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNumberRegionInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNumberRegionInfoOutcome(GetNumberRegionInfoResult(outcome.result())); + else + return GetNumberRegionInfoOutcome(outcome.error()); +} + +void CCCClient::getNumberRegionInfoAsync(const GetNumberRegionInfoRequest& request, const GetNumberRegionInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNumberRegionInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetNumberRegionInfoOutcomeCallable CCCClient::getNumberRegionInfoCallable(const GetNumberRegionInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNumberRegionInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetScenarioOutcome CCCClient::getScenario(const GetScenarioRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetScenarioOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetScenarioOutcome(GetScenarioResult(outcome.result())); + else + return GetScenarioOutcome(outcome.error()); +} + +void CCCClient::getScenarioAsync(const GetScenarioRequest& request, const GetScenarioAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getScenario(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetScenarioOutcomeCallable CCCClient::getScenarioCallable(const GetScenarioRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getScenario(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreatePredictiveJobsOutcome CCCClient::createPredictiveJobs(const CreatePredictiveJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePredictiveJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePredictiveJobsOutcome(CreatePredictiveJobsResult(outcome.result())); + else + return CreatePredictiveJobsOutcome(outcome.error()); +} + +void CCCClient::createPredictiveJobsAsync(const CreatePredictiveJobsRequest& request, const CreatePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPredictiveJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreatePredictiveJobsOutcomeCallable CCCClient::createPredictiveJobsCallable(const CreatePredictiveJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPredictiveJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetAgentDataOutcome CCCClient::getAgentData(const GetAgentDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAgentDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAgentDataOutcome(GetAgentDataResult(outcome.result())); + else + return GetAgentDataOutcome(outcome.error()); +} + +void CCCClient::getAgentDataAsync(const GetAgentDataRequest& request, const GetAgentDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAgentData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetAgentDataOutcomeCallable CCCClient::getAgentDataCallable(const GetAgentDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAgentData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateSurveyOutcome CCCClient::createSurvey(const CreateSurveyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSurveyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSurveyOutcome(CreateSurveyResult(outcome.result())); + else + return CreateSurveyOutcome(outcome.error()); +} + +void CCCClient::createSurveyAsync(const CreateSurveyRequest& request, const CreateSurveyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSurvey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateSurveyOutcomeCallable CCCClient::createSurveyCallable(const CreateSurveyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSurvey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListJobStatusOutcome CCCClient::listJobStatus(const ListJobStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobStatusOutcome(ListJobStatusResult(outcome.result())); + else + return ListJobStatusOutcome(outcome.error()); +} + +void CCCClient::listJobStatusAsync(const ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListJobStatusOutcomeCallable CCCClient::listJobStatusCallable(const ListJobStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifySurveyOutcome CCCClient::modifySurvey(const ModifySurveyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySurveyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySurveyOutcome(ModifySurveyResult(outcome.result())); + else + return ModifySurveyOutcome(outcome.error()); +} + +void CCCClient::modifySurveyAsync(const ModifySurveyRequest& request, const ModifySurveyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySurvey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifySurveyOutcomeCallable CCCClient::modifySurveyCallable(const ModifySurveyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySurvey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyScenarioOutcome CCCClient::modifyScenario(const ModifyScenarioRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyScenarioOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyScenarioOutcome(ModifyScenarioResult(outcome.result())); + else + return ModifyScenarioOutcome(outcome.error()); +} + +void CCCClient::modifyScenarioAsync(const ModifyScenarioRequest& request, const ModifyScenarioAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyScenario(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyScenarioOutcomeCallable CCCClient::modifyScenarioCallable(const ModifyScenarioRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyScenario(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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::GetServiceExtensionsOutcome CCCClient::getServiceExtensions(const GetServiceExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceExtensionsOutcome(GetServiceExtensionsResult(outcome.result())); + else + return GetServiceExtensionsOutcome(outcome.error()); +} + +void CCCClient::getServiceExtensionsAsync(const GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetServiceExtensionsOutcomeCallable CCCClient::getServiceExtensionsCallable(const GetServiceExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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::DeleteJobGroupOutcome CCCClient::deleteJobGroup(const DeleteJobGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteJobGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteJobGroupOutcome(DeleteJobGroupResult(outcome.result())); + else + return DeleteJobGroupOutcome(outcome.error()); +} + +void CCCClient::deleteJobGroupAsync(const DeleteJobGroupRequest& request, const DeleteJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteJobGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DeleteJobGroupOutcomeCallable CCCClient::deleteJobGroupCallable(const DeleteJobGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteJobGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ccc/src/model/AddPhoneNumberResult.cc b/ccc/src/model/AddPhoneNumberResult.cc index 820fb4275..fe8175c77 100644 --- a/ccc/src/model/AddPhoneNumberResult.cc +++ b/ccc/src/model/AddPhoneNumberResult.cc @@ -40,79 +40,69 @@ void AddPhoneNumberResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allPhoneNumber = value["PhoneNumber"]; - for (auto value : allPhoneNumber) - { - PhoneNumber phoneNumberObject; - if(!value["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString(); - if(!value["InstanceId"].isNull()) - phoneNumberObject.instanceId = value["InstanceId"].asString(); - if(!value["Number"].isNull()) - phoneNumberObject.number = value["Number"].asString(); - if(!value["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); - if(!value["TestOnly"].isNull()) - phoneNumberObject.testOnly = value["TestOnly"].asString() == "true"; - if(!value["RemainingTime"].isNull()) - phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString()); - if(!value["AllowOutbound"].isNull()) - phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true"; - if(!value["Usage"].isNull()) - phoneNumberObject.usage = value["Usage"].asString(); - if(!value["Trunks"].isNull()) - phoneNumberObject.trunks = std::stoi(value["Trunks"].asString()); - auto allContactFlow = value["ContactFlow"]; - for (auto value : allContactFlow) - { - PhoneNumber::ContactFlow contactFlowObject; - if(!value["ContactFlowId"].isNull()) - contactFlowObject.contactFlowId = value["ContactFlowId"].asString(); - if(!value["InstanceId"].isNull()) - contactFlowObject.instanceId = value["InstanceId"].asString(); - if(!value["ContactFlowName"].isNull()) - contactFlowObject.contactFlowName = value["ContactFlowName"].asString(); - if(!value["ContactFlowDescription"].isNull()) - contactFlowObject.contactFlowDescription = value["ContactFlowDescription"].asString(); - if(!value["Type"].isNull()) - contactFlowObject.type = value["Type"].asString(); - phoneNumberObject.contactFlow.push_back(contactFlowObject); - } - phoneNumber_.push_back(phoneNumberObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto phoneNumberNode = value["PhoneNumber"]; + if(!phoneNumberNode["PhoneNumberId"].isNull()) + phoneNumber_.phoneNumberId = phoneNumberNode["PhoneNumberId"].asString(); + if(!phoneNumberNode["InstanceId"].isNull()) + phoneNumber_.instanceId = phoneNumberNode["InstanceId"].asString(); + if(!phoneNumberNode["Number"].isNull()) + phoneNumber_.number = phoneNumberNode["Number"].asString(); + if(!phoneNumberNode["PhoneNumberDescription"].isNull()) + phoneNumber_.phoneNumberDescription = phoneNumberNode["PhoneNumberDescription"].asString(); + if(!phoneNumberNode["TestOnly"].isNull()) + phoneNumber_.testOnly = phoneNumberNode["TestOnly"].asString() == "true"; + if(!phoneNumberNode["RemainingTime"].isNull()) + phoneNumber_.remainingTime = std::stoi(phoneNumberNode["RemainingTime"].asString()); + if(!phoneNumberNode["AllowOutbound"].isNull()) + phoneNumber_.allowOutbound = phoneNumberNode["AllowOutbound"].asString() == "true"; + if(!phoneNumberNode["Usage"].isNull()) + phoneNumber_.usage = phoneNumberNode["Usage"].asString(); + if(!phoneNumberNode["Trunks"].isNull()) + phoneNumber_.trunks = std::stoi(phoneNumberNode["Trunks"].asString()); + auto contactFlowNode = phoneNumberNode["ContactFlow"]; + if(!contactFlowNode["ContactFlowId"].isNull()) + phoneNumber_.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString(); + if(!contactFlowNode["InstanceId"].isNull()) + phoneNumber_.contactFlow.instanceId = contactFlowNode["InstanceId"].asString(); + if(!contactFlowNode["ContactFlowName"].isNull()) + phoneNumber_.contactFlow.contactFlowName = contactFlowNode["ContactFlowName"].asString(); + if(!contactFlowNode["ContactFlowDescription"].isNull()) + phoneNumber_.contactFlow.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); + if(!contactFlowNode["Type"].isNull()) + phoneNumber_.contactFlow.type = contactFlowNode["Type"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string AddPhoneNumberResult::getMessage()const -{ - return message_; -} - -int AddPhoneNumberResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector AddPhoneNumberResult::getPhoneNumber()const -{ - return phoneNumber_; -} - -std::string AddPhoneNumberResult::getCode()const -{ - return code_; -} - -bool AddPhoneNumberResult::getSuccess()const -{ - return success_; -} - +std::string AddPhoneNumberResult::getMessage()const +{ + return message_; +} + +int AddPhoneNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +AddPhoneNumberResult::PhoneNumber AddPhoneNumberResult::getPhoneNumber()const +{ + return phoneNumber_; +} + +std::string AddPhoneNumberResult::getCode()const +{ + return code_; +} + +bool AddPhoneNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/AssignJobsRequest.cc b/ccc/src/model/AssignJobsRequest.cc new file mode 100644 index 000000000..5cbf6b82c --- /dev/null +++ b/ccc/src/model/AssignJobsRequest.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::AssignJobsRequest; + +AssignJobsRequest::AssignJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "AssignJobs") +{} + +AssignJobsRequest::~AssignJobsRequest() +{} + +std::vector AssignJobsRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void AssignJobsRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int i = 0; i!= callingNumber.size(); i++) + setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); +} + +std::string AssignJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void AssignJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AssignJobsRequest::getGroupId()const +{ + return groupId_; +} + +void AssignJobsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string AssignJobsRequest::getStrategyJson()const +{ + return strategyJson_; +} + +void AssignJobsRequest::setStrategyJson(const std::string& strategyJson) +{ + strategyJson_ = strategyJson; + setParameter("StrategyJson", strategyJson); +} + +std::string AssignJobsRequest::getScenarioId()const +{ + return scenarioId_; +} + +void AssignJobsRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + +std::vector AssignJobsRequest::getJobsJson()const +{ + return jobsJson_; +} + +void AssignJobsRequest::setJobsJson(const std::vector& jobsJson) +{ + jobsJson_ = jobsJson; + for(int i = 0; i!= jobsJson.size(); i++) + setParameter("JobsJson."+ std::to_string(i), jobsJson.at(i)); +} + diff --git a/ccc/src/model/AssignJobsResult.cc b/ccc/src/model/AssignJobsResult.cc new file mode 100644 index 000000000..a10b848dc --- /dev/null +++ b/ccc/src/model/AssignJobsResult.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; + +AssignJobsResult::AssignJobsResult() : + ServiceResult() +{} + +AssignJobsResult::AssignJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssignJobsResult::~AssignJobsResult() +{} + +void AssignJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string AssignJobsResult::getMessage()const +{ + return message_; +} + +int AssignJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AssignJobsResult::getCode()const +{ + return code_; +} + +bool AssignJobsResult::getSuccess()const +{ + return success_; +} + +std::string AssignJobsResult::getGroupId()const +{ + return groupId_; +} + diff --git a/ccc/src/model/AssignUsersRequest.cc b/ccc/src/model/AssignUsersRequest.cc new file mode 100644 index 000000000..4ed77666b --- /dev/null +++ b/ccc/src/model/AssignUsersRequest.cc @@ -0,0 +1,97 @@ +/* + * 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::AssignUsersRequest; + +AssignUsersRequest::AssignUsersRequest() : + RpcServiceRequest("ccc", "2017-07-05", "AssignUsers") +{} + +AssignUsersRequest::~AssignUsersRequest() +{} + +std::vector AssignUsersRequest::getUserRamId()const +{ + return userRamId_; +} + +void AssignUsersRequest::setUserRamId(const std::vector& userRamId) +{ + userRamId_ = userRamId; + for(int i = 0; i!= userRamId.size(); i++) + setParameter("UserRamId."+ std::to_string(i), userRamId.at(i)); +} + +std::vector AssignUsersRequest::getSkillLevel()const +{ + return skillLevel_; +} + +void AssignUsersRequest::setSkillLevel(const std::vector& skillLevel) +{ + skillLevel_ = skillLevel; + for(int i = 0; i!= skillLevel.size(); i++) + setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); +} + +std::string AssignUsersRequest::getInstanceId()const +{ + return instanceId_; +} + +void AssignUsersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector AssignUsersRequest::getRoleId()const +{ + return roleId_; +} + +void AssignUsersRequest::setRoleId(const std::vector& roleId) +{ + roleId_ = roleId; + for(int i = 0; i!= roleId.size(); i++) + setParameter("RoleId."+ std::to_string(i), roleId.at(i)); +} + +std::vector AssignUsersRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void AssignUsersRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int i = 0; i!= skillGroupId.size(); i++) + setParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); +} + +std::string AssignUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AssignUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/AssignUsersResult.cc b/ccc/src/model/AssignUsersResult.cc new file mode 100644 index 000000000..263276188 --- /dev/null +++ b/ccc/src/model/AssignUsersResult.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; + +AssignUsersResult::AssignUsersResult() : + ServiceResult() +{} + +AssignUsersResult::AssignUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssignUsersResult::~AssignUsersResult() +{} + +void AssignUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string AssignUsersResult::getMessage()const +{ + return message_; +} + +int AssignUsersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AssignUsersResult::getCode()const +{ + return code_; +} + +bool AssignUsersResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CancelJobsRequest.cc b/ccc/src/model/CancelJobsRequest.cc new file mode 100644 index 000000000..cacc29f92 --- /dev/null +++ b/ccc/src/model/CancelJobsRequest.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::CancelJobsRequest; + +CancelJobsRequest::CancelJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CancelJobs") +{} + +CancelJobsRequest::~CancelJobsRequest() +{} + +bool CancelJobsRequest::getAll()const +{ + return all_; +} + +void CancelJobsRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", std::to_string(all)); +} + +std::vector CancelJobsRequest::getJobId()const +{ + return jobId_; +} + +void CancelJobsRequest::setJobId(const std::vector& jobId) +{ + jobId_ = jobId; + for(int i = 0; i!= jobId.size(); i++) + setParameter("JobId."+ std::to_string(i), jobId.at(i)); +} + +std::string CancelJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void CancelJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector CancelJobsRequest::getJobReferenceId()const +{ + return jobReferenceId_; +} + +void CancelJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) +{ + jobReferenceId_ = jobReferenceId; + for(int i = 0; i!= jobReferenceId.size(); i++) + setParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); +} + +std::string CancelJobsRequest::getGroupId()const +{ + return groupId_; +} + +void CancelJobsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string CancelJobsRequest::getScenarioId()const +{ + return scenarioId_; +} + +void CancelJobsRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/CancelJobsResult.cc b/ccc/src/model/CancelJobsResult.cc new file mode 100644 index 000000000..6df826954 --- /dev/null +++ b/ccc/src/model/CancelJobsResult.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; + +CancelJobsResult::CancelJobsResult() : + ServiceResult() +{} + +CancelJobsResult::CancelJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelJobsResult::~CancelJobsResult() +{} + +void CancelJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CancelJobsResult::getMessage()const +{ + return message_; +} + +int CancelJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CancelJobsResult::getCode()const +{ + return code_; +} + +bool CancelJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CancelPredictiveJobsRequest.cc b/ccc/src/model/CancelPredictiveJobsRequest.cc new file mode 100644 index 000000000..5692363f5 --- /dev/null +++ b/ccc/src/model/CancelPredictiveJobsRequest.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 + +using AlibabaCloud::CCC::Model::CancelPredictiveJobsRequest; + +CancelPredictiveJobsRequest::CancelPredictiveJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CancelPredictiveJobs") +{} + +CancelPredictiveJobsRequest::~CancelPredictiveJobsRequest() +{} + +bool CancelPredictiveJobsRequest::getAll()const +{ + return all_; +} + +void CancelPredictiveJobsRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", std::to_string(all)); +} + +std::vector CancelPredictiveJobsRequest::getJobId()const +{ + return jobId_; +} + +void CancelPredictiveJobsRequest::setJobId(const std::vector& jobId) +{ + jobId_ = jobId; + for(int i = 0; i!= jobId.size(); i++) + setParameter("JobId."+ std::to_string(i), jobId.at(i)); +} + +std::string CancelPredictiveJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void CancelPredictiveJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CancelPredictiveJobsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void CancelPredictiveJobsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/CancelPredictiveJobsResult.cc b/ccc/src/model/CancelPredictiveJobsResult.cc new file mode 100644 index 000000000..b10a42c40 --- /dev/null +++ b/ccc/src/model/CancelPredictiveJobsResult.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; + +CancelPredictiveJobsResult::CancelPredictiveJobsResult() : + ServiceResult() +{} + +CancelPredictiveJobsResult::CancelPredictiveJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelPredictiveJobsResult::~CancelPredictiveJobsResult() +{} + +void CancelPredictiveJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CancelPredictiveJobsResult::getMessage()const +{ + return message_; +} + +int CancelPredictiveJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CancelPredictiveJobsResult::getCode()const +{ + return code_; +} + +bool CancelPredictiveJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateBatchJobsRequest.cc b/ccc/src/model/CreateBatchJobsRequest.cc new file mode 100644 index 000000000..7d8220835 --- /dev/null +++ b/ccc/src/model/CreateBatchJobsRequest.cc @@ -0,0 +1,116 @@ +/* + * 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::CreateBatchJobsRequest; + +CreateBatchJobsRequest::CreateBatchJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateBatchJobs") +{} + +CreateBatchJobsRequest::~CreateBatchJobsRequest() +{} + +std::vector CreateBatchJobsRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void CreateBatchJobsRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int i = 0; i!= callingNumber.size(); i++) + setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); +} + +std::string CreateBatchJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateBatchJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool CreateBatchJobsRequest::getSubmitted()const +{ + return submitted_; +} + +void CreateBatchJobsRequest::setSubmitted(bool submitted) +{ + submitted_ = submitted; + setParameter("Submitted", std::to_string(submitted)); +} + +std::string CreateBatchJobsRequest::getStrategyJson()const +{ + return strategyJson_; +} + +void CreateBatchJobsRequest::setStrategyJson(const std::string& strategyJson) +{ + strategyJson_ = strategyJson; + setParameter("StrategyJson", strategyJson); +} + +std::string CreateBatchJobsRequest::getName()const +{ + return name_; +} + +void CreateBatchJobsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateBatchJobsRequest::getDescription()const +{ + return description_; +} + +void CreateBatchJobsRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateBatchJobsRequest::getScenarioId()const +{ + return scenarioId_; +} + +void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + +std::string CreateBatchJobsRequest::getJobFilePath()const +{ + return jobFilePath_; +} + +void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath) +{ + jobFilePath_ = jobFilePath; + setParameter("JobFilePath", jobFilePath); +} + diff --git a/ccc/src/model/CreateBatchJobsResult.cc b/ccc/src/model/CreateBatchJobsResult.cc new file mode 100644 index 000000000..92bac5496 --- /dev/null +++ b/ccc/src/model/CreateBatchJobsResult.cc @@ -0,0 +1,134 @@ +/* + * 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; + +CreateBatchJobsResult::CreateBatchJobsResult() : + ServiceResult() +{} + +CreateBatchJobsResult::CreateBatchJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBatchJobsResult::~CreateBatchJobsResult() +{} + +void CreateBatchJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobGroupNode = value["JobGroup"]; + if(!jobGroupNode["JobGroupId"].isNull()) + jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString(); + if(!jobGroupNode["JobGroupName"].isNull()) + jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString(); + if(!jobGroupNode["JobGroupDescription"].isNull()) + jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString(); + if(!jobGroupNode["ScenarioId"].isNull()) + jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString(); + if(!jobGroupNode["JobFilePath"].isNull()) + jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString(); + if(!jobGroupNode["CreationTime"].isNull()) + jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString()); + auto strategyNode = jobGroupNode["Strategy"]; + if(!strategyNode["StrategyId"].isNull()) + jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["StrategyName"].isNull()) + jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString(); + if(!strategyNode["StrategyDescription"].isNull()) + jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); + if(!strategyNode["Type"].isNull()) + jobGroup_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + jobGroup_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + JobGroup::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + jobGroup_.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + jobGroup_.strategy.repeatDays.push_back(value.asString()); + auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + jobGroup_.callingNumbers.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +CreateBatchJobsResult::JobGroup CreateBatchJobsResult::getJobGroup()const +{ + return jobGroup_; +} + +std::string CreateBatchJobsResult::getMessage()const +{ + return message_; +} + +int CreateBatchJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateBatchJobsResult::getCode()const +{ + return code_; +} + +bool CreateBatchJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateJobGroupRequest.cc b/ccc/src/model/CreateJobGroupRequest.cc new file mode 100644 index 000000000..13ac4bec5 --- /dev/null +++ b/ccc/src/model/CreateJobGroupRequest.cc @@ -0,0 +1,94 @@ +/* + * 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::CreateJobGroupRequest; + +CreateJobGroupRequest::CreateJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateJobGroup") +{} + +CreateJobGroupRequest::~CreateJobGroupRequest() +{} + +std::vector CreateJobGroupRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void CreateJobGroupRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int i = 0; i!= callingNumber.size(); i++) + setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); +} + +std::string CreateJobGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateJobGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateJobGroupRequest::getStrategyJson()const +{ + return strategyJson_; +} + +void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson) +{ + strategyJson_ = strategyJson; + setParameter("StrategyJson", strategyJson); +} + +std::string CreateJobGroupRequest::getName()const +{ + return name_; +} + +void CreateJobGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateJobGroupRequest::getDescription()const +{ + return description_; +} + +void CreateJobGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateJobGroupRequest::getScenarioId()const +{ + return scenarioId_; +} + +void CreateJobGroupRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/CreateJobGroupResult.cc b/ccc/src/model/CreateJobGroupResult.cc new file mode 100644 index 000000000..7c28191fa --- /dev/null +++ b/ccc/src/model/CreateJobGroupResult.cc @@ -0,0 +1,134 @@ +/* + * 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; + +CreateJobGroupResult::CreateJobGroupResult() : + ServiceResult() +{} + +CreateJobGroupResult::CreateJobGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateJobGroupResult::~CreateJobGroupResult() +{} + +void CreateJobGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobGroupNode = value["JobGroup"]; + if(!jobGroupNode["JobGroupId"].isNull()) + jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString(); + if(!jobGroupNode["JobGroupName"].isNull()) + jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString(); + if(!jobGroupNode["JobGroupDescription"].isNull()) + jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString(); + if(!jobGroupNode["ScenarioId"].isNull()) + jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString(); + if(!jobGroupNode["JobFilePath"].isNull()) + jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString(); + if(!jobGroupNode["CreationTime"].isNull()) + jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString()); + auto strategyNode = jobGroupNode["Strategy"]; + if(!strategyNode["StrategyId"].isNull()) + jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["StrategyName"].isNull()) + jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString(); + if(!strategyNode["StrategyDescription"].isNull()) + jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); + if(!strategyNode["Type"].isNull()) + jobGroup_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + jobGroup_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + JobGroup::Strategy::TimeFrame timeFrameObject; + if(!value["From"].isNull()) + timeFrameObject.from = value["From"].asString(); + if(!value["To"].isNull()) + timeFrameObject.to = value["To"].asString(); + jobGroup_.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + jobGroup_.strategy.repeatDays.push_back(value.asString()); + auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + jobGroup_.callingNumbers.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +CreateJobGroupResult::JobGroup CreateJobGroupResult::getJobGroup()const +{ + return jobGroup_; +} + +std::string CreateJobGroupResult::getMessage()const +{ + return message_; +} + +int CreateJobGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateJobGroupResult::getCode()const +{ + return code_; +} + +bool CreateJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreatePredictiveJobsRequest.cc b/ccc/src/model/CreatePredictiveJobsRequest.cc new file mode 100644 index 000000000..a2e3d1ba1 --- /dev/null +++ b/ccc/src/model/CreatePredictiveJobsRequest.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 + +using AlibabaCloud::CCC::Model::CreatePredictiveJobsRequest; + +CreatePredictiveJobsRequest::CreatePredictiveJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreatePredictiveJobs") +{} + +CreatePredictiveJobsRequest::~CreatePredictiveJobsRequest() +{} + +std::string CreatePredictiveJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreatePredictiveJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreatePredictiveJobsRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void CreatePredictiveJobsRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string CreatePredictiveJobsRequest::getStrategyJson()const +{ + return strategyJson_; +} + +void CreatePredictiveJobsRequest::setStrategyJson(const std::string& strategyJson) +{ + strategyJson_ = strategyJson; + setParameter("StrategyJson", strategyJson); +} + +std::vector CreatePredictiveJobsRequest::getJobsJson()const +{ + return jobsJson_; +} + +void CreatePredictiveJobsRequest::setJobsJson(const std::vector& jobsJson) +{ + jobsJson_ = jobsJson; + for(int i = 0; i!= jobsJson.size(); i++) + setParameter("JobsJson."+ std::to_string(i), jobsJson.at(i)); +} + diff --git a/ccc/src/model/CreatePredictiveJobsResult.cc b/ccc/src/model/CreatePredictiveJobsResult.cc new file mode 100644 index 000000000..3047bedd7 --- /dev/null +++ b/ccc/src/model/CreatePredictiveJobsResult.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; + +CreatePredictiveJobsResult::CreatePredictiveJobsResult() : + ServiceResult() +{} + +CreatePredictiveJobsResult::CreatePredictiveJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePredictiveJobsResult::~CreatePredictiveJobsResult() +{} + +void CreatePredictiveJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["JobGroupId"].isNull()) + jobGroupId_ = value["JobGroupId"].asString(); + +} + +std::string CreatePredictiveJobsResult::getJobGroupId()const +{ + return jobGroupId_; +} + +std::string CreatePredictiveJobsResult::getMessage()const +{ + return message_; +} + +int CreatePredictiveJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreatePredictiveJobsResult::getCode()const +{ + return code_; +} + +bool CreatePredictiveJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateScenarioFromTemplateRequest.cc b/ccc/src/model/CreateScenarioFromTemplateRequest.cc new file mode 100644 index 000000000..08cb607d8 --- /dev/null +++ b/ccc/src/model/CreateScenarioFromTemplateRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::CreateScenarioFromTemplateRequest; + +CreateScenarioFromTemplateRequest::CreateScenarioFromTemplateRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateScenarioFromTemplate") +{} + +CreateScenarioFromTemplateRequest::~CreateScenarioFromTemplateRequest() +{} + +std::string CreateScenarioFromTemplateRequest::getVariables()const +{ + return variables_; +} + +void CreateScenarioFromTemplateRequest::setVariables(const std::string& variables) +{ + variables_ = variables; + setParameter("Variables", variables); +} + +std::string CreateScenarioFromTemplateRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateScenarioFromTemplateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateScenarioFromTemplateRequest::getName()const +{ + return name_; +} + +void CreateScenarioFromTemplateRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateScenarioFromTemplateRequest::getDescription()const +{ + return description_; +} + +void CreateScenarioFromTemplateRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateScenarioFromTemplateRequest::getTemplateId()const +{ + return templateId_; +} + +void CreateScenarioFromTemplateRequest::setTemplateId(const std::string& templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", templateId); +} + diff --git a/ccc/src/model/CreateScenarioFromTemplateResult.cc b/ccc/src/model/CreateScenarioFromTemplateResult.cc new file mode 100644 index 000000000..6f7c8565d --- /dev/null +++ b/ccc/src/model/CreateScenarioFromTemplateResult.cc @@ -0,0 +1,167 @@ +/* + * 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; + +CreateScenarioFromTemplateResult::CreateScenarioFromTemplateResult() : + ServiceResult() +{} + +CreateScenarioFromTemplateResult::CreateScenarioFromTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateScenarioFromTemplateResult::~CreateScenarioFromTemplateResult() +{} + +void CreateScenarioFromTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto scenarioNode = value["Scenario"]; + if(!scenarioNode["ScenarioId"].isNull()) + scenario_.scenarioId = scenarioNode["ScenarioId"].asString(); + if(!scenarioNode["ScenarioName"].isNull()) + scenario_.scenarioName = scenarioNode["ScenarioName"].asString(); + if(!scenarioNode["ScenarioDescription"].isNull()) + scenario_.scenarioDescription = scenarioNode["ScenarioDescription"].asString(); + if(!scenarioNode["Type"].isNull()) + scenario_.type = scenarioNode["Type"].asString(); + if(!scenarioNode["IsTemplate"].isNull()) + scenario_.isTemplate = scenarioNode["IsTemplate"].asString() == "true"; + auto allSurveys = value["Surveys"]["Survey"]; + for (auto value : allSurveys) + { + Scenario::Survey surveyObject; + if(!value["SurveyId"].isNull()) + surveyObject.surveyId = value["SurveyId"].asString(); + if(!value["SurveyName"].isNull()) + surveyObject.surveyName = value["SurveyName"].asString(); + if(!value["SurveyDescription"].isNull()) + surveyObject.surveyDescription = value["SurveyDescription"].asString(); + if(!value["Role"].isNull()) + surveyObject.role = value["Role"].asString(); + if(!value["Round"].isNull()) + surveyObject.round = std::stoi(value["Round"].asString()); + if(!value["BeebotId"].isNull()) + surveyObject.beebotId = value["BeebotId"].asString(); + auto allIntents = value["Intents"]["IntentNode"]; + for (auto value : allIntents) + { + Scenario::Survey::IntentNode intentsObject; + if(!value["NodeId"].isNull()) + intentsObject.nodeId = value["NodeId"].asString(); + if(!value["IntentId"].isNull()) + intentsObject.intentId = value["IntentId"].asString(); + surveyObject.intents.push_back(intentsObject); + } + scenario_.surveys.push_back(surveyObject); + } + auto allVariables = value["Variables"]["KeyValuePair"]; + for (auto value : allVariables) + { + Scenario::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + scenario_.variables.push_back(keyValuePairObject); + } + auto strategyNode = scenarioNode["Strategy"]; + if(!strategyNode["StrategyId"].isNull()) + scenario_.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["StrategyName"].isNull()) + scenario_.strategy.strategyName = strategyNode["StrategyName"].asString(); + if(!strategyNode["StrategyDescription"].isNull()) + scenario_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); + if(!strategyNode["Type"].isNull()) + scenario_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + scenario_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + scenario_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + scenario_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + scenario_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + scenario_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + scenario_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + scenario_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + scenario_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + scenario_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + Scenario::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + scenario_.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + scenario_.strategy.repeatDays.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateScenarioFromTemplateResult::getMessage()const +{ + return message_; +} + +int CreateScenarioFromTemplateResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateScenarioFromTemplateResult::getCode()const +{ + return code_; +} + +bool CreateScenarioFromTemplateResult::getSuccess()const +{ + return success_; +} + +CreateScenarioFromTemplateResult::Scenario CreateScenarioFromTemplateResult::getScenario()const +{ + return scenario_; +} + diff --git a/ccc/src/model/CreateScenarioRequest.cc b/ccc/src/model/CreateScenarioRequest.cc new file mode 100644 index 000000000..4ee24b72d --- /dev/null +++ b/ccc/src/model/CreateScenarioRequest.cc @@ -0,0 +1,94 @@ +/* + * 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::CreateScenarioRequest; + +CreateScenarioRequest::CreateScenarioRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateScenario") +{} + +CreateScenarioRequest::~CreateScenarioRequest() +{} + +std::string CreateScenarioRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateScenarioRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector CreateScenarioRequest::getSurveysJson()const +{ + return surveysJson_; +} + +void CreateScenarioRequest::setSurveysJson(const std::vector& surveysJson) +{ + surveysJson_ = surveysJson; + for(int i = 0; i!= surveysJson.size(); i++) + setParameter("SurveysJson."+ std::to_string(i), surveysJson.at(i)); +} + +std::string CreateScenarioRequest::getStrategyJson()const +{ + return strategyJson_; +} + +void CreateScenarioRequest::setStrategyJson(const std::string& strategyJson) +{ + strategyJson_ = strategyJson; + setParameter("StrategyJson", strategyJson); +} + +std::string CreateScenarioRequest::getName()const +{ + return name_; +} + +void CreateScenarioRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateScenarioRequest::getDescription()const +{ + return description_; +} + +void CreateScenarioRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateScenarioRequest::getType()const +{ + return type_; +} + +void CreateScenarioRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/ccc/src/model/CreateScenarioResult.cc b/ccc/src/model/CreateScenarioResult.cc new file mode 100644 index 000000000..a0ecc1e07 --- /dev/null +++ b/ccc/src/model/CreateScenarioResult.cc @@ -0,0 +1,167 @@ +/* + * 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; + +CreateScenarioResult::CreateScenarioResult() : + ServiceResult() +{} + +CreateScenarioResult::CreateScenarioResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateScenarioResult::~CreateScenarioResult() +{} + +void CreateScenarioResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto scenarioNode = value["Scenario"]; + if(!scenarioNode["ScenarioId"].isNull()) + scenario_.scenarioId = scenarioNode["ScenarioId"].asString(); + if(!scenarioNode["ScenarioName"].isNull()) + scenario_.scenarioName = scenarioNode["ScenarioName"].asString(); + if(!scenarioNode["ScenarioDescription"].isNull()) + scenario_.scenarioDescription = scenarioNode["ScenarioDescription"].asString(); + if(!scenarioNode["Type"].isNull()) + scenario_.type = scenarioNode["Type"].asString(); + if(!scenarioNode["IsTemplate"].isNull()) + scenario_.isTemplate = scenarioNode["IsTemplate"].asString() == "true"; + auto allSurveys = value["Surveys"]["Survey"]; + for (auto value : allSurveys) + { + Scenario::Survey surveyObject; + if(!value["SurveyId"].isNull()) + surveyObject.surveyId = value["SurveyId"].asString(); + if(!value["SurveyName"].isNull()) + surveyObject.surveyName = value["SurveyName"].asString(); + if(!value["SurveyDescription"].isNull()) + surveyObject.surveyDescription = value["SurveyDescription"].asString(); + if(!value["Role"].isNull()) + surveyObject.role = value["Role"].asString(); + if(!value["Round"].isNull()) + surveyObject.round = std::stoi(value["Round"].asString()); + if(!value["BeebotId"].isNull()) + surveyObject.beebotId = value["BeebotId"].asString(); + auto allIntents = value["Intents"]["IntentNode"]; + for (auto value : allIntents) + { + Scenario::Survey::IntentNode intentsObject; + if(!value["NodeId"].isNull()) + intentsObject.nodeId = value["NodeId"].asString(); + if(!value["IntentId"].isNull()) + intentsObject.intentId = value["IntentId"].asString(); + surveyObject.intents.push_back(intentsObject); + } + scenario_.surveys.push_back(surveyObject); + } + auto allVariables = value["Variables"]["KeyValuePair"]; + for (auto value : allVariables) + { + Scenario::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + scenario_.variables.push_back(keyValuePairObject); + } + auto strategyNode = scenarioNode["Strategy"]; + if(!strategyNode["StrategyId"].isNull()) + scenario_.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["StrategyName"].isNull()) + scenario_.strategy.strategyName = strategyNode["StrategyName"].asString(); + if(!strategyNode["StrategyDescription"].isNull()) + scenario_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); + if(!strategyNode["Type"].isNull()) + scenario_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + scenario_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + scenario_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + scenario_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + scenario_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + scenario_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + scenario_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + scenario_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + scenario_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + scenario_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + Scenario::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + scenario_.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + scenario_.strategy.repeatDays.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateScenarioResult::getMessage()const +{ + return message_; +} + +int CreateScenarioResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateScenarioResult::getCode()const +{ + return code_; +} + +bool CreateScenarioResult::getSuccess()const +{ + return success_; +} + +CreateScenarioResult::Scenario CreateScenarioResult::getScenario()const +{ + return scenario_; +} + diff --git a/ccc/src/model/CreateSkillGroupRequest.cc b/ccc/src/model/CreateSkillGroupRequest.cc new file mode 100644 index 000000000..87187580b --- /dev/null +++ b/ccc/src/model/CreateSkillGroupRequest.cc @@ -0,0 +1,107 @@ +/* + * 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", "2017-07-05", "CreateSkillGroup") +{} + +CreateSkillGroupRequest::~CreateSkillGroupRequest() +{} + +std::vector CreateSkillGroupRequest::getSkillLevel()const +{ + return skillLevel_; +} + +void CreateSkillGroupRequest::setSkillLevel(const std::vector& skillLevel) +{ + skillLevel_ = skillLevel; + for(int i = 0; i!= skillLevel.size(); i++) + setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); +} + +std::string CreateSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector CreateSkillGroupRequest::getOutboundPhoneNumberId()const +{ + return outboundPhoneNumberId_; +} + +void CreateSkillGroupRequest::setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId) +{ + outboundPhoneNumberId_ = outboundPhoneNumberId; + for(int i = 0; i!= outboundPhoneNumberId.size(); i++) + setParameter("OutboundPhoneNumberId."+ std::to_string(i), outboundPhoneNumberId.at(i)); +} + +std::string CreateSkillGroupRequest::getName()const +{ + return name_; +} + +void CreateSkillGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateSkillGroupRequest::getDescription()const +{ + return description_; +} + +void CreateSkillGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::vector CreateSkillGroupRequest::getUserId()const +{ + return userId_; +} + +void CreateSkillGroupRequest::setUserId(const std::vector& userId) +{ + userId_ = userId; + for(int i = 0; i!= userId.size(); i++) + setParameter("UserId."+ std::to_string(i), userId.at(i)); +} + +std::string CreateSkillGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/CreateSkillGroupResult.cc b/ccc/src/model/CreateSkillGroupResult.cc new file mode 100644 index 000000000..3e897579c --- /dev/null +++ b/ccc/src/model/CreateSkillGroupResult.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; + +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()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["SkillGroupId"].isNull()) + skillGroupId_ = value["SkillGroupId"].asString(); + +} + +std::string CreateSkillGroupResult::getMessage()const +{ + return message_; +} + +int CreateSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateSkillGroupResult::getSkillGroupId()const +{ + return skillGroupId_; +} + +std::string CreateSkillGroupResult::getCode()const +{ + return code_; +} + +bool CreateSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateSurveyRequest.cc b/ccc/src/model/CreateSurveyRequest.cc new file mode 100644 index 000000000..8b4e12917 --- /dev/null +++ b/ccc/src/model/CreateSurveyRequest.cc @@ -0,0 +1,137 @@ +/* + * 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::CreateSurveyRequest; + +CreateSurveyRequest::CreateSurveyRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateSurvey") +{} + +CreateSurveyRequest::~CreateSurveyRequest() +{} + +std::string CreateSurveyRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateSurveyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateSurveyRequest::getRole()const +{ + return role_; +} + +void CreateSurveyRequest::setRole(const std::string& role) +{ + role_ = role; + setParameter("Role", role); +} + +int CreateSurveyRequest::getRound()const +{ + return round_; +} + +void CreateSurveyRequest::setRound(int round) +{ + round_ = round; + setParameter("Round", std::to_string(round)); +} + +std::string CreateSurveyRequest::getFlowJson()const +{ + return flowJson_; +} + +void CreateSurveyRequest::setFlowJson(const std::string& flowJson) +{ + flowJson_ = flowJson; + setParameter("FlowJson", flowJson); +} + +std::string CreateSurveyRequest::getName()const +{ + return name_; +} + +void CreateSurveyRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateSurveyRequest::getGlobalQuestions()const +{ + return globalQuestions_; +} + +void CreateSurveyRequest::setGlobalQuestions(const std::string& globalQuestions) +{ + globalQuestions_ = globalQuestions; + setParameter("GlobalQuestions", globalQuestions); +} + +std::string CreateSurveyRequest::getDescription()const +{ + return description_; +} + +void CreateSurveyRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateSurveyRequest::getCorpora()const +{ + return corpora_; +} + +void CreateSurveyRequest::setCorpora(const std::string& corpora) +{ + corpora_ = corpora; + setParameter("Corpora", corpora); +} + +std::string CreateSurveyRequest::getSpeechOptimizationParam()const +{ + return speechOptimizationParam_; +} + +void CreateSurveyRequest::setSpeechOptimizationParam(const std::string& speechOptimizationParam) +{ + speechOptimizationParam_ = speechOptimizationParam; + setParameter("SpeechOptimizationParam", speechOptimizationParam); +} + +std::string CreateSurveyRequest::getScenarioId()const +{ + return scenarioId_; +} + +void CreateSurveyRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/CreateSurveyResult.cc b/ccc/src/model/CreateSurveyResult.cc new file mode 100644 index 000000000..2f1c19ee8 --- /dev/null +++ b/ccc/src/model/CreateSurveyResult.cc @@ -0,0 +1,109 @@ +/* + * 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; + +CreateSurveyResult::CreateSurveyResult() : + ServiceResult() +{} + +CreateSurveyResult::CreateSurveyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSurveyResult::~CreateSurveyResult() +{} + +void CreateSurveyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto surveyNode = value["Survey"]; + if(!surveyNode["Id"].isNull()) + survey_.id = surveyNode["Id"].asString(); + if(!surveyNode["ScenarioUuid"].isNull()) + survey_.scenarioUuid = surveyNode["ScenarioUuid"].asString(); + if(!surveyNode["Name"].isNull()) + survey_.name = surveyNode["Name"].asString(); + if(!surveyNode["Description"].isNull()) + survey_.description = surveyNode["Description"].asString(); + if(!surveyNode["Role"].isNull()) + survey_.role = surveyNode["Role"].asString(); + if(!surveyNode["Round"].isNull()) + survey_.round = std::stoi(surveyNode["Round"].asString()); + if(!surveyNode["HotWords"].isNull()) + survey_.hotWords = surveyNode["HotWords"].asString(); + if(!surveyNode["SpeechOptimizationParam"].isNull()) + survey_.speechOptimizationParam = surveyNode["SpeechOptimizationParam"].asString(); + if(!surveyNode["GlobalQuestions"].isNull()) + survey_.globalQuestions = surveyNode["GlobalQuestions"].asString(); + auto flowNode = surveyNode["Flow"]; + if(!flowNode["FlowId"].isNull()) + survey_.flow.flowId = flowNode["FlowId"].asString(); + if(!flowNode["IsPublished"].isNull()) + survey_.flow.isPublished = flowNode["IsPublished"].asString() == "true"; + if(!flowNode["FlowJson"].isNull()) + survey_.flow.flowJson = flowNode["FlowJson"].asString(); + auto asrCustomModelNode = surveyNode["AsrCustomModel"]; + if(!asrCustomModelNode["Corpora"].isNull()) + survey_.asrCustomModel.corpora = asrCustomModelNode["Corpora"].asString(); + if(!asrCustomModelNode["CustomModelStatus"].isNull()) + survey_.asrCustomModel.customModelStatus = std::stoi(asrCustomModelNode["CustomModelStatus"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +CreateSurveyResult::Survey CreateSurveyResult::getSurvey()const +{ + return survey_; +} + +std::string CreateSurveyResult::getMessage()const +{ + return message_; +} + +int CreateSurveyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateSurveyResult::getCode()const +{ + return code_; +} + +bool CreateSurveyResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateUserRequest.cc b/ccc/src/model/CreateUserRequest.cc new file mode 100644 index 000000000..d7f29d330 --- /dev/null +++ b/ccc/src/model/CreateUserRequest.cc @@ -0,0 +1,129 @@ +/* + * 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", "2017-07-05", "CreateUser") +{} + +CreateUserRequest::~CreateUserRequest() +{} + +std::vector CreateUserRequest::getSkillLevel()const +{ + return skillLevel_; +} + +void CreateUserRequest::setSkillLevel(const std::vector& skillLevel) +{ + skillLevel_ = skillLevel; + for(int i = 0; i!= skillLevel.size(); i++) + setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); +} + +std::string CreateUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateUserRequest::getLoginName()const +{ + return loginName_; +} + +void CreateUserRequest::setLoginName(const std::string& loginName) +{ + loginName_ = loginName; + setParameter("LoginName", loginName); +} + +std::string CreateUserRequest::getPhone()const +{ + return phone_; +} + +void CreateUserRequest::setPhone(const std::string& phone) +{ + phone_ = phone; + setParameter("Phone", phone); +} + +std::vector CreateUserRequest::getRoleId()const +{ + return roleId_; +} + +void CreateUserRequest::setRoleId(const std::vector& roleId) +{ + roleId_ = roleId; + for(int i = 0; i!= roleId.size(); i++) + setParameter("RoleId."+ std::to_string(i), roleId.at(i)); +} + +std::string CreateUserRequest::getDisplayName()const +{ + return displayName_; +} + +void CreateUserRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setParameter("DisplayName", displayName); +} + +std::vector CreateUserRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void CreateUserRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int i = 0; i!= skillGroupId.size(); i++) + setParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); +} + +std::string CreateUserRequest::getEmail()const +{ + return email_; +} + +void CreateUserRequest::setEmail(const std::string& email) +{ + email_ = email; + setParameter("Email", email); +} + +std::string CreateUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/CreateUserResult.cc b/ccc/src/model/CreateUserResult.cc new file mode 100644 index 000000000..f05fc1b76 --- /dev/null +++ b/ccc/src/model/CreateUserResult.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; + +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()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["UserId"].isNull()) + userId_ = value["UserId"].asString(); + +} + +std::string CreateUserResult::getMessage()const +{ + return message_; +} + +std::string CreateUserResult::getUserId()const +{ + return userId_; +} + +int CreateUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateUserResult::getCode()const +{ + return code_; +} + +bool CreateUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteJobGroupRequest.cc b/ccc/src/model/DeleteJobGroupRequest.cc new file mode 100644 index 000000000..753a4fc79 --- /dev/null +++ b/ccc/src/model/DeleteJobGroupRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::DeleteJobGroupRequest; + +DeleteJobGroupRequest::DeleteJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DeleteJobGroup") +{} + +DeleteJobGroupRequest::~DeleteJobGroupRequest() +{} + +std::string DeleteJobGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteJobGroupRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DeleteJobGroupRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/DeleteJobGroupResult.cc b/ccc/src/model/DeleteJobGroupResult.cc new file mode 100644 index 000000000..062dabb00 --- /dev/null +++ b/ccc/src/model/DeleteJobGroupResult.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; + +DeleteJobGroupResult::DeleteJobGroupResult() : + ServiceResult() +{} + +DeleteJobGroupResult::DeleteJobGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteJobGroupResult::~DeleteJobGroupResult() +{} + +void DeleteJobGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DeleteJobGroupResult::getMessage()const +{ + return message_; +} + +int DeleteJobGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteJobGroupResult::getCode()const +{ + return code_; +} + +bool DeleteJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteSkillGroupResult.cc b/ccc/src/model/DeleteSkillGroupResult.cc index 43681b587..c8219fe65 100644 --- a/ccc/src/model/DeleteSkillGroupResult.cc +++ b/ccc/src/model/DeleteSkillGroupResult.cc @@ -40,34 +40,34 @@ void DeleteSkillGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string DeleteSkillGroupResult::getMessage()const -{ - return message_; -} - -int DeleteSkillGroupResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DeleteSkillGroupResult::getCode()const -{ - return code_; -} - -bool DeleteSkillGroupResult::getSuccess()const -{ - return success_; -} - +std::string DeleteSkillGroupResult::getMessage()const +{ + return message_; +} + +int DeleteSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteSkillGroupResult::getCode()const +{ + return code_; +} + +bool DeleteSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteSurveyRequest.cc b/ccc/src/model/DeleteSurveyRequest.cc new file mode 100644 index 000000000..778ff2036 --- /dev/null +++ b/ccc/src/model/DeleteSurveyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::DeleteSurveyRequest; + +DeleteSurveyRequest::DeleteSurveyRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DeleteSurvey") +{} + +DeleteSurveyRequest::~DeleteSurveyRequest() +{} + +std::string DeleteSurveyRequest::getSurveyId()const +{ + return surveyId_; +} + +void DeleteSurveyRequest::setSurveyId(const std::string& surveyId) +{ + surveyId_ = surveyId; + setParameter("SurveyId", surveyId); +} + +std::string DeleteSurveyRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteSurveyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteSurveyRequest::getScenarioId()const +{ + return scenarioId_; +} + +void DeleteSurveyRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/DeleteSurveyResult.cc b/ccc/src/model/DeleteSurveyResult.cc new file mode 100644 index 000000000..ee4d8437d --- /dev/null +++ b/ccc/src/model/DeleteSurveyResult.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; + +DeleteSurveyResult::DeleteSurveyResult() : + ServiceResult() +{} + +DeleteSurveyResult::DeleteSurveyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSurveyResult::~DeleteSurveyResult() +{} + +void DeleteSurveyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DeleteSurveyResult::getMessage()const +{ + return message_; +} + +int DeleteSurveyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteSurveyResult::getCode()const +{ + return code_; +} + +bool DeleteSurveyResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DialogueRequest.cc b/ccc/src/model/DialogueRequest.cc new file mode 100644 index 000000000..0e03b16cb --- /dev/null +++ b/ccc/src/model/DialogueRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::DialogueRequest; + +DialogueRequest::DialogueRequest() : + RpcServiceRequest("ccc", "2017-07-05", "Dialogue") +{} + +DialogueRequest::~DialogueRequest() +{} + +std::string DialogueRequest::getCallId()const +{ + return callId_; +} + +void DialogueRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setParameter("CallId", callId); +} + +std::string DialogueRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void DialogueRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setParameter("CallingNumber", callingNumber); +} + +std::string DialogueRequest::getInstanceId()const +{ + return instanceId_; +} + +void DialogueRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DialogueRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void DialogueRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setParameter("CalledNumber", calledNumber); +} + +std::string DialogueRequest::getActionParams()const +{ + return actionParams_; +} + +void DialogueRequest::setActionParams(const std::string& actionParams) +{ + actionParams_ = actionParams; + setParameter("ActionParams", actionParams); +} + +std::string DialogueRequest::getCallType()const +{ + return callType_; +} + +void DialogueRequest::setCallType(const std::string& callType) +{ + callType_ = callType; + setParameter("CallType", callType); +} + +std::string DialogueRequest::getScenarioId()const +{ + return scenarioId_; +} + +void DialogueRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + +std::string DialogueRequest::getTaskId()const +{ + return taskId_; +} + +void DialogueRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + +std::string DialogueRequest::getUtterance()const +{ + return utterance_; +} + +void DialogueRequest::setUtterance(const std::string& utterance) +{ + utterance_ = utterance; + setParameter("Utterance", utterance); +} + diff --git a/ccc/src/model/DialogueResult.cc b/ccc/src/model/DialogueResult.cc new file mode 100644 index 000000000..10d2dbb76 --- /dev/null +++ b/ccc/src/model/DialogueResult.cc @@ -0,0 +1,85 @@ +/* + * 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; + +DialogueResult::DialogueResult() : + ServiceResult() +{} + +DialogueResult::DialogueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DialogueResult::~DialogueResult() +{} + +void DialogueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto feedbackNode = value["Feedback"]; + if(!feedbackNode["Content"].isNull()) + feedback_.content = feedbackNode["Content"].asString(); + if(!feedbackNode["Action"].isNull()) + feedback_.action = feedbackNode["Action"].asString(); + if(!feedbackNode["ActionParams"].isNull()) + feedback_.actionParams = feedbackNode["ActionParams"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DialogueResult::getMessage()const +{ + return message_; +} + +DialogueResult::Feedback DialogueResult::getFeedback()const +{ + return feedback_; +} + +int DialogueResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DialogueResult::getCode()const +{ + return code_; +} + +bool DialogueResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc b/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc new file mode 100644 index 000000000..3deaadce6 --- /dev/null +++ b/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::DownloadOriginalStatisticsReportRequest; + +DownloadOriginalStatisticsReportRequest::DownloadOriginalStatisticsReportRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DownloadOriginalStatisticsReport") +{} + +DownloadOriginalStatisticsReportRequest::~DownloadOriginalStatisticsReportRequest() +{} + +std::string DownloadOriginalStatisticsReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void DownloadOriginalStatisticsReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DownloadOriginalStatisticsReportRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DownloadOriginalStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/DownloadOriginalStatisticsReportResult.cc b/ccc/src/model/DownloadOriginalStatisticsReportResult.cc new file mode 100644 index 000000000..1636ef94a --- /dev/null +++ b/ccc/src/model/DownloadOriginalStatisticsReportResult.cc @@ -0,0 +1,81 @@ +/* + * 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; + +DownloadOriginalStatisticsReportResult::DownloadOriginalStatisticsReportResult() : + ServiceResult() +{} + +DownloadOriginalStatisticsReportResult::DownloadOriginalStatisticsReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadOriginalStatisticsReportResult::~DownloadOriginalStatisticsReportResult() +{} + +void DownloadOriginalStatisticsReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto downloadParamsNode = value["DownloadParams"]; + if(!downloadParamsNode["SignatureUrl"].isNull()) + downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +DownloadOriginalStatisticsReportResult::DownloadParams DownloadOriginalStatisticsReportResult::getDownloadParams()const +{ + return downloadParams_; +} + +std::string DownloadOriginalStatisticsReportResult::getMessage()const +{ + return message_; +} + +int DownloadOriginalStatisticsReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DownloadOriginalStatisticsReportResult::getCode()const +{ + return code_; +} + +bool DownloadOriginalStatisticsReportResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DownloadRecordingResult.cc b/ccc/src/model/DownloadRecordingResult.cc index f5149efe0..011e2a622 100644 --- a/ccc/src/model/DownloadRecordingResult.cc +++ b/ccc/src/model/DownloadRecordingResult.cc @@ -40,49 +40,44 @@ void DownloadRecordingResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allMediaDownloadParam = value["MediaDownloadParam"]; - for (auto value : allMediaDownloadParam) - { - MediaDownloadParam mediaDownloadParamObject; - if(!value["SignatureUrl"].isNull()) - mediaDownloadParamObject.signatureUrl = value["SignatureUrl"].asString(); - if(!value["FileName"].isNull()) - mediaDownloadParamObject.fileName = value["FileName"].asString(); - mediaDownloadParam_.push_back(mediaDownloadParamObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto mediaDownloadParamNode = value["MediaDownloadParam"]; + if(!mediaDownloadParamNode["SignatureUrl"].isNull()) + mediaDownloadParam_.signatureUrl = mediaDownloadParamNode["SignatureUrl"].asString(); + if(!mediaDownloadParamNode["FileName"].isNull()) + mediaDownloadParam_.fileName = mediaDownloadParamNode["FileName"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::vector DownloadRecordingResult::getMediaDownloadParam()const -{ - return mediaDownloadParam_; -} - -std::string DownloadRecordingResult::getMessage()const -{ - return message_; -} - -int DownloadRecordingResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DownloadRecordingResult::getCode()const -{ - return code_; -} - -bool DownloadRecordingResult::getSuccess()const -{ - return success_; -} - +DownloadRecordingResult::MediaDownloadParam DownloadRecordingResult::getMediaDownloadParam()const +{ + return mediaDownloadParam_; +} + +std::string DownloadRecordingResult::getMessage()const +{ + return message_; +} + +int DownloadRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DownloadRecordingResult::getCode()const +{ + return code_; +} + +bool DownloadRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DownloadUnreachableContactsRequest.cc b/ccc/src/model/DownloadUnreachableContactsRequest.cc new file mode 100644 index 000000000..a9a062918 --- /dev/null +++ b/ccc/src/model/DownloadUnreachableContactsRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::DownloadUnreachableContactsRequest; + +DownloadUnreachableContactsRequest::DownloadUnreachableContactsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DownloadUnreachableContacts") +{} + +DownloadUnreachableContactsRequest::~DownloadUnreachableContactsRequest() +{} + +std::string DownloadUnreachableContactsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DownloadUnreachableContactsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DownloadUnreachableContactsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DownloadUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/DownloadUnreachableContactsResult.cc b/ccc/src/model/DownloadUnreachableContactsResult.cc new file mode 100644 index 000000000..80d7ee1c6 --- /dev/null +++ b/ccc/src/model/DownloadUnreachableContactsResult.cc @@ -0,0 +1,81 @@ +/* + * 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; + +DownloadUnreachableContactsResult::DownloadUnreachableContactsResult() : + ServiceResult() +{} + +DownloadUnreachableContactsResult::DownloadUnreachableContactsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadUnreachableContactsResult::~DownloadUnreachableContactsResult() +{} + +void DownloadUnreachableContactsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto downloadParamsNode = value["DownloadParams"]; + if(!downloadParamsNode["SignatureUrl"].isNull()) + downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +DownloadUnreachableContactsResult::DownloadParams DownloadUnreachableContactsResult::getDownloadParams()const +{ + return downloadParams_; +} + +std::string DownloadUnreachableContactsResult::getMessage()const +{ + return message_; +} + +int DownloadUnreachableContactsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DownloadUnreachableContactsResult::getCode()const +{ + return code_; +} + +bool DownloadUnreachableContactsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/EncryptRequest.cc b/ccc/src/model/EncryptRequest.cc new file mode 100644 index 000000000..17a72e231 --- /dev/null +++ b/ccc/src/model/EncryptRequest.cc @@ -0,0 +1,61 @@ +/* + * 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::EncryptRequest; + +EncryptRequest::EncryptRequest() : + RpcServiceRequest("ccc", "2017-07-05", "Encrypt") +{} + +EncryptRequest::~EncryptRequest() +{} + +std::string EncryptRequest::getPublicKey()const +{ + return publicKey_; +} + +void EncryptRequest::setPublicKey(const std::string& publicKey) +{ + publicKey_ = publicKey; + setParameter("PublicKey", publicKey); +} + +std::vector EncryptRequest::getPlainText()const +{ + return plainText_; +} + +void EncryptRequest::setPlainText(const std::vector& plainText) +{ + plainText_ = plainText; + for(int i = 0; i!= plainText.size(); i++) + setParameter("PlainText."+ std::to_string(i), plainText.at(i)); +} + +std::string EncryptRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void EncryptRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/EncryptResult.cc b/ccc/src/model/EncryptResult.cc new file mode 100644 index 000000000..c122b1f4f --- /dev/null +++ b/ccc/src/model/EncryptResult.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 +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +EncryptResult::EncryptResult() : + ServiceResult() +{} + +EncryptResult::EncryptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EncryptResult::~EncryptResult() +{} + +void EncryptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCypherContents = value["CypherContents"]["CypherContent"]; + for (auto value : allCypherContents) + { + CypherContent cypherContentsObject; + if(!value["PlainText"].isNull()) + cypherContentsObject.plainText = value["PlainText"].asString(); + if(!value["CypherText"].isNull()) + cypherContentsObject.cypherText = value["CypherText"].asString(); + cypherContents_.push_back(cypherContentsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["PublicKey"].isNull()) + publicKey_ = value["PublicKey"].asString(); + +} + +std::vector EncryptResult::getCypherContents()const +{ + return cypherContents_; +} + +std::string EncryptResult::getMessage()const +{ + return message_; +} + +std::string EncryptResult::getPublicKey()const +{ + return publicKey_; +} + +int EncryptResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string EncryptResult::getCode()const +{ + return code_; +} + +bool EncryptResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GenerateAgentStatisticReportRequest.cc b/ccc/src/model/GenerateAgentStatisticReportRequest.cc new file mode 100644 index 000000000..eaba15030 --- /dev/null +++ b/ccc/src/model/GenerateAgentStatisticReportRequest.cc @@ -0,0 +1,104 @@ +/* + * 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::GenerateAgentStatisticReportRequest; + +GenerateAgentStatisticReportRequest::GenerateAgentStatisticReportRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GenerateAgentStatisticReport") +{} + +GenerateAgentStatisticReportRequest::~GenerateAgentStatisticReportRequest() +{} + +std::string GenerateAgentStatisticReportRequest::getAgentId()const +{ + return agentId_; +} + +void GenerateAgentStatisticReportRequest::setAgentId(const std::string& agentId) +{ + agentId_ = agentId; + setParameter("AgentId", agentId); +} + +std::string GenerateAgentStatisticReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void GenerateAgentStatisticReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GenerateAgentStatisticReportRequest::getEndDate()const +{ + return endDate_; +} + +void GenerateAgentStatisticReportRequest::setEndDate(const std::string& endDate) +{ + endDate_ = endDate; + setParameter("EndDate", endDate); +} + +int GenerateAgentStatisticReportRequest::getPageSize()const +{ + return pageSize_; +} + +void GenerateAgentStatisticReportRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string GenerateAgentStatisticReportRequest::getStartDate()const +{ + return startDate_; +} + +void GenerateAgentStatisticReportRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setParameter("StartDate", startDate); +} + +int GenerateAgentStatisticReportRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GenerateAgentStatisticReportRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GenerateAgentStatisticReportRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GenerateAgentStatisticReportRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GenerateAgentStatisticReportResult.cc b/ccc/src/model/GenerateAgentStatisticReportResult.cc new file mode 100644 index 000000000..ff253694b --- /dev/null +++ b/ccc/src/model/GenerateAgentStatisticReportResult.cc @@ -0,0 +1,220 @@ +/* + * 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; + +GenerateAgentStatisticReportResult::GenerateAgentStatisticReportResult() : + ServiceResult() +{} + +GenerateAgentStatisticReportResult::GenerateAgentStatisticReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateAgentStatisticReportResult::~GenerateAgentStatisticReportResult() +{} + +void GenerateAgentStatisticReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataListNode = value["DataList"]; + if(!dataListNode["TotalCount"].isNull()) + dataList_.totalCount = std::stoi(dataListNode["TotalCount"].asString()); + if(!dataListNode["PageNumber"].isNull()) + dataList_.pageNumber = std::stoi(dataListNode["PageNumber"].asString()); + if(!dataListNode["PageSize"].isNull()) + dataList_.pageSize = std::stoi(dataListNode["PageSize"].asString()); + auto allList = value["List"]["GenerateAgentStatistic"]; + for (auto value : allList) + { + DataList::GenerateAgentStatistic generateAgentStatisticObject; + if(!value["AgentId"].isNull()) + generateAgentStatisticObject.agentId = value["AgentId"].asString(); + if(!value["LoginName"].isNull()) + generateAgentStatisticObject.loginName = value["LoginName"].asString(); + if(!value["AgentName"].isNull()) + generateAgentStatisticObject.agentName = value["AgentName"].asString(); + if(!value["SkillGroupIds"].isNull()) + generateAgentStatisticObject.skillGroupIds = value["SkillGroupIds"].asString(); + if(!value["SkillGroupNames"].isNull()) + generateAgentStatisticObject.skillGroupNames = value["SkillGroupNames"].asString(); + if(!value["InstanceId"].isNull()) + generateAgentStatisticObject.instanceId = value["InstanceId"].asString(); + if(!value["RecordDate"].isNull()) + generateAgentStatisticObject.recordDate = value["RecordDate"].asString(); + if(!value["TotalLoggedInTime"].isNull()) + generateAgentStatisticObject.totalLoggedInTime = std::stol(value["TotalLoggedInTime"].asString()); + if(!value["TotalBreakTime"].isNull()) + generateAgentStatisticObject.totalBreakTime = std::stol(value["TotalBreakTime"].asString()); + if(!value["OccupancyRate"].isNull()) + generateAgentStatisticObject.occupancyRate = std::stof(value["OccupancyRate"].asString()); + if(!value["TotalReadyTime"].isNull()) + generateAgentStatisticObject.totalReadyTime = std::stol(value["TotalReadyTime"].asString()); + if(!value["MaxReadyTime"].isNull()) + generateAgentStatisticObject.maxReadyTime = std::stol(value["MaxReadyTime"].asString()); + if(!value["AverageReadyTime"].isNull()) + generateAgentStatisticObject.averageReadyTime = std::stol(value["AverageReadyTime"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["TotalTalkTime"].isNull()) + generateAgentStatisticObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + generateAgentStatisticObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + generateAgentStatisticObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalHoldTime"].isNull()) + generateAgentStatisticObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); + if(!inboundNode["MaxHoldTime"].isNull()) + generateAgentStatisticObject.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].asString()); + if(!inboundNode["AverageHoldTime"].isNull()) + generateAgentStatisticObject.inbound.averageHoldTime = std::stol(inboundNode["AverageHoldTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + generateAgentStatisticObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + generateAgentStatisticObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + generateAgentStatisticObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + generateAgentStatisticObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + generateAgentStatisticObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + generateAgentStatisticObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + generateAgentStatisticObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + generateAgentStatisticObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + generateAgentStatisticObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + generateAgentStatisticObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + generateAgentStatisticObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + generateAgentStatisticObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["TotalTalkTime"].isNull()) + generateAgentStatisticObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + generateAgentStatisticObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + generateAgentStatisticObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalHoldTime"].isNull()) + generateAgentStatisticObject.outbound.totalHoldTime = std::stol(outboundNode["TotalHoldTime"].asString()); + if(!outboundNode["MaxHoldTime"].isNull()) + generateAgentStatisticObject.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString()); + if(!outboundNode["AverageHoldTime"].isNull()) + generateAgentStatisticObject.outbound.averageHoldTime = std::stol(outboundNode["AverageHoldTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + generateAgentStatisticObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + generateAgentStatisticObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + generateAgentStatisticObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + generateAgentStatisticObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + generateAgentStatisticObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + generateAgentStatisticObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["CallsDialed"].isNull()) + generateAgentStatisticObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + generateAgentStatisticObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + generateAgentStatisticObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + generateAgentStatisticObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + generateAgentStatisticObject.outbound.totalDialingTime1 = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + generateAgentStatisticObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + generateAgentStatisticObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + auto overallNode = value["Overall"]; + if(!overallNode["TotalTalkTime"].isNull()) + generateAgentStatisticObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + generateAgentStatisticObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + generateAgentStatisticObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalHoldTime"].isNull()) + generateAgentStatisticObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); + if(!overallNode["MaxHoldTime"].isNull()) + generateAgentStatisticObject.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].asString()); + if(!overallNode["AverageHoldTime"].isNull()) + generateAgentStatisticObject.overall.averageHoldTime = std::stol(overallNode["AverageHoldTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + generateAgentStatisticObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + generateAgentStatisticObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + generateAgentStatisticObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + generateAgentStatisticObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + generateAgentStatisticObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + generateAgentStatisticObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["TotalCalls"].isNull()) + generateAgentStatisticObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + dataList_.list.push_back(generateAgentStatisticObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GenerateAgentStatisticReportResult::DataList GenerateAgentStatisticReportResult::getDataList()const +{ + return dataList_; +} + +std::string GenerateAgentStatisticReportResult::getMessage()const +{ + return message_; +} + +int GenerateAgentStatisticReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GenerateAgentStatisticReportResult::getCode()const +{ + return code_; +} + +bool GenerateAgentStatisticReportResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetAgentDataRequest.cc b/ccc/src/model/GetAgentDataRequest.cc new file mode 100644 index 000000000..152737535 --- /dev/null +++ b/ccc/src/model/GetAgentDataRequest.cc @@ -0,0 +1,104 @@ +/* + * 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::GetAgentDataRequest; + +GetAgentDataRequest::GetAgentDataRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetAgentData") +{} + +GetAgentDataRequest::~GetAgentDataRequest() +{} + +std::string GetAgentDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetAgentDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetAgentDataRequest::getStartDay()const +{ + return startDay_; +} + +void GetAgentDataRequest::setStartDay(const std::string& startDay) +{ + startDay_ = startDay; + setParameter("StartDay", startDay); +} + +std::string GetAgentDataRequest::getEndDay()const +{ + return endDay_; +} + +void GetAgentDataRequest::setEndDay(const std::string& endDay) +{ + endDay_ = endDay; + setParameter("EndDay", endDay); +} + +int GetAgentDataRequest::getPageSize()const +{ + return pageSize_; +} + +void GetAgentDataRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string GetAgentDataRequest::getUserId()const +{ + return userId_; +} + +void GetAgentDataRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +int GetAgentDataRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetAgentDataRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetAgentDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetAgentDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetAgentDataResult.cc b/ccc/src/model/GetAgentDataResult.cc new file mode 100644 index 000000000..fb22eabb1 --- /dev/null +++ b/ccc/src/model/GetAgentDataResult.cc @@ -0,0 +1,220 @@ +/* + * 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; + +GetAgentDataResult::GetAgentDataResult() : + ServiceResult() +{} + +GetAgentDataResult::GetAgentDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAgentDataResult::~GetAgentDataResult() +{} + +void GetAgentDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataListNode = value["DataList"]; + if(!dataListNode["TotalCount"].isNull()) + dataList_.totalCount = std::stoi(dataListNode["TotalCount"].asString()); + if(!dataListNode["PageNumber"].isNull()) + dataList_.pageNumber = std::stoi(dataListNode["PageNumber"].asString()); + if(!dataListNode["PageSize"].isNull()) + dataList_.pageSize = std::stoi(dataListNode["PageSize"].asString()); + auto allList = value["List"]["GenerateAgentStatistic"]; + for (auto value : allList) + { + DataList::GenerateAgentStatistic generateAgentStatisticObject; + if(!value["AgentId"].isNull()) + generateAgentStatisticObject.agentId = value["AgentId"].asString(); + if(!value["LoginName"].isNull()) + generateAgentStatisticObject.loginName = value["LoginName"].asString(); + if(!value["AgentName"].isNull()) + generateAgentStatisticObject.agentName = value["AgentName"].asString(); + if(!value["SkillGroupIds"].isNull()) + generateAgentStatisticObject.skillGroupIds = value["SkillGroupIds"].asString(); + if(!value["SkillGroupNames"].isNull()) + generateAgentStatisticObject.skillGroupNames = value["SkillGroupNames"].asString(); + if(!value["InstanceId"].isNull()) + generateAgentStatisticObject.instanceId = value["InstanceId"].asString(); + if(!value["RecordDate"].isNull()) + generateAgentStatisticObject.recordDate = value["RecordDate"].asString(); + if(!value["TotalLoggedInTime"].isNull()) + generateAgentStatisticObject.totalLoggedInTime = std::stol(value["TotalLoggedInTime"].asString()); + if(!value["TotalBreakTime"].isNull()) + generateAgentStatisticObject.totalBreakTime = std::stol(value["TotalBreakTime"].asString()); + if(!value["OccupancyRate"].isNull()) + generateAgentStatisticObject.occupancyRate = std::stof(value["OccupancyRate"].asString()); + if(!value["TotalReadyTime"].isNull()) + generateAgentStatisticObject.totalReadyTime = std::stol(value["TotalReadyTime"].asString()); + if(!value["MaxReadyTime"].isNull()) + generateAgentStatisticObject.maxReadyTime = std::stol(value["MaxReadyTime"].asString()); + if(!value["AverageReadyTime"].isNull()) + generateAgentStatisticObject.averageReadyTime = std::stol(value["AverageReadyTime"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["TotalTalkTime"].isNull()) + generateAgentStatisticObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + generateAgentStatisticObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + generateAgentStatisticObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalHoldTime"].isNull()) + generateAgentStatisticObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); + if(!inboundNode["MaxHoldTime"].isNull()) + generateAgentStatisticObject.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].asString()); + if(!inboundNode["AverageHoldTime"].isNull()) + generateAgentStatisticObject.inbound.averageHoldTime = std::stol(inboundNode["AverageHoldTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + generateAgentStatisticObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + generateAgentStatisticObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + generateAgentStatisticObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + generateAgentStatisticObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + generateAgentStatisticObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + generateAgentStatisticObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + generateAgentStatisticObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + generateAgentStatisticObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + generateAgentStatisticObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + generateAgentStatisticObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + generateAgentStatisticObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + generateAgentStatisticObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["TotalTalkTime"].isNull()) + generateAgentStatisticObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + generateAgentStatisticObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + generateAgentStatisticObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalHoldTime"].isNull()) + generateAgentStatisticObject.outbound.totalHoldTime = std::stol(outboundNode["TotalHoldTime"].asString()); + if(!outboundNode["MaxHoldTime"].isNull()) + generateAgentStatisticObject.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString()); + if(!outboundNode["AverageHoldTime"].isNull()) + generateAgentStatisticObject.outbound.averageHoldTime = std::stol(outboundNode["AverageHoldTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + generateAgentStatisticObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + generateAgentStatisticObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + generateAgentStatisticObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + generateAgentStatisticObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + generateAgentStatisticObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + generateAgentStatisticObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["CallsDialed"].isNull()) + generateAgentStatisticObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + generateAgentStatisticObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + generateAgentStatisticObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + generateAgentStatisticObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + generateAgentStatisticObject.outbound.totalDialingTime1 = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + generateAgentStatisticObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + generateAgentStatisticObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + auto overallNode = value["Overall"]; + if(!overallNode["TotalTalkTime"].isNull()) + generateAgentStatisticObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + generateAgentStatisticObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + generateAgentStatisticObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalHoldTime"].isNull()) + generateAgentStatisticObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); + if(!overallNode["MaxHoldTime"].isNull()) + generateAgentStatisticObject.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].asString()); + if(!overallNode["AverageHoldTime"].isNull()) + generateAgentStatisticObject.overall.averageHoldTime = std::stol(overallNode["AverageHoldTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + generateAgentStatisticObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + generateAgentStatisticObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + generateAgentStatisticObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + generateAgentStatisticObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + generateAgentStatisticObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + generateAgentStatisticObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["TotalCalls"].isNull()) + generateAgentStatisticObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + dataList_.list.push_back(generateAgentStatisticObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetAgentDataResult::DataList GetAgentDataResult::getDataList()const +{ + return dataList_; +} + +std::string GetAgentDataResult::getMessage()const +{ + return message_; +} + +int GetAgentDataResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetAgentDataResult::getCode()const +{ + return code_; +} + +bool GetAgentDataResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetConfigResult.cc b/ccc/src/model/GetConfigResult.cc index e56922163..a6efbf782 100644 --- a/ccc/src/model/GetConfigResult.cc +++ b/ccc/src/model/GetConfigResult.cc @@ -40,49 +40,44 @@ void GetConfigResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allConfigItem = value["ConfigItem"]; - for (auto value : allConfigItem) - { - ConfigItem configItemObject; - if(!value["Name"].isNull()) - configItemObject.name = value["Name"].asString(); - if(!value["Value"].isNull()) - configItemObject.value = value["Value"].asString(); - configItem_.push_back(configItemObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto configItemNode = value["ConfigItem"]; + if(!configItemNode["Name"].isNull()) + configItem_.name = configItemNode["Name"].asString(); + if(!configItemNode["Value"].isNull()) + configItem_.value = configItemNode["Value"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string GetConfigResult::getMessage()const -{ - return message_; -} - -int GetConfigResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector GetConfigResult::getConfigItem()const -{ - return configItem_; -} - -std::string GetConfigResult::getCode()const -{ - return code_; -} - -bool GetConfigResult::getSuccess()const -{ - return success_; -} - +std::string GetConfigResult::getMessage()const +{ + return message_; +} + +int GetConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetConfigResult::ConfigItem GetConfigResult::getConfigItem()const +{ + return configItem_; +} + +std::string GetConfigResult::getCode()const +{ + return code_; +} + +bool GetConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetConversationDetailByContactIdRequest.cc b/ccc/src/model/GetConversationDetailByContactIdRequest.cc new file mode 100644 index 000000000..bc5fee8df --- /dev/null +++ b/ccc/src/model/GetConversationDetailByContactIdRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::GetConversationDetailByContactIdRequest; + +GetConversationDetailByContactIdRequest::GetConversationDetailByContactIdRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetConversationDetailByContactId") +{} + +GetConversationDetailByContactIdRequest::~GetConversationDetailByContactIdRequest() +{} + +std::string GetConversationDetailByContactIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetConversationDetailByContactIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetConversationDetailByContactIdRequest::getContactId()const +{ + return contactId_; +} + +void GetConversationDetailByContactIdRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setParameter("ContactId", contactId); +} + +int GetConversationDetailByContactIdRequest::getPageSize()const +{ + return pageSize_; +} + +void GetConversationDetailByContactIdRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int GetConversationDetailByContactIdRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetConversationDetailByContactIdRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetConversationDetailByContactIdRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetConversationDetailByContactIdRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetConversationDetailByContactIdResult.cc b/ccc/src/model/GetConversationDetailByContactIdResult.cc new file mode 100644 index 000000000..929f7d9cb --- /dev/null +++ b/ccc/src/model/GetConversationDetailByContactIdResult.cc @@ -0,0 +1,101 @@ +/* + * 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; + +GetConversationDetailByContactIdResult::GetConversationDetailByContactIdResult() : + ServiceResult() +{} + +GetConversationDetailByContactIdResult::GetConversationDetailByContactIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConversationDetailByContactIdResult::~GetConversationDetailByContactIdResult() +{} + +void GetConversationDetailByContactIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataListNode = value["DataList"]; + if(!dataListNode["TotalCount"].isNull()) + dataList_.totalCount = std::stoi(dataListNode["TotalCount"].asString()); + if(!dataListNode["PageNumber"].isNull()) + dataList_.pageNumber = std::stoi(dataListNode["PageNumber"].asString()); + if(!dataListNode["PageSize"].isNull()) + dataList_.pageSize = std::stoi(dataListNode["PageSize"].asString()); + auto allList = value["List"]["QualityCheckPhrase"]; + for (auto value : allList) + { + DataList::QualityCheckPhrase qualityCheckPhraseObject; + if(!value["Identity"].isNull()) + qualityCheckPhraseObject.identity = value["Identity"].asString(); + if(!value["Role"].isNull()) + qualityCheckPhraseObject.role = value["Role"].asString(); + if(!value["Words"].isNull()) + qualityCheckPhraseObject.words = value["Words"].asString(); + if(!value["Begin"].isNull()) + qualityCheckPhraseObject.begin = std::stol(value["Begin"].asString()); + if(!value["End"].isNull()) + qualityCheckPhraseObject.end = std::stol(value["End"].asString()); + dataList_.list.push_back(qualityCheckPhraseObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetConversationDetailByContactIdResult::DataList GetConversationDetailByContactIdResult::getDataList()const +{ + return dataList_; +} + +std::string GetConversationDetailByContactIdResult::getMessage()const +{ + return message_; +} + +int GetConversationDetailByContactIdResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetConversationDetailByContactIdResult::getCode()const +{ + return code_; +} + +bool GetConversationDetailByContactIdResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetConversationListRequest.cc b/ccc/src/model/GetConversationListRequest.cc new file mode 100644 index 000000000..e4acd14c3 --- /dev/null +++ b/ccc/src/model/GetConversationListRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::GetConversationListRequest; + +GetConversationListRequest::GetConversationListRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetConversationList") +{} + +GetConversationListRequest::~GetConversationListRequest() +{} + +std::string GetConversationListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetConversationListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetConversationListRequest::getTaskId()const +{ + return taskId_; +} + +void GetConversationListRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/ccc/src/model/GetConversationListResult.cc b/ccc/src/model/GetConversationListResult.cc new file mode 100644 index 000000000..242593b4e --- /dev/null +++ b/ccc/src/model/GetConversationListResult.cc @@ -0,0 +1,102 @@ +/* + * 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; + +GetConversationListResult::GetConversationListResult() : + ServiceResult() +{} + +GetConversationListResult::GetConversationListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConversationListResult::~GetConversationListResult() +{} + +void GetConversationListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allConversations = value["Conversations"]["ConversationDetail"]; + for (auto value : allConversations) + { + ConversationDetail conversationsObject; + if(!value["Timestamp"].isNull()) + conversationsObject.timestamp = std::stol(value["Timestamp"].asString()); + if(!value["Speaker"].isNull()) + conversationsObject.speaker = value["Speaker"].asString(); + if(!value["Script"].isNull()) + conversationsObject.script = value["Script"].asString(); + auto allSummary = value["Summary"]["SummaryItem"]; + for (auto value : allSummary) + { + ConversationDetail::SummaryItem summaryObject; + if(!value["Category"].isNull()) + summaryObject.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summaryObject.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summaryObject.content = value["Content"].asString(); + conversationsObject.summary.push_back(summaryObject); + } + conversations_.push_back(conversationsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetConversationListResult::getMessage()const +{ + return message_; +} + +int GetConversationListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetConversationListResult::getConversations()const +{ + return conversations_; +} + +std::string GetConversationListResult::getCode()const +{ + return code_; +} + +bool GetConversationListResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobDataUploadParamsRequest.cc b/ccc/src/model/GetJobDataUploadParamsRequest.cc new file mode 100644 index 000000000..58d6a09bd --- /dev/null +++ b/ccc/src/model/GetJobDataUploadParamsRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::GetJobDataUploadParamsRequest; + +GetJobDataUploadParamsRequest::GetJobDataUploadParamsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobDataUploadParams") +{} + +GetJobDataUploadParamsRequest::~GetJobDataUploadParamsRequest() +{} + +std::string GetJobDataUploadParamsRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobDataUploadParamsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetJobDataUploadParamsRequest::getFileName()const +{ + return fileName_; +} + +void GetJobDataUploadParamsRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + diff --git a/ccc/src/model/GetJobDataUploadParamsResult.cc b/ccc/src/model/GetJobDataUploadParamsResult.cc new file mode 100644 index 000000000..7c5d9269d --- /dev/null +++ b/ccc/src/model/GetJobDataUploadParamsResult.cc @@ -0,0 +1,91 @@ +/* + * 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; + +GetJobDataUploadParamsResult::GetJobDataUploadParamsResult() : + ServiceResult() +{} + +GetJobDataUploadParamsResult::GetJobDataUploadParamsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobDataUploadParamsResult::~GetJobDataUploadParamsResult() +{} + +void GetJobDataUploadParamsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto uploadParamsNode = value["UploadParams"]; + if(!uploadParamsNode["AccessId"].isNull()) + uploadParams_.accessId = uploadParamsNode["AccessId"].asString(); + if(!uploadParamsNode["Policy"].isNull()) + uploadParams_.policy = uploadParamsNode["Policy"].asString(); + if(!uploadParamsNode["Signature"].isNull()) + uploadParams_.signature = uploadParamsNode["Signature"].asString(); + if(!uploadParamsNode["Folder"].isNull()) + uploadParams_.folder = uploadParamsNode["Folder"].asString(); + if(!uploadParamsNode["Host"].isNull()) + uploadParams_.host = uploadParamsNode["Host"].asString(); + if(!uploadParamsNode["Expire"].isNull()) + uploadParams_.expire = std::stoi(uploadParamsNode["Expire"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetJobDataUploadParamsResult::UploadParams GetJobDataUploadParamsResult::getUploadParams()const +{ + return uploadParams_; +} + +std::string GetJobDataUploadParamsResult::getMessage()const +{ + return message_; +} + +int GetJobDataUploadParamsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetJobDataUploadParamsResult::getCode()const +{ + return code_; +} + +bool GetJobDataUploadParamsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobGroupRequest.cc b/ccc/src/model/GetJobGroupRequest.cc new file mode 100644 index 000000000..b2aa9d8db --- /dev/null +++ b/ccc/src/model/GetJobGroupRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::GetJobGroupRequest; + +GetJobGroupRequest::GetJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobGroup") +{} + +GetJobGroupRequest::~GetJobGroupRequest() +{} + +std::string GetJobGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetJobGroupRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void GetJobGroupRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/GetJobGroupResult.cc b/ccc/src/model/GetJobGroupResult.cc new file mode 100644 index 000000000..277a13bf6 --- /dev/null +++ b/ccc/src/model/GetJobGroupResult.cc @@ -0,0 +1,157 @@ +/* + * 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; + +GetJobGroupResult::GetJobGroupResult() : + ServiceResult() +{} + +GetJobGroupResult::GetJobGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobGroupResult::~GetJobGroupResult() +{} + +void GetJobGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobGroupNode = value["JobGroup"]; + if(!jobGroupNode["Id"].isNull()) + jobGroup_.id = jobGroupNode["Id"].asString(); + if(!jobGroupNode["Name"].isNull()) + jobGroup_.name = jobGroupNode["Name"].asString(); + if(!jobGroupNode["Description"].isNull()) + jobGroup_.description = jobGroupNode["Description"].asString(); + if(!jobGroupNode["ScenarioId"].isNull()) + jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString(); + if(!jobGroupNode["JobFilePath"].isNull()) + jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString(); + if(!jobGroupNode["CreationTime"].isNull()) + jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString()); + auto strategyNode = jobGroupNode["Strategy"]; + if(!strategyNode["Id"].isNull()) + jobGroup_.strategy.id = strategyNode["Id"].asString(); + if(!strategyNode["Name"].isNull()) + jobGroup_.strategy.name = strategyNode["Name"].asString(); + if(!strategyNode["Description"].isNull()) + jobGroup_.strategy.description = strategyNode["Description"].asString(); + if(!strategyNode["Type"].isNull()) + jobGroup_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + jobGroup_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + JobGroup::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + jobGroup_.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + jobGroup_.strategy.repeatDays.push_back(value.asString()); + auto progressNode = jobGroupNode["Progress"]; + if(!progressNode["TotalJobs"].isNull()) + jobGroup_.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString()); + if(!progressNode["Status"].isNull()) + jobGroup_.progress.status = progressNode["Status"].asString(); + if(!progressNode["TotalNotAnswered"].isNull()) + jobGroup_.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString()); + if(!progressNode["TotalCompleted"].isNull()) + jobGroup_.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString()); + if(!progressNode["StartTime"].isNull()) + jobGroup_.progress.startTime = std::stol(progressNode["StartTime"].asString()); + if(!progressNode["Duration"].isNull()) + jobGroup_.progress.duration = std::stoi(progressNode["Duration"].asString()); + auto allCategories = value["Categories"]["KeyValuePair"]; + for (auto value : allCategories) + { + JobGroup::Progress::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + jobGroup_.progress.categories.push_back(keyValuePairObject); + } + auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + jobGroup_.callingNumbers.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetJobGroupResult::JobGroup GetJobGroupResult::getJobGroup()const +{ + return jobGroup_; +} + +std::string GetJobGroupResult::getMessage()const +{ + return message_; +} + +int GetJobGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetJobGroupResult::getCode()const +{ + return code_; +} + +bool GetJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobListRequest.cc b/ccc/src/model/GetJobListRequest.cc new file mode 100644 index 000000000..654217ec1 --- /dev/null +++ b/ccc/src/model/GetJobListRequest.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 + +using AlibabaCloud::CCC::Model::GetJobListRequest; + +GetJobListRequest::GetJobListRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobList") +{} + +GetJobListRequest::~GetJobListRequest() +{} + +std::string GetJobListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetJobListRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void GetJobListRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +int GetJobListRequest::getPageSize()const +{ + return pageSize_; +} + +void GetJobListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int GetJobListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetJobListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +int GetJobListRequest::getStatus()const +{ + return status_; +} + +void GetJobListRequest::setStatus(int status) +{ + status_ = status; + setParameter("Status", std::to_string(status)); +} + +bool GetJobListRequest::getQueryAll()const +{ + return queryAll_; +} + +void GetJobListRequest::setQueryAll(bool queryAll) +{ + queryAll_ = queryAll; + setParameter("QueryAll", std::to_string(queryAll)); +} + diff --git a/ccc/src/model/GetJobListResult.cc b/ccc/src/model/GetJobListResult.cc new file mode 100644 index 000000000..527bc79f0 --- /dev/null +++ b/ccc/src/model/GetJobListResult.cc @@ -0,0 +1,166 @@ +/* + * 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; + +GetJobListResult::GetJobListResult() : + ServiceResult() +{} + +GetJobListResult::GetJobListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobListResult::~GetJobListResult() +{} + +void GetJobListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobsNode = value["Jobs"]; + if(!jobsNode["TotalCount"].isNull()) + jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString()); + if(!jobsNode["PageNumber"].isNull()) + jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString()); + if(!jobsNode["PageSize"].isNull()) + jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString()); + auto allList = value["List"]["Job"]; + for (auto value : allList) + { + Jobs::Job jobObject; + if(!value["JobId"].isNull()) + jobObject.jobId = value["JobId"].asString(); + if(!value["GroupId"].isNull()) + jobObject.groupId = value["GroupId"].asString(); + if(!value["ScenarioId"].isNull()) + jobObject.scenarioId = value["ScenarioId"].asString(); + if(!value["StrategyId"].isNull()) + jobObject.strategyId = value["StrategyId"].asString(); + if(!value["Priority"].isNull()) + jobObject.priority = std::stoi(value["Priority"].asString()); + if(!value["SystemPriority"].isNull()) + jobObject.systemPriority = std::stoi(value["SystemPriority"].asString()); + if(!value["Status"].isNull()) + jobObject.status = value["Status"].asString(); + if(!value["ReferenceId"].isNull()) + jobObject.referenceId = value["ReferenceId"].asString(); + if(!value["FailureReason"].isNull()) + jobObject.failureReason = value["FailureReason"].asString(); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + { + Jobs::Job::Contact contactsObject; + if(!value["ContactId"].isNull()) + contactsObject.contactId = value["ContactId"].asString(); + if(!value["ContactName"].isNull()) + contactsObject.contactName = value["ContactName"].asString(); + if(!value["Honorific"].isNull()) + contactsObject.honorific = value["Honorific"].asString(); + if(!value["Role"].isNull()) + contactsObject.role = value["Role"].asString(); + if(!value["PhoneNumber"].isNull()) + contactsObject.phoneNumber = value["PhoneNumber"].asString(); + if(!value["State"].isNull()) + contactsObject.state = value["State"].asString(); + if(!value["ReferenceId"].isNull()) + contactsObject.referenceId = value["ReferenceId"].asString(); + if(!value["JobId"].isNull()) + contactsObject.jobId = value["JobId"].asString(); + jobObject.contacts.push_back(contactsObject); + } + auto allExtras = value["Extras"]["KeyValuePair"]; + for (auto value : allExtras) + { + Jobs::Job::KeyValuePair extrasObject; + if(!value["Key"].isNull()) + extrasObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + extrasObject.value = value["Value"].asString(); + jobObject.extras.push_back(extrasObject); + } + auto allSummary = value["Summary"]["SummaryItem"]; + for (auto value : allSummary) + { + Jobs::Job::SummaryItem summaryObject; + if(!value["SummaryId"].isNull()) + summaryObject.summaryId = value["SummaryId"].asString(); + if(!value["GroupId"].isNull()) + summaryObject.groupId = value["GroupId"].asString(); + if(!value["JobId"].isNull()) + summaryObject.jobId = value["JobId"].asString(); + if(!value["TaskId"].isNull()) + summaryObject.taskId = value["TaskId"].asString(); + if(!value["ConversationDetailId"].isNull()) + summaryObject.conversationDetailId = value["ConversationDetailId"].asString(); + if(!value["Category"].isNull()) + summaryObject.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summaryObject.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summaryObject.content = value["Content"].asString(); + jobObject.summary.push_back(summaryObject); + } + auto allCallingNumbers = value["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + jobObject.callingNumbers.push_back(value.asString()); + jobs_.list.push_back(jobObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetJobListResult::getMessage()const +{ + return message_; +} + +GetJobListResult::Jobs GetJobListResult::getJobs()const +{ + return jobs_; +} + +int GetJobListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetJobListResult::getCode()const +{ + return code_; +} + +bool GetJobListResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobRequest.cc b/ccc/src/model/GetJobRequest.cc new file mode 100644 index 000000000..b1e991d25 --- /dev/null +++ b/ccc/src/model/GetJobRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::GetJobRequest; + +GetJobRequest::GetJobRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJob") +{} + +GetJobRequest::~GetJobRequest() +{} + +std::string GetJobRequest::getJobId()const +{ + return jobId_; +} + +void GetJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string GetJobRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/GetJobResult.cc b/ccc/src/model/GetJobResult.cc new file mode 100644 index 000000000..e8385fe6f --- /dev/null +++ b/ccc/src/model/GetJobResult.cc @@ -0,0 +1,211 @@ +/* + * 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; + +GetJobResult::GetJobResult() : + ServiceResult() +{} + +GetJobResult::GetJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobResult::~GetJobResult() +{} + +void GetJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobNode = value["Job"]; + if(!jobNode["JobId"].isNull()) + job_.jobId = jobNode["JobId"].asString(); + if(!jobNode["GroupId"].isNull()) + job_.groupId = jobNode["GroupId"].asString(); + if(!jobNode["ScenarioId"].isNull()) + job_.scenarioId = jobNode["ScenarioId"].asString(); + if(!jobNode["StrategyId"].isNull()) + job_.strategyId = jobNode["StrategyId"].asString(); + if(!jobNode["Priority"].isNull()) + job_.priority = std::stoi(jobNode["Priority"].asString()); + if(!jobNode["SystemPriority"].isNull()) + job_.systemPriority = std::stoi(jobNode["SystemPriority"].asString()); + if(!jobNode["Status"].isNull()) + job_.status = jobNode["Status"].asString(); + if(!jobNode["ReferenceId"].isNull()) + job_.referenceId = jobNode["ReferenceId"].asString(); + if(!jobNode["FailureReason"].isNull()) + job_.failureReason = jobNode["FailureReason"].asString(); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + { + Job::Contact contactObject; + if(!value["ContactId"].isNull()) + contactObject.contactId = value["ContactId"].asString(); + if(!value["ContactName"].isNull()) + contactObject.contactName = value["ContactName"].asString(); + if(!value["Honorific"].isNull()) + contactObject.honorific = value["Honorific"].asString(); + if(!value["Role"].isNull()) + contactObject.role = value["Role"].asString(); + if(!value["PhoneNumber"].isNull()) + contactObject.phoneNumber = value["PhoneNumber"].asString(); + if(!value["State"].isNull()) + contactObject.state = value["State"].asString(); + if(!value["ReferenceId"].isNull()) + contactObject.referenceId = value["ReferenceId"].asString(); + job_.contacts.push_back(contactObject); + } + auto allExtras = value["Extras"]["KeyValuePair"]; + for (auto value : allExtras) + { + Job::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + job_.extras.push_back(keyValuePairObject); + } + auto allTasks = value["Tasks"]["Task"]; + for (auto value : allTasks) + { + Job::Task taskObject; + if(!value["TaskId"].isNull()) + taskObject.taskId = value["TaskId"].asString(); + if(!value["JobId"].isNull()) + taskObject.jobId = value["JobId"].asString(); + if(!value["ScenarioId"].isNull()) + taskObject.scenarioId = value["ScenarioId"].asString(); + if(!value["ChatbotId"].isNull()) + taskObject.chatbotId = value["ChatbotId"].asString(); + if(!value["PlanedTime"].isNull()) + taskObject.planedTime = std::stol(value["PlanedTime"].asString()); + if(!value["ActualTime"].isNull()) + taskObject.actualTime = std::stol(value["ActualTime"].asString()); + if(!value["CallingNumber"].isNull()) + taskObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + taskObject.calledNumber = value["CalledNumber"].asString(); + if(!value["CallId"].isNull()) + taskObject.callId = value["CallId"].asString(); + if(!value["Status"].isNull()) + taskObject.status = value["Status"].asString(); + if(!value["Brief"].isNull()) + taskObject.brief = value["Brief"].asString(); + if(!value["Duration"].isNull()) + taskObject.duration = std::stoi(value["Duration"].asString()); + auto allConversation = value["Conversation"]["ConversationDetail"]; + for (auto value : allConversation) + { + Job::Task::ConversationDetail conversationObject; + if(!value["Timestamp"].isNull()) + conversationObject.timestamp = std::stol(value["Timestamp"].asString()); + if(!value["Speaker"].isNull()) + conversationObject.speaker = value["Speaker"].asString(); + if(!value["Script"].isNull()) + conversationObject.script = value["Script"].asString(); + auto allSummary1 = value["Summary"]["SummaryItem"]; + for (auto value : allSummary1) + { + Job::Task::ConversationDetail::SummaryItem summary1Object; + if(!value["Category"].isNull()) + summary1Object.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summary1Object.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summary1Object.content = value["Content"].asString(); + conversationObject.summary1.push_back(summary1Object); + } + taskObject.conversation.push_back(conversationObject); + } + auto contact2Node = value["Contact"]; + if(!contact2Node["ContactId"].isNull()) + taskObject.contact2.contactId = contact2Node["ContactId"].asString(); + if(!contact2Node["ContactName"].isNull()) + taskObject.contact2.contactName = contact2Node["ContactName"].asString(); + if(!contact2Node["Honorific"].isNull()) + taskObject.contact2.honorific = contact2Node["Honorific"].asString(); + if(!contact2Node["Role"].isNull()) + taskObject.contact2.role = contact2Node["Role"].asString(); + if(!contact2Node["PhoneNumber"].isNull()) + taskObject.contact2.phoneNumber = contact2Node["PhoneNumber"].asString(); + if(!contact2Node["State"].isNull()) + taskObject.contact2.state = contact2Node["State"].asString(); + if(!contact2Node["ReferenceId"].isNull()) + taskObject.contact2.referenceId = contact2Node["ReferenceId"].asString(); + job_.tasks.push_back(taskObject); + } + auto allSummary = value["Summary"]["SummaryItem"]; + for (auto value : allSummary) + { + Job::SummaryItem3 summaryItem3Object; + if(!value["Category"].isNull()) + summaryItem3Object.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summaryItem3Object.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summaryItem3Object.content = value["Content"].asString(); + job_.summary.push_back(summaryItem3Object); + } + auto allCallingNumbers = jobNode["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + job_.callingNumbers.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetJobResult::getMessage()const +{ + return message_; +} + +int GetJobResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetJobResult::Job GetJobResult::getJob()const +{ + return job_; +} + +std::string GetJobResult::getCode()const +{ + return code_; +} + +bool GetJobResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobStatusByCallIdRequest.cc b/ccc/src/model/GetJobStatusByCallIdRequest.cc new file mode 100644 index 000000000..d4d551444 --- /dev/null +++ b/ccc/src/model/GetJobStatusByCallIdRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::GetJobStatusByCallIdRequest; + +GetJobStatusByCallIdRequest::GetJobStatusByCallIdRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobStatusByCallId") +{} + +GetJobStatusByCallIdRequest::~GetJobStatusByCallIdRequest() +{} + +std::string GetJobStatusByCallIdRequest::getCallId()const +{ + return callId_; +} + +void GetJobStatusByCallIdRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setParameter("CallId", callId); +} + +std::string GetJobStatusByCallIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobStatusByCallIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/GetJobStatusByCallIdResult.cc b/ccc/src/model/GetJobStatusByCallIdResult.cc new file mode 100644 index 000000000..50f33aa17 --- /dev/null +++ b/ccc/src/model/GetJobStatusByCallIdResult.cc @@ -0,0 +1,221 @@ +/* + * 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; + +GetJobStatusByCallIdResult::GetJobStatusByCallIdResult() : + ServiceResult() +{} + +GetJobStatusByCallIdResult::GetJobStatusByCallIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobStatusByCallIdResult::~GetJobStatusByCallIdResult() +{} + +void GetJobStatusByCallIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobNode = value["Job"]; + if(!jobNode["JobId"].isNull()) + job_.jobId = jobNode["JobId"].asString(); + if(!jobNode["GroupId"].isNull()) + job_.groupId = jobNode["GroupId"].asString(); + if(!jobNode["ScenarioId"].isNull()) + job_.scenarioId = jobNode["ScenarioId"].asString(); + if(!jobNode["StrategyId"].isNull()) + job_.strategyId = jobNode["StrategyId"].asString(); + if(!jobNode["Priority"].isNull()) + job_.priority = std::stoi(jobNode["Priority"].asString()); + if(!jobNode["Status"].isNull()) + job_.status = jobNode["Status"].asString(); + if(!jobNode["ReferenceId"].isNull()) + job_.referenceId = jobNode["ReferenceId"].asString(); + if(!jobNode["FailureReason"].isNull()) + job_.failureReason = jobNode["FailureReason"].asString(); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + { + Job::Contact contactObject; + if(!value["ContactId"].isNull()) + contactObject.contactId = value["ContactId"].asString(); + if(!value["ContactName"].isNull()) + contactObject.contactName = value["ContactName"].asString(); + if(!value["Honorific"].isNull()) + contactObject.honorific = value["Honorific"].asString(); + if(!value["Role"].isNull()) + contactObject.role = value["Role"].asString(); + if(!value["PhoneNumber"].isNull()) + contactObject.phoneNumber = value["PhoneNumber"].asString(); + if(!value["State"].isNull()) + contactObject.state = value["State"].asString(); + if(!value["ReferenceId"].isNull()) + contactObject.referenceId = value["ReferenceId"].asString(); + if(!value["JobId"].isNull()) + contactObject.jobId = value["JobId"].asString(); + job_.contacts.push_back(contactObject); + } + auto allExtras = value["Extras"]["KeyValuePair"]; + for (auto value : allExtras) + { + Job::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + job_.extras.push_back(keyValuePairObject); + } + auto allTasks = value["Tasks"]["Task"]; + for (auto value : allTasks) + { + Job::Task taskObject; + if(!value["TaskId"].isNull()) + taskObject.taskId = value["TaskId"].asString(); + if(!value["JobId"].isNull()) + taskObject.jobId = value["JobId"].asString(); + if(!value["ScenarioId"].isNull()) + taskObject.scenarioId = value["ScenarioId"].asString(); + if(!value["ChatbotId"].isNull()) + taskObject.chatbotId = value["ChatbotId"].asString(); + if(!value["PlanedTime"].isNull()) + taskObject.planedTime = std::stol(value["PlanedTime"].asString()); + if(!value["ActualTime"].isNull()) + taskObject.actualTime = std::stol(value["ActualTime"].asString()); + if(!value["CallingNumber"].isNull()) + taskObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + taskObject.calledNumber = value["CalledNumber"].asString(); + if(!value["CallId"].isNull()) + taskObject.callId = value["CallId"].asString(); + if(!value["Status"].isNull()) + taskObject.status = value["Status"].asString(); + if(!value["Brief"].isNull()) + taskObject.brief = value["Brief"].asString(); + if(!value["Duration"].isNull()) + taskObject.duration = std::stoi(value["Duration"].asString()); + auto allConversation = value["Conversation"]["ConversationDetail"]; + for (auto value : allConversation) + { + Job::Task::ConversationDetail conversationObject; + if(!value["ConversationDetailId"].isNull()) + conversationObject.conversationDetailId = value["ConversationDetailId"].asString(); + if(!value["TaskId"].isNull()) + conversationObject.taskId = value["TaskId"].asString(); + if(!value["Timestamp"].isNull()) + conversationObject.timestamp = std::stol(value["Timestamp"].asString()); + if(!value["Speaker"].isNull()) + conversationObject.speaker = value["Speaker"].asString(); + if(!value["Script"].isNull()) + conversationObject.script = value["Script"].asString(); + auto allSummary1 = value["Summary"]["SummaryItem"]; + for (auto value : allSummary1) + { + Job::Task::ConversationDetail::SummaryItem summary1Object; + if(!value["SummaryId"].isNull()) + summary1Object.summaryId = value["SummaryId"].asString(); + if(!value["Category"].isNull()) + summary1Object.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summary1Object.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summary1Object.content = value["Content"].asString(); + conversationObject.summary1.push_back(summary1Object); + } + taskObject.conversation.push_back(conversationObject); + } + auto contact2Node = value["Contact"]; + if(!contact2Node["ContactId"].isNull()) + taskObject.contact2.contactId = contact2Node["ContactId"].asString(); + if(!contact2Node["ContactName"].isNull()) + taskObject.contact2.contactName = contact2Node["ContactName"].asString(); + if(!contact2Node["Honorific"].isNull()) + taskObject.contact2.honorific = contact2Node["Honorific"].asString(); + if(!contact2Node["Role"].isNull()) + taskObject.contact2.role = contact2Node["Role"].asString(); + if(!contact2Node["PhoneNumber"].isNull()) + taskObject.contact2.phoneNumber = contact2Node["PhoneNumber"].asString(); + if(!contact2Node["State"].isNull()) + taskObject.contact2.state = contact2Node["State"].asString(); + if(!contact2Node["ReferenceId"].isNull()) + taskObject.contact2.referenceId = contact2Node["ReferenceId"].asString(); + if(!contact2Node["JobId"].isNull()) + taskObject.contact2.jobId = contact2Node["JobId"].asString(); + job_.tasks.push_back(taskObject); + } + auto allSummary = value["Summary"]["SummaryItem"]; + for (auto value : allSummary) + { + Job::SummaryItem3 summaryItem3Object; + if(!value["SummaryId"].isNull()) + summaryItem3Object.summaryId = value["SummaryId"].asString(); + if(!value["Category"].isNull()) + summaryItem3Object.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summaryItem3Object.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summaryItem3Object.content = value["Content"].asString(); + job_.summary.push_back(summaryItem3Object); + } + auto allCallingNumbers = jobNode["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + job_.callingNumbers.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetJobStatusByCallIdResult::getMessage()const +{ + return message_; +} + +int GetJobStatusByCallIdResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetJobStatusByCallIdResult::Job GetJobStatusByCallIdResult::getJob()const +{ + return job_; +} + +std::string GetJobStatusByCallIdResult::getCode()const +{ + return code_; +} + +bool GetJobStatusByCallIdResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc b/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc new file mode 100644 index 000000000..a76f541cc --- /dev/null +++ b/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::GetJobTemplateDownloadParamsRequest; + +GetJobTemplateDownloadParamsRequest::GetJobTemplateDownloadParamsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobTemplateDownloadParams") +{} + +GetJobTemplateDownloadParamsRequest::~GetJobTemplateDownloadParamsRequest() +{} + +std::string GetJobTemplateDownloadParamsRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobTemplateDownloadParamsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetJobTemplateDownloadParamsRequest::getScenarioId()const +{ + return scenarioId_; +} + +void GetJobTemplateDownloadParamsRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/GetJobTemplateDownloadParamsResult.cc b/ccc/src/model/GetJobTemplateDownloadParamsResult.cc new file mode 100644 index 000000000..53d1fcff9 --- /dev/null +++ b/ccc/src/model/GetJobTemplateDownloadParamsResult.cc @@ -0,0 +1,81 @@ +/* + * 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; + +GetJobTemplateDownloadParamsResult::GetJobTemplateDownloadParamsResult() : + ServiceResult() +{} + +GetJobTemplateDownloadParamsResult::GetJobTemplateDownloadParamsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobTemplateDownloadParamsResult::~GetJobTemplateDownloadParamsResult() +{} + +void GetJobTemplateDownloadParamsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto downloadParamsNode = value["DownloadParams"]; + if(!downloadParamsNode["SignatureUrl"].isNull()) + downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetJobTemplateDownloadParamsResult::DownloadParams GetJobTemplateDownloadParamsResult::getDownloadParams()const +{ + return downloadParams_; +} + +std::string GetJobTemplateDownloadParamsResult::getMessage()const +{ + return message_; +} + +int GetJobTemplateDownloadParamsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetJobTemplateDownloadParamsResult::getCode()const +{ + return code_; +} + +bool GetJobTemplateDownloadParamsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetNumberRegionInfoRequest.cc b/ccc/src/model/GetNumberRegionInfoRequest.cc new file mode 100644 index 000000000..7663f87c6 --- /dev/null +++ b/ccc/src/model/GetNumberRegionInfoRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetNumberRegionInfoRequest; + +GetNumberRegionInfoRequest::GetNumberRegionInfoRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetNumberRegionInfo") +{} + +GetNumberRegionInfoRequest::~GetNumberRegionInfoRequest() +{} + +std::string GetNumberRegionInfoRequest::getNumber()const +{ + return number_; +} + +void GetNumberRegionInfoRequest::setNumber(const std::string& number) +{ + number_ = number; + setParameter("Number", number); +} + +std::string GetNumberRegionInfoRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetNumberRegionInfoRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetNumberRegionInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetNumberRegionInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetNumberRegionInfoResult.cc b/ccc/src/model/GetNumberRegionInfoResult.cc new file mode 100644 index 000000000..e5f1958bf --- /dev/null +++ b/ccc/src/model/GetNumberRegionInfoResult.cc @@ -0,0 +1,78 @@ +/* + * 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; + +GetNumberRegionInfoResult::GetNumberRegionInfoResult() : + ServiceResult() +{} + +GetNumberRegionInfoResult::GetNumberRegionInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetNumberRegionInfoResult::~GetNumberRegionInfoResult() +{} + +void GetNumberRegionInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto phoneNumberNode = value["PhoneNumber"]; + if(!phoneNumberNode["Number"].isNull()) + phoneNumber_.number = phoneNumberNode["Number"].asString(); + if(!phoneNumberNode["Province"].isNull()) + phoneNumber_.province = phoneNumberNode["Province"].asString(); + if(!phoneNumberNode["City"].isNull()) + phoneNumber_.city = phoneNumberNode["City"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetNumberRegionInfoResult::getMessage()const +{ + return message_; +} + +GetNumberRegionInfoResult::PhoneNumber GetNumberRegionInfoResult::getPhoneNumber()const +{ + return phoneNumber_; +} + +std::string GetNumberRegionInfoResult::getCode()const +{ + return code_; +} + +bool GetNumberRegionInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetScenarioRequest.cc b/ccc/src/model/GetScenarioRequest.cc new file mode 100644 index 000000000..207f5b9e1 --- /dev/null +++ b/ccc/src/model/GetScenarioRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::GetScenarioRequest; + +GetScenarioRequest::GetScenarioRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetScenario") +{} + +GetScenarioRequest::~GetScenarioRequest() +{} + +std::string GetScenarioRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetScenarioRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetScenarioRequest::getScenarioId()const +{ + return scenarioId_; +} + +void GetScenarioRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/GetScenarioResult.cc b/ccc/src/model/GetScenarioResult.cc new file mode 100644 index 000000000..be6968b77 --- /dev/null +++ b/ccc/src/model/GetScenarioResult.cc @@ -0,0 +1,167 @@ +/* + * 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; + +GetScenarioResult::GetScenarioResult() : + ServiceResult() +{} + +GetScenarioResult::GetScenarioResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetScenarioResult::~GetScenarioResult() +{} + +void GetScenarioResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto scenarioNode = value["Scenario"]; + if(!scenarioNode["Id"].isNull()) + scenario_.id = scenarioNode["Id"].asString(); + if(!scenarioNode["Name"].isNull()) + scenario_.name = scenarioNode["Name"].asString(); + if(!scenarioNode["Description"].isNull()) + scenario_.description = scenarioNode["Description"].asString(); + if(!scenarioNode["Type"].isNull()) + scenario_.type = scenarioNode["Type"].asString(); + if(!scenarioNode["IsTemplate"].isNull()) + scenario_.isTemplate = scenarioNode["IsTemplate"].asString() == "true"; + auto allSurveys = value["Surveys"]["Survey"]; + for (auto value : allSurveys) + { + Scenario::Survey surveyObject; + if(!value["Id"].isNull()) + surveyObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + surveyObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + surveyObject.description = value["Description"].asString(); + if(!value["Role"].isNull()) + surveyObject.role = value["Role"].asString(); + if(!value["Round"].isNull()) + surveyObject.round = std::stoi(value["Round"].asString()); + if(!value["BeebotId"].isNull()) + surveyObject.beebotId = value["BeebotId"].asString(); + auto allIntents = value["Intents"]["IntentNode"]; + for (auto value : allIntents) + { + Scenario::Survey::IntentNode intentsObject; + if(!value["NodeId"].isNull()) + intentsObject.nodeId = value["NodeId"].asString(); + if(!value["IntentId"].isNull()) + intentsObject.intentId = value["IntentId"].asString(); + surveyObject.intents.push_back(intentsObject); + } + scenario_.surveys.push_back(surveyObject); + } + auto allVariables = value["Variables"]["KeyValuePair"]; + for (auto value : allVariables) + { + Scenario::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + scenario_.variables.push_back(keyValuePairObject); + } + auto strategyNode = scenarioNode["Strategy"]; + if(!strategyNode["Id"].isNull()) + scenario_.strategy.id = strategyNode["Id"].asString(); + if(!strategyNode["Name"].isNull()) + scenario_.strategy.name = strategyNode["Name"].asString(); + if(!strategyNode["Description"].isNull()) + scenario_.strategy.description = strategyNode["Description"].asString(); + if(!strategyNode["Type"].isNull()) + scenario_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + scenario_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + scenario_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + scenario_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + scenario_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + scenario_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + scenario_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + scenario_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + scenario_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + scenario_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + Scenario::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + scenario_.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + scenario_.strategy.repeatDays.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetScenarioResult::getMessage()const +{ + return message_; +} + +int GetScenarioResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetScenarioResult::getCode()const +{ + return code_; +} + +bool GetScenarioResult::getSuccess()const +{ + return success_; +} + +GetScenarioResult::Scenario GetScenarioResult::getScenario()const +{ + return scenario_; +} + diff --git a/ccc/src/model/GetServiceExtensionsResult.cc b/ccc/src/model/GetServiceExtensionsResult.cc index b4f4c3090..23eebdbf0 100644 --- a/ccc/src/model/GetServiceExtensionsResult.cc +++ b/ccc/src/model/GetServiceExtensionsResult.cc @@ -40,49 +40,49 @@ void GetServiceExtensionsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allServiceExtensions = value["ServiceExtensions"]["ServiceExtension"]; - for (auto value : allServiceExtensions) - { - ServiceExtension serviceExtensionsObject; - if(!value["Name"].isNull()) - serviceExtensionsObject.name = value["Name"].asString(); - if(!value["Number"].isNull()) - serviceExtensionsObject.number = value["Number"].asString(); - serviceExtensions_.push_back(serviceExtensionsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto allServiceExtensions = value["ServiceExtensions"]["ServiceExtension"]; + for (auto value : allServiceExtensions) + { + ServiceExtension serviceExtensionsObject; + if(!value["Name"].isNull()) + serviceExtensionsObject.name = value["Name"].asString(); + if(!value["Number"].isNull()) + serviceExtensionsObject.number = value["Number"].asString(); + serviceExtensions_.push_back(serviceExtensionsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string GetServiceExtensionsResult::getMessage()const -{ - return message_; -} - -int GetServiceExtensionsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector GetServiceExtensionsResult::getServiceExtensions()const -{ - return serviceExtensions_; -} - -std::string GetServiceExtensionsResult::getCode()const -{ - return code_; -} - -bool GetServiceExtensionsResult::getSuccess()const -{ - return success_; -} - +std::string GetServiceExtensionsResult::getMessage()const +{ + return message_; +} + +int GetServiceExtensionsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetServiceExtensionsResult::getServiceExtensions()const +{ + return serviceExtensions_; +} + +std::string GetServiceExtensionsResult::getCode()const +{ + return code_; +} + +bool GetServiceExtensionsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetSurveyRequest.cc b/ccc/src/model/GetSurveyRequest.cc new file mode 100644 index 000000000..87e7b1001 --- /dev/null +++ b/ccc/src/model/GetSurveyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetSurveyRequest; + +GetSurveyRequest::GetSurveyRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetSurvey") +{} + +GetSurveyRequest::~GetSurveyRequest() +{} + +std::string GetSurveyRequest::getSurveyId()const +{ + return surveyId_; +} + +void GetSurveyRequest::setSurveyId(const std::string& surveyId) +{ + surveyId_ = surveyId; + setParameter("SurveyId", surveyId); +} + +std::string GetSurveyRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetSurveyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetSurveyRequest::getScenarioId()const +{ + return scenarioId_; +} + +void GetSurveyRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/GetSurveyResult.cc b/ccc/src/model/GetSurveyResult.cc new file mode 100644 index 000000000..123e307df --- /dev/null +++ b/ccc/src/model/GetSurveyResult.cc @@ -0,0 +1,109 @@ +/* + * 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; + +GetSurveyResult::GetSurveyResult() : + ServiceResult() +{} + +GetSurveyResult::GetSurveyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSurveyResult::~GetSurveyResult() +{} + +void GetSurveyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto surveyNode = value["Survey"]; + if(!surveyNode["Id"].isNull()) + survey_.id = surveyNode["Id"].asString(); + if(!surveyNode["ScenarioUuid"].isNull()) + survey_.scenarioUuid = surveyNode["ScenarioUuid"].asString(); + if(!surveyNode["Name"].isNull()) + survey_.name = surveyNode["Name"].asString(); + if(!surveyNode["Description"].isNull()) + survey_.description = surveyNode["Description"].asString(); + if(!surveyNode["Role"].isNull()) + survey_.role = surveyNode["Role"].asString(); + if(!surveyNode["Round"].isNull()) + survey_.round = std::stoi(surveyNode["Round"].asString()); + if(!surveyNode["HotWords"].isNull()) + survey_.hotWords = surveyNode["HotWords"].asString(); + if(!surveyNode["SpeechOptimizationParam"].isNull()) + survey_.speechOptimizationParam = surveyNode["SpeechOptimizationParam"].asString(); + if(!surveyNode["GlobalQuestions"].isNull()) + survey_.globalQuestions = surveyNode["GlobalQuestions"].asString(); + auto flowNode = surveyNode["Flow"]; + if(!flowNode["FlowId"].isNull()) + survey_.flow.flowId = flowNode["FlowId"].asString(); + if(!flowNode["IsPublished"].isNull()) + survey_.flow.isPublished = flowNode["IsPublished"].asString() == "true"; + if(!flowNode["FlowJson"].isNull()) + survey_.flow.flowJson = flowNode["FlowJson"].asString(); + auto asrCustomModelNode = surveyNode["AsrCustomModel"]; + if(!asrCustomModelNode["Corpora"].isNull()) + survey_.asrCustomModel.corpora = asrCustomModelNode["Corpora"].asString(); + if(!asrCustomModelNode["CustomModelStatus"].isNull()) + survey_.asrCustomModel.customModelStatus = std::stoi(asrCustomModelNode["CustomModelStatus"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetSurveyResult::Survey GetSurveyResult::getSurvey()const +{ + return survey_; +} + +std::string GetSurveyResult::getMessage()const +{ + return message_; +} + +int GetSurveyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetSurveyResult::getCode()const +{ + return code_; +} + +bool GetSurveyResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetTaskListRequest.cc b/ccc/src/model/GetTaskListRequest.cc new file mode 100644 index 000000000..61154ca09 --- /dev/null +++ b/ccc/src/model/GetTaskListRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::GetTaskListRequest; + +GetTaskListRequest::GetTaskListRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetTaskList") +{} + +GetTaskListRequest::~GetTaskListRequest() +{} + +std::string GetTaskListRequest::getJobId()const +{ + return jobId_; +} + +void GetTaskListRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string GetTaskListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetTaskListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/GetTaskListResult.cc b/ccc/src/model/GetTaskListResult.cc new file mode 100644 index 000000000..4caf5ae49 --- /dev/null +++ b/ccc/src/model/GetTaskListResult.cc @@ -0,0 +1,149 @@ +/* + * 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; + +GetTaskListResult::GetTaskListResult() : + ServiceResult() +{} + +GetTaskListResult::GetTaskListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskListResult::~GetTaskListResult() +{} + +void GetTaskListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTasks = value["Tasks"]["Task"]; + for (auto value : allTasks) + { + Task tasksObject; + if(!value["TaskId"].isNull()) + tasksObject.taskId = value["TaskId"].asString(); + if(!value["JobId"].isNull()) + tasksObject.jobId = value["JobId"].asString(); + if(!value["ScenarioId"].isNull()) + tasksObject.scenarioId = value["ScenarioId"].asString(); + if(!value["ChatbotId"].isNull()) + tasksObject.chatbotId = value["ChatbotId"].asString(); + if(!value["PlanedTime"].isNull()) + tasksObject.planedTime = std::stol(value["PlanedTime"].asString()); + if(!value["ActualTime"].isNull()) + tasksObject.actualTime = std::stol(value["ActualTime"].asString()); + if(!value["CallingNumber"].isNull()) + tasksObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + tasksObject.calledNumber = value["CalledNumber"].asString(); + if(!value["CallId"].isNull()) + tasksObject.callId = value["CallId"].asString(); + if(!value["Status"].isNull()) + tasksObject.status = value["Status"].asString(); + if(!value["Brief"].isNull()) + tasksObject.brief = value["Brief"].asString(); + if(!value["Duration"].isNull()) + tasksObject.duration = std::stoi(value["Duration"].asString()); + auto allConversation = value["Conversation"]["ConversationDetail"]; + for (auto value : allConversation) + { + Task::ConversationDetail conversationObject; + if(!value["Timestamp"].isNull()) + conversationObject.timestamp = std::stol(value["Timestamp"].asString()); + if(!value["Speaker"].isNull()) + conversationObject.speaker = value["Speaker"].asString(); + if(!value["Script"].isNull()) + conversationObject.script = value["Script"].asString(); + auto allSummary = value["Summary"]["SummaryItem"]; + for (auto value : allSummary) + { + Task::ConversationDetail::SummaryItem summaryObject; + if(!value["Category"].isNull()) + summaryObject.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summaryObject.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summaryObject.content = value["Content"].asString(); + conversationObject.summary.push_back(summaryObject); + } + tasksObject.conversation.push_back(conversationObject); + } + auto contactNode = value["Contact"]; + if(!contactNode["ContactId"].isNull()) + tasksObject.contact.contactId = contactNode["ContactId"].asString(); + if(!contactNode["ContactName"].isNull()) + tasksObject.contact.contactName = contactNode["ContactName"].asString(); + if(!contactNode["Honorific"].isNull()) + tasksObject.contact.honorific = contactNode["Honorific"].asString(); + if(!contactNode["Role"].isNull()) + tasksObject.contact.role = contactNode["Role"].asString(); + if(!contactNode["PhoneNumber"].isNull()) + tasksObject.contact.phoneNumber = contactNode["PhoneNumber"].asString(); + if(!contactNode["State"].isNull()) + tasksObject.contact.state = contactNode["State"].asString(); + if(!contactNode["ReferenceId"].isNull()) + tasksObject.contact.referenceId = contactNode["ReferenceId"].asString(); + if(!contactNode["JobId"].isNull()) + tasksObject.contact.jobId = contactNode["JobId"].asString(); + tasks_.push_back(tasksObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector GetTaskListResult::getTasks()const +{ + return tasks_; +} + +std::string GetTaskListResult::getMessage()const +{ + return message_; +} + +int GetTaskListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetTaskListResult::getCode()const +{ + return code_; +} + +bool GetTaskListResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetUserResult.cc b/ccc/src/model/GetUserResult.cc index f2a05c881..6d0afa543 100644 --- a/ccc/src/model/GetUserResult.cc +++ b/ccc/src/model/GetUserResult.cc @@ -40,105 +40,90 @@ void GetUserResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allUser = value["User"]; - for (auto value : allUser) - { - User userObject; - if(!value["UserId"].isNull()) - userObject.userId = value["UserId"].asString(); - if(!value["RamId"].isNull()) - userObject.ramId = value["RamId"].asString(); - if(!value["InstanceId"].isNull()) - userObject.instanceId = value["InstanceId"].asString(); - auto allRoles = value["Roles"]["Role"]; - for (auto value : allRoles) - { - User::Role roleObject; - if(!value["RoleId"].isNull()) - roleObject.roleId = value["RoleId"].asString(); - if(!value["InstanceId"].isNull()) - roleObject.instanceId = value["InstanceId"].asString(); - if(!value["RoleName"].isNull()) - roleObject.roleName = value["RoleName"].asString(); - if(!value["RoleDescription"].isNull()) - roleObject.roleDescription = value["RoleDescription"].asString(); - userObject.roles.push_back(roleObject); - } - auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; - for (auto value : allSkillLevels) - { - User::SkillLevel skillLevelObject; - if(!value["SkillLevelId"].isNull()) - skillLevelObject.skillLevelId = value["SkillLevelId"].asString(); - if(!value["Level"].isNull()) - skillLevelObject.level = std::stoi(value["Level"].asString()); - auto allSkill = value["Skill"]; - for (auto value : allSkill) - { - User::SkillLevel::Skill skillObject; - if(!value["SkillGroupId"].isNull()) - skillObject.skillGroupId = value["SkillGroupId"].asString(); - if(!value["InstanceId"].isNull()) - skillObject.instanceId = value["InstanceId"].asString(); - if(!value["SkillGroupName"].isNull()) - skillObject.skillGroupName = value["SkillGroupName"].asString(); - if(!value["SkillGroupDescription"].isNull()) - skillObject.skillGroupDescription = value["SkillGroupDescription"].asString(); - skillLevelObject.skill.push_back(skillObject); - } - userObject.skillLevels.push_back(skillLevelObject); - } - auto allDetail = value["Detail"]; - for (auto value : allDetail) - { - User::Detail detailObject; - if(!value["LoginName"].isNull()) - detailObject.loginName = value["LoginName"].asString(); - if(!value["DisplayName"].isNull()) - detailObject.displayName = value["DisplayName"].asString(); - if(!value["Phone"].isNull()) - detailObject.phone = value["Phone"].asString(); - if(!value["Email"].isNull()) - detailObject.email = value["Email"].asString(); - if(!value["Department"].isNull()) - detailObject.department = value["Department"].asString(); - userObject.detail.push_back(detailObject); - } - user_.push_back(userObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto userNode = value["User"]; + if(!userNode["UserId"].isNull()) + user_.userId = userNode["UserId"].asString(); + if(!userNode["RamId"].isNull()) + user_.ramId = userNode["RamId"].asString(); + if(!userNode["InstanceId"].isNull()) + user_.instanceId = userNode["InstanceId"].asString(); + auto allRoles = value["Roles"]["Role"]; + for (auto value : allRoles) + { + User::Role roleObject; + if(!value["RoleId"].isNull()) + roleObject.roleId = value["RoleId"].asString(); + if(!value["InstanceId"].isNull()) + roleObject.instanceId = value["InstanceId"].asString(); + if(!value["RoleName"].isNull()) + roleObject.roleName = value["RoleName"].asString(); + if(!value["RoleDescription"].isNull()) + roleObject.roleDescription = value["RoleDescription"].asString(); + user_.roles.push_back(roleObject); + } + auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; + for (auto value : allSkillLevels) + { + User::SkillLevel skillLevelObject; + if(!value["SkillLevelId"].isNull()) + skillLevelObject.skillLevelId = value["SkillLevelId"].asString(); + if(!value["Level"].isNull()) + skillLevelObject.level = std::stoi(value["Level"].asString()); + auto skillNode = value["Skill"]; + if(!skillNode["SkillGroupId"].isNull()) + skillLevelObject.skill.skillGroupId = skillNode["SkillGroupId"].asString(); + if(!skillNode["InstanceId"].isNull()) + skillLevelObject.skill.instanceId = skillNode["InstanceId"].asString(); + if(!skillNode["SkillGroupName"].isNull()) + skillLevelObject.skill.skillGroupName = skillNode["SkillGroupName"].asString(); + if(!skillNode["SkillGroupDescription"].isNull()) + skillLevelObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString(); + user_.skillLevels.push_back(skillLevelObject); + } + auto detailNode = userNode["Detail"]; + if(!detailNode["LoginName"].isNull()) + user_.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + user_.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + user_.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + user_.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + user_.detail.department = detailNode["Department"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::vector GetUserResult::getUser()const -{ - return user_; -} - -std::string GetUserResult::getMessage()const -{ - return message_; -} - -int GetUserResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetUserResult::getCode()const -{ - return code_; -} - -bool GetUserResult::getSuccess()const -{ - return success_; -} - +GetUserResult::User GetUserResult::getUser()const +{ + return user_; +} + +std::string GetUserResult::getMessage()const +{ + return message_; +} + +int GetUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetUserResult::getCode()const +{ + return code_; +} + +bool GetUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/LaunchAppraiseRequest.cc b/ccc/src/model/LaunchAppraiseRequest.cc new file mode 100644 index 000000000..297d979d0 --- /dev/null +++ b/ccc/src/model/LaunchAppraiseRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::LaunchAppraiseRequest; + +LaunchAppraiseRequest::LaunchAppraiseRequest() : + RpcServiceRequest("ccc", "2017-07-05", "LaunchAppraise") +{} + +LaunchAppraiseRequest::~LaunchAppraiseRequest() +{} + +std::string LaunchAppraiseRequest::getAcid()const +{ + return acid_; +} + +void LaunchAppraiseRequest::setAcid(const std::string& acid) +{ + acid_ = acid; + setParameter("Acid", acid); +} + +std::string LaunchAppraiseRequest::getInstanceId()const +{ + return instanceId_; +} + +void LaunchAppraiseRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string LaunchAppraiseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void LaunchAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/LaunchAppraiseResult.cc b/ccc/src/model/LaunchAppraiseResult.cc new file mode 100644 index 000000000..3b5d06f77 --- /dev/null +++ b/ccc/src/model/LaunchAppraiseResult.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; + +LaunchAppraiseResult::LaunchAppraiseResult() : + ServiceResult() +{} + +LaunchAppraiseResult::LaunchAppraiseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LaunchAppraiseResult::~LaunchAppraiseResult() +{} + +void LaunchAppraiseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string LaunchAppraiseResult::getMessage()const +{ + return message_; +} + +int LaunchAppraiseResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string LaunchAppraiseResult::getCode()const +{ + return code_; +} + +bool LaunchAppraiseResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc b/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc new file mode 100644 index 000000000..8b86b0470 --- /dev/null +++ b/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::ListBasicStatisticsReportSubItemsRequest; + +ListBasicStatisticsReportSubItemsRequest::ListBasicStatisticsReportSubItemsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListBasicStatisticsReportSubItems") +{} + +ListBasicStatisticsReportSubItemsRequest::~ListBasicStatisticsReportSubItemsRequest() +{} + +std::string ListBasicStatisticsReportSubItemsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListBasicStatisticsReportSubItemsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListBasicStatisticsReportSubItemsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void ListBasicStatisticsReportSubItemsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +int ListBasicStatisticsReportSubItemsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListBasicStatisticsReportSubItemsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListBasicStatisticsReportSubItemsRequest::getTitle()const +{ + return title_; +} + +void ListBasicStatisticsReportSubItemsRequest::setTitle(const std::string& title) +{ + title_ = title; + setParameter("Title", title); +} + +int ListBasicStatisticsReportSubItemsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListBasicStatisticsReportSubItemsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc b/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc new file mode 100644 index 000000000..1f4932f00 --- /dev/null +++ b/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc @@ -0,0 +1,109 @@ +/* + * 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; + +ListBasicStatisticsReportSubItemsResult::ListBasicStatisticsReportSubItemsResult() : + ServiceResult() +{} + +ListBasicStatisticsReportSubItemsResult::ListBasicStatisticsReportSubItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBasicStatisticsReportSubItemsResult::~ListBasicStatisticsReportSubItemsResult() +{} + +void ListBasicStatisticsReportSubItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto subItemsNode = value["SubItems"]; + if(!subItemsNode["TotalCount"].isNull()) + subItems_.totalCount = std::stoi(subItemsNode["TotalCount"].asString()); + if(!subItemsNode["PageNumber"].isNull()) + subItems_.pageNumber = std::stoi(subItemsNode["PageNumber"].asString()); + if(!subItemsNode["PageSize"].isNull()) + subItems_.pageSize = std::stoi(subItemsNode["PageSize"].asString()); + auto allList = value["List"]["BasicStatisticsReportSubItem"]; + for (auto value : allList) + { + SubItems::BasicStatisticsReportSubItem basicStatisticsReportSubItemObject; + if(!value["BasicStatisticsReportSubItemName"].isNull()) + basicStatisticsReportSubItemObject.basicStatisticsReportSubItemName = value["BasicStatisticsReportSubItemName"].asString(); + if(!value["Value"].isNull()) + basicStatisticsReportSubItemObject.value = value["Value"].asString(); + if(!value["Count"].isNull()) + basicStatisticsReportSubItemObject.count = std::stoi(value["Count"].asString()); + if(!value["Percentage"].isNull()) + basicStatisticsReportSubItemObject.percentage = std::stoi(value["Percentage"].asString()); + auto allRow = value["Row"]["KeyValuePair"]; + for (auto value : allRow) + { + SubItems::BasicStatisticsReportSubItem::KeyValuePair rowObject; + if(!value["Key"].isNull()) + rowObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + rowObject.value = value["Value"].asString(); + basicStatisticsReportSubItemObject.row.push_back(rowObject); + } + subItems_.list.push_back(basicStatisticsReportSubItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +ListBasicStatisticsReportSubItemsResult::SubItems ListBasicStatisticsReportSubItemsResult::getSubItems()const +{ + return subItems_; +} + +std::string ListBasicStatisticsReportSubItemsResult::getMessage()const +{ + return message_; +} + +int ListBasicStatisticsReportSubItemsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListBasicStatisticsReportSubItemsResult::getCode()const +{ + return code_; +} + +bool ListBasicStatisticsReportSubItemsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListCallDetailRecordsRequest.cc b/ccc/src/model/ListCallDetailRecordsRequest.cc index e9ca8472a..cb2a78190 100644 --- a/ccc/src/model/ListCallDetailRecordsRequest.cc +++ b/ccc/src/model/ListCallDetailRecordsRequest.cc @@ -91,15 +91,15 @@ void ListCallDetailRecordsRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } -long ListCallDetailRecordsRequest::getStartTime()const +std::string ListCallDetailRecordsRequest::getOrderBy()const { - return startTime_; + return orderBy_; } -void ListCallDetailRecordsRequest::setStartTime(long startTime) +void ListCallDetailRecordsRequest::setOrderBy(const std::string& orderBy) { - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + orderBy_ = orderBy; + setParameter("OrderBy", orderBy); } long ListCallDetailRecordsRequest::getStopTime()const @@ -113,6 +113,17 @@ void ListCallDetailRecordsRequest::setStopTime(long stopTime) setParameter("StopTime", std::to_string(stopTime)); } +long ListCallDetailRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void ListCallDetailRecordsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + int ListCallDetailRecordsRequest::getPageNumber()const { return pageNumber_; diff --git a/ccc/src/model/ListCallDetailRecordsResult.cc b/ccc/src/model/ListCallDetailRecordsResult.cc index d44a55ac2..44d9cb24f 100644 --- a/ccc/src/model/ListCallDetailRecordsResult.cc +++ b/ccc/src/model/ListCallDetailRecordsResult.cc @@ -40,139 +40,134 @@ void ListCallDetailRecordsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allCallDetailRecords = value["CallDetailRecords"]; - for (auto value : allCallDetailRecords) - { - CallDetailRecords callDetailRecordsObject; - if(!value["TotalCount"].isNull()) - callDetailRecordsObject.totalCount = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - callDetailRecordsObject.pageNumber = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - callDetailRecordsObject.pageSize = std::stoi(value["PageSize"].asString()); - auto allList = value["List"]["CallDetailRecord"]; - for (auto value : allList) - { - CallDetailRecords::CallDetailRecord callDetailRecordObject; - if(!value["ContactId"].isNull()) - callDetailRecordObject.contactId = value["ContactId"].asString(); - if(!value["StartTime"].isNull()) - callDetailRecordObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["Duration"].isNull()) - callDetailRecordObject.duration = std::stoi(value["Duration"].asString()); - if(!value["Satisfaction"].isNull()) - callDetailRecordObject.satisfaction = std::stoi(value["Satisfaction"].asString()); - if(!value["ContactType"].isNull()) - callDetailRecordObject.contactType = value["ContactType"].asString(); - if(!value["ContactDisposition"].isNull()) - callDetailRecordObject.contactDisposition = value["ContactDisposition"].asString(); - if(!value["CallingNumber"].isNull()) - callDetailRecordObject.callingNumber = value["CallingNumber"].asString(); - if(!value["CalledNumber"].isNull()) - callDetailRecordObject.calledNumber = value["CalledNumber"].asString(); - if(!value["AgentNames"].isNull()) - callDetailRecordObject.agentNames = value["AgentNames"].asString(); - if(!value["SkillGroupNames"].isNull()) - callDetailRecordObject.skillGroupNames = value["SkillGroupNames"].asString(); - if(!value["InstanceId"].isNull()) - callDetailRecordObject.instanceId = value["InstanceId"].asString(); - if(!value["ExtraAttr"].isNull()) - callDetailRecordObject.extraAttr = value["ExtraAttr"].asString(); - auto allAgents = value["Agents"]["CallDetailAgent"]; - for (auto value : allAgents) - { - CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject; - if(!value["ContactId"].isNull()) - agentsObject.contactId = value["ContactId"].asString(); - if(!value["AgentId"].isNull()) - agentsObject.agentId = value["AgentId"].asString(); - if(!value["AgentName"].isNull()) - agentsObject.agentName = value["AgentName"].asString(); - if(!value["SkillGroupName"].isNull()) - agentsObject.skillGroupName = value["SkillGroupName"].asString(); - if(!value["QueueTime"].isNull()) - agentsObject.queueTime = std::stoi(value["QueueTime"].asString()); - if(!value["RingTime"].isNull()) - agentsObject.ringTime = std::stoi(value["RingTime"].asString()); - if(!value["StartTime"].isNull()) - agentsObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["TalkTime"].isNull()) - agentsObject.talkTime = std::stoi(value["TalkTime"].asString()); - if(!value["HoldTime"].isNull()) - agentsObject.holdTime = std::stoi(value["HoldTime"].asString()); - if(!value["WorkTime"].isNull()) - agentsObject.workTime = std::stoi(value["WorkTime"].asString()); - callDetailRecordObject.agents.push_back(agentsObject); - } - auto allRecordings = value["Recordings"]["Recording"]; - for (auto value : allRecordings) - { - CallDetailRecords::CallDetailRecord::Recording recordingsObject; - if(!value["ContactId"].isNull()) - recordingsObject.contactId = value["ContactId"].asString(); - if(!value["ContactType"].isNull()) - recordingsObject.contactType = value["ContactType"].asString(); - if(!value["AgentId"].isNull()) - recordingsObject.agentId = value["AgentId"].asString(); - if(!value["AgentName"].isNull()) - recordingsObject.agentName = value["AgentName"].asString(); - if(!value["CallingNumber"].isNull()) - recordingsObject.callingNumber = value["CallingNumber"].asString(); - if(!value["CalledNumber"].isNull()) - recordingsObject.calledNumber = value["CalledNumber"].asString(); - if(!value["StartTime"].isNull()) - recordingsObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["Duration"].isNull()) - recordingsObject.duration = std::stoi(value["Duration"].asString()); - if(!value["FileName"].isNull()) - recordingsObject.fileName = value["FileName"].asString(); - if(!value["FilePath"].isNull()) - recordingsObject.filePath = value["FilePath"].asString(); - if(!value["FileDescription"].isNull()) - recordingsObject.fileDescription = value["FileDescription"].asString(); - if(!value["Channel"].isNull()) - recordingsObject.channel = value["Channel"].asString(); - if(!value["InstanceId"].isNull()) - recordingsObject.instanceId = value["InstanceId"].asString(); - callDetailRecordObject.recordings.push_back(recordingsObject); - } - callDetailRecordsObject.list.push_back(callDetailRecordObject); - } - callDetailRecords_.push_back(callDetailRecordsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto callDetailRecordsNode = value["CallDetailRecords"]; + if(!callDetailRecordsNode["TotalCount"].isNull()) + callDetailRecords_.totalCount = std::stoi(callDetailRecordsNode["TotalCount"].asString()); + if(!callDetailRecordsNode["PageNumber"].isNull()) + callDetailRecords_.pageNumber = std::stoi(callDetailRecordsNode["PageNumber"].asString()); + if(!callDetailRecordsNode["PageSize"].isNull()) + callDetailRecords_.pageSize = std::stoi(callDetailRecordsNode["PageSize"].asString()); + auto allList = value["List"]["CallDetailRecord"]; + for (auto value : allList) + { + CallDetailRecords::CallDetailRecord callDetailRecordObject; + if(!value["ContactId"].isNull()) + callDetailRecordObject.contactId = value["ContactId"].asString(); + if(!value["StartTime"].isNull()) + callDetailRecordObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["Duration"].isNull()) + callDetailRecordObject.duration = std::stoi(value["Duration"].asString()); + if(!value["Satisfaction"].isNull()) + callDetailRecordObject.satisfaction = std::stoi(value["Satisfaction"].asString()); + if(!value["ContactType"].isNull()) + callDetailRecordObject.contactType = value["ContactType"].asString(); + if(!value["ContactDisposition"].isNull()) + callDetailRecordObject.contactDisposition = value["ContactDisposition"].asString(); + if(!value["CallingNumber"].isNull()) + callDetailRecordObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + callDetailRecordObject.calledNumber = value["CalledNumber"].asString(); + if(!value["AgentNames"].isNull()) + callDetailRecordObject.agentNames = value["AgentNames"].asString(); + if(!value["SkillGroupNames"].isNull()) + callDetailRecordObject.skillGroupNames = value["SkillGroupNames"].asString(); + if(!value["InstanceId"].isNull()) + callDetailRecordObject.instanceId = value["InstanceId"].asString(); + if(!value["ExtraAttr"].isNull()) + callDetailRecordObject.extraAttr = value["ExtraAttr"].asString(); + auto allAgents = value["Agents"]["CallDetailAgent"]; + for (auto value : allAgents) + { + CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject; + if(!value["ContactId"].isNull()) + agentsObject.contactId = value["ContactId"].asString(); + if(!value["AgentId"].isNull()) + agentsObject.agentId = value["AgentId"].asString(); + if(!value["AgentName"].isNull()) + agentsObject.agentName = value["AgentName"].asString(); + if(!value["SkillGroupName"].isNull()) + agentsObject.skillGroupName = value["SkillGroupName"].asString(); + if(!value["QueueTime"].isNull()) + agentsObject.queueTime = std::stoi(value["QueueTime"].asString()); + if(!value["RingTime"].isNull()) + agentsObject.ringTime = std::stoi(value["RingTime"].asString()); + if(!value["StartTime"].isNull()) + agentsObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["TalkTime"].isNull()) + agentsObject.talkTime = std::stoi(value["TalkTime"].asString()); + if(!value["HoldTime"].isNull()) + agentsObject.holdTime = std::stoi(value["HoldTime"].asString()); + if(!value["WorkTime"].isNull()) + agentsObject.workTime = std::stoi(value["WorkTime"].asString()); + callDetailRecordObject.agents.push_back(agentsObject); + } + auto allRecordings = value["Recordings"]["Recording"]; + for (auto value : allRecordings) + { + CallDetailRecords::CallDetailRecord::Recording recordingsObject; + if(!value["ContactId"].isNull()) + recordingsObject.contactId = value["ContactId"].asString(); + if(!value["ContactType"].isNull()) + recordingsObject.contactType = value["ContactType"].asString(); + if(!value["AgentId"].isNull()) + recordingsObject.agentId = value["AgentId"].asString(); + if(!value["AgentName"].isNull()) + recordingsObject.agentName = value["AgentName"].asString(); + if(!value["CallingNumber"].isNull()) + recordingsObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + recordingsObject.calledNumber = value["CalledNumber"].asString(); + if(!value["StartTime"].isNull()) + recordingsObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["Duration"].isNull()) + recordingsObject.duration = std::stoi(value["Duration"].asString()); + if(!value["FileName"].isNull()) + recordingsObject.fileName = value["FileName"].asString(); + if(!value["FilePath"].isNull()) + recordingsObject.filePath = value["FilePath"].asString(); + if(!value["FileDescription"].isNull()) + recordingsObject.fileDescription = value["FileDescription"].asString(); + if(!value["Channel"].isNull()) + recordingsObject.channel = value["Channel"].asString(); + if(!value["InstanceId"].isNull()) + recordingsObject.instanceId = value["InstanceId"].asString(); + callDetailRecordObject.recordings.push_back(recordingsObject); + } + callDetailRecords_.list.push_back(callDetailRecordObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListCallDetailRecordsResult::getMessage()const -{ - return message_; -} - -std::vector ListCallDetailRecordsResult::getCallDetailRecords()const -{ - return callDetailRecords_; -} - -int ListCallDetailRecordsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListCallDetailRecordsResult::getCode()const -{ - return code_; -} - -bool ListCallDetailRecordsResult::getSuccess()const -{ - return success_; -} - +std::string ListCallDetailRecordsResult::getMessage()const +{ + return message_; +} + +ListCallDetailRecordsResult::CallDetailRecords ListCallDetailRecordsResult::getCallDetailRecords()const +{ + return callDetailRecords_; +} + +int ListCallDetailRecordsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListCallDetailRecordsResult::getCode()const +{ + return code_; +} + +bool ListCallDetailRecordsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListConfigRequest.cc b/ccc/src/model/ListConfigRequest.cc new file mode 100644 index 000000000..aca25b17f --- /dev/null +++ b/ccc/src/model/ListConfigRequest.cc @@ -0,0 +1,61 @@ +/* + * 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::ListConfigRequest; + +ListConfigRequest::ListConfigRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListConfig") +{} + +ListConfigRequest::~ListConfigRequest() +{} + +std::string ListConfigRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListConfigRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector ListConfigRequest::getConfigItem()const +{ + return configItem_; +} + +void ListConfigRequest::setConfigItem(const std::vector& configItem) +{ + configItem_ = configItem; + for(int i = 0; i!= configItem.size(); i++) + setParameter("ConfigItem."+ std::to_string(i), configItem.at(i)); +} + +std::string ListConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListConfigResult.cc b/ccc/src/model/ListConfigResult.cc new file mode 100644 index 000000000..5b0fb5c79 --- /dev/null +++ b/ccc/src/model/ListConfigResult.cc @@ -0,0 +1,88 @@ +/* + * 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; + +ListConfigResult::ListConfigResult() : + ServiceResult() +{} + +ListConfigResult::ListConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListConfigResult::~ListConfigResult() +{} + +void ListConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allConfigItems = value["ConfigItems"]["ConfigItem"]; + for (auto value : allConfigItems) + { + ConfigItem configItemsObject; + if(!value["Name"].isNull()) + configItemsObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + configItemsObject.value = value["Value"].asString(); + configItems_.push_back(configItemsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector ListConfigResult::getConfigItems()const +{ + return configItems_; +} + +std::string ListConfigResult::getMessage()const +{ + return message_; +} + +int ListConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListConfigResult::getCode()const +{ + return code_; +} + +bool ListConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListContactFlowsResult.cc b/ccc/src/model/ListContactFlowsResult.cc index ad6a8e042..1e215538f 100644 --- a/ccc/src/model/ListContactFlowsResult.cc +++ b/ccc/src/model/ListContactFlowsResult.cc @@ -40,101 +40,101 @@ void ListContactFlowsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allContactFlows = value["ContactFlows"]["ContactFlow"]; - for (auto value : allContactFlows) - { - ContactFlow contactFlowsObject; - if(!value["ContactFlowId"].isNull()) - contactFlowsObject.contactFlowId = value["ContactFlowId"].asString(); - if(!value["InstanceId"].isNull()) - contactFlowsObject.instanceId = value["InstanceId"].asString(); - if(!value["ContactFlowName"].isNull()) - contactFlowsObject.contactFlowName = value["ContactFlowName"].asString(); - if(!value["ContactFlowDescription"].isNull()) - contactFlowsObject.contactFlowDescription = value["ContactFlowDescription"].asString(); - if(!value["Type"].isNull()) - contactFlowsObject.type = value["Type"].asString(); - if(!value["AppliedVersion"].isNull()) - contactFlowsObject.appliedVersion = value["AppliedVersion"].asString(); - auto allVersions = value["Versions"]["ContactFlowVersion"]; - for (auto value : allVersions) - { - ContactFlow::ContactFlowVersion versionsObject; - if(!value["ContactFlowVersionId"].isNull()) - versionsObject.contactFlowVersionId = value["ContactFlowVersionId"].asString(); - if(!value["Version"].isNull()) - versionsObject.version = value["Version"].asString(); - if(!value["ContactFlowVersionDescription"].isNull()) - versionsObject.contactFlowVersionDescription = value["ContactFlowVersionDescription"].asString(); - if(!value["LastModified"].isNull()) - versionsObject.lastModified = value["LastModified"].asString(); - if(!value["LastModifiedBy"].isNull()) - versionsObject.lastModifiedBy = value["LastModifiedBy"].asString(); - if(!value["LockedBy"].isNull()) - versionsObject.lockedBy = value["LockedBy"].asString(); - if(!value["Status"].isNull()) - versionsObject.status = value["Status"].asString(); - contactFlowsObject.versions.push_back(versionsObject); - } - auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; - for (auto value : allPhoneNumbers) - { - ContactFlow::PhoneNumber phoneNumbersObject; - if(!value["PhoneNumberId"].isNull()) - phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); - if(!value["InstanceId"].isNull()) - phoneNumbersObject.instanceId = value["InstanceId"].asString(); - if(!value["Number"].isNull()) - phoneNumbersObject.number = value["Number"].asString(); - if(!value["PhoneNumberDescription"].isNull()) - phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); - if(!value["TestOnly"].isNull()) - phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; - if(!value["RemainingTime"].isNull()) - phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); - if(!value["AllowOutbound"].isNull()) - phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; - if(!value["Usage"].isNull()) - phoneNumbersObject.usage = value["Usage"].asString(); - if(!value["Trunks"].isNull()) - phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); - contactFlowsObject.phoneNumbers.push_back(phoneNumbersObject); - } - contactFlows_.push_back(contactFlowsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto allContactFlows = value["ContactFlows"]["ContactFlow"]; + for (auto value : allContactFlows) + { + ContactFlow contactFlowsObject; + if(!value["ContactFlowId"].isNull()) + contactFlowsObject.contactFlowId = value["ContactFlowId"].asString(); + if(!value["InstanceId"].isNull()) + contactFlowsObject.instanceId = value["InstanceId"].asString(); + if(!value["ContactFlowName"].isNull()) + contactFlowsObject.contactFlowName = value["ContactFlowName"].asString(); + if(!value["ContactFlowDescription"].isNull()) + contactFlowsObject.contactFlowDescription = value["ContactFlowDescription"].asString(); + if(!value["Type"].isNull()) + contactFlowsObject.type = value["Type"].asString(); + if(!value["AppliedVersion"].isNull()) + contactFlowsObject.appliedVersion = value["AppliedVersion"].asString(); + auto allVersions = value["Versions"]["ContactFlowVersion"]; + for (auto value : allVersions) + { + ContactFlow::ContactFlowVersion versionsObject; + if(!value["ContactFlowVersionId"].isNull()) + versionsObject.contactFlowVersionId = value["ContactFlowVersionId"].asString(); + if(!value["Version"].isNull()) + versionsObject.version = value["Version"].asString(); + if(!value["ContactFlowVersionDescription"].isNull()) + versionsObject.contactFlowVersionDescription = value["ContactFlowVersionDescription"].asString(); + if(!value["LastModified"].isNull()) + versionsObject.lastModified = value["LastModified"].asString(); + if(!value["LastModifiedBy"].isNull()) + versionsObject.lastModifiedBy = value["LastModifiedBy"].asString(); + if(!value["LockedBy"].isNull()) + versionsObject.lockedBy = value["LockedBy"].asString(); + if(!value["Status"].isNull()) + versionsObject.status = value["Status"].asString(); + contactFlowsObject.versions.push_back(versionsObject); + } + auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; + for (auto value : allPhoneNumbers) + { + ContactFlow::PhoneNumber phoneNumbersObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumbersObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumbersObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + phoneNumbersObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); + contactFlowsObject.phoneNumbers.push_back(phoneNumbersObject); + } + contactFlows_.push_back(contactFlowsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListContactFlowsResult::getMessage()const -{ - return message_; -} - -std::vector ListContactFlowsResult::getContactFlows()const -{ - return contactFlows_; -} - -int ListContactFlowsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListContactFlowsResult::getCode()const -{ - return code_; -} - -bool ListContactFlowsResult::getSuccess()const -{ - return success_; -} - +std::string ListContactFlowsResult::getMessage()const +{ + return message_; +} + +std::vector ListContactFlowsResult::getContactFlows()const +{ + return contactFlows_; +} + +int ListContactFlowsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListContactFlowsResult::getCode()const +{ + return code_; +} + +bool ListContactFlowsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListJobGroupsRequest.cc b/ccc/src/model/ListJobGroupsRequest.cc new file mode 100644 index 000000000..11f195864 --- /dev/null +++ b/ccc/src/model/ListJobGroupsRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::ListJobGroupsRequest; + +ListJobGroupsRequest::ListJobGroupsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListJobGroups") +{} + +ListJobGroupsRequest::~ListJobGroupsRequest() +{} + +std::string ListJobGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListJobGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListJobGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListJobGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListJobGroupsRequest::getEndTime()const +{ + return endTime_; +} + +void ListJobGroupsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListJobGroupsRequest::getStartTime()const +{ + return startTime_; +} + +void ListJobGroupsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +int ListJobGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListJobGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ccc/src/model/ListJobGroupsResult.cc b/ccc/src/model/ListJobGroupsResult.cc new file mode 100644 index 000000000..2936204d8 --- /dev/null +++ b/ccc/src/model/ListJobGroupsResult.cc @@ -0,0 +1,169 @@ +/* + * 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; + +ListJobGroupsResult::ListJobGroupsResult() : + ServiceResult() +{} + +ListJobGroupsResult::ListJobGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobGroupsResult::~ListJobGroupsResult() +{} + +void ListJobGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobGroupsNode = value["JobGroups"]; + if(!jobGroupsNode["TotalCount"].isNull()) + jobGroups_.totalCount = std::stoi(jobGroupsNode["TotalCount"].asString()); + if(!jobGroupsNode["PageNumber"].isNull()) + jobGroups_.pageNumber = std::stoi(jobGroupsNode["PageNumber"].asString()); + if(!jobGroupsNode["PageSize"].isNull()) + jobGroups_.pageSize = std::stoi(jobGroupsNode["PageSize"].asString()); + auto allList = value["List"]["JobGroup"]; + for (auto value : allList) + { + JobGroups::JobGroup jobGroupObject; + if(!value["Id"].isNull()) + jobGroupObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + jobGroupObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + jobGroupObject.description = value["Description"].asString(); + if(!value["ScenarioId"].isNull()) + jobGroupObject.scenarioId = value["ScenarioId"].asString(); + if(!value["JobFilePath"].isNull()) + jobGroupObject.jobFilePath = value["JobFilePath"].asString(); + if(!value["CreationTime"].isNull()) + jobGroupObject.creationTime = std::stol(value["CreationTime"].asString()); + auto strategyNode = value["Strategy"]; + if(!strategyNode["Id"].isNull()) + jobGroupObject.strategy.id = strategyNode["Id"].asString(); + if(!strategyNode["Name"].isNull()) + jobGroupObject.strategy.name = strategyNode["Name"].asString(); + if(!strategyNode["Description"].isNull()) + jobGroupObject.strategy.description = strategyNode["Description"].asString(); + if(!strategyNode["Type"].isNull()) + jobGroupObject.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + jobGroupObject.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + jobGroupObject.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + jobGroupObject.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + jobGroupObject.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + jobGroupObject.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + jobGroupObject.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + jobGroupObject.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + JobGroups::JobGroup::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + jobGroupObject.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + jobGroupObject.strategy.repeatDays.push_back(value.asString()); + auto progressNode = value["Progress"]; + if(!progressNode["TotalJobs"].isNull()) + jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString()); + if(!progressNode["Status"].isNull()) + jobGroupObject.progress.status = progressNode["Status"].asString(); + if(!progressNode["TotalNotAnswered"].isNull()) + jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString()); + if(!progressNode["TotalCompleted"].isNull()) + jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString()); + if(!progressNode["StartTime"].isNull()) + jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].asString()); + if(!progressNode["Duration"].isNull()) + jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString()); + auto allCategories = value["Categories"]["KeyValuePair"]; + for (auto value : allCategories) + { + JobGroups::JobGroup::Progress::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + jobGroupObject.progress.categories.push_back(keyValuePairObject); + } + auto allCallingNumbers = value["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + jobGroupObject.callingNumbers.push_back(value.asString()); + jobGroups_.list.push_back(jobGroupObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListJobGroupsResult::getMessage()const +{ + return message_; +} + +int ListJobGroupsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListJobGroupsResult::getCode()const +{ + return code_; +} + +ListJobGroupsResult::JobGroups ListJobGroupsResult::getJobGroups()const +{ + return jobGroups_; +} + +bool ListJobGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListJobStatusRequest.cc b/ccc/src/model/ListJobStatusRequest.cc new file mode 100644 index 000000000..79ae66258 --- /dev/null +++ b/ccc/src/model/ListJobStatusRequest.cc @@ -0,0 +1,137 @@ +/* + * 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::ListJobStatusRequest; + +ListJobStatusRequest::ListJobStatusRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListJobStatus") +{} + +ListJobStatusRequest::~ListJobStatusRequest() +{} + +std::string ListJobStatusRequest::getContactName()const +{ + return contactName_; +} + +void ListJobStatusRequest::setContactName(const std::string& contactName) +{ + contactName_ = contactName; + setParameter("ContactName", contactName); +} + +std::string ListJobStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListJobStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListJobStatusRequest::getTimeAlignment()const +{ + return timeAlignment_; +} + +void ListJobStatusRequest::setTimeAlignment(const std::string& timeAlignment) +{ + timeAlignment_ = timeAlignment; + setParameter("TimeAlignment", timeAlignment); +} + +std::string ListJobStatusRequest::getGroupId()const +{ + return groupId_; +} + +void ListJobStatusRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string ListJobStatusRequest::getPhoneNumber()const +{ + return phoneNumber_; +} + +void ListJobStatusRequest::setPhoneNumber(const std::string& phoneNumber) +{ + phoneNumber_ = phoneNumber; + setParameter("PhoneNumber", phoneNumber); +} + +int ListJobStatusRequest::getPageSize()const +{ + return pageSize_; +} + +void ListJobStatusRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListJobStatusRequest::getEndTime()const +{ + return endTime_; +} + +void ListJobStatusRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListJobStatusRequest::getStartTime()const +{ + return startTime_; +} + +void ListJobStatusRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListJobStatusRequest::getScenarioId()const +{ + return scenarioId_; +} + +void ListJobStatusRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + +int ListJobStatusRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListJobStatusRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ccc/src/model/ListJobStatusResult.cc b/ccc/src/model/ListJobStatusResult.cc new file mode 100644 index 000000000..077891328 --- /dev/null +++ b/ccc/src/model/ListJobStatusResult.cc @@ -0,0 +1,211 @@ +/* + * 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; + +ListJobStatusResult::ListJobStatusResult() : + ServiceResult() +{} + +ListJobStatusResult::ListJobStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobStatusResult::~ListJobStatusResult() +{} + +void ListJobStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobsNode = value["Jobs"]; + if(!jobsNode["TotalCount"].isNull()) + jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString()); + if(!jobsNode["PageNumber"].isNull()) + jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString()); + if(!jobsNode["PageSize"].isNull()) + jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString()); + auto allList = value["List"]["Job"]; + for (auto value : allList) + { + Jobs::Job jobObject; + if(!value["JobId"].isNull()) + jobObject.jobId = value["JobId"].asString(); + if(!value["GroupId"].isNull()) + jobObject.groupId = value["GroupId"].asString(); + if(!value["ScenarioId"].isNull()) + jobObject.scenarioId = value["ScenarioId"].asString(); + if(!value["StrategyId"].isNull()) + jobObject.strategyId = value["StrategyId"].asString(); + if(!value["Priority"].isNull()) + jobObject.priority = std::stoi(value["Priority"].asString()); + if(!value["Status"].isNull()) + jobObject.status = value["Status"].asString(); + if(!value["ReferenceId"].isNull()) + jobObject.referenceId = value["ReferenceId"].asString(); + if(!value["FailureReason"].isNull()) + jobObject.failureReason = value["FailureReason"].asString(); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + { + Jobs::Job::Contact contactsObject; + if(!value["ContactId"].isNull()) + contactsObject.contactId = value["ContactId"].asString(); + if(!value["ContactName"].isNull()) + contactsObject.contactName = value["ContactName"].asString(); + if(!value["Honorific"].isNull()) + contactsObject.honorific = value["Honorific"].asString(); + if(!value["Role"].isNull()) + contactsObject.role = value["Role"].asString(); + if(!value["PhoneNumber"].isNull()) + contactsObject.phoneNumber = value["PhoneNumber"].asString(); + if(!value["State"].isNull()) + contactsObject.state = value["State"].asString(); + if(!value["ReferenceId"].isNull()) + contactsObject.referenceId = value["ReferenceId"].asString(); + if(!value["JobId"].isNull()) + contactsObject.jobId = value["JobId"].asString(); + jobObject.contacts.push_back(contactsObject); + } + auto allExtras = value["Extras"]["KeyValuePair"]; + for (auto value : allExtras) + { + Jobs::Job::KeyValuePair extrasObject; + if(!value["Key"].isNull()) + extrasObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + extrasObject.value = value["Value"].asString(); + jobObject.extras.push_back(extrasObject); + } + auto allTasks = value["Tasks"]["Task"]; + for (auto value : allTasks) + { + Jobs::Job::Task tasksObject; + if(!value["TaskId"].isNull()) + tasksObject.taskId = value["TaskId"].asString(); + if(!value["JobId"].isNull()) + tasksObject.jobId = value["JobId"].asString(); + if(!value["ScenarioId"].isNull()) + tasksObject.scenarioId = value["ScenarioId"].asString(); + if(!value["ChatbotId"].isNull()) + tasksObject.chatbotId = value["ChatbotId"].asString(); + if(!value["PlanedTime"].isNull()) + tasksObject.planedTime = std::stol(value["PlanedTime"].asString()); + if(!value["ActualTime"].isNull()) + tasksObject.actualTime = std::stol(value["ActualTime"].asString()); + if(!value["CallingNumber"].isNull()) + tasksObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + tasksObject.calledNumber = value["CalledNumber"].asString(); + if(!value["CallId"].isNull()) + tasksObject.callId = value["CallId"].asString(); + if(!value["Status"].isNull()) + tasksObject.status = value["Status"].asString(); + if(!value["Brief"].isNull()) + tasksObject.brief = value["Brief"].asString(); + if(!value["Duration"].isNull()) + tasksObject.duration = std::stoi(value["Duration"].asString()); + auto contact1Node = value["Contact"]; + if(!contact1Node["ContactId"].isNull()) + tasksObject.contact1.contactId = contact1Node["ContactId"].asString(); + if(!contact1Node["ContactName"].isNull()) + tasksObject.contact1.contactName = contact1Node["ContactName"].asString(); + if(!contact1Node["Honorific"].isNull()) + tasksObject.contact1.honorific = contact1Node["Honorific"].asString(); + if(!contact1Node["Role"].isNull()) + tasksObject.contact1.role = contact1Node["Role"].asString(); + if(!contact1Node["PhoneNumber"].isNull()) + tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString(); + if(!contact1Node["State"].isNull()) + tasksObject.contact1.state = contact1Node["State"].asString(); + if(!contact1Node["ReferenceId"].isNull()) + tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString(); + if(!contact1Node["JobId"].isNull()) + tasksObject.contact1.jobId = contact1Node["JobId"].asString(); + jobObject.tasks.push_back(tasksObject); + } + auto allSummary = value["Summary"]["SummaryItem"]; + for (auto value : allSummary) + { + Jobs::Job::SummaryItem summaryObject; + if(!value["SummaryId"].isNull()) + summaryObject.summaryId = value["SummaryId"].asString(); + if(!value["GroupId"].isNull()) + summaryObject.groupId = value["GroupId"].asString(); + if(!value["JobId"].isNull()) + summaryObject.jobId = value["JobId"].asString(); + if(!value["TaskId"].isNull()) + summaryObject.taskId = value["TaskId"].asString(); + if(!value["ConversationDetailId"].isNull()) + summaryObject.conversationDetailId = value["ConversationDetailId"].asString(); + if(!value["Category"].isNull()) + summaryObject.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summaryObject.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summaryObject.content = value["Content"].asString(); + jobObject.summary.push_back(summaryObject); + } + auto allCallingNumbers = value["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + jobObject.callingNumbers.push_back(value.asString()); + jobs_.list.push_back(jobObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListJobStatusResult::getMessage()const +{ + return message_; +} + +ListJobStatusResult::Jobs ListJobStatusResult::getJobs()const +{ + return jobs_; +} + +int ListJobStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListJobStatusResult::getCode()const +{ + return code_; +} + +bool ListJobStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListJobsByGroupRequest.cc b/ccc/src/model/ListJobsByGroupRequest.cc new file mode 100644 index 000000000..e22a7ad98 --- /dev/null +++ b/ccc/src/model/ListJobsByGroupRequest.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 + +using AlibabaCloud::CCC::Model::ListJobsByGroupRequest; + +ListJobsByGroupRequest::ListJobsByGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListJobsByGroup") +{} + +ListJobsByGroupRequest::~ListJobsByGroupRequest() +{} + +std::string ListJobsByGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListJobsByGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListJobsByGroupRequest::getJobFailureReason()const +{ + return jobFailureReason_; +} + +void ListJobsByGroupRequest::setJobFailureReason(const std::string& jobFailureReason) +{ + jobFailureReason_ = jobFailureReason; + setParameter("JobFailureReason", jobFailureReason); +} + +std::string ListJobsByGroupRequest::getJobStatus()const +{ + return jobStatus_; +} + +void ListJobsByGroupRequest::setJobStatus(const std::string& jobStatus) +{ + jobStatus_ = jobStatus; + setParameter("JobStatus", jobStatus); +} + +std::string ListJobsByGroupRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void ListJobsByGroupRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +int ListJobsByGroupRequest::getPageSize()const +{ + return pageSize_; +} + +void ListJobsByGroupRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListJobsByGroupRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListJobsByGroupRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ccc/src/model/ListJobsByGroupResult.cc b/ccc/src/model/ListJobsByGroupResult.cc new file mode 100644 index 000000000..db6fc2a0e --- /dev/null +++ b/ccc/src/model/ListJobsByGroupResult.cc @@ -0,0 +1,166 @@ +/* + * 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; + +ListJobsByGroupResult::ListJobsByGroupResult() : + ServiceResult() +{} + +ListJobsByGroupResult::ListJobsByGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobsByGroupResult::~ListJobsByGroupResult() +{} + +void ListJobsByGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobsNode = value["Jobs"]; + if(!jobsNode["TotalCount"].isNull()) + jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString()); + if(!jobsNode["PageNumber"].isNull()) + jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString()); + if(!jobsNode["PageSize"].isNull()) + jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString()); + auto allList = value["List"]["Job"]; + for (auto value : allList) + { + Jobs::Job jobObject; + if(!value["JobId"].isNull()) + jobObject.jobId = value["JobId"].asString(); + if(!value["GroupId"].isNull()) + jobObject.groupId = value["GroupId"].asString(); + if(!value["ScenarioId"].isNull()) + jobObject.scenarioId = value["ScenarioId"].asString(); + if(!value["StrategyId"].isNull()) + jobObject.strategyId = value["StrategyId"].asString(); + if(!value["Priority"].isNull()) + jobObject.priority = std::stoi(value["Priority"].asString()); + if(!value["SystemPriority"].isNull()) + jobObject.systemPriority = std::stoi(value["SystemPriority"].asString()); + if(!value["Status"].isNull()) + jobObject.status = value["Status"].asString(); + if(!value["ReferenceId"].isNull()) + jobObject.referenceId = value["ReferenceId"].asString(); + if(!value["FailureReason"].isNull()) + jobObject.failureReason = value["FailureReason"].asString(); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + { + Jobs::Job::Contact contactsObject; + if(!value["ContactId"].isNull()) + contactsObject.contactId = value["ContactId"].asString(); + if(!value["ContactName"].isNull()) + contactsObject.contactName = value["ContactName"].asString(); + if(!value["Honorific"].isNull()) + contactsObject.honorific = value["Honorific"].asString(); + if(!value["Role"].isNull()) + contactsObject.role = value["Role"].asString(); + if(!value["PhoneNumber"].isNull()) + contactsObject.phoneNumber = value["PhoneNumber"].asString(); + if(!value["State"].isNull()) + contactsObject.state = value["State"].asString(); + if(!value["ReferenceId"].isNull()) + contactsObject.referenceId = value["ReferenceId"].asString(); + if(!value["JobId"].isNull()) + contactsObject.jobId = value["JobId"].asString(); + jobObject.contacts.push_back(contactsObject); + } + auto allExtras = value["Extras"]["KeyValuePair"]; + for (auto value : allExtras) + { + Jobs::Job::KeyValuePair extrasObject; + if(!value["Key"].isNull()) + extrasObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + extrasObject.value = value["Value"].asString(); + jobObject.extras.push_back(extrasObject); + } + auto allSummary = value["Summary"]["SummaryItem"]; + for (auto value : allSummary) + { + Jobs::Job::SummaryItem summaryObject; + if(!value["SummaryId"].isNull()) + summaryObject.summaryId = value["SummaryId"].asString(); + if(!value["GroupId"].isNull()) + summaryObject.groupId = value["GroupId"].asString(); + if(!value["JobId"].isNull()) + summaryObject.jobId = value["JobId"].asString(); + if(!value["TaskId"].isNull()) + summaryObject.taskId = value["TaskId"].asString(); + if(!value["ConversationDetailId"].isNull()) + summaryObject.conversationDetailId = value["ConversationDetailId"].asString(); + if(!value["Category"].isNull()) + summaryObject.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summaryObject.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summaryObject.content = value["Content"].asString(); + jobObject.summary.push_back(summaryObject); + } + auto allCallingNumbers = value["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + jobObject.callingNumbers.push_back(value.asString()); + jobs_.list.push_back(jobObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListJobsByGroupResult::getMessage()const +{ + return message_; +} + +ListJobsByGroupResult::Jobs ListJobsByGroupResult::getJobs()const +{ + return jobs_; +} + +int ListJobsByGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListJobsByGroupResult::getCode()const +{ + return code_; +} + +bool ListJobsByGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListPhoneNumbersResult.cc b/ccc/src/model/ListPhoneNumbersResult.cc index 92d61dd2f..6f300246b 100644 --- a/ccc/src/model/ListPhoneNumbersResult.cc +++ b/ccc/src/model/ListPhoneNumbersResult.cc @@ -40,79 +40,78 @@ void ListPhoneNumbersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; - for (auto value : allPhoneNumbers) - { - PhoneNumber phoneNumbersObject; - if(!value["PhoneNumberId"].isNull()) - phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); - if(!value["InstanceId"].isNull()) - phoneNumbersObject.instanceId = value["InstanceId"].asString(); - if(!value["Number"].isNull()) - phoneNumbersObject.number = value["Number"].asString(); - if(!value["PhoneNumberDescription"].isNull()) - phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); - if(!value["TestOnly"].isNull()) - phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; - if(!value["RemainingTime"].isNull()) - phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); - if(!value["AllowOutbound"].isNull()) - phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; - if(!value["Usage"].isNull()) - phoneNumbersObject.usage = value["Usage"].asString(); - if(!value["Trunks"].isNull()) - phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); - auto allContactFlow = value["ContactFlow"]; - for (auto value : allContactFlow) - { - PhoneNumber::ContactFlow contactFlowObject; - if(!value["ContactFlowId"].isNull()) - contactFlowObject.contactFlowId = value["ContactFlowId"].asString(); - if(!value["InstanceId"].isNull()) - contactFlowObject.instanceId = value["InstanceId"].asString(); - if(!value["ContactFlowName"].isNull()) - contactFlowObject.contactFlowName = value["ContactFlowName"].asString(); - if(!value["ContactFlowDescription"].isNull()) - contactFlowObject.contactFlowDescription = value["ContactFlowDescription"].asString(); - if(!value["Type"].isNull()) - contactFlowObject.type = value["Type"].asString(); - phoneNumbersObject.contactFlow.push_back(contactFlowObject); - } - phoneNumbers_.push_back(phoneNumbersObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; + for (auto value : allPhoneNumbers) + { + PhoneNumber phoneNumbersObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumbersObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumbersObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + phoneNumbersObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); + if(!value["Province"].isNull()) + phoneNumbersObject.province = value["Province"].asString(); + if(!value["City"].isNull()) + phoneNumbersObject.city = value["City"].asString(); + auto contactFlowNode = value["ContactFlow"]; + if(!contactFlowNode["ContactFlowId"].isNull()) + phoneNumbersObject.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString(); + if(!contactFlowNode["InstanceId"].isNull()) + phoneNumbersObject.contactFlow.instanceId = contactFlowNode["InstanceId"].asString(); + if(!contactFlowNode["ContactFlowName"].isNull()) + phoneNumbersObject.contactFlow.contactFlowName = contactFlowNode["ContactFlowName"].asString(); + if(!contactFlowNode["ContactFlowDescription"].isNull()) + phoneNumbersObject.contactFlow.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); + if(!contactFlowNode["Type"].isNull()) + phoneNumbersObject.contactFlow.type = contactFlowNode["Type"].asString(); + phoneNumbers_.push_back(phoneNumbersObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::vector ListPhoneNumbersResult::getPhoneNumbers()const -{ - return phoneNumbers_; -} - -std::string ListPhoneNumbersResult::getMessage()const -{ - return message_; -} - -int ListPhoneNumbersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListPhoneNumbersResult::getCode()const -{ - return code_; -} - -bool ListPhoneNumbersResult::getSuccess()const -{ - return success_; -} - +std::vector ListPhoneNumbersResult::getPhoneNumbers()const +{ + return phoneNumbers_; +} + +std::string ListPhoneNumbersResult::getMessage()const +{ + return message_; +} + +int ListPhoneNumbersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListPhoneNumbersResult::getCode()const +{ + return code_; +} + +bool ListPhoneNumbersResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListPredictiveJobStatusRequest.cc b/ccc/src/model/ListPredictiveJobStatusRequest.cc new file mode 100644 index 000000000..7d5e77034 --- /dev/null +++ b/ccc/src/model/ListPredictiveJobStatusRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::ListPredictiveJobStatusRequest; + +ListPredictiveJobStatusRequest::ListPredictiveJobStatusRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListPredictiveJobStatus") +{} + +ListPredictiveJobStatusRequest::~ListPredictiveJobStatusRequest() +{} + +std::string ListPredictiveJobStatusRequest::getContactName()const +{ + return contactName_; +} + +void ListPredictiveJobStatusRequest::setContactName(const std::string& contactName) +{ + contactName_ = contactName; + setParameter("ContactName", contactName); +} + +std::string ListPredictiveJobStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListPredictiveJobStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListPredictiveJobStatusRequest::getTimeAlignment()const +{ + return timeAlignment_; +} + +void ListPredictiveJobStatusRequest::setTimeAlignment(const std::string& timeAlignment) +{ + timeAlignment_ = timeAlignment; + setParameter("TimeAlignment", timeAlignment); +} + +std::string ListPredictiveJobStatusRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void ListPredictiveJobStatusRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +std::string ListPredictiveJobStatusRequest::getPhoneNumber()const +{ + return phoneNumber_; +} + +void ListPredictiveJobStatusRequest::setPhoneNumber(const std::string& phoneNumber) +{ + phoneNumber_ = phoneNumber; + setParameter("PhoneNumber", phoneNumber); +} + +int ListPredictiveJobStatusRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPredictiveJobStatusRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListPredictiveJobStatusRequest::getEndTime()const +{ + return endTime_; +} + +void ListPredictiveJobStatusRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListPredictiveJobStatusRequest::getStartTime()const +{ + return startTime_; +} + +void ListPredictiveJobStatusRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +int ListPredictiveJobStatusRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPredictiveJobStatusRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ccc/src/model/ListPredictiveJobStatusResult.cc b/ccc/src/model/ListPredictiveJobStatusResult.cc new file mode 100644 index 000000000..561abc656 --- /dev/null +++ b/ccc/src/model/ListPredictiveJobStatusResult.cc @@ -0,0 +1,211 @@ +/* + * 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; + +ListPredictiveJobStatusResult::ListPredictiveJobStatusResult() : + ServiceResult() +{} + +ListPredictiveJobStatusResult::ListPredictiveJobStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPredictiveJobStatusResult::~ListPredictiveJobStatusResult() +{} + +void ListPredictiveJobStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto jobsNode = value["Jobs"]; + if(!jobsNode["TotalCount"].isNull()) + jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString()); + if(!jobsNode["PageNumber"].isNull()) + jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString()); + if(!jobsNode["PageSize"].isNull()) + jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString()); + auto allList = value["List"]["Job"]; + for (auto value : allList) + { + Jobs::Job jobObject; + if(!value["JobId"].isNull()) + jobObject.jobId = value["JobId"].asString(); + if(!value["GroupId"].isNull()) + jobObject.groupId = value["GroupId"].asString(); + if(!value["ScenarioId"].isNull()) + jobObject.scenarioId = value["ScenarioId"].asString(); + if(!value["StrategyId"].isNull()) + jobObject.strategyId = value["StrategyId"].asString(); + if(!value["Priority"].isNull()) + jobObject.priority = std::stoi(value["Priority"].asString()); + if(!value["Status"].isNull()) + jobObject.status = value["Status"].asString(); + if(!value["ReferenceId"].isNull()) + jobObject.referenceId = value["ReferenceId"].asString(); + if(!value["FailureReason"].isNull()) + jobObject.failureReason = value["FailureReason"].asString(); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + { + Jobs::Job::Contact contactsObject; + if(!value["ContactId"].isNull()) + contactsObject.contactId = value["ContactId"].asString(); + if(!value["ContactName"].isNull()) + contactsObject.contactName = value["ContactName"].asString(); + if(!value["Honorific"].isNull()) + contactsObject.honorific = value["Honorific"].asString(); + if(!value["Role"].isNull()) + contactsObject.role = value["Role"].asString(); + if(!value["PhoneNumber"].isNull()) + contactsObject.phoneNumber = value["PhoneNumber"].asString(); + if(!value["State"].isNull()) + contactsObject.state = value["State"].asString(); + if(!value["ReferenceId"].isNull()) + contactsObject.referenceId = value["ReferenceId"].asString(); + if(!value["JobId"].isNull()) + contactsObject.jobId = value["JobId"].asString(); + jobObject.contacts.push_back(contactsObject); + } + auto allExtras = value["Extras"]["KeyValuePair"]; + for (auto value : allExtras) + { + Jobs::Job::KeyValuePair extrasObject; + if(!value["Key"].isNull()) + extrasObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + extrasObject.value = value["Value"].asString(); + jobObject.extras.push_back(extrasObject); + } + auto allTasks = value["Tasks"]["Task"]; + for (auto value : allTasks) + { + Jobs::Job::Task tasksObject; + if(!value["TaskId"].isNull()) + tasksObject.taskId = value["TaskId"].asString(); + if(!value["JobId"].isNull()) + tasksObject.jobId = value["JobId"].asString(); + if(!value["ScenarioId"].isNull()) + tasksObject.scenarioId = value["ScenarioId"].asString(); + if(!value["ChatbotId"].isNull()) + tasksObject.chatbotId = value["ChatbotId"].asString(); + if(!value["PlanedTime"].isNull()) + tasksObject.planedTime = std::stol(value["PlanedTime"].asString()); + if(!value["ActualTime"].isNull()) + tasksObject.actualTime = std::stol(value["ActualTime"].asString()); + if(!value["CallingNumber"].isNull()) + tasksObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + tasksObject.calledNumber = value["CalledNumber"].asString(); + if(!value["CallId"].isNull()) + tasksObject.callId = value["CallId"].asString(); + if(!value["Status"].isNull()) + tasksObject.status = value["Status"].asString(); + if(!value["Brief"].isNull()) + tasksObject.brief = value["Brief"].asString(); + if(!value["Duration"].isNull()) + tasksObject.duration = std::stoi(value["Duration"].asString()); + auto contact1Node = value["Contact"]; + if(!contact1Node["ContactId"].isNull()) + tasksObject.contact1.contactId = contact1Node["ContactId"].asString(); + if(!contact1Node["ContactName"].isNull()) + tasksObject.contact1.contactName = contact1Node["ContactName"].asString(); + if(!contact1Node["Honorific"].isNull()) + tasksObject.contact1.honorific = contact1Node["Honorific"].asString(); + if(!contact1Node["Role"].isNull()) + tasksObject.contact1.role = contact1Node["Role"].asString(); + if(!contact1Node["PhoneNumber"].isNull()) + tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString(); + if(!contact1Node["State"].isNull()) + tasksObject.contact1.state = contact1Node["State"].asString(); + if(!contact1Node["ReferenceId"].isNull()) + tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString(); + if(!contact1Node["JobId"].isNull()) + tasksObject.contact1.jobId = contact1Node["JobId"].asString(); + jobObject.tasks.push_back(tasksObject); + } + auto allSummary = value["Summary"]["SummaryItem"]; + for (auto value : allSummary) + { + Jobs::Job::SummaryItem summaryObject; + if(!value["SummaryId"].isNull()) + summaryObject.summaryId = value["SummaryId"].asString(); + if(!value["GroupId"].isNull()) + summaryObject.groupId = value["GroupId"].asString(); + if(!value["JobId"].isNull()) + summaryObject.jobId = value["JobId"].asString(); + if(!value["TaskId"].isNull()) + summaryObject.taskId = value["TaskId"].asString(); + if(!value["ConversationDetailId"].isNull()) + summaryObject.conversationDetailId = value["ConversationDetailId"].asString(); + if(!value["Category"].isNull()) + summaryObject.category = value["Category"].asString(); + if(!value["SummaryName"].isNull()) + summaryObject.summaryName = value["SummaryName"].asString(); + if(!value["Content"].isNull()) + summaryObject.content = value["Content"].asString(); + jobObject.summary.push_back(summaryObject); + } + auto allCallingNumbers = value["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + jobObject.callingNumbers.push_back(value.asString()); + jobs_.list.push_back(jobObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListPredictiveJobStatusResult::getMessage()const +{ + return message_; +} + +ListPredictiveJobStatusResult::Jobs ListPredictiveJobStatusResult::getJobs()const +{ + return jobs_; +} + +int ListPredictiveJobStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListPredictiveJobStatusResult::getCode()const +{ + return code_; +} + +bool ListPredictiveJobStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListPrivilegesOfUserRequest.cc b/ccc/src/model/ListPrivilegesOfUserRequest.cc new file mode 100644 index 000000000..9e3fc99de --- /dev/null +++ b/ccc/src/model/ListPrivilegesOfUserRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ListPrivilegesOfUserRequest; + +ListPrivilegesOfUserRequest::ListPrivilegesOfUserRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListPrivilegesOfUser") +{} + +ListPrivilegesOfUserRequest::~ListPrivilegesOfUserRequest() +{} + +std::string ListPrivilegesOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListPrivilegesOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListPrivilegesOfUserRequest::getUserId()const +{ + return userId_; +} + +void ListPrivilegesOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ListPrivilegesOfUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListPrivilegesOfUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListPrivilegesOfUserResult.cc b/ccc/src/model/ListPrivilegesOfUserResult.cc new file mode 100644 index 000000000..d036af020 --- /dev/null +++ b/ccc/src/model/ListPrivilegesOfUserResult.cc @@ -0,0 +1,90 @@ +/* + * 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; + +ListPrivilegesOfUserResult::ListPrivilegesOfUserResult() : + ServiceResult() +{} + +ListPrivilegesOfUserResult::ListPrivilegesOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPrivilegesOfUserResult::~ListPrivilegesOfUserResult() +{} + +void ListPrivilegesOfUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPrivileges = value["Privileges"]["Privilege"]; + for (auto value : allPrivileges) + { + Privilege privilegesObject; + if(!value["PrivilegeId"].isNull()) + privilegesObject.privilegeId = value["PrivilegeId"].asString(); + if(!value["PrivilegeName"].isNull()) + privilegesObject.privilegeName = value["PrivilegeName"].asString(); + if(!value["PrivilegeDescription"].isNull()) + privilegesObject.privilegeDescription = value["PrivilegeDescription"].asString(); + privileges_.push_back(privilegesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListPrivilegesOfUserResult::getMessage()const +{ + return message_; +} + +std::vector ListPrivilegesOfUserResult::getPrivileges()const +{ + return privileges_; +} + +int ListPrivilegesOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListPrivilegesOfUserResult::getCode()const +{ + return code_; +} + +bool ListPrivilegesOfUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListRealTimeAgentRequest.cc b/ccc/src/model/ListRealTimeAgentRequest.cc new file mode 100644 index 000000000..aaa941acf --- /dev/null +++ b/ccc/src/model/ListRealTimeAgentRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::ListRealTimeAgentRequest; + +ListRealTimeAgentRequest::ListRealTimeAgentRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListRealTimeAgent") +{} + +ListRealTimeAgentRequest::~ListRealTimeAgentRequest() +{} + +std::string ListRealTimeAgentRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRealTimeAgentRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListRealTimeAgentRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListRealTimeAgentRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListRealTimeAgentResult.cc b/ccc/src/model/ListRealTimeAgentResult.cc new file mode 100644 index 000000000..e8e09c88c --- /dev/null +++ b/ccc/src/model/ListRealTimeAgentResult.cc @@ -0,0 +1,115 @@ +/* + * 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; + +ListRealTimeAgentResult::ListRealTimeAgentResult() : + ServiceResult() +{} + +ListRealTimeAgentResult::ListRealTimeAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRealTimeAgentResult::~ListRealTimeAgentResult() +{} + +void ListRealTimeAgentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["User"]; + for (auto value : allData) + { + User dataObject; + if(!value["RamId"].isNull()) + dataObject.ramId = value["RamId"].asString(); + if(!value["DisplayName"].isNull()) + dataObject.displayName = value["DisplayName"].asString(); + if(!value["Phone"].isNull()) + dataObject.phone = value["Phone"].asString(); + if(!value["Dn"].isNull()) + dataObject.dn = value["Dn"].asString(); + if(!value["State"].isNull()) + dataObject.state = value["State"].asString(); + if(!value["StateDesc"].isNull()) + dataObject.stateDesc = value["StateDesc"].asString(); + auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; + for (auto value : allSkillLevels) + { + User::SkillLevel skillLevelsObject; + if(!value["SkillLevelId"].isNull()) + skillLevelsObject.skillLevelId = value["SkillLevelId"].asString(); + if(!value["Level"].isNull()) + skillLevelsObject.level = std::stoi(value["Level"].asString()); + auto skillNode = value["Skill"]; + if(!skillNode["SkillGroupId"].isNull()) + skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString(); + if(!skillNode["InstanceId"].isNull()) + skillLevelsObject.skill.instanceId = skillNode["InstanceId"].asString(); + if(!skillNode["SkillGroupName"].isNull()) + skillLevelsObject.skill.skillGroupName = skillNode["SkillGroupName"].asString(); + if(!skillNode["SkillGroupDescription"].isNull()) + skillLevelsObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString(); + dataObject.skillLevels.push_back(skillLevelsObject); + } + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListRealTimeAgentResult::getMessage()const +{ + return message_; +} + +int ListRealTimeAgentResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListRealTimeAgentResult::getData()const +{ + return data_; +} + +std::string ListRealTimeAgentResult::getCode()const +{ + return code_; +} + +bool ListRealTimeAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListRecordingsByContactIdResult.cc b/ccc/src/model/ListRecordingsByContactIdResult.cc index d831edd92..76c1d438b 100644 --- a/ccc/src/model/ListRecordingsByContactIdResult.cc +++ b/ccc/src/model/ListRecordingsByContactIdResult.cc @@ -40,71 +40,71 @@ void ListRecordingsByContactIdResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allRecordings = value["Recordings"]["Recording"]; - for (auto value : allRecordings) - { - Recording recordingsObject; - if(!value["ContactId"].isNull()) - recordingsObject.contactId = value["ContactId"].asString(); - if(!value["ContactType"].isNull()) - recordingsObject.contactType = value["ContactType"].asString(); - if(!value["AgentId"].isNull()) - recordingsObject.agentId = value["AgentId"].asString(); - if(!value["AgentName"].isNull()) - recordingsObject.agentName = value["AgentName"].asString(); - if(!value["CallingNumber"].isNull()) - recordingsObject.callingNumber = value["CallingNumber"].asString(); - if(!value["CalledNumber"].isNull()) - recordingsObject.calledNumber = value["CalledNumber"].asString(); - if(!value["StartTime"].isNull()) - recordingsObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["Duration"].isNull()) - recordingsObject.duration = std::stoi(value["Duration"].asString()); - if(!value["FileName"].isNull()) - recordingsObject.fileName = value["FileName"].asString(); - if(!value["FilePath"].isNull()) - recordingsObject.filePath = value["FilePath"].asString(); - if(!value["FileDescription"].isNull()) - recordingsObject.fileDescription = value["FileDescription"].asString(); - if(!value["Channel"].isNull()) - recordingsObject.channel = value["Channel"].asString(); - if(!value["InstanceId"].isNull()) - recordingsObject.instanceId = value["InstanceId"].asString(); - recordings_.push_back(recordingsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto allRecordings = value["Recordings"]["Recording"]; + for (auto value : allRecordings) + { + Recording recordingsObject; + if(!value["ContactId"].isNull()) + recordingsObject.contactId = value["ContactId"].asString(); + if(!value["ContactType"].isNull()) + recordingsObject.contactType = value["ContactType"].asString(); + if(!value["AgentId"].isNull()) + recordingsObject.agentId = value["AgentId"].asString(); + if(!value["AgentName"].isNull()) + recordingsObject.agentName = value["AgentName"].asString(); + if(!value["CallingNumber"].isNull()) + recordingsObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + recordingsObject.calledNumber = value["CalledNumber"].asString(); + if(!value["StartTime"].isNull()) + recordingsObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["Duration"].isNull()) + recordingsObject.duration = std::stoi(value["Duration"].asString()); + if(!value["FileName"].isNull()) + recordingsObject.fileName = value["FileName"].asString(); + if(!value["FilePath"].isNull()) + recordingsObject.filePath = value["FilePath"].asString(); + if(!value["FileDescription"].isNull()) + recordingsObject.fileDescription = value["FileDescription"].asString(); + if(!value["Channel"].isNull()) + recordingsObject.channel = value["Channel"].asString(); + if(!value["InstanceId"].isNull()) + recordingsObject.instanceId = value["InstanceId"].asString(); + recordings_.push_back(recordingsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListRecordingsByContactIdResult::getMessage()const -{ - return message_; -} - -int ListRecordingsByContactIdResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListRecordingsByContactIdResult::getRecordings()const -{ - return recordings_; -} - -std::string ListRecordingsByContactIdResult::getCode()const -{ - return code_; -} - -bool ListRecordingsByContactIdResult::getSuccess()const -{ - return success_; -} - +std::string ListRecordingsByContactIdResult::getMessage()const +{ + return message_; +} + +int ListRecordingsByContactIdResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListRecordingsByContactIdResult::getRecordings()const +{ + return recordings_; +} + +std::string ListRecordingsByContactIdResult::getCode()const +{ + return code_; +} + +bool ListRecordingsByContactIdResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListRecordingsRequest.cc b/ccc/src/model/ListRecordingsRequest.cc index 291d5943f..8b9bb07a5 100644 --- a/ccc/src/model/ListRecordingsRequest.cc +++ b/ccc/src/model/ListRecordingsRequest.cc @@ -80,17 +80,6 @@ void ListRecordingsRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } -long ListRecordingsRequest::getStartTime()const -{ - return startTime_; -} - -void ListRecordingsRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - long ListRecordingsRequest::getStopTime()const { return stopTime_; @@ -102,6 +91,17 @@ void ListRecordingsRequest::setStopTime(long stopTime) setParameter("StopTime", std::to_string(stopTime)); } +long ListRecordingsRequest::getStartTime()const +{ + return startTime_; +} + +void ListRecordingsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + int ListRecordingsRequest::getPageNumber()const { return pageNumber_; diff --git a/ccc/src/model/ListRecordingsResult.cc b/ccc/src/model/ListRecordingsResult.cc index 1d6af61b3..1d664d558 100644 --- a/ccc/src/model/ListRecordingsResult.cc +++ b/ccc/src/model/ListRecordingsResult.cc @@ -40,83 +40,78 @@ void ListRecordingsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allRecordings = value["Recordings"]; - for (auto value : allRecordings) - { - Recordings recordingsObject; - if(!value["TotalCount"].isNull()) - recordingsObject.totalCount = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - recordingsObject.pageNumber = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - recordingsObject.pageSize = std::stoi(value["PageSize"].asString()); - auto allList = value["List"]["Recording"]; - for (auto value : allList) - { - Recordings::Recording recordingObject; - if(!value["ContactId"].isNull()) - recordingObject.contactId = value["ContactId"].asString(); - if(!value["ContactType"].isNull()) - recordingObject.contactType = value["ContactType"].asString(); - if(!value["AgentId"].isNull()) - recordingObject.agentId = value["AgentId"].asString(); - if(!value["AgentName"].isNull()) - recordingObject.agentName = value["AgentName"].asString(); - if(!value["CallingNumber"].isNull()) - recordingObject.callingNumber = value["CallingNumber"].asString(); - if(!value["CalledNumber"].isNull()) - recordingObject.calledNumber = value["CalledNumber"].asString(); - if(!value["StartTime"].isNull()) - recordingObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["Duration"].isNull()) - recordingObject.duration = std::stoi(value["Duration"].asString()); - if(!value["FileName"].isNull()) - recordingObject.fileName = value["FileName"].asString(); - if(!value["FilePath"].isNull()) - recordingObject.filePath = value["FilePath"].asString(); - if(!value["FileDescription"].isNull()) - recordingObject.fileDescription = value["FileDescription"].asString(); - if(!value["Channel"].isNull()) - recordingObject.channel = value["Channel"].asString(); - if(!value["InstanceId"].isNull()) - recordingObject.instanceId = value["InstanceId"].asString(); - recordingsObject.list.push_back(recordingObject); - } - recordings_.push_back(recordingsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto recordingsNode = value["Recordings"]; + if(!recordingsNode["TotalCount"].isNull()) + recordings_.totalCount = std::stoi(recordingsNode["TotalCount"].asString()); + if(!recordingsNode["PageNumber"].isNull()) + recordings_.pageNumber = std::stoi(recordingsNode["PageNumber"].asString()); + if(!recordingsNode["PageSize"].isNull()) + recordings_.pageSize = std::stoi(recordingsNode["PageSize"].asString()); + auto allList = value["List"]["Recording"]; + for (auto value : allList) + { + Recordings::Recording recordingObject; + if(!value["ContactId"].isNull()) + recordingObject.contactId = value["ContactId"].asString(); + if(!value["ContactType"].isNull()) + recordingObject.contactType = value["ContactType"].asString(); + if(!value["AgentId"].isNull()) + recordingObject.agentId = value["AgentId"].asString(); + if(!value["AgentName"].isNull()) + recordingObject.agentName = value["AgentName"].asString(); + if(!value["CallingNumber"].isNull()) + recordingObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + recordingObject.calledNumber = value["CalledNumber"].asString(); + if(!value["StartTime"].isNull()) + recordingObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["Duration"].isNull()) + recordingObject.duration = std::stoi(value["Duration"].asString()); + if(!value["FileName"].isNull()) + recordingObject.fileName = value["FileName"].asString(); + if(!value["FilePath"].isNull()) + recordingObject.filePath = value["FilePath"].asString(); + if(!value["FileDescription"].isNull()) + recordingObject.fileDescription = value["FileDescription"].asString(); + if(!value["Channel"].isNull()) + recordingObject.channel = value["Channel"].asString(); + if(!value["InstanceId"].isNull()) + recordingObject.instanceId = value["InstanceId"].asString(); + recordings_.list.push_back(recordingObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListRecordingsResult::getMessage()const -{ - return message_; -} - -int ListRecordingsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListRecordingsResult::getRecordings()const -{ - return recordings_; -} - -std::string ListRecordingsResult::getCode()const -{ - return code_; -} - -bool ListRecordingsResult::getSuccess()const -{ - return success_; -} - +std::string ListRecordingsResult::getMessage()const +{ + return message_; +} + +int ListRecordingsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListRecordingsResult::Recordings ListRecordingsResult::getRecordings()const +{ + return recordings_; +} + +std::string ListRecordingsResult::getCode()const +{ + return code_; +} + +bool ListRecordingsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListRolesResult.cc b/ccc/src/model/ListRolesResult.cc index a268ccaf7..965e9025d 100644 --- a/ccc/src/model/ListRolesResult.cc +++ b/ccc/src/model/ListRolesResult.cc @@ -40,53 +40,53 @@ void ListRolesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allRoles = value["Roles"]["Role"]; - for (auto value : allRoles) - { - Role rolesObject; - if(!value["RoleId"].isNull()) - rolesObject.roleId = value["RoleId"].asString(); - if(!value["InstanceId"].isNull()) - rolesObject.instanceId = value["InstanceId"].asString(); - if(!value["RoleName"].isNull()) - rolesObject.roleName = value["RoleName"].asString(); - if(!value["RoleDescription"].isNull()) - rolesObject.roleDescription = value["RoleDescription"].asString(); - roles_.push_back(rolesObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto allRoles = value["Roles"]["Role"]; + for (auto value : allRoles) + { + Role rolesObject; + if(!value["RoleId"].isNull()) + rolesObject.roleId = value["RoleId"].asString(); + if(!value["InstanceId"].isNull()) + rolesObject.instanceId = value["InstanceId"].asString(); + if(!value["RoleName"].isNull()) + rolesObject.roleName = value["RoleName"].asString(); + if(!value["RoleDescription"].isNull()) + rolesObject.roleDescription = value["RoleDescription"].asString(); + roles_.push_back(rolesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListRolesResult::getMessage()const -{ - return message_; -} - -int ListRolesResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListRolesResult::getRoles()const -{ - return roles_; -} - -std::string ListRolesResult::getCode()const -{ - return code_; -} - -bool ListRolesResult::getSuccess()const -{ - return success_; -} - +std::string ListRolesResult::getMessage()const +{ + return message_; +} + +int ListRolesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListRolesResult::getRoles()const +{ + return roles_; +} + +std::string ListRolesResult::getCode()const +{ + return code_; +} + +bool ListRolesResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListScenarioTemplatesRequest.cc b/ccc/src/model/ListScenarioTemplatesRequest.cc new file mode 100644 index 000000000..0597fd0c1 --- /dev/null +++ b/ccc/src/model/ListScenarioTemplatesRequest.cc @@ -0,0 +1,27 @@ +/* + * 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::ListScenarioTemplatesRequest; + +ListScenarioTemplatesRequest::ListScenarioTemplatesRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListScenarioTemplates") +{} + +ListScenarioTemplatesRequest::~ListScenarioTemplatesRequest() +{} + diff --git a/ccc/src/model/ListScenarioTemplatesResult.cc b/ccc/src/model/ListScenarioTemplatesResult.cc new file mode 100644 index 000000000..84f917738 --- /dev/null +++ b/ccc/src/model/ListScenarioTemplatesResult.cc @@ -0,0 +1,141 @@ +/* + * 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; + +ListScenarioTemplatesResult::ListScenarioTemplatesResult() : + ServiceResult() +{} + +ListScenarioTemplatesResult::ListScenarioTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListScenarioTemplatesResult::~ListScenarioTemplatesResult() +{} + +void ListScenarioTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allScenarioTemplates = value["ScenarioTemplates"]["Scenario"]; + for (auto value : allScenarioTemplates) + { + Scenario scenarioTemplatesObject; + if(!value["Id"].isNull()) + scenarioTemplatesObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + scenarioTemplatesObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + scenarioTemplatesObject.description = value["Description"].asString(); + if(!value["Type"].isNull()) + scenarioTemplatesObject.type = value["Type"].asString(); + if(!value["IsTemplate"].isNull()) + scenarioTemplatesObject.isTemplate = value["IsTemplate"].asString() == "true"; + auto allSurveys = value["Surveys"]["Survey"]; + for (auto value : allSurveys) + { + Scenario::Survey surveysObject; + if(!value["Id"].isNull()) + surveysObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + surveysObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + surveysObject.description = value["Description"].asString(); + if(!value["Role"].isNull()) + surveysObject.role = value["Role"].asString(); + if(!value["Round"].isNull()) + surveysObject.round = std::stoi(value["Round"].asString()); + if(!value["BeebotId"].isNull()) + surveysObject.beebotId = value["BeebotId"].asString(); + if(!value["GlobalQuestions"].isNull()) + surveysObject.globalQuestions = value["GlobalQuestions"].asString(); + auto allIntents = value["Intents"]["IntentNode"]; + for (auto value : allIntents) + { + Scenario::Survey::IntentNode intentsObject; + if(!value["NodeId"].isNull()) + intentsObject.nodeId = value["NodeId"].asString(); + if(!value["IntentId"].isNull()) + intentsObject.intentId = value["IntentId"].asString(); + surveysObject.intents.push_back(intentsObject); + } + auto flowNode = value["Flow"]; + if(!flowNode["FlowId"].isNull()) + surveysObject.flow.flowId = flowNode["FlowId"].asString(); + if(!flowNode["IsPublished"].isNull()) + surveysObject.flow.isPublished = flowNode["IsPublished"].asString() == "true"; + if(!flowNode["FlowJson"].isNull()) + surveysObject.flow.flowJson = flowNode["FlowJson"].asString(); + scenarioTemplatesObject.surveys.push_back(surveysObject); + } + auto allVariables = value["Variables"]["KeyValuePair"]; + for (auto value : allVariables) + { + Scenario::KeyValuePair variablesObject; + if(!value["Key"].isNull()) + variablesObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + variablesObject.value = value["Value"].asString(); + scenarioTemplatesObject.variables.push_back(variablesObject); + } + scenarioTemplates_.push_back(scenarioTemplatesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListScenarioTemplatesResult::getMessage()const +{ + return message_; +} + +int ListScenarioTemplatesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListScenarioTemplatesResult::getScenarioTemplates()const +{ + return scenarioTemplates_; +} + +std::string ListScenarioTemplatesResult::getCode()const +{ + return code_; +} + +bool ListScenarioTemplatesResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListScenariosRequest.cc b/ccc/src/model/ListScenariosRequest.cc new file mode 100644 index 000000000..5f5572128 --- /dev/null +++ b/ccc/src/model/ListScenariosRequest.cc @@ -0,0 +1,38 @@ +/* + * 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::ListScenariosRequest; + +ListScenariosRequest::ListScenariosRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListScenarios") +{} + +ListScenariosRequest::~ListScenariosRequest() +{} + +std::string ListScenariosRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListScenariosRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/ListScenariosResult.cc b/ccc/src/model/ListScenariosResult.cc new file mode 100644 index 000000000..e46c541a0 --- /dev/null +++ b/ccc/src/model/ListScenariosResult.cc @@ -0,0 +1,172 @@ +/* + * 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; + +ListScenariosResult::ListScenariosResult() : + ServiceResult() +{} + +ListScenariosResult::ListScenariosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListScenariosResult::~ListScenariosResult() +{} + +void ListScenariosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allScenarios = value["Scenarios"]["Scenario"]; + for (auto value : allScenarios) + { + Scenario scenariosObject; + if(!value["Id"].isNull()) + scenariosObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + scenariosObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + scenariosObject.description = value["Description"].asString(); + if(!value["Type"].isNull()) + scenariosObject.type = value["Type"].asString(); + if(!value["IsTemplate"].isNull()) + scenariosObject.isTemplate = value["IsTemplate"].asString() == "true"; + auto allSurveys = value["Surveys"]["Survey"]; + for (auto value : allSurveys) + { + Scenario::Survey surveysObject; + if(!value["Id"].isNull()) + surveysObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + surveysObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + surveysObject.description = value["Description"].asString(); + if(!value["Role"].isNull()) + surveysObject.role = value["Role"].asString(); + if(!value["Round"].isNull()) + surveysObject.round = std::stoi(value["Round"].asString()); + if(!value["BeebotId"].isNull()) + surveysObject.beebotId = value["BeebotId"].asString(); + auto allIntents = value["Intents"]["IntentNode"]; + for (auto value : allIntents) + { + Scenario::Survey::IntentNode intentsObject; + if(!value["NodeId"].isNull()) + intentsObject.nodeId = value["NodeId"].asString(); + if(!value["IntentId"].isNull()) + intentsObject.intentId = value["IntentId"].asString(); + surveysObject.intents.push_back(intentsObject); + } + scenariosObject.surveys.push_back(surveysObject); + } + auto allVariables = value["Variables"]["KeyValuePair"]; + for (auto value : allVariables) + { + Scenario::KeyValuePair variablesObject; + if(!value["Key"].isNull()) + variablesObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + variablesObject.value = value["Value"].asString(); + scenariosObject.variables.push_back(variablesObject); + } + auto strategyNode = value["Strategy"]; + if(!strategyNode["Id"].isNull()) + scenariosObject.strategy.id = strategyNode["Id"].asString(); + if(!strategyNode["Name"].isNull()) + scenariosObject.strategy.name = strategyNode["Name"].asString(); + if(!strategyNode["Description"].isNull()) + scenariosObject.strategy.description = strategyNode["Description"].asString(); + if(!strategyNode["Type"].isNull()) + scenariosObject.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + scenariosObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + scenariosObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + scenariosObject.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + scenariosObject.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + scenariosObject.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + scenariosObject.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + scenariosObject.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + scenariosObject.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + scenariosObject.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + Scenario::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + scenariosObject.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + scenariosObject.strategy.repeatDays.push_back(value.asString()); + scenarios_.push_back(scenariosObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListScenariosResult::getMessage()const +{ + return message_; +} + +std::vector ListScenariosResult::getScenarios()const +{ + return scenarios_; +} + +int ListScenariosResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListScenariosResult::getCode()const +{ + return code_; +} + +bool ListScenariosResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListSkillGroupsOfUserResult.cc b/ccc/src/model/ListSkillGroupsOfUserResult.cc index 1275a9cc2..784812f16 100644 --- a/ccc/src/model/ListSkillGroupsOfUserResult.cc +++ b/ccc/src/model/ListSkillGroupsOfUserResult.cc @@ -40,87 +40,86 @@ void ListSkillGroupsOfUserResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; - for (auto value : allSkillLevels) - { - SkillLevel skillLevelsObject; - if(!value["SkillLevelId"].isNull()) - skillLevelsObject.skillLevelId = value["SkillLevelId"].asString(); - if(!value["Level"].isNull()) - skillLevelsObject.level = std::stoi(value["Level"].asString()); - auto allSkill = value["Skill"]; - for (auto value : allSkill) - { - SkillLevel::Skill skillObject; - if(!value["SkillGroupId"].isNull()) - skillObject.skillGroupId = value["SkillGroupId"].asString(); - if(!value["InstanceId"].isNull()) - skillObject.instanceId = value["InstanceId"].asString(); - if(!value["SkillGroupName"].isNull()) - skillObject.skillGroupName = value["SkillGroupName"].asString(); - if(!value["SkillGroupDescription"].isNull()) - skillObject.skillGroupDescription = value["SkillGroupDescription"].asString(); - auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"]; - for (auto value : allOutboundPhoneNumbers) - { - SkillLevel::Skill::PhoneNumber phoneNumberObject; - if(!value["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString(); - if(!value["InstanceId"].isNull()) - phoneNumberObject.instanceId = value["InstanceId"].asString(); - if(!value["Number"].isNull()) - phoneNumberObject.number = value["Number"].asString(); - if(!value["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); - if(!value["TestOnly"].isNull()) - phoneNumberObject.testOnly = value["TestOnly"].asString() == "true"; - if(!value["RemainingTime"].isNull()) - phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString()); - if(!value["AllowOutbound"].isNull()) - phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true"; - if(!value["Usage"].isNull()) - phoneNumberObject.usage = value["Usage"].asString(); - if(!value["Trunks"].isNull()) - phoneNumberObject.trunks = std::stoi(value["Trunks"].asString()); - skillObject.outboundPhoneNumbers.push_back(phoneNumberObject); - } - skillLevelsObject.skill.push_back(skillObject); - } - skillLevels_.push_back(skillLevelsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; + for (auto value : allSkillLevels) + { + SkillLevel skillLevelsObject; + if(!value["SkillLevelId"].isNull()) + skillLevelsObject.skillLevelId = value["SkillLevelId"].asString(); + if(!value["Level"].isNull()) + skillLevelsObject.level = std::stoi(value["Level"].asString()); + auto skillNode = value["Skill"]; + if(!skillNode["SkillGroupId"].isNull()) + skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString(); + if(!skillNode["InstanceId"].isNull()) + skillLevelsObject.skill.instanceId = skillNode["InstanceId"].asString(); + if(!skillNode["SkillGroupName"].isNull()) + skillLevelsObject.skill.skillGroupName = skillNode["SkillGroupName"].asString(); + if(!skillNode["SkillGroupDescription"].isNull()) + skillLevelsObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString(); + auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"]; + for (auto value : allOutboundPhoneNumbers) + { + SkillLevel::Skill::PhoneNumber phoneNumberObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumberObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumberObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + phoneNumberObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + phoneNumberObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + phoneNumberObject.trunks = std::stoi(value["Trunks"].asString()); + if(!value["Province"].isNull()) + phoneNumberObject.province = value["Province"].asString(); + if(!value["City"].isNull()) + phoneNumberObject.city = value["City"].asString(); + skillLevelsObject.skill.outboundPhoneNumbers.push_back(phoneNumberObject); + } + skillLevels_.push_back(skillLevelsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::vector ListSkillGroupsOfUserResult::getSkillLevels()const -{ - return skillLevels_; -} - -std::string ListSkillGroupsOfUserResult::getMessage()const -{ - return message_; -} - -int ListSkillGroupsOfUserResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListSkillGroupsOfUserResult::getCode()const -{ - return code_; -} - -bool ListSkillGroupsOfUserResult::getSuccess()const -{ - return success_; -} - +std::vector ListSkillGroupsOfUserResult::getSkillLevels()const +{ + return skillLevels_; +} + +std::string ListSkillGroupsOfUserResult::getMessage()const +{ + return message_; +} + +int ListSkillGroupsOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListSkillGroupsOfUserResult::getCode()const +{ + return code_; +} + +bool ListSkillGroupsOfUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListSkillGroupsResult.cc b/ccc/src/model/ListSkillGroupsResult.cc index 0c7ff226b..647234ffc 100644 --- a/ccc/src/model/ListSkillGroupsResult.cc +++ b/ccc/src/model/ListSkillGroupsResult.cc @@ -40,83 +40,83 @@ void ListSkillGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allSkillGroups = value["SkillGroups"]["SkillGroup"]; - for (auto value : allSkillGroups) - { - SkillGroup skillGroupsObject; - if(!value["SkillGroupId"].isNull()) - skillGroupsObject.skillGroupId = value["SkillGroupId"].asString(); - if(!value["InstanceId"].isNull()) - skillGroupsObject.instanceId = value["InstanceId"].asString(); - if(!value["SkillGroupName"].isNull()) - skillGroupsObject.skillGroupName = value["SkillGroupName"].asString(); - if(!value["AccSkillGroupName"].isNull()) - skillGroupsObject.accSkillGroupName = value["AccSkillGroupName"].asString(); - if(!value["AccQueueName"].isNull()) - skillGroupsObject.accQueueName = value["AccQueueName"].asString(); - if(!value["SkillGroupDescription"].isNull()) - skillGroupsObject.skillGroupDescription = value["SkillGroupDescription"].asString(); - if(!value["UserCount"].isNull()) - skillGroupsObject.userCount = std::stoi(value["UserCount"].asString()); - auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"]; - for (auto value : allOutboundPhoneNumbers) - { - SkillGroup::PhoneNumber outboundPhoneNumbersObject; - if(!value["PhoneNumberId"].isNull()) - outboundPhoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); - if(!value["InstanceId"].isNull()) - outboundPhoneNumbersObject.instanceId = value["InstanceId"].asString(); - if(!value["Number"].isNull()) - outboundPhoneNumbersObject.number = value["Number"].asString(); - if(!value["PhoneNumberDescription"].isNull()) - outboundPhoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); - if(!value["TestOnly"].isNull()) - outboundPhoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; - if(!value["RemainingTime"].isNull()) - outboundPhoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); - if(!value["AllowOutbound"].isNull()) - outboundPhoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; - if(!value["Usage"].isNull()) - outboundPhoneNumbersObject.usage = value["Usage"].asString(); - if(!value["Trunks"].isNull()) - outboundPhoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); - skillGroupsObject.outboundPhoneNumbers.push_back(outboundPhoneNumbersObject); - } - skillGroups_.push_back(skillGroupsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto allSkillGroups = value["SkillGroups"]["SkillGroup"]; + for (auto value : allSkillGroups) + { + SkillGroup skillGroupsObject; + if(!value["SkillGroupId"].isNull()) + skillGroupsObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["InstanceId"].isNull()) + skillGroupsObject.instanceId = value["InstanceId"].asString(); + if(!value["SkillGroupName"].isNull()) + skillGroupsObject.skillGroupName = value["SkillGroupName"].asString(); + if(!value["AccSkillGroupName"].isNull()) + skillGroupsObject.accSkillGroupName = value["AccSkillGroupName"].asString(); + if(!value["AccQueueName"].isNull()) + skillGroupsObject.accQueueName = value["AccQueueName"].asString(); + if(!value["SkillGroupDescription"].isNull()) + skillGroupsObject.skillGroupDescription = value["SkillGroupDescription"].asString(); + if(!value["UserCount"].isNull()) + skillGroupsObject.userCount = std::stoi(value["UserCount"].asString()); + auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"]; + for (auto value : allOutboundPhoneNumbers) + { + SkillGroup::PhoneNumber outboundPhoneNumbersObject; + if(!value["PhoneNumberId"].isNull()) + outboundPhoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + outboundPhoneNumbersObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + outboundPhoneNumbersObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + outboundPhoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + outboundPhoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + outboundPhoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + outboundPhoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + outboundPhoneNumbersObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + outboundPhoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); + skillGroupsObject.outboundPhoneNumbers.push_back(outboundPhoneNumbersObject); + } + skillGroups_.push_back(skillGroupsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListSkillGroupsResult::getMessage()const -{ - return message_; -} - -int ListSkillGroupsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListSkillGroupsResult::getSkillGroups()const -{ - return skillGroups_; -} - -std::string ListSkillGroupsResult::getCode()const -{ - return code_; -} - -bool ListSkillGroupsResult::getSuccess()const -{ - return success_; -} - +std::string ListSkillGroupsResult::getMessage()const +{ + return message_; +} + +int ListSkillGroupsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListSkillGroupsResult::getSkillGroups()const +{ + return skillGroups_; +} + +std::string ListSkillGroupsResult::getCode()const +{ + return code_; +} + +bool ListSkillGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListSurveysRequest.cc b/ccc/src/model/ListSurveysRequest.cc new file mode 100644 index 000000000..cdad763f4 --- /dev/null +++ b/ccc/src/model/ListSurveysRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::ListSurveysRequest; + +ListSurveysRequest::ListSurveysRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListSurveys") +{} + +ListSurveysRequest::~ListSurveysRequest() +{} + +std::string ListSurveysRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListSurveysRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListSurveysRequest::getScenarioId()const +{ + return scenarioId_; +} + +void ListSurveysRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/ListSurveysResult.cc b/ccc/src/model/ListSurveysResult.cc new file mode 100644 index 000000000..a3d3cd1d8 --- /dev/null +++ b/ccc/src/model/ListSurveysResult.cc @@ -0,0 +1,114 @@ +/* + * 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; + +ListSurveysResult::ListSurveysResult() : + ServiceResult() +{} + +ListSurveysResult::ListSurveysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSurveysResult::~ListSurveysResult() +{} + +void ListSurveysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSurveys = value["Surveys"]["Survey"]; + for (auto value : allSurveys) + { + Survey surveysObject; + if(!value["Id"].isNull()) + surveysObject.id = value["Id"].asString(); + if(!value["ScenarioUuid"].isNull()) + surveysObject.scenarioUuid = value["ScenarioUuid"].asString(); + if(!value["Name"].isNull()) + surveysObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + surveysObject.description = value["Description"].asString(); + if(!value["Role"].isNull()) + surveysObject.role = value["Role"].asString(); + if(!value["Round"].isNull()) + surveysObject.round = std::stoi(value["Round"].asString()); + if(!value["HotWords"].isNull()) + surveysObject.hotWords = value["HotWords"].asString(); + if(!value["SpeechOptimizationParam"].isNull()) + surveysObject.speechOptimizationParam = value["SpeechOptimizationParam"].asString(); + if(!value["GlobalQuestions"].isNull()) + surveysObject.globalQuestions = value["GlobalQuestions"].asString(); + auto flowNode = value["Flow"]; + if(!flowNode["FlowId"].isNull()) + surveysObject.flow.flowId = flowNode["FlowId"].asString(); + if(!flowNode["IsPublished"].isNull()) + surveysObject.flow.isPublished = flowNode["IsPublished"].asString() == "true"; + if(!flowNode["FlowJson"].isNull()) + surveysObject.flow.flowJson = flowNode["FlowJson"].asString(); + auto asrCustomModelNode = value["AsrCustomModel"]; + if(!asrCustomModelNode["Corpora"].isNull()) + surveysObject.asrCustomModel.corpora = asrCustomModelNode["Corpora"].asString(); + if(!asrCustomModelNode["CustomModelStatus"].isNull()) + surveysObject.asrCustomModel.customModelStatus = std::stoi(asrCustomModelNode["CustomModelStatus"].asString()); + surveys_.push_back(surveysObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector ListSurveysResult::getSurveys()const +{ + return surveys_; +} + +std::string ListSurveysResult::getMessage()const +{ + return message_; +} + +int ListSurveysResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListSurveysResult::getCode()const +{ + return code_; +} + +bool ListSurveysResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListUnreachableContactsRequest.cc b/ccc/src/model/ListUnreachableContactsRequest.cc new file mode 100644 index 000000000..750227ecc --- /dev/null +++ b/ccc/src/model/ListUnreachableContactsRequest.cc @@ -0,0 +1,71 @@ +/* + * 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::ListUnreachableContactsRequest; + +ListUnreachableContactsRequest::ListUnreachableContactsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListUnreachableContacts") +{} + +ListUnreachableContactsRequest::~ListUnreachableContactsRequest() +{} + +std::string ListUnreachableContactsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListUnreachableContactsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListUnreachableContactsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void ListUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +int ListUnreachableContactsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUnreachableContactsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListUnreachableContactsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListUnreachableContactsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ccc/src/model/ListUnreachableContactsResult.cc b/ccc/src/model/ListUnreachableContactsResult.cc new file mode 100644 index 000000000..e3285022c --- /dev/null +++ b/ccc/src/model/ListUnreachableContactsResult.cc @@ -0,0 +1,111 @@ +/* + * 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; + +ListUnreachableContactsResult::ListUnreachableContactsResult() : + ServiceResult() +{} + +ListUnreachableContactsResult::ListUnreachableContactsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUnreachableContactsResult::~ListUnreachableContactsResult() +{} + +void ListUnreachableContactsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto unreachableContactsNode = value["UnreachableContacts"]; + if(!unreachableContactsNode["TotalCount"].isNull()) + unreachableContacts_.totalCount = std::stoi(unreachableContactsNode["TotalCount"].asString()); + if(!unreachableContactsNode["PageNumber"].isNull()) + unreachableContacts_.pageNumber = std::stoi(unreachableContactsNode["PageNumber"].asString()); + if(!unreachableContactsNode["PageSize"].isNull()) + unreachableContacts_.pageSize = std::stoi(unreachableContactsNode["PageSize"].asString()); + auto allList = value["List"]["UnreachableContact"]; + for (auto value : allList) + { + UnreachableContacts::UnreachableContact unreachableContactObject; + if(!value["TotalAttempts"].isNull()) + unreachableContactObject.totalAttempts = std::stoi(value["TotalAttempts"].asString()); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + { + UnreachableContacts::UnreachableContact::Contact contactsObject; + if(!value["ContactId"].isNull()) + contactsObject.contactId = value["ContactId"].asString(); + if(!value["ContactName"].isNull()) + contactsObject.contactName = value["ContactName"].asString(); + if(!value["Role"].isNull()) + contactsObject.role = value["Role"].asString(); + if(!value["PhoneNumber"].isNull()) + contactsObject.phoneNumber = value["PhoneNumber"].asString(); + if(!value["State"].isNull()) + contactsObject.state = value["State"].asString(); + if(!value["ReferenceId"].isNull()) + contactsObject.referenceId = value["ReferenceId"].asString(); + unreachableContactObject.contacts.push_back(contactsObject); + } + unreachableContacts_.list.push_back(unreachableContactObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +ListUnreachableContactsResult::UnreachableContacts ListUnreachableContactsResult::getUnreachableContacts()const +{ + return unreachableContacts_; +} + +std::string ListUnreachableContactsResult::getMessage()const +{ + return message_; +} + +int ListUnreachableContactsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListUnreachableContactsResult::getCode()const +{ + return code_; +} + +bool ListUnreachableContactsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListUsersOfSkillGroupResult.cc b/ccc/src/model/ListUsersOfSkillGroupResult.cc index 927e2101f..b799fee9f 100644 --- a/ccc/src/model/ListUsersOfSkillGroupResult.cc +++ b/ccc/src/model/ListUsersOfSkillGroupResult.cc @@ -40,131 +40,116 @@ void ListUsersOfSkillGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allUsers = value["Users"]; - for (auto value : allUsers) - { - Users usersObject; - if(!value["TotalCount"].isNull()) - usersObject.totalCount = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - usersObject.pageNumber = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - usersObject.pageSize = std::stoi(value["PageSize"].asString()); - auto allList = value["List"]["User"]; - for (auto value : allList) - { - Users::User userObject; - if(!value["UserId"].isNull()) - userObject.userId = value["UserId"].asString(); - if(!value["RamId"].isNull()) - userObject.ramId = value["RamId"].asString(); - if(!value["InstanceId"].isNull()) - userObject.instanceId = value["InstanceId"].asString(); - auto allRoles = value["Roles"]["Role"]; - for (auto value : allRoles) - { - Users::User::Role rolesObject; - if(!value["RoleId"].isNull()) - rolesObject.roleId = value["RoleId"].asString(); - if(!value["InstanceId"].isNull()) - rolesObject.instanceId = value["InstanceId"].asString(); - if(!value["RoleName"].isNull()) - rolesObject.roleName = value["RoleName"].asString(); - if(!value["RoleDescription"].isNull()) - rolesObject.roleDescription = value["RoleDescription"].asString(); - if(!value["UserCount"].isNull()) - rolesObject.userCount = std::stoi(value["UserCount"].asString()); - auto allPrivileges = value["Privileges"]["Privilege"]; - for (auto value : allPrivileges) - { - Users::User::Role::Privilege privilegesObject; - if(!value["PrivilegeId"].isNull()) - privilegesObject.privilegeId = value["PrivilegeId"].asString(); - if(!value["PrivilegeName"].isNull()) - privilegesObject.privilegeName = value["PrivilegeName"].asString(); - if(!value["PrivilegeDescription"].isNull()) - privilegesObject.privilegeDescription = value["PrivilegeDescription"].asString(); - rolesObject.privileges.push_back(privilegesObject); - } - userObject.roles.push_back(rolesObject); - } - auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; - for (auto value : allSkillLevels) - { - Users::User::SkillLevel skillLevelsObject; - if(!value["SkillLevelId"].isNull()) - skillLevelsObject.skillLevelId = value["SkillLevelId"].asString(); - if(!value["Level"].isNull()) - skillLevelsObject.level = std::stoi(value["Level"].asString()); - auto allSkill = value["Skill"]; - for (auto value : allSkill) - { - Users::User::SkillLevel::Skill skillObject; - if(!value["SkillGroupId"].isNull()) - skillObject.skillGroupId = value["SkillGroupId"].asString(); - if(!value["InstanceId"].isNull()) - skillObject.instanceId = value["InstanceId"].asString(); - if(!value["SkillGroupName"].isNull()) - skillObject.skillGroupName = value["SkillGroupName"].asString(); - if(!value["SkillGroupDescription"].isNull()) - skillObject.skillGroupDescription = value["SkillGroupDescription"].asString(); - skillLevelsObject.skill.push_back(skillObject); - } - userObject.skillLevels.push_back(skillLevelsObject); - } - auto allDetail = value["Detail"]; - for (auto value : allDetail) - { - Users::User::Detail detailObject; - if(!value["LoginName"].isNull()) - detailObject.loginName = value["LoginName"].asString(); - if(!value["DisplayName"].isNull()) - detailObject.displayName = value["DisplayName"].asString(); - if(!value["Phone"].isNull()) - detailObject.phone = value["Phone"].asString(); - if(!value["Email"].isNull()) - detailObject.email = value["Email"].asString(); - if(!value["Department"].isNull()) - detailObject.department = value["Department"].asString(); - userObject.detail.push_back(detailObject); - } - usersObject.list.push_back(userObject); - } - users_.push_back(usersObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto usersNode = value["Users"]; + if(!usersNode["TotalCount"].isNull()) + users_.totalCount = std::stoi(usersNode["TotalCount"].asString()); + if(!usersNode["PageNumber"].isNull()) + users_.pageNumber = std::stoi(usersNode["PageNumber"].asString()); + if(!usersNode["PageSize"].isNull()) + users_.pageSize = std::stoi(usersNode["PageSize"].asString()); + auto allList = value["List"]["User"]; + for (auto value : allList) + { + Users::User userObject; + if(!value["UserId"].isNull()) + userObject.userId = value["UserId"].asString(); + if(!value["RamId"].isNull()) + userObject.ramId = value["RamId"].asString(); + if(!value["InstanceId"].isNull()) + userObject.instanceId = value["InstanceId"].asString(); + auto allRoles = value["Roles"]["Role"]; + for (auto value : allRoles) + { + Users::User::Role rolesObject; + if(!value["RoleId"].isNull()) + rolesObject.roleId = value["RoleId"].asString(); + if(!value["InstanceId"].isNull()) + rolesObject.instanceId = value["InstanceId"].asString(); + if(!value["RoleName"].isNull()) + rolesObject.roleName = value["RoleName"].asString(); + if(!value["RoleDescription"].isNull()) + rolesObject.roleDescription = value["RoleDescription"].asString(); + if(!value["UserCount"].isNull()) + rolesObject.userCount = std::stoi(value["UserCount"].asString()); + auto allPrivileges = value["Privileges"]["Privilege"]; + for (auto value : allPrivileges) + { + Users::User::Role::Privilege privilegesObject; + if(!value["PrivilegeId"].isNull()) + privilegesObject.privilegeId = value["PrivilegeId"].asString(); + if(!value["PrivilegeName"].isNull()) + privilegesObject.privilegeName = value["PrivilegeName"].asString(); + if(!value["PrivilegeDescription"].isNull()) + privilegesObject.privilegeDescription = value["PrivilegeDescription"].asString(); + rolesObject.privileges.push_back(privilegesObject); + } + userObject.roles.push_back(rolesObject); + } + auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; + for (auto value : allSkillLevels) + { + Users::User::SkillLevel skillLevelsObject; + if(!value["SkillLevelId"].isNull()) + skillLevelsObject.skillLevelId = value["SkillLevelId"].asString(); + if(!value["Level"].isNull()) + skillLevelsObject.level = std::stoi(value["Level"].asString()); + auto skillNode = value["Skill"]; + if(!skillNode["SkillGroupId"].isNull()) + skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString(); + if(!skillNode["InstanceId"].isNull()) + skillLevelsObject.skill.instanceId = skillNode["InstanceId"].asString(); + if(!skillNode["SkillGroupName"].isNull()) + skillLevelsObject.skill.skillGroupName = skillNode["SkillGroupName"].asString(); + if(!skillNode["SkillGroupDescription"].isNull()) + skillLevelsObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString(); + userObject.skillLevels.push_back(skillLevelsObject); + } + auto detailNode = value["Detail"]; + if(!detailNode["LoginName"].isNull()) + userObject.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + userObject.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + userObject.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + userObject.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + userObject.detail.department = detailNode["Department"].asString(); + users_.list.push_back(userObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListUsersOfSkillGroupResult::getMessage()const -{ - return message_; -} - -int ListUsersOfSkillGroupResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListUsersOfSkillGroupResult::getUsers()const -{ - return users_; -} - -std::string ListUsersOfSkillGroupResult::getCode()const -{ - return code_; -} - -bool ListUsersOfSkillGroupResult::getSuccess()const -{ - return success_; -} - +std::string ListUsersOfSkillGroupResult::getMessage()const +{ + return message_; +} + +int ListUsersOfSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListUsersOfSkillGroupResult::Users ListUsersOfSkillGroupResult::getUsers()const +{ + return users_; +} + +std::string ListUsersOfSkillGroupResult::getCode()const +{ + return code_; +} + +bool ListUsersOfSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListUsersResult.cc b/ccc/src/model/ListUsersResult.cc index e51d22be1..50b0d9429 100644 --- a/ccc/src/model/ListUsersResult.cc +++ b/ccc/src/model/ListUsersResult.cc @@ -40,119 +40,104 @@ void ListUsersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allUsers = value["Users"]; - for (auto value : allUsers) - { - Users usersObject; - if(!value["TotalCount"].isNull()) - usersObject.totalCount = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - usersObject.pageNumber = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - usersObject.pageSize = std::stoi(value["PageSize"].asString()); - auto allList = value["List"]["User"]; - for (auto value : allList) - { - Users::User userObject; - if(!value["UserId"].isNull()) - userObject.userId = value["UserId"].asString(); - if(!value["RamId"].isNull()) - userObject.ramId = value["RamId"].asString(); - if(!value["InstanceId"].isNull()) - userObject.instanceId = value["InstanceId"].asString(); - if(!value["Primary"].isNull()) - userObject.primary = value["Primary"].asString() == "true"; - auto allRoles = value["Roles"]["Role"]; - for (auto value : allRoles) - { - Users::User::Role rolesObject; - if(!value["RoleId"].isNull()) - rolesObject.roleId = value["RoleId"].asString(); - if(!value["InstanceId"].isNull()) - rolesObject.instanceId = value["InstanceId"].asString(); - if(!value["RoleName"].isNull()) - rolesObject.roleName = value["RoleName"].asString(); - if(!value["RoleDescription"].isNull()) - rolesObject.roleDescription = value["RoleDescription"].asString(); - userObject.roles.push_back(rolesObject); - } - auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; - for (auto value : allSkillLevels) - { - Users::User::SkillLevel skillLevelsObject; - if(!value["SkillLevelId"].isNull()) - skillLevelsObject.skillLevelId = value["SkillLevelId"].asString(); - if(!value["Level"].isNull()) - skillLevelsObject.level = std::stoi(value["Level"].asString()); - auto allSkill = value["Skill"]; - for (auto value : allSkill) - { - Users::User::SkillLevel::Skill skillObject; - if(!value["SkillGroupId"].isNull()) - skillObject.skillGroupId = value["SkillGroupId"].asString(); - if(!value["InstanceId"].isNull()) - skillObject.instanceId = value["InstanceId"].asString(); - if(!value["SkillGroupName"].isNull()) - skillObject.skillGroupName = value["SkillGroupName"].asString(); - if(!value["SkillGroupDescription"].isNull()) - skillObject.skillGroupDescription = value["SkillGroupDescription"].asString(); - skillLevelsObject.skill.push_back(skillObject); - } - userObject.skillLevels.push_back(skillLevelsObject); - } - auto allDetail = value["Detail"]; - for (auto value : allDetail) - { - Users::User::Detail detailObject; - if(!value["LoginName"].isNull()) - detailObject.loginName = value["LoginName"].asString(); - if(!value["DisplayName"].isNull()) - detailObject.displayName = value["DisplayName"].asString(); - if(!value["Phone"].isNull()) - detailObject.phone = value["Phone"].asString(); - if(!value["Email"].isNull()) - detailObject.email = value["Email"].asString(); - if(!value["Department"].isNull()) - detailObject.department = value["Department"].asString(); - userObject.detail.push_back(detailObject); - } - usersObject.list.push_back(userObject); - } - users_.push_back(usersObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto usersNode = value["Users"]; + if(!usersNode["TotalCount"].isNull()) + users_.totalCount = std::stoi(usersNode["TotalCount"].asString()); + if(!usersNode["PageNumber"].isNull()) + users_.pageNumber = std::stoi(usersNode["PageNumber"].asString()); + if(!usersNode["PageSize"].isNull()) + users_.pageSize = std::stoi(usersNode["PageSize"].asString()); + auto allList = value["List"]["User"]; + for (auto value : allList) + { + Users::User userObject; + if(!value["UserId"].isNull()) + userObject.userId = value["UserId"].asString(); + if(!value["RamId"].isNull()) + userObject.ramId = value["RamId"].asString(); + if(!value["InstanceId"].isNull()) + userObject.instanceId = value["InstanceId"].asString(); + if(!value["Primary"].isNull()) + userObject.primary = value["Primary"].asString() == "true"; + auto allRoles = value["Roles"]["Role"]; + for (auto value : allRoles) + { + Users::User::Role rolesObject; + if(!value["RoleId"].isNull()) + rolesObject.roleId = value["RoleId"].asString(); + if(!value["InstanceId"].isNull()) + rolesObject.instanceId = value["InstanceId"].asString(); + if(!value["RoleName"].isNull()) + rolesObject.roleName = value["RoleName"].asString(); + if(!value["RoleDescription"].isNull()) + rolesObject.roleDescription = value["RoleDescription"].asString(); + userObject.roles.push_back(rolesObject); + } + auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; + for (auto value : allSkillLevels) + { + Users::User::SkillLevel skillLevelsObject; + if(!value["SkillLevelId"].isNull()) + skillLevelsObject.skillLevelId = value["SkillLevelId"].asString(); + if(!value["Level"].isNull()) + skillLevelsObject.level = std::stoi(value["Level"].asString()); + auto skillNode = value["Skill"]; + if(!skillNode["SkillGroupId"].isNull()) + skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString(); + if(!skillNode["InstanceId"].isNull()) + skillLevelsObject.skill.instanceId = skillNode["InstanceId"].asString(); + if(!skillNode["SkillGroupName"].isNull()) + skillLevelsObject.skill.skillGroupName = skillNode["SkillGroupName"].asString(); + if(!skillNode["SkillGroupDescription"].isNull()) + skillLevelsObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString(); + userObject.skillLevels.push_back(skillLevelsObject); + } + auto detailNode = value["Detail"]; + if(!detailNode["LoginName"].isNull()) + userObject.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + userObject.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + userObject.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + userObject.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + userObject.detail.department = detailNode["Department"].asString(); + users_.list.push_back(userObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListUsersResult::getMessage()const -{ - return message_; -} - -int ListUsersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListUsersResult::getUsers()const -{ - return users_; -} - -std::string ListUsersResult::getCode()const -{ - return code_; -} - -bool ListUsersResult::getSuccess()const -{ - return success_; -} - +std::string ListUsersResult::getMessage()const +{ + return message_; +} + +int ListUsersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListUsersResult::Users ListUsersResult::getUsers()const +{ + return users_; +} + +std::string ListUsersResult::getCode()const +{ + return code_; +} + +bool ListUsersResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyPhoneNumberResult.cc b/ccc/src/model/ModifyPhoneNumberResult.cc index c212d2275..6ba069f4c 100644 --- a/ccc/src/model/ModifyPhoneNumberResult.cc +++ b/ccc/src/model/ModifyPhoneNumberResult.cc @@ -40,79 +40,69 @@ void ModifyPhoneNumberResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allPhoneNumber = value["PhoneNumber"]; - for (auto value : allPhoneNumber) - { - PhoneNumber phoneNumberObject; - if(!value["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString(); - if(!value["InstanceId"].isNull()) - phoneNumberObject.instanceId = value["InstanceId"].asString(); - if(!value["Number"].isNull()) - phoneNumberObject.number = value["Number"].asString(); - if(!value["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); - if(!value["TestOnly"].isNull()) - phoneNumberObject.testOnly = value["TestOnly"].asString() == "true"; - if(!value["RemainingTime"].isNull()) - phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString()); - if(!value["AllowOutbound"].isNull()) - phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true"; - if(!value["Usage"].isNull()) - phoneNumberObject.usage = value["Usage"].asString(); - if(!value["Trunks"].isNull()) - phoneNumberObject.trunks = std::stoi(value["Trunks"].asString()); - auto allContactFlow = value["ContactFlow"]; - for (auto value : allContactFlow) - { - PhoneNumber::ContactFlow contactFlowObject; - if(!value["ContactFlowId"].isNull()) - contactFlowObject.contactFlowId = value["ContactFlowId"].asString(); - if(!value["InstanceId"].isNull()) - contactFlowObject.instanceId = value["InstanceId"].asString(); - if(!value["ContactFlowName"].isNull()) - contactFlowObject.contactFlowName = value["ContactFlowName"].asString(); - if(!value["ContactFlowDescription"].isNull()) - contactFlowObject.contactFlowDescription = value["ContactFlowDescription"].asString(); - if(!value["Type"].isNull()) - contactFlowObject.type = value["Type"].asString(); - phoneNumberObject.contactFlow.push_back(contactFlowObject); - } - phoneNumber_.push_back(phoneNumberObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto phoneNumberNode = value["PhoneNumber"]; + if(!phoneNumberNode["PhoneNumberId"].isNull()) + phoneNumber_.phoneNumberId = phoneNumberNode["PhoneNumberId"].asString(); + if(!phoneNumberNode["InstanceId"].isNull()) + phoneNumber_.instanceId = phoneNumberNode["InstanceId"].asString(); + if(!phoneNumberNode["Number"].isNull()) + phoneNumber_.number = phoneNumberNode["Number"].asString(); + if(!phoneNumberNode["PhoneNumberDescription"].isNull()) + phoneNumber_.phoneNumberDescription = phoneNumberNode["PhoneNumberDescription"].asString(); + if(!phoneNumberNode["TestOnly"].isNull()) + phoneNumber_.testOnly = phoneNumberNode["TestOnly"].asString() == "true"; + if(!phoneNumberNode["RemainingTime"].isNull()) + phoneNumber_.remainingTime = std::stoi(phoneNumberNode["RemainingTime"].asString()); + if(!phoneNumberNode["AllowOutbound"].isNull()) + phoneNumber_.allowOutbound = phoneNumberNode["AllowOutbound"].asString() == "true"; + if(!phoneNumberNode["Usage"].isNull()) + phoneNumber_.usage = phoneNumberNode["Usage"].asString(); + if(!phoneNumberNode["Trunks"].isNull()) + phoneNumber_.trunks = std::stoi(phoneNumberNode["Trunks"].asString()); + auto contactFlowNode = phoneNumberNode["ContactFlow"]; + if(!contactFlowNode["ContactFlowId"].isNull()) + phoneNumber_.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString(); + if(!contactFlowNode["InstanceId"].isNull()) + phoneNumber_.contactFlow.instanceId = contactFlowNode["InstanceId"].asString(); + if(!contactFlowNode["ContactFlowName"].isNull()) + phoneNumber_.contactFlow.contactFlowName = contactFlowNode["ContactFlowName"].asString(); + if(!contactFlowNode["ContactFlowDescription"].isNull()) + phoneNumber_.contactFlow.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); + if(!contactFlowNode["Type"].isNull()) + phoneNumber_.contactFlow.type = contactFlowNode["Type"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ModifyPhoneNumberResult::getMessage()const -{ - return message_; -} - -int ModifyPhoneNumberResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ModifyPhoneNumberResult::getPhoneNumber()const -{ - return phoneNumber_; -} - -std::string ModifyPhoneNumberResult::getCode()const -{ - return code_; -} - -bool ModifyPhoneNumberResult::getSuccess()const -{ - return success_; -} - +std::string ModifyPhoneNumberResult::getMessage()const +{ + return message_; +} + +int ModifyPhoneNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ModifyPhoneNumberResult::PhoneNumber ModifyPhoneNumberResult::getPhoneNumber()const +{ + return phoneNumber_; +} + +std::string ModifyPhoneNumberResult::getCode()const +{ + return code_; +} + +bool ModifyPhoneNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyScenarioRequest.cc b/ccc/src/model/ModifyScenarioRequest.cc new file mode 100644 index 000000000..881082edf --- /dev/null +++ b/ccc/src/model/ModifyScenarioRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::ModifyScenarioRequest; + +ModifyScenarioRequest::ModifyScenarioRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifyScenario") +{} + +ModifyScenarioRequest::~ModifyScenarioRequest() +{} + +std::string ModifyScenarioRequest::getVariables()const +{ + return variables_; +} + +void ModifyScenarioRequest::setVariables(const std::string& variables) +{ + variables_ = variables; + setParameter("Variables", variables); +} + +std::string ModifyScenarioRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyScenarioRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyScenarioRequest::getName()const +{ + return name_; +} + +void ModifyScenarioRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyScenarioRequest::getDescription()const +{ + return description_; +} + +void ModifyScenarioRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyScenarioRequest::getScenarioId()const +{ + return scenarioId_; +} + +void ModifyScenarioRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/ModifyScenarioResult.cc b/ccc/src/model/ModifyScenarioResult.cc new file mode 100644 index 000000000..2cf071e8b --- /dev/null +++ b/ccc/src/model/ModifyScenarioResult.cc @@ -0,0 +1,167 @@ +/* + * 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; + +ModifyScenarioResult::ModifyScenarioResult() : + ServiceResult() +{} + +ModifyScenarioResult::ModifyScenarioResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyScenarioResult::~ModifyScenarioResult() +{} + +void ModifyScenarioResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto scenarioNode = value["Scenario"]; + if(!scenarioNode["ScenarioId"].isNull()) + scenario_.scenarioId = scenarioNode["ScenarioId"].asString(); + if(!scenarioNode["ScenarioName"].isNull()) + scenario_.scenarioName = scenarioNode["ScenarioName"].asString(); + if(!scenarioNode["ScenarioDescription"].isNull()) + scenario_.scenarioDescription = scenarioNode["ScenarioDescription"].asString(); + if(!scenarioNode["Type"].isNull()) + scenario_.type = scenarioNode["Type"].asString(); + if(!scenarioNode["IsTemplate"].isNull()) + scenario_.isTemplate = scenarioNode["IsTemplate"].asString() == "true"; + auto allSurveys = value["Surveys"]["Survey"]; + for (auto value : allSurveys) + { + Scenario::Survey surveyObject; + if(!value["SurveyId"].isNull()) + surveyObject.surveyId = value["SurveyId"].asString(); + if(!value["SurveyName"].isNull()) + surveyObject.surveyName = value["SurveyName"].asString(); + if(!value["SurveyDescription"].isNull()) + surveyObject.surveyDescription = value["SurveyDescription"].asString(); + if(!value["Role"].isNull()) + surveyObject.role = value["Role"].asString(); + if(!value["Round"].isNull()) + surveyObject.round = std::stoi(value["Round"].asString()); + if(!value["BeebotId"].isNull()) + surveyObject.beebotId = value["BeebotId"].asString(); + auto allIntents = value["Intents"]["IntentNode"]; + for (auto value : allIntents) + { + Scenario::Survey::IntentNode intentsObject; + if(!value["NodeId"].isNull()) + intentsObject.nodeId = value["NodeId"].asString(); + if(!value["IntentId"].isNull()) + intentsObject.intentId = value["IntentId"].asString(); + surveyObject.intents.push_back(intentsObject); + } + scenario_.surveys.push_back(surveyObject); + } + auto allVariables = value["Variables"]["KeyValuePair"]; + for (auto value : allVariables) + { + Scenario::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + scenario_.variables.push_back(keyValuePairObject); + } + auto strategyNode = scenarioNode["Strategy"]; + if(!strategyNode["StrategyId"].isNull()) + scenario_.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["StrategyName"].isNull()) + scenario_.strategy.strategyName = strategyNode["StrategyName"].asString(); + if(!strategyNode["StrategyDescription"].isNull()) + scenario_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); + if(!strategyNode["Type"].isNull()) + scenario_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StartTime"].isNull()) + scenario_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + scenario_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["RepeatBy"].isNull()) + scenario_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + scenario_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + scenario_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["Customized"].isNull()) + scenario_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + scenario_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["FollowUpStrategy"].isNull()) + scenario_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + scenario_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + Scenario::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + scenario_.strategy.workingTime.push_back(timeFrameObject); + } + auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; + for (auto value : allRepeatDays) + scenario_.strategy.repeatDays.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifyScenarioResult::getMessage()const +{ + return message_; +} + +int ModifyScenarioResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyScenarioResult::getCode()const +{ + return code_; +} + +bool ModifyScenarioResult::getSuccess()const +{ + return success_; +} + +ModifyScenarioResult::Scenario ModifyScenarioResult::getScenario()const +{ + return scenario_; +} + diff --git a/ccc/src/model/ModifySkillGroupRequest.cc b/ccc/src/model/ModifySkillGroupRequest.cc new file mode 100644 index 000000000..badd42a83 --- /dev/null +++ b/ccc/src/model/ModifySkillGroupRequest.cc @@ -0,0 +1,118 @@ +/* + * 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", "2017-07-05", "ModifySkillGroup") +{} + +ModifySkillGroupRequest::~ModifySkillGroupRequest() +{} + +std::vector ModifySkillGroupRequest::getSkillLevel()const +{ + return skillLevel_; +} + +void ModifySkillGroupRequest::setSkillLevel(const std::vector& skillLevel) +{ + skillLevel_ = skillLevel; + for(int i = 0; i!= skillLevel.size(); i++) + setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); +} + +std::string ModifySkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifySkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector ModifySkillGroupRequest::getOutboundPhoneNumberId()const +{ + return outboundPhoneNumberId_; +} + +void ModifySkillGroupRequest::setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId) +{ + outboundPhoneNumberId_ = outboundPhoneNumberId; + for(int i = 0; i!= outboundPhoneNumberId.size(); i++) + setParameter("OutboundPhoneNumberId."+ std::to_string(i), outboundPhoneNumberId.at(i)); +} + +std::string ModifySkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifySkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string ModifySkillGroupRequest::getName()const +{ + return name_; +} + +void ModifySkillGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifySkillGroupRequest::getDescription()const +{ + return description_; +} + +void ModifySkillGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::vector ModifySkillGroupRequest::getUserId()const +{ + return userId_; +} + +void ModifySkillGroupRequest::setUserId(const std::vector& userId) +{ + userId_ = userId; + for(int i = 0; i!= userId.size(); i++) + setParameter("UserId."+ std::to_string(i), userId.at(i)); +} + +std::string ModifySkillGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ModifySkillGroupResult.cc b/ccc/src/model/ModifySkillGroupResult.cc new file mode 100644 index 000000000..0eb41fbdc --- /dev/null +++ b/ccc/src/model/ModifySkillGroupResult.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; + +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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifySkillGroupResult::getMessage()const +{ + return message_; +} + +int ModifySkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifySkillGroupResult::getCode()const +{ + return code_; +} + +bool ModifySkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifySurveyRequest.cc b/ccc/src/model/ModifySurveyRequest.cc new file mode 100644 index 000000000..a000228ee --- /dev/null +++ b/ccc/src/model/ModifySurveyRequest.cc @@ -0,0 +1,159 @@ +/* + * 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::ModifySurveyRequest; + +ModifySurveyRequest::ModifySurveyRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifySurvey") +{} + +ModifySurveyRequest::~ModifySurveyRequest() +{} + +std::string ModifySurveyRequest::getSurveyId()const +{ + return surveyId_; +} + +void ModifySurveyRequest::setSurveyId(const std::string& surveyId) +{ + surveyId_ = surveyId; + setParameter("SurveyId", surveyId); +} + +std::string ModifySurveyRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifySurveyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifySurveyRequest::getRole()const +{ + return role_; +} + +void ModifySurveyRequest::setRole(const std::string& role) +{ + role_ = role; + setParameter("Role", role); +} + +int ModifySurveyRequest::getRound()const +{ + return round_; +} + +void ModifySurveyRequest::setRound(int round) +{ + round_ = round; + setParameter("Round", std::to_string(round)); +} + +std::string ModifySurveyRequest::getFlowJson()const +{ + return flowJson_; +} + +void ModifySurveyRequest::setFlowJson(const std::string& flowJson) +{ + flowJson_ = flowJson; + setParameter("FlowJson", flowJson); +} + +std::string ModifySurveyRequest::getName()const +{ + return name_; +} + +void ModifySurveyRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifySurveyRequest::getGlobalQuestions()const +{ + return globalQuestions_; +} + +void ModifySurveyRequest::setGlobalQuestions(const std::string& globalQuestions) +{ + globalQuestions_ = globalQuestions; + setParameter("GlobalQuestions", globalQuestions); +} + +std::string ModifySurveyRequest::getDescription()const +{ + return description_; +} + +void ModifySurveyRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifySurveyRequest::getCorpora()const +{ + return corpora_; +} + +void ModifySurveyRequest::setCorpora(const std::string& corpora) +{ + corpora_ = corpora; + setParameter("Corpora", corpora); +} + +std::string ModifySurveyRequest::getSpeechOptimizationParam()const +{ + return speechOptimizationParam_; +} + +void ModifySurveyRequest::setSpeechOptimizationParam(const std::string& speechOptimizationParam) +{ + speechOptimizationParam_ = speechOptimizationParam; + setParameter("SpeechOptimizationParam", speechOptimizationParam); +} + +std::string ModifySurveyRequest::getScenarioId()const +{ + return scenarioId_; +} + +void ModifySurveyRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + +std::string ModifySurveyRequest::getFlowId()const +{ + return flowId_; +} + +void ModifySurveyRequest::setFlowId(const std::string& flowId) +{ + flowId_ = flowId; + setParameter("FlowId", flowId); +} + diff --git a/ccc/src/model/ModifySurveyResult.cc b/ccc/src/model/ModifySurveyResult.cc new file mode 100644 index 000000000..f4dec147b --- /dev/null +++ b/ccc/src/model/ModifySurveyResult.cc @@ -0,0 +1,109 @@ +/* + * 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; + +ModifySurveyResult::ModifySurveyResult() : + ServiceResult() +{} + +ModifySurveyResult::ModifySurveyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySurveyResult::~ModifySurveyResult() +{} + +void ModifySurveyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto surveyNode = value["Survey"]; + if(!surveyNode["Id"].isNull()) + survey_.id = surveyNode["Id"].asString(); + if(!surveyNode["ScenarioUuid"].isNull()) + survey_.scenarioUuid = surveyNode["ScenarioUuid"].asString(); + if(!surveyNode["Name"].isNull()) + survey_.name = surveyNode["Name"].asString(); + if(!surveyNode["Description"].isNull()) + survey_.description = surveyNode["Description"].asString(); + if(!surveyNode["Role"].isNull()) + survey_.role = surveyNode["Role"].asString(); + if(!surveyNode["Round"].isNull()) + survey_.round = std::stoi(surveyNode["Round"].asString()); + if(!surveyNode["HotWords"].isNull()) + survey_.hotWords = surveyNode["HotWords"].asString(); + if(!surveyNode["SpeechOptimizationParam"].isNull()) + survey_.speechOptimizationParam = surveyNode["SpeechOptimizationParam"].asString(); + if(!surveyNode["GlobalQuestions"].isNull()) + survey_.globalQuestions = surveyNode["GlobalQuestions"].asString(); + auto flowNode = surveyNode["Flow"]; + if(!flowNode["FlowId"].isNull()) + survey_.flow.flowId = flowNode["FlowId"].asString(); + if(!flowNode["IsPublished"].isNull()) + survey_.flow.isPublished = flowNode["IsPublished"].asString() == "true"; + if(!flowNode["FlowJson"].isNull()) + survey_.flow.flowJson = flowNode["FlowJson"].asString(); + auto asrCustomModelNode = surveyNode["AsrCustomModel"]; + if(!asrCustomModelNode["Corpora"].isNull()) + survey_.asrCustomModel.corpora = asrCustomModelNode["Corpora"].asString(); + if(!asrCustomModelNode["CustomModelStatus"].isNull()) + survey_.asrCustomModel.customModelStatus = std::stoi(asrCustomModelNode["CustomModelStatus"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +ModifySurveyResult::Survey ModifySurveyResult::getSurvey()const +{ + return survey_; +} + +std::string ModifySurveyResult::getMessage()const +{ + return message_; +} + +int ModifySurveyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifySurveyResult::getCode()const +{ + return code_; +} + +bool ModifySurveyResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyUserRequest.cc b/ccc/src/model/ModifyUserRequest.cc new file mode 100644 index 000000000..d3b6bfbfd --- /dev/null +++ b/ccc/src/model/ModifyUserRequest.cc @@ -0,0 +1,129 @@ +/* + * 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", "2017-07-05", "ModifyUser") +{} + +ModifyUserRequest::~ModifyUserRequest() +{} + +std::vector ModifyUserRequest::getSkillLevel()const +{ + return skillLevel_; +} + +void ModifyUserRequest::setSkillLevel(const std::vector& skillLevel) +{ + skillLevel_ = skillLevel; + for(int i = 0; i!= skillLevel.size(); i++) + setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); +} + +std::string ModifyUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyUserRequest::getPhone()const +{ + return phone_; +} + +void ModifyUserRequest::setPhone(const std::string& phone) +{ + phone_ = phone; + setParameter("Phone", phone); +} + +std::vector ModifyUserRequest::getRoleId()const +{ + return roleId_; +} + +void ModifyUserRequest::setRoleId(const std::vector& roleId) +{ + roleId_ = roleId; + for(int i = 0; i!= roleId.size(); i++) + setParameter("RoleId."+ std::to_string(i), roleId.at(i)); +} + +std::string ModifyUserRequest::getDisplayName()const +{ + return displayName_; +} + +void ModifyUserRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setParameter("DisplayName", displayName); +} + +std::vector ModifyUserRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifyUserRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int i = 0; i!= skillGroupId.size(); i++) + setParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); +} + +std::string ModifyUserRequest::getUserId()const +{ + return userId_; +} + +void ModifyUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ModifyUserRequest::getEmail()const +{ + return email_; +} + +void ModifyUserRequest::setEmail(const std::string& email) +{ + email_ = email; + setParameter("Email", email); +} + +std::string ModifyUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ModifyUserResult.cc b/ccc/src/model/ModifyUserResult.cc new file mode 100644 index 000000000..2a9152f0a --- /dev/null +++ b/ccc/src/model/ModifyUserResult.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; + +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()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifyUserResult::getMessage()const +{ + return message_; +} + +int ModifyUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyUserResult::getCode()const +{ + return code_; +} + +bool ModifyUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PickLocalNumberRequest.cc b/ccc/src/model/PickLocalNumberRequest.cc new file mode 100644 index 000000000..ea004f62a --- /dev/null +++ b/ccc/src/model/PickLocalNumberRequest.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 + +using AlibabaCloud::CCC::Model::PickLocalNumberRequest; + +PickLocalNumberRequest::PickLocalNumberRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PickLocalNumber") +{} + +PickLocalNumberRequest::~PickLocalNumberRequest() +{} + +std::string PickLocalNumberRequest::getInstanceId()const +{ + return instanceId_; +} + +void PickLocalNumberRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector PickLocalNumberRequest::getCandidateNumber()const +{ + return candidateNumber_; +} + +void PickLocalNumberRequest::setCandidateNumber(const std::vector& candidateNumber) +{ + candidateNumber_ = candidateNumber; + for(int i = 0; i!= candidateNumber.size(); i++) + setParameter("CandidateNumber."+ std::to_string(i), candidateNumber.at(i)); +} + +std::string PickLocalNumberRequest::getCalleeNumber()const +{ + return calleeNumber_; +} + +void PickLocalNumberRequest::setCalleeNumber(const std::string& calleeNumber) +{ + calleeNumber_ = calleeNumber; + setParameter("CalleeNumber", calleeNumber); +} + +std::string PickLocalNumberRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PickLocalNumberRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/PickLocalNumberResult.cc b/ccc/src/model/PickLocalNumberResult.cc new file mode 100644 index 000000000..0c5469d9f --- /dev/null +++ b/ccc/src/model/PickLocalNumberResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +PickLocalNumberResult::PickLocalNumberResult() : + ServiceResult() +{} + +PickLocalNumberResult::PickLocalNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PickLocalNumberResult::~PickLocalNumberResult() +{} + +void PickLocalNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto calleeNode = dataNode["Callee"]; + if(!calleeNode["Number"].isNull()) + data_.callee.number = calleeNode["Number"].asString(); + if(!calleeNode["Province"].isNull()) + data_.callee.province = calleeNode["Province"].asString(); + if(!calleeNode["City"].isNull()) + data_.callee.city = calleeNode["City"].asString(); + auto callerNode = dataNode["Caller"]; + if(!callerNode["Number"].isNull()) + data_.caller.number = callerNode["Number"].asString(); + if(!callerNode["Province"].isNull()) + data_.caller.province = callerNode["Province"].asString(); + if(!callerNode["City"].isNull()) + data_.caller.city = callerNode["City"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PickLocalNumberResult::getMessage()const +{ + return message_; +} + +PickLocalNumberResult::Data PickLocalNumberResult::getData()const +{ + return data_; +} + +std::string PickLocalNumberResult::getCode()const +{ + return code_; +} + +bool PickLocalNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PublishSurveyRequest.cc b/ccc/src/model/PublishSurveyRequest.cc new file mode 100644 index 000000000..875235974 --- /dev/null +++ b/ccc/src/model/PublishSurveyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::PublishSurveyRequest; + +PublishSurveyRequest::PublishSurveyRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PublishSurvey") +{} + +PublishSurveyRequest::~PublishSurveyRequest() +{} + +std::string PublishSurveyRequest::getSurveyId()const +{ + return surveyId_; +} + +void PublishSurveyRequest::setSurveyId(const std::string& surveyId) +{ + surveyId_ = surveyId; + setParameter("SurveyId", surveyId); +} + +std::string PublishSurveyRequest::getInstanceId()const +{ + return instanceId_; +} + +void PublishSurveyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string PublishSurveyRequest::getScenarioId()const +{ + return scenarioId_; +} + +void PublishSurveyRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/PublishSurveyResult.cc b/ccc/src/model/PublishSurveyResult.cc new file mode 100644 index 000000000..0ad6a31aa --- /dev/null +++ b/ccc/src/model/PublishSurveyResult.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; + +PublishSurveyResult::PublishSurveyResult() : + ServiceResult() +{} + +PublishSurveyResult::PublishSurveyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishSurveyResult::~PublishSurveyResult() +{} + +void PublishSurveyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PublishSurveyResult::getMessage()const +{ + return message_; +} + +int PublishSurveyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PublishSurveyResult::getCode()const +{ + return code_; +} + +bool PublishSurveyResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RefreshTokenResult.cc b/ccc/src/model/RefreshTokenResult.cc index 4a088053d..ab2190b38 100644 --- a/ccc/src/model/RefreshTokenResult.cc +++ b/ccc/src/model/RefreshTokenResult.cc @@ -40,49 +40,44 @@ void RefreshTokenResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allToken = value["Token"]; - for (auto value : allToken) - { - Token tokenObject; - if(!value["Signature"].isNull()) - tokenObject.signature = value["Signature"].asString(); - if(!value["SignData"].isNull()) - tokenObject.signData = value["SignData"].asString(); - token_.push_back(tokenObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto tokenNode = value["Token"]; + if(!tokenNode["Signature"].isNull()) + token_.signature = tokenNode["Signature"].asString(); + if(!tokenNode["SignData"].isNull()) + token_.signData = tokenNode["SignData"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string RefreshTokenResult::getMessage()const -{ - return message_; -} - -int RefreshTokenResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector RefreshTokenResult::getToken()const -{ - return token_; -} - -std::string RefreshTokenResult::getCode()const -{ - return code_; -} - -bool RefreshTokenResult::getSuccess()const -{ - return success_; -} - +std::string RefreshTokenResult::getMessage()const +{ + return message_; +} + +int RefreshTokenResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +RefreshTokenResult::Token RefreshTokenResult::getToken()const +{ + return token_; +} + +std::string RefreshTokenResult::getCode()const +{ + return code_; +} + +bool RefreshTokenResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RemovePhoneNumberResult.cc b/ccc/src/model/RemovePhoneNumberResult.cc index cad99442f..d39386f71 100644 --- a/ccc/src/model/RemovePhoneNumberResult.cc +++ b/ccc/src/model/RemovePhoneNumberResult.cc @@ -40,34 +40,34 @@ void RemovePhoneNumberResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string RemovePhoneNumberResult::getMessage()const -{ - return message_; -} - -int RemovePhoneNumberResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string RemovePhoneNumberResult::getCode()const -{ - return code_; -} - -bool RemovePhoneNumberResult::getSuccess()const -{ - return success_; -} - +std::string RemovePhoneNumberResult::getMessage()const +{ + return message_; +} + +int RemovePhoneNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemovePhoneNumberResult::getCode()const +{ + return code_; +} + +bool RemovePhoneNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RemoveUsersRequest.cc b/ccc/src/model/RemoveUsersRequest.cc new file mode 100644 index 000000000..ab4353903 --- /dev/null +++ b/ccc/src/model/RemoveUsersRequest.cc @@ -0,0 +1,61 @@ +/* + * 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::RemoveUsersRequest; + +RemoveUsersRequest::RemoveUsersRequest() : + RpcServiceRequest("ccc", "2017-07-05", "RemoveUsers") +{} + +RemoveUsersRequest::~RemoveUsersRequest() +{} + +std::string RemoveUsersRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemoveUsersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector RemoveUsersRequest::getUserId()const +{ + return userId_; +} + +void RemoveUsersRequest::setUserId(const std::vector& userId) +{ + userId_ = userId; + for(int i = 0; i!= userId.size(); i++) + setParameter("UserId."+ std::to_string(i), userId.at(i)); +} + +std::string RemoveUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/RemoveUsersResult.cc b/ccc/src/model/RemoveUsersResult.cc new file mode 100644 index 000000000..da5e56f25 --- /dev/null +++ b/ccc/src/model/RemoveUsersResult.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; + +RemoveUsersResult::RemoveUsersResult() : + ServiceResult() +{} + +RemoveUsersResult::RemoveUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveUsersResult::~RemoveUsersResult() +{} + +void RemoveUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string RemoveUsersResult::getMessage()const +{ + return message_; +} + +int RemoveUsersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemoveUsersResult::getCode()const +{ + return code_; +} + +bool RemoveUsersResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RequestLoginInfoResult.cc b/ccc/src/model/RequestLoginInfoResult.cc index 6d0855a9d..56ba89434 100644 --- a/ccc/src/model/RequestLoginInfoResult.cc +++ b/ccc/src/model/RequestLoginInfoResult.cc @@ -40,65 +40,60 @@ void RequestLoginInfoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allLoginInfo = value["LoginInfo"]; - for (auto value : allLoginInfo) - { - LoginInfo loginInfoObject; - if(!value["UserName"].isNull()) - loginInfoObject.userName = value["UserName"].asString(); - if(!value["DisplayName"].isNull()) - loginInfoObject.displayName = value["DisplayName"].asString(); - if(!value["PhoneNumber"].isNull()) - loginInfoObject.phoneNumber = value["PhoneNumber"].asString(); - if(!value["Region"].isNull()) - loginInfoObject.region = value["Region"].asString(); - if(!value["WebRtcUrl"].isNull()) - loginInfoObject.webRtcUrl = value["WebRtcUrl"].asString(); - if(!value["AgentServerUrl"].isNull()) - loginInfoObject.agentServerUrl = value["AgentServerUrl"].asString(); - if(!value["Extension"].isNull()) - loginInfoObject.extension = value["Extension"].asString(); - if(!value["TenantId"].isNull()) - loginInfoObject.tenantId = value["TenantId"].asString(); - if(!value["Signature"].isNull()) - loginInfoObject.signature = value["Signature"].asString(); - if(!value["SignData"].isNull()) - loginInfoObject.signData = value["SignData"].asString(); - loginInfo_.push_back(loginInfoObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + auto loginInfoNode = value["LoginInfo"]; + if(!loginInfoNode["UserName"].isNull()) + loginInfo_.userName = loginInfoNode["UserName"].asString(); + if(!loginInfoNode["DisplayName"].isNull()) + loginInfo_.displayName = loginInfoNode["DisplayName"].asString(); + if(!loginInfoNode["PhoneNumber"].isNull()) + loginInfo_.phoneNumber = loginInfoNode["PhoneNumber"].asString(); + if(!loginInfoNode["Region"].isNull()) + loginInfo_.region = loginInfoNode["Region"].asString(); + if(!loginInfoNode["WebRtcUrl"].isNull()) + loginInfo_.webRtcUrl = loginInfoNode["WebRtcUrl"].asString(); + if(!loginInfoNode["AgentServerUrl"].isNull()) + loginInfo_.agentServerUrl = loginInfoNode["AgentServerUrl"].asString(); + if(!loginInfoNode["Extension"].isNull()) + loginInfo_.extension = loginInfoNode["Extension"].asString(); + if(!loginInfoNode["TenantId"].isNull()) + loginInfo_.tenantId = loginInfoNode["TenantId"].asString(); + if(!loginInfoNode["Signature"].isNull()) + loginInfo_.signature = loginInfoNode["Signature"].asString(); + if(!loginInfoNode["SignData"].isNull()) + loginInfo_.signData = loginInfoNode["SignData"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::vector RequestLoginInfoResult::getLoginInfo()const -{ - return loginInfo_; -} - -std::string RequestLoginInfoResult::getMessage()const -{ - return message_; -} - -int RequestLoginInfoResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string RequestLoginInfoResult::getCode()const -{ - return code_; -} - -bool RequestLoginInfoResult::getSuccess()const -{ - return success_; -} - +RequestLoginInfoResult::LoginInfo RequestLoginInfoResult::getLoginInfo()const +{ + return loginInfo_; +} + +std::string RequestLoginInfoResult::getMessage()const +{ + return message_; +} + +int RequestLoginInfoResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RequestLoginInfoResult::getCode()const +{ + return code_; +} + +bool RequestLoginInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ResumeJobsRequest.cc b/ccc/src/model/ResumeJobsRequest.cc new file mode 100644 index 000000000..ca7151554 --- /dev/null +++ b/ccc/src/model/ResumeJobsRequest.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::ResumeJobsRequest; + +ResumeJobsRequest::ResumeJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ResumeJobs") +{} + +ResumeJobsRequest::~ResumeJobsRequest() +{} + +bool ResumeJobsRequest::getAll()const +{ + return all_; +} + +void ResumeJobsRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", std::to_string(all)); +} + +std::vector ResumeJobsRequest::getJobId()const +{ + return jobId_; +} + +void ResumeJobsRequest::setJobId(const std::vector& jobId) +{ + jobId_ = jobId; + for(int i = 0; i!= jobId.size(); i++) + setParameter("JobId."+ std::to_string(i), jobId.at(i)); +} + +std::string ResumeJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ResumeJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector ResumeJobsRequest::getJobReferenceId()const +{ + return jobReferenceId_; +} + +void ResumeJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) +{ + jobReferenceId_ = jobReferenceId; + for(int i = 0; i!= jobReferenceId.size(); i++) + setParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); +} + +std::string ResumeJobsRequest::getGroupId()const +{ + return groupId_; +} + +void ResumeJobsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string ResumeJobsRequest::getScenarioId()const +{ + return scenarioId_; +} + +void ResumeJobsRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/ResumeJobsResult.cc b/ccc/src/model/ResumeJobsResult.cc new file mode 100644 index 000000000..b7fdd080f --- /dev/null +++ b/ccc/src/model/ResumeJobsResult.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; + +ResumeJobsResult::ResumeJobsResult() : + ServiceResult() +{} + +ResumeJobsResult::ResumeJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResumeJobsResult::~ResumeJobsResult() +{} + +void ResumeJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ResumeJobsResult::getMessage()const +{ + return message_; +} + +int ResumeJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ResumeJobsResult::getCode()const +{ + return code_; +} + +bool ResumeJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/StartBack2BackCallRequest.cc b/ccc/src/model/StartBack2BackCallRequest.cc new file mode 100644 index 000000000..5854105ac --- /dev/null +++ b/ccc/src/model/StartBack2BackCallRequest.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 + +using AlibabaCloud::CCC::Model::StartBack2BackCallRequest; + +StartBack2BackCallRequest::StartBack2BackCallRequest() : + RpcServiceRequest("ccc", "2017-07-05", "StartBack2BackCall") +{} + +StartBack2BackCallRequest::~StartBack2BackCallRequest() +{} + +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); +} + +std::string StartBack2BackCallRequest::getCallCenterNumber()const +{ + return callCenterNumber_; +} + +void StartBack2BackCallRequest::setCallCenterNumber(const std::string& callCenterNumber) +{ + callCenterNumber_ = callCenterNumber; + setParameter("CallCenterNumber", callCenterNumber); +} + +std::string StartBack2BackCallRequest::getCallee()const +{ + return callee_; +} + +void StartBack2BackCallRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setParameter("Callee", callee); +} + +std::string StartBack2BackCallRequest::getWorkflowId()const +{ + return workflowId_; +} + +void StartBack2BackCallRequest::setWorkflowId(const std::string& workflowId) +{ + workflowId_ = workflowId; + setParameter("WorkflowId", workflowId); +} + +std::string StartBack2BackCallRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartBack2BackCallRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/StartBack2BackCallResult.cc b/ccc/src/model/StartBack2BackCallResult.cc new file mode 100644 index 000000000..9ccef6beb --- /dev/null +++ b/ccc/src/model/StartBack2BackCallResult.cc @@ -0,0 +1,101 @@ +/* + * 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()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["StatusCode"].isNull()) + statusCode_ = value["StatusCode"].asString(); + if(!value["StatusDesc"].isNull()) + statusDesc_ = value["StatusDesc"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["TimeStamp"].isNull()) + timeStamp_ = value["TimeStamp"].asString(); + +} + +std::string StartBack2BackCallResult::getStatusDesc()const +{ + return statusDesc_; +} + +std::string StartBack2BackCallResult::getTaskId()const +{ + return taskId_; +} + +std::string StartBack2BackCallResult::getMessage()const +{ + return message_; +} + +int StartBack2BackCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StartBack2BackCallResult::getCode()const +{ + return code_; +} + +std::string StartBack2BackCallResult::getStatusCode()const +{ + return statusCode_; +} + +bool StartBack2BackCallResult::getSuccess()const +{ + return success_; +} + +std::string StartBack2BackCallResult::getTimeStamp()const +{ + return timeStamp_; +} + diff --git a/ccc/src/model/StartJobRequest.cc b/ccc/src/model/StartJobRequest.cc new file mode 100644 index 000000000..b05543089 --- /dev/null +++ b/ccc/src/model/StartJobRequest.cc @@ -0,0 +1,94 @@ +/* + * 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::StartJobRequest; + +StartJobRequest::StartJobRequest() : + RpcServiceRequest("ccc", "2017-07-05", "StartJob") +{} + +StartJobRequest::~StartJobRequest() +{} + +std::string StartJobRequest::getJobJson()const +{ + return jobJson_; +} + +void StartJobRequest::setJobJson(const std::string& jobJson) +{ + jobJson_ = jobJson; + setParameter("JobJson", jobJson); +} + +std::vector StartJobRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void StartJobRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int i = 0; i!= callingNumber.size(); i++) + setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); +} + +std::string StartJobRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartJobRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string StartJobRequest::getGroupId()const +{ + return groupId_; +} + +void StartJobRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +bool StartJobRequest::getSelfHostedCallCenter()const +{ + return selfHostedCallCenter_; +} + +void StartJobRequest::setSelfHostedCallCenter(bool selfHostedCallCenter) +{ + selfHostedCallCenter_ = selfHostedCallCenter; + setParameter("SelfHostedCallCenter", std::to_string(selfHostedCallCenter)); +} + +std::string StartJobRequest::getScenarioId()const +{ + return scenarioId_; +} + +void StartJobRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/StartJobResult.cc b/ccc/src/model/StartJobResult.cc new file mode 100644 index 000000000..8c1f6ffee --- /dev/null +++ b/ccc/src/model/StartJobResult.cc @@ -0,0 +1,88 @@ +/* + * 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; + +StartJobResult::StartJobResult() : + ServiceResult() +{} + +StartJobResult::StartJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartJobResult::~StartJobResult() +{} + +void StartJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTaskIds = value["TaskIds"]["KeyValuePair"]; + for (auto value : allTaskIds) + { + KeyValuePair taskIdsObject; + if(!value["Key"].isNull()) + taskIdsObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + taskIdsObject.value = value["Value"].asString(); + taskIds_.push_back(taskIdsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector StartJobResult::getTaskIds()const +{ + return taskIds_; +} + +std::string StartJobResult::getMessage()const +{ + return message_; +} + +int StartJobResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StartJobResult::getCode()const +{ + return code_; +} + +bool StartJobResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/SubmitBatchJobsRequest.cc b/ccc/src/model/SubmitBatchJobsRequest.cc new file mode 100644 index 000000000..3841a40a1 --- /dev/null +++ b/ccc/src/model/SubmitBatchJobsRequest.cc @@ -0,0 +1,49 @@ +/* + * 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::SubmitBatchJobsRequest; + +SubmitBatchJobsRequest::SubmitBatchJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "SubmitBatchJobs") +{} + +SubmitBatchJobsRequest::~SubmitBatchJobsRequest() +{} + +std::string SubmitBatchJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void SubmitBatchJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string SubmitBatchJobsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void SubmitBatchJobsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/SubmitBatchJobsResult.cc b/ccc/src/model/SubmitBatchJobsResult.cc new file mode 100644 index 000000000..61cf165a8 --- /dev/null +++ b/ccc/src/model/SubmitBatchJobsResult.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; + +SubmitBatchJobsResult::SubmitBatchJobsResult() : + ServiceResult() +{} + +SubmitBatchJobsResult::SubmitBatchJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitBatchJobsResult::~SubmitBatchJobsResult() +{} + +void SubmitBatchJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SubmitBatchJobsResult::getMessage()const +{ + return message_; +} + +int SubmitBatchJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SubmitBatchJobsResult::getCode()const +{ + return code_; +} + +bool SubmitBatchJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/SuspendJobsRequest.cc b/ccc/src/model/SuspendJobsRequest.cc new file mode 100644 index 000000000..473b7032b --- /dev/null +++ b/ccc/src/model/SuspendJobsRequest.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::SuspendJobsRequest; + +SuspendJobsRequest::SuspendJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "SuspendJobs") +{} + +SuspendJobsRequest::~SuspendJobsRequest() +{} + +bool SuspendJobsRequest::getAll()const +{ + return all_; +} + +void SuspendJobsRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", std::to_string(all)); +} + +std::vector SuspendJobsRequest::getJobId()const +{ + return jobId_; +} + +void SuspendJobsRequest::setJobId(const std::vector& jobId) +{ + jobId_ = jobId; + for(int i = 0; i!= jobId.size(); i++) + setParameter("JobId."+ std::to_string(i), jobId.at(i)); +} + +std::string SuspendJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void SuspendJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector SuspendJobsRequest::getJobReferenceId()const +{ + return jobReferenceId_; +} + +void SuspendJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) +{ + jobReferenceId_ = jobReferenceId; + for(int i = 0; i!= jobReferenceId.size(); i++) + setParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); +} + +std::string SuspendJobsRequest::getGroupId()const +{ + return groupId_; +} + +void SuspendJobsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string SuspendJobsRequest::getScenarioId()const +{ + return scenarioId_; +} + +void SuspendJobsRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/SuspendJobsResult.cc b/ccc/src/model/SuspendJobsResult.cc new file mode 100644 index 000000000..6b77df37f --- /dev/null +++ b/ccc/src/model/SuspendJobsResult.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; + +SuspendJobsResult::SuspendJobsResult() : + ServiceResult() +{} + +SuspendJobsResult::SuspendJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SuspendJobsResult::~SuspendJobsResult() +{} + +void SuspendJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SuspendJobsResult::getMessage()const +{ + return message_; +} + +int SuspendJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SuspendJobsResult::getCode()const +{ + return code_; +} + +bool SuspendJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/TwoPartiesCallRequest.cc b/ccc/src/model/TwoPartiesCallRequest.cc new file mode 100644 index 000000000..f1c0cc470 --- /dev/null +++ b/ccc/src/model/TwoPartiesCallRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::TwoPartiesCallRequest; + +TwoPartiesCallRequest::TwoPartiesCallRequest() : + RpcServiceRequest("ccc", "2017-07-05", "TwoPartiesCall") +{} + +TwoPartiesCallRequest::~TwoPartiesCallRequest() +{} + +std::string TwoPartiesCallRequest::getCaller()const +{ + return caller_; +} + +void TwoPartiesCallRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setParameter("Caller", caller); +} + +std::string TwoPartiesCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void TwoPartiesCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string TwoPartiesCallRequest::getCalleeCustomer()const +{ + return calleeCustomer_; +} + +void TwoPartiesCallRequest::setCalleeCustomer(const std::string& calleeCustomer) +{ + calleeCustomer_ = calleeCustomer; + setParameter("CalleeCustomer", calleeCustomer); +} + +std::string TwoPartiesCallRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void TwoPartiesCallRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string TwoPartiesCallRequest::getCalleeAgent()const +{ + return calleeAgent_; +} + +void TwoPartiesCallRequest::setCalleeAgent(const std::string& calleeAgent) +{ + calleeAgent_ = calleeAgent; + setParameter("CalleeAgent", calleeAgent); +} + diff --git a/ccc/src/model/TwoPartiesCallResult.cc b/ccc/src/model/TwoPartiesCallResult.cc new file mode 100644 index 000000000..e3092a323 --- /dev/null +++ b/ccc/src/model/TwoPartiesCallResult.cc @@ -0,0 +1,101 @@ +/* + * 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; + +TwoPartiesCallResult::TwoPartiesCallResult() : + ServiceResult() +{} + +TwoPartiesCallResult::TwoPartiesCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TwoPartiesCallResult::~TwoPartiesCallResult() +{} + +void TwoPartiesCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["StatusCode"].isNull()) + statusCode_ = value["StatusCode"].asString(); + if(!value["StatusDesc"].isNull()) + statusDesc_ = value["StatusDesc"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["TimeStamp"].isNull()) + timeStamp_ = value["TimeStamp"].asString(); + +} + +std::string TwoPartiesCallResult::getStatusDesc()const +{ + return statusDesc_; +} + +std::string TwoPartiesCallResult::getTaskId()const +{ + return taskId_; +} + +std::string TwoPartiesCallResult::getMessage()const +{ + return message_; +} + +int TwoPartiesCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string TwoPartiesCallResult::getCode()const +{ + return code_; +} + +std::string TwoPartiesCallResult::getStatusCode()const +{ + return statusCode_; +} + +bool TwoPartiesCallResult::getSuccess()const +{ + return success_; +} + +std::string TwoPartiesCallResult::getTimeStamp()const +{ + return timeStamp_; +} +