From 9ae3c0fe886d7879dc3063cc3268b1e72c3b22ae Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 19 Mar 2021 06:52:01 +0000 Subject: [PATCH] Export new API. --- CHANGELOG | 3 + VERSION | 2 +- ccc/CMakeLists.txt | 764 +-- ccc/include/alibabacloud/ccc/CCCClient.h | 1528 ++---- .../ccc/model/AbortPredictiveJobsRequest.h | 60 - .../ccc/model/AbortPredictiveJobsResult.h | 57 - .../ccc/model/AddAgentDeviceRequest.h | 63 - .../ccc/model/AddAgentDeviceResult.h | 59 - .../ccc/model/AddBulkPhoneNumbersRequest.h | 63 - .../ccc/model/AddBulkPhoneNumbersResult.h | 92 - .../AddJobsToPredictiveJobGroupRequest.h | 60 - .../model/AddJobsToPredictiveJobGroupResult.h | 57 - .../ccc/model/AddPhoneNumberResult.h | 80 - .../ccc/model/AddPhoneTagsRequest.h | 75 - .../ccc/model/AddPhoneTagsResult.h | 57 - .../ccc/model/AnswerCallRequest.h | 57 + .../alibabacloud/ccc/model/AnswerCallResult.h | 102 + .../ccc/model/AssignJobsRequest.h | 63 - .../alibabacloud/ccc/model/AssignJobsResult.h | 59 - .../ccc/model/AssignUsersRequest.h | 63 - .../ccc/model/AssignUsersResult.h | 57 - .../ccc/model/BargeInCallRequest.h | 63 + .../ccc/model/BargeInCallResult.h | 105 + .../ccc/model/BlindTransferRequest.h | 66 + .../ccc/model/BlindTransferResult.h | 103 + .../model/CallOnlinePrivacyNumberRequest.h | 57 - .../ccc/model/CancelAttendedTransferRequest.h | 57 + .../ccc/model/CancelAttendedTransferResult.h | 104 + .../ccc/model/CancelJobsRequest.h | 63 - .../alibabacloud/ccc/model/CancelJobsResult.h | 57 - ...GroupRequest.h => ChangeWorkModeRequest.h} | 24 +- ...oneTagsResult.h => ChangeWorkModeResult.h} | 33 +- .../ccc/model/CheckNumberAvaliableResult.h | 71 - ...mitContactFlowVersionModificationRequest.h | 60 - ...mmitContactFlowVersionModificationResult.h | 71 - .../model/CompleteAttendedTransferRequest.h | 57 + .../model/CompleteAttendedTransferResult.h | 105 + .../ccc/model/CreateBatchJobsRequest.h | 69 - .../ccc/model/CreateBatchJobsResult.h | 93 - .../ccc/model/CreateCabInstanceRequest.h | 57 - .../ccc/model/CreateContactFlowRequest.h | 66 - .../ccc/model/CreateContactFlowResult.h | 94 - .../ccc/model/CreateFaultRequest.h | 108 - .../ccc/model/CreateFaultResult.h | 57 - .../ccc/model/CreateInstanceRequest.h | 78 - .../ccc/model/CreateInstanceResult.h | 109 - .../ccc/model/CreateJobGroupRequest.h | 63 - .../ccc/model/CreateJobGroupResult.h | 93 - .../ccc/model/CreateMediaRequest.h | 75 - .../model/CreatePredictiveJobGroupRequest.h | 72 - .../model/CreateScenarioFromTemplateRequest.h | 60 - .../model/CreateScenarioFromTemplateResult.h | 113 - .../ccc/model/CreateScenarioRequest.h | 63 - .../ccc/model/CreateScenarioResult.h | 113 - .../ccc/model/CreateSkillGroupRequest.h | 72 - .../ccc/model/CreateSurveyRequest.h | 75 - .../ccc/model/CreateSurveyResult.h | 84 - .../ccc/model/CreateUserRequest.h | 75 - .../alibabacloud/ccc/model/CreateUserResult.h | 59 - .../ccc/model/CreateVoiceAppraiseRequest.h | 60 - .../ccc/model/CreateVoiceAppraiseResult.h | 57 - .../ccc/model/DeleteInstanceRequest.h | 51 - .../ccc/model/DeleteJobGroupResult.h | 57 - .../ccc/model/DeleteMediaRequest.h | 54 - .../ccc/model/DeleteMediaResult.h | 57 - .../ccc/model/DeleteSkillGroupRequest.h | 54 - .../ccc/model/DeleteSkillGroupResult.h | 57 - .../ccc/model/DeleteSurveyRequest.h | 54 - .../ccc/model/DeleteSurveyResult.h | 57 - .../alibabacloud/ccc/model/DialExRequest.h | 66 - .../alibabacloud/ccc/model/DialExResult.h | 65 - .../alibabacloud/ccc/model/DialogueRequest.h | 78 - .../alibabacloud/ccc/model/DialogueResult.h | 66 - .../ccc/model/DisableTrunkProvidersRequest.h | 51 - .../model/DownloadAllTypeRecordingRequest.h | 57 - .../model/DownloadAllTypeRecordingResult.h | 64 - .../ccc/model/DownloadCabRecordingRequest.h | 51 - .../ccc/model/DownloadCabRecordingResult.h | 64 - .../DownloadOriginalStatisticsReportRequest.h | 51 - .../DownloadOriginalStatisticsReportResult.h | 63 - .../ccc/model/DownloadRecordingRequest.h | 57 - .../ccc/model/DownloadRecordingResult.h | 64 - .../DownloadUnreachableContactsRequest.h | 51 - .../model/DownloadUnreachableContactsResult.h | 63 - .../alibabacloud/ccc/model/FindUsersRequest.h | 60 - .../alibabacloud/ccc/model/FindUsersResult.h | 104 - .../GenerateAgentStatisticReportRequest.h | 66 - .../GenerateAgentStatisticReportResult.h | 144 - .../ccc/model/GetAgentDataResult.h | 144 - .../GetCallMeasureSummaryReportRequest.h | 66 - .../model/GetCallMeasureSummaryReportResult.h | 89 - .../GetConversationDetailByContactIdRequest.h | 60 - .../GetConversationDetailByContactIdResult.h | 74 - .../ccc/model/GetConversationListRequest.h | 51 - .../ccc/model/GetConversationListResult.h | 72 - .../ccc/model/GetInstanceRequest.h | 51 - .../ccc/model/GetInstanceResult.h | 105 - .../ccc/model/GetInstanceStateRequest.h | 51 - .../ccc/model/GetInstanceStateResult.h | 68 - ...etInstanceSummaryReportByIntervalRequest.h | 66 - ...GetInstanceSummaryReportByIntervalResult.h | 136 - .../model/GetInstanceSummaryReportRequest.h | 63 - .../model/GetInstanceSummaryReportResult.h | 130 - ...nstanceSummaryReportSinceMidnightRequest.h | 57 - ...InstanceSummaryReportSinceMidnightResult.h | 131 - .../ccc/model/GetJobDataUploadParamsRequest.h | 51 - .../ccc/model/GetJobDataUploadParamsResult.h | 68 - .../ccc/model/GetJobFileUploadUrlRequest.h | 51 - .../ccc/model/GetJobFileUploadUrlResult.h | 61 - .../ccc/model/GetJobGroupRequest.h | 51 - .../ccc/model/GetJobGroupResult.h | 109 - .../ccc/model/GetJobListRequest.h | 63 - .../alibabacloud/ccc/model/GetJobListResult.h | 109 - .../alibabacloud/ccc/model/GetJobResult.h | 137 - .../ccc/model/GetJobStatusByCallIdRequest.h | 51 - .../ccc/model/GetJobStatusByCallIdResult.h | 143 - .../GetJobTemplateDownloadParamsRequest.h | 51 - .../GetJobTemplateDownloadParamsResult.h | 63 - ...UserRequest.h => GetLoginDetailsRequest.h} | 21 +- ...NumberResult.h => GetLoginDetailsResult.h} | 30 +- ...owsRequest.h => GetMonoRecordingRequest.h} | 18 +- ...GroupResult.h => GetMonoRecordingResult.h} | 25 +- ...st.h => GetMultiChannelRecordingRequest.h} | 21 +- ...ult.h => GetMultiChannelRecordingResult.h} | 25 +- ...foRequest.h => GetNumberLocationRequest.h} | 15 +- ...mberResult.h => GetNumberLocationResult.h} | 24 +- .../ccc/model/GetNumberRegionInfoResult.h | 63 - .../model/GetRecordOssUploadParamRequest.h | 54 - .../ccc/model/GetRecordOssUploadParamResult.h | 71 - .../ccc/model/GetRoutePointResult.h | 63 - .../ccc/model/GetScenarioRequest.h | 51 - .../ccc/model/GetScenarioResult.h | 113 - .../ccc/model/GetServiceExtensionsRequest.h | 54 - .../ccc/model/GetServiceExtensionsResult.h | 64 - .../ccc/model/GetSmsConfigRequest.h | 54 - .../ccc/model/GetSmsConfigResult.h | 72 - .../alibabacloud/ccc/model/GetSurveyRequest.h | 54 - .../alibabacloud/ccc/model/GetSurveyResult.h | 84 - .../ccc/model/GetTaskListResult.h | 100 - ...sRequest.h => GetTurnCredentialsRequest.h} | 15 +- ...alsResult.h => GetTurnCredentialsResult.h} | 23 +- ...stRequest.h => GetTurnServerListRequest.h} | 9 +- ...ListResult.h => GetTurnServerListResult.h} | 16 +- .../ccc/model/GetUserByExtensionRequest.h | 51 - .../ccc/model/GetUserByExtensionResult.h | 97 - .../alibabacloud/ccc/model/GetUserResult.h | 96 - .../alibabacloud/ccc/model/HoldCallRequest.h | 63 + .../alibabacloud/ccc/model/HoldCallResult.h | 103 + .../ccc/model/InflightTaskTimeoutRequest.h | 54 - .../ccc/model/InflightTaskTimeoutResult.h | 57 - .../model/InitiateAttendedTransferRequest.h | 66 + .../model/InitiateAttendedTransferResult.h | 105 + ...paringRequest.h => InterceptCallRequest.h} | 27 +- .../ccc/model/InterceptCallResult.h | 105 + .../ccc/model/LaunchAppraiseRequest.h | 54 - .../ccc/model/LaunchAppraiseResult.h | 57 - ...equest.h => LaunchAuthenticationRequest.h} | 30 +- .../ccc/model/LaunchAuthenticationResult.h | 105 + .../model/LaunchShortMessageAppraiseRequest.h | 63 - .../model/LaunchShortMessageAppraiseResult.h | 57 - ...tePointRequest.h => LaunchSurveyRequest.h} | 24 +- .../ccc/model/LaunchSurveyResult.h | 105 + .../ccc/model/ListAgentDevicesRequest.h | 60 - .../ccc/model/ListAgentEventsRequest.h | 63 - .../ccc/model/ListAgentStateLogsRequest.h | 66 - .../ccc/model/ListAgentStateLogsResult.h | 78 - ...ListAgentSummaryReportsByIntervalRequest.h | 72 - .../ListAgentSummaryReportsByIntervalResult.h | 143 - .../model/ListAgentSummaryReportsRequest.h | 69 - ...tAgentSummaryReportsSinceMidnightRequest.h | 63 - ...stAgentSummaryReportsSinceMidnightResult.h | 136 - ...ListBasicStatisticsReportSubItemsRequest.h | 60 - .../ListBasicStatisticsReportSubItemsResult.h | 79 - ...equest.h => ListBriefSkillGroupsRequest.h} | 18 +- ...sResult.h => ListBriefSkillGroupsResult.h} | 31 +- .../ccc/model/ListCallDetailRecordsRequest.h | 54 +- .../ccc/model/ListCallDetailRecordsResult.h | 37 +- .../ListCallEventDetailByContactIdRequest.h | 54 - .../ListCallEventDetailByContactIdResult.h | 88 - .../ListCallMeasureSummaryReportsRequest.h | 51 - .../ListCallMeasureSummaryReportsResult.h | 69 - ...nfigRequest.h => ListConfigItemsRequest.h} | 18 +- ...ConfigResult.h => ListConfigItemsResult.h} | 25 +- .../ccc/model/ListConfigRequest.h | 54 - .../alibabacloud/ccc/model/ListConfigResult.h | 64 - .../ccc/model/ListContactFlowsResult.h | 92 - ...TaskListRequest.h => ListDevicesRequest.h} | 18 +- ...reateMediaResult.h => ListDevicesResult.h} | 37 +- ...t.h => ListHistoricalAgentReportRequest.h} | 21 +- ...lt.h => ListHistoricalAgentReportResult.h} | 97 +- .../ccc/model/ListInstancesOfUserRequest.h | 48 - .../ccc/model/ListInstancesOfUserResult.h | 105 - .../ccc/model/ListIvrTrackingDetailRequest.h | 72 - .../ccc/model/ListIvrTrackingDetailResult.h | 83 - .../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/ListMediasRequest.h | 60 - .../alibabacloud/ccc/model/ListMediasResult.h | 78 - ...t.h => ListOutboundNumbersOfUserRequest.h} | 18 +- ...lt.h => ListOutboundNumbersOfUserResult.h} | 32 +- .../ListOutboundPhoneNumberOfUserResult.h | 90 - .../ccc/model/ListPhoneNumbersRequest.h | 54 - .../ccc/model/ListPhoneNumbersResult.h | 104 - .../ccc/model/ListPhoneTagsRequest.h | 66 - .../ccc/model/ListPhoneTagsResult.h | 83 - ...equest.h => ListPrivilegesOfUserRequest.h} | 12 +- ...sResult.h => ListPrivilegesOfUserResult.h} | 27 +- .../ccc/model/ListRealTimeAgentRequest.h | 51 - .../ccc/model/ListRealTimeAgentResult.h | 82 - ...est.h => ListRealtimeAgentStatesRequest.h} | 30 +- ...sult.h => ListRealtimeAgentStatesResult.h} | 28 +- ...h => ListRecentCallDetailRecordsRequest.h} | 12 +- ....h => ListRecentCallDetailRecordsResult.h} | 38 +- .../ccc/model/ListRecentCallRecordsResult.h | 117 - .../model/ListRecordingOfDualTrackRequest.h | 75 - .../model/ListRecordingOfDualTrackResult.h | 82 - .../model/ListRecordingsByContactIdResult.h | 77 - .../ccc/model/ListRecordingsRequest.h | 72 - .../ccc/model/ListScenarioTemplatesRequest.h | 45 - .../ccc/model/ListScenarioTemplatesResult.h | 97 - .../ccc/model/ListScenariosResult.h | 113 - .../ccc/model/ListSkillGroupStatesRequest.h | 60 - ...killGroupSummaryReportsByIntervalRequest.h | 69 - ...SkillGroupSummaryReportsByIntervalResult.h | 146 - .../ListSkillGroupSummaryReportsRequest.h | 66 - .../ListSkillGroupSummaryReportsResult.h | 140 - ...lGroupSummaryReportsSinceMidnightRequest.h | 60 - ...llGroupSummaryReportsSinceMidnightResult.h | 141 - .../ccc/model/ListSkillGroupsOfUserResult.h | 88 - .../ccc/model/ListSkillGroupsRequest.h | 51 - .../ccc/model/ListSkillGroupsResult.h | 83 - ...quest.h => ListSkillLevelsOfUserRequest.h} | 27 +- ...Result.h => ListSkillLevelsOfUserResult.h} | 31 +- .../ccc/model/ListSurveysRequest.h | 51 - .../ccc/model/ListSurveysResult.h | 84 - .../ListTransferableSkillGroupsRequest.h | 51 - .../model/ListTransferableSkillGroupsResult.h | 71 - .../ccc/model/ListTrunkProvidersRequest.h | 48 - .../ccc/model/ListTrunkProvidersResult.h | 64 - .../ccc/model/ListTrunksOfSkillGroupRequest.h | 54 - .../ccc/model/ListTrunksOfSkillGroupResult.h | 64 - .../model/ListUnreachableContactsRequest.h | 57 - .../ccc/model/ListUnreachableContactsResult.h | 80 - .../ccc/model/ListUsersOfSkillGroupRequest.h | 60 - .../ccc/model/ListUsersOfSkillGroupResult.h | 111 - .../alibabacloud/ccc/model/ListUsersResult.h | 105 - .../ccc/model/ListVoiceAppraiseRequest.h | 51 - .../ccc/model/ListVoiceAppraiseResult.h | 91 - ...erAvaliableRequest.h => MakeCallRequest.h} | 30 +- .../alibabacloud/ccc/model/MakeCallResult.h | 100 + .../ccc/model/ModifyAgentDeviceRequest.h | 57 - .../ccc/model/ModifyAgentDeviceResult.h | 57 - .../ccc/model/ModifyCabInstanceRequest.h | 60 - .../ccc/model/ModifyCabInstanceResult.h | 69 - .../ccc/model/ModifyPhoneNumberRequest.h | 63 - .../ccc/model/ModifyPhoneNumberResult.h | 86 - .../ccc/model/ModifyPhoneTagsRequest.h | 57 - .../ccc/model/ModifyPhoneTagsResult.h | 57 - .../ModifyPrimaryTrunksOfSkillGroupRequest.h | 57 - .../ModifyPrimaryTrunksOfSkillGroupResult.h | 57 - .../ModifyPrivacyNumberCallDetailRequest.h | 57 - .../ModifyPrivacyNumberCallDetailResult.h | 57 - .../ccc/model/ModifyScenarioRequest.h | 60 - .../ccc/model/ModifyScenarioResult.h | 113 - .../ccc/model/ModifySkillGroupOfUserRequest.h | 63 - .../ccc/model/ModifySkillGroupOfUserResult.h | 57 - .../ModifySkillGroupOutboundNumbersRequest.h | 60 - .../ModifySkillGroupOutboundNumbersResult.h | 57 - .../ccc/model/ModifySkillGroupRequest.h | 75 - .../ccc/model/ModifySkillGroupResult.h | 57 - .../ccc/model/ModifySurveyRequest.h | 81 - .../ccc/model/ModifySurveyResult.h | 84 - .../ccc/model/ModifyUserRequest.h | 75 - .../alibabacloud/ccc/model/ModifyUserResult.h | 57 - .../ccc/model/MonitorCallRequest.h | 60 + .../ccc/model/MonitorCallResult.h | 105 + .../alibabacloud/ccc/model/MuteCallRequest.h | 60 + .../alibabacloud/ccc/model/MuteCallResult.h | 104 + .../model/PickGlobalOutboundNumbersRequest.h | 63 - .../model/PickGlobalOutboundNumbersResult.h | 76 - .../ccc/model/PickLocalNumberRequest.h | 57 - .../ccc/model/PickOutboundNumbersRequest.h | 15 +- .../ccc/model/PickOutboundNumbersResult.h | 8 +- ...nInfoRequest.h => PollUserStatusRequest.h} | 24 +- .../ccc/model/PollUserStatusResult.h | 106 + .../model/PublishContactFlowVersionRequest.h | 57 - .../model/PublishContactFlowVersionResult.h | 57 - .../model/PublishPredictiveJobGroupRequest.h | 54 - .../model/PublishPredictiveJobGroupResult.h | 57 - .../ccc/model/PublishSurveyRequest.h | 54 - .../ccc/model/PublishSurveyResult.h | 57 - ...TagsRequest.h => ReadyForServiceRequest.h} | 27 +- ...EventsResult.h => ReadyForServiceResult.h} | 43 +- .../ccc/model/RefreshTokenResult.h | 64 - .../ccc/model/RegisterDeviceRequest.h | 57 + ...nstanceResult.h => RegisterDeviceResult.h} | 18 +- .../ccc/model/ReleaseCallRequest.h | 60 + .../ccc/model/ReleaseCallResult.h | 98 + .../ccc/model/RemovePhoneNumberRequest.h | 54 - .../model/RemoveUsersFromSkillGroupRequest.h | 57 - .../model/RemoveUsersFromSkillGroupResult.h | 57 - .../ccc/model/RemoveUsersRequest.h | 54 - .../ccc/model/RemoveUsersResult.h | 57 - .../ccc/model/RequestLoginInfoResult.h | 80 - ...UserRequest.h => ResetAgentStateRequest.h} | 24 +- .../ccc/model/ResetAgentStateResult.h | 72 + .../ccc/model/ResetUserStatusRequest.h | 54 - .../ccc/model/ResetUserStatusResult.h | 57 - .../ccc/model/ResumeJobsRequest.h | 63 - .../alibabacloud/ccc/model/ResumeJobsResult.h | 57 - .../ccc/model/ResumePredictiveJobsRequest.h | 60 - .../ccc/model/ResumePredictiveJobsResult.h | 57 - ...{GetJobRequest.h => RetrieveCallRequest.h} | 21 +- .../ccc/model/RetrieveCallResult.h | 103 + .../ccc/model/SaveWebRTCStatsRequest.h | 75 - .../ccc/model/SaveWebRTCStatsResult.h | 59 - .../ccc/model/SendDtmfSignalingRequest.h | 63 + .../ccc/model/SendDtmfSignalingResult.h | 105 + .../model/SendPredefinedShortMessageRequest.h | 60 - .../model/SendPredefinedShortMessageResult.h | 59 - .../ccc/model/SignInGroupRequest.h | 57 + ...entDevicesResult.h => SignInGroupResult.h} | 40 +- ...shTokenRequest.h => SignOutGroupRequest.h} | 21 +- ...bInstanceResult.h => SignOutGroupResult.h} | 42 +- .../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/SubmitCabRecordingRequest.h | 60 - .../ccc/model/SubmitCabRecordingResult.h | 57 - .../ccc/model/SuspendJobsRequest.h | 63 - .../ccc/model/SuspendJobsResult.h | 57 - .../ccc/model/SuspendPredictiveJobsRequest.h | 60 - .../ccc/model/SuspendPredictiveJobsResult.h | 57 - ...{ListRolesRequest.h => TakeBreakRequest.h} | 24 +- .../alibabacloud/ccc/model/TakeBreakResult.h | 75 + .../ccc/model/TaskPreparingResult.h | 59 - .../ccc/model/UnmuteCallRequest.h | 60 + .../alibabacloud/ccc/model/UnmuteCallResult.h | 104 + ccc/src/CCCClient.cc | 4716 ++--------------- ccc/src/model/AbortPredictiveJobsRequest.cc | 86 - ccc/src/model/AbortPredictiveJobsResult.cc | 72 - ccc/src/model/AddAgentDeviceRequest.cc | 95 - ccc/src/model/AddAgentDeviceResult.cc | 79 - ccc/src/model/AddBulkPhoneNumbersRequest.cc | 99 - ccc/src/model/AddBulkPhoneNumbersResult.cc | 146 - .../AddJobsToPredictiveJobGroupRequest.cc | 86 - .../AddJobsToPredictiveJobGroupResult.cc | 72 - ccc/src/model/AddPhoneNumberRequest.cc | 84 - ccc/src/model/AddPhoneNumberResult.cc | 107 - ccc/src/model/AddPhoneTagsRequest.cc | 141 - ccc/src/model/AddPhoneTagsResult.cc | 72 - ccc/src/model/AnswerCallRequest.cc | 73 + ccc/src/model/AnswerCallResult.cc | 144 + ccc/src/model/AssignJobsRequest.cc | 99 - ccc/src/model/AssignJobsResult.cc | 79 - ccc/src/model/AssignUsersRequest.cc | 103 - ccc/src/model/AssignUsersResult.cc | 72 - ccc/src/model/BargeInCallRequest.cc | 95 + ccc/src/model/BargeInCallResult.cc | 150 + ccc/src/model/BlindTransferRequest.cc | 106 + ccc/src/model/BlindTransferResult.cc | 146 + .../model/CallOnlinePrivacyNumberRequest.cc | 73 - .../model/CallOnlinePrivacyNumberResult.cc | 88 - .../model/CancelAttendedTransferRequest.cc | 73 + ccc/src/model/CancelAttendedTransferResult.cc | 148 + ccc/src/model/CancelJobsRequest.cc | 99 - ccc/src/model/CancelJobsResult.cc | 72 - ccc/src/model/ChangeWorkModeRequest.cc | 73 + ccc/src/model/ChangeWorkModeResult.cc | 100 + ccc/src/model/CheckNumberAvaliableRequest.cc | 73 - ccc/src/model/CheckNumberAvaliableResult.cc | 92 - ...itContactFlowVersionModificationRequest.cc | 84 - ...mitContactFlowVersionModificationResult.cc | 96 - .../model/CompleteAttendedTransferRequest.cc | 73 + .../model/CompleteAttendedTransferResult.cc | 150 + ccc/src/model/CreateBatchJobsRequest.cc | 119 - ccc/src/model/CreateBatchJobsResult.cc | 133 - ccc/src/model/CreateCabInstanceRequest.cc | 73 - ccc/src/model/CreateCabInstanceResult.cc | 92 - ccc/src/model/CreateContactFlowRequest.cc | 106 - ccc/src/model/CreateContactFlowResult.cc | 138 - ccc/src/model/CreateFaultRequest.cc | 260 - ccc/src/model/CreateFaultResult.cc | 72 - ccc/src/model/CreateInstanceRequest.cc | 156 - ccc/src/model/CreateInstanceResult.cc | 165 - ccc/src/model/CreateJobGroupRequest.cc | 97 - ccc/src/model/CreateJobGroupResult.cc | 133 - ccc/src/model/CreateMediaRequest.cc | 139 - ccc/src/model/CreateMediaResult.cc | 90 - .../model/CreatePredictiveJobGroupRequest.cc | 130 - .../CreateScenarioFromTemplateRequest.cc | 84 - .../model/CreateScenarioFromTemplateResult.cc | 166 - ccc/src/model/CreateScenarioRequest.cc | 97 - ccc/src/model/CreateScenarioResult.cc | 166 - ccc/src/model/CreateSkillGroupRequest.cc | 134 - ccc/src/model/CreateSkillGroupResult.cc | 79 - ccc/src/model/CreateSurveyRequest.cc | 139 - ccc/src/model/CreateSurveyResult.cc | 108 - ccc/src/model/CreateUserRequest.cc | 145 - ccc/src/model/CreateUserResult.cc | 79 - ccc/src/model/CreateVoiceAppraiseRequest.cc | 84 - ccc/src/model/CreateVoiceAppraiseResult.cc | 72 - ccc/src/model/DeleteInstanceRequest.cc | 51 - ccc/src/model/DeleteJobGroupResult.cc | 72 - ccc/src/model/DeleteMediaRequest.cc | 62 - ccc/src/model/DeleteMediaResult.cc | 72 - ccc/src/model/DeletePhoneTagsRequest.cc | 64 - ccc/src/model/DeletePhoneTagsResult.cc | 72 - ccc/src/model/DeleteSkillGroupRequest.cc | 62 - ccc/src/model/DeleteSurveyRequest.cc | 62 - ccc/src/model/DeleteSurveyResult.cc | 72 - ccc/src/model/DialExRequest.cc | 106 - ccc/src/model/DialExResult.cc | 100 - ccc/src/model/DialogueRequest.cc | 150 - ccc/src/model/DialogueResult.cc | 86 - ccc/src/model/DisableTrunkProvidersRequest.cc | 53 - ccc/src/model/DisableTrunkProvidersResult.cc | 72 - .../model/DownloadAllTypeRecordingRequest.cc | 73 - .../model/DownloadAllTypeRecordingResult.cc | 87 - ccc/src/model/DownloadCabRecordingRequest.cc | 51 - ccc/src/model/DownloadCabRecordingResult.cc | 82 - ...DownloadOriginalStatisticsReportRequest.cc | 51 - .../DownloadOriginalStatisticsReportResult.cc | 80 - ccc/src/model/DownloadRecordingRequest.cc | 73 - ccc/src/model/DownloadRecordingResult.cc | 82 - .../DownloadUnreachableContactsRequest.cc | 51 - .../DownloadUnreachableContactsResult.cc | 80 - ccc/src/model/FindUsersRequest.cc | 84 - ccc/src/model/FindUsersResult.cc | 142 - .../GenerateAgentStatisticReportRequest.cc | 106 - .../GenerateAgentStatisticReportResult.cc | 219 - ccc/src/model/GetAgentDataRequest.cc | 106 - ccc/src/model/GetAgentDataResult.cc | 219 - .../GetCallMeasureSummaryReportRequest.cc | 106 - .../GetCallMeasureSummaryReportResult.cc | 126 - ccc/src/model/GetConfigRequest.cc | 84 - ccc/src/model/GetConfigResult.cc | 82 - ...GetConversationDetailByContactIdRequest.cc | 84 - .../GetConversationDetailByContactIdResult.cc | 100 - ccc/src/model/GetConversationListRequest.cc | 51 - ccc/src/model/GetConversationListResult.cc | 101 - ccc/src/model/GetInstanceRequest.cc | 51 - ccc/src/model/GetInstanceResult.cc | 153 - ccc/src/model/GetInstanceStateRequest.cc | 51 - ccc/src/model/GetInstanceStateResult.cc | 88 - ...tInstanceSummaryReportByIntervalRequest.cc | 106 - ...etInstanceSummaryReportByIntervalResult.cc | 203 - .../model/GetInstanceSummaryReportRequest.cc | 95 - .../model/GetInstanceSummaryReportResult.cc | 193 - ...stanceSummaryReportSinceMidnightRequest.cc | 73 - ...nstanceSummaryReportSinceMidnightResult.cc | 195 - ccc/src/model/GetJobDataUploadParamsResult.cc | 90 - ccc/src/model/GetJobFileUploadUrlRequest.cc | 51 - ccc/src/model/GetJobFileUploadUrlResult.cc | 86 - ccc/src/model/GetJobGroupRequest.cc | 51 - ccc/src/model/GetJobGroupResult.cc | 156 - ccc/src/model/GetJobListRequest.cc | 95 - ccc/src/model/GetJobListResult.cc | 165 - ccc/src/model/GetJobResult.cc | 210 - ccc/src/model/GetJobStatusByCallIdRequest.cc | 51 - ccc/src/model/GetJobStatusByCallIdResult.cc | 222 - .../GetJobTemplateDownloadParamsRequest.cc | 51 - .../GetJobTemplateDownloadParamsResult.cc | 80 - ...ioRequest.cc => GetLoginDetailsRequest.cc} | 36 +- ccc/src/model/GetLoginDetailsResult.cc | 93 + ...sRequest.cc => GetMonoRecordingRequest.cc} | 36 +- ...oupResult.cc => GetMonoRecordingResult.cc} | 37 +- ....cc => GetMultiChannelRecordingRequest.cc} | 36 +- ...t.cc => GetMultiChannelRecordingResult.cc} | 44 +- ...Request.cc => GetNumberLocationRequest.cc} | 36 +- ...erResult.cc => GetNumberLocationResult.cc} | 39 +- ccc/src/model/GetNumberRegionInfoRequest.cc | 62 - ccc/src/model/GetNumberRegionInfoResult.cc | 77 - .../model/GetRecordOssUploadParamRequest.cc | 62 - .../model/GetRecordOssUploadParamResult.cc | 121 - ccc/src/model/GetRoutePointRequest.cc | 62 - ccc/src/model/GetRoutePointResult.cc | 93 - ccc/src/model/GetScenarioResult.cc | 166 - ccc/src/model/GetServiceExtensionsRequest.cc | 62 - ccc/src/model/GetServiceExtensionsResult.cc | 87 - ccc/src/model/GetSmsConfigRequest.cc | 64 - ccc/src/model/GetSmsConfigResult.cc | 103 - ccc/src/model/GetSurveyRequest.cc | 62 - ccc/src/model/GetSurveyResult.cc | 108 - ccc/src/model/GetTURNCredentialsRequest.cc | 62 - ccc/src/model/GetTURNServerListRequest.cc | 51 - ccc/src/model/GetTURNServerListResult.cc | 79 - ccc/src/model/GetTaskListResult.cc | 148 - ...equest.cc => GetTurnCredentialsRequest.cc} | 35 +- ...sResult.cc => GetTurnCredentialsResult.cc} | 59 +- ...Request.cc => GetTurnServerListRequest.cc} | 14 +- ...ceResult.cc => GetTurnServerListResult.cc} | 42 +- ccc/src/model/GetUserByExtensionRequest.cc | 51 - ccc/src/model/GetUserByExtensionResult.cc | 130 - ccc/src/model/GetUserResult.cc | 128 - ccc/src/model/HoldCallRequest.cc | 95 + ccc/src/model/HoldCallResult.cc | 146 + ccc/src/model/InflightTaskTimeoutRequest.cc | 62 - ccc/src/model/InflightTaskTimeoutResult.cc | 72 - .../model/InitiateAttendedTransferRequest.cc | 106 + .../model/InitiateAttendedTransferResult.cc | 150 + ccc/src/model/InterceptCallRequest.cc | 95 + ccc/src/model/InterceptCallResult.cc | 150 + ccc/src/model/LaunchAppraiseRequest.cc | 62 - ccc/src/model/LaunchAppraiseResult.cc | 72 - ccc/src/model/LaunchAuthenticationRequest.cc | 84 + ccc/src/model/LaunchAuthenticationResult.cc | 150 + .../LaunchShortMessageAppraiseRequest.cc | 95 - .../model/LaunchShortMessageAppraiseResult.cc | 72 - ccc/src/model/LaunchSurveyRequest.cc | 84 + ccc/src/model/LaunchSurveyResult.cc | 150 + ccc/src/model/ListAgentDevicesRequest.cc | 84 - ccc/src/model/ListAgentDevicesResult.cc | 99 - ccc/src/model/ListAgentEventsRequest.cc | 99 - ccc/src/model/ListAgentEventsResult.cc | 103 - ccc/src/model/ListAgentStateLogsRequest.cc | 106 - ccc/src/model/ListAgentStateLogsResult.cc | 108 - ccc/src/model/ListAgentStatesRequest.cc | 106 - ccc/src/model/ListAgentStatesResult.cc | 104 - ...istAgentSummaryReportsByIntervalRequest.cc | 128 - ...ListAgentSummaryReportsByIntervalResult.cc | 215 - .../model/ListAgentSummaryReportsRequest.cc | 117 - .../model/ListAgentSummaryReportsResult.cc | 205 - ...AgentSummaryReportsSinceMidnightRequest.cc | 95 - ...tAgentSummaryReportsSinceMidnightResult.cc | 203 - ...istBasicStatisticsReportSubItemsRequest.cc | 84 - ...ListBasicStatisticsReportSubItemsResult.cc | 108 - ...uest.cc => ListBriefSkillGroupsRequest.cc} | 32 +- ccc/src/model/ListBriefSkillGroupsResult.cc | 97 + ccc/src/model/ListCallDetailRecordsRequest.cc | 176 +- ccc/src/model/ListCallDetailRecordsResult.cc | 133 +- .../ListCallEventDetailByContactIdRequest.cc | 62 - .../ListCallEventDetailByContactIdResult.cc | 121 - .../ListCallMeasureSummaryReportsRequest.cc | 51 - .../ListCallMeasureSummaryReportsResult.cc | 97 - ccc/src/model/ListConfigItemsRequest.cc | 62 + ccc/src/model/ListConfigItemsResult.cc | 94 + ccc/src/model/ListConfigRequest.cc | 64 - ccc/src/model/ListConfigResult.cc | 87 - ccc/src/model/ListContactFlowsResult.cc | 139 - ...skListRequest.cc => ListDevicesRequest.cc} | 24 +- ccc/src/model/ListDevicesResult.cc | 98 + .../model/ListHistoricalAgentReportRequest.cc | 95 + .../model/ListHistoricalAgentReportResult.cc | 200 + ccc/src/model/ListInstancesOfUserRequest.cc | 40 - ccc/src/model/ListInstancesOfUserResult.cc | 158 - ccc/src/model/ListIvrTrackingDetailRequest.cc | 128 - ccc/src/model/ListIvrTrackingDetailResult.cc | 118 - ccc/src/model/ListJobGroupsResult.cc | 168 - ccc/src/model/ListJobStatusRequest.cc | 139 - ccc/src/model/ListJobStatusResult.cc | 210 - ccc/src/model/ListJobsByGroupRequest.cc | 95 - ccc/src/model/ListJobsByGroupResult.cc | 165 - ccc/src/model/ListMediasRequest.cc | 84 - ccc/src/model/ListMediasResult.cc | 108 - .../model/ListOutboundNumbersOfUserRequest.cc | 84 + .../model/ListOutboundNumbersOfUserResult.cc | 89 + .../ListOutboundPhoneNumberOfUserRequest.cc | 84 - .../ListOutboundPhoneNumberOfUserResult.cc | 136 - ccc/src/model/ListPhoneNumbersRequest.cc | 62 - ccc/src/model/ListPhoneNumbersResult.cc | 151 - ccc/src/model/ListPhoneTagsRequest.cc | 108 - ccc/src/model/ListPhoneTagsResult.cc | 119 - ...uest.cc => ListPrivilegesOfUserRequest.cc} | 25 +- ...esult.cc => ListPrivilegesOfUserResult.cc} | 40 +- ccc/src/model/ListRealTimeAgentRequest.cc | 51 - ccc/src/model/ListRealTimeAgentResult.cc | 114 - .../model/ListRealtimeAgentStatesRequest.cc | 106 + .../model/ListRealtimeAgentStatesResult.cc | 102 + ... => ListRecentCallDetailRecordsRequest.cc} | 32 +- .../ListRecentCallDetailRecordsResult.cc | 105 + ccc/src/model/ListRecentCallRecordsRequest.cc | 106 - ccc/src/model/ListRecentCallRecordsResult.cc | 182 - .../model/ListRecordingOfDualTrackRequest.cc | 139 - .../model/ListRecordingOfDualTrackResult.cc | 116 - .../model/ListRecordingsByContactIdRequest.cc | 62 - .../model/ListRecordingsByContactIdResult.cc | 113 - ccc/src/model/ListRecordingsRequest.cc | 128 - ccc/src/model/ListRecordingsResult.cc | 116 - ccc/src/model/ListRolesRequest.cc | 51 - ccc/src/model/ListRolesResult.cc | 91 - ccc/src/model/ListScenarioTemplatesRequest.cc | 29 - ccc/src/model/ListScenarioTemplatesResult.cc | 140 - ccc/src/model/ListScenariosResult.cc | 171 - ccc/src/model/ListSkillGroupStatesRequest.cc | 84 - ccc/src/model/ListSkillGroupStatesResult.cc | 110 - ...illGroupSummaryReportsByIntervalRequest.cc | 117 - ...killGroupSummaryReportsByIntervalResult.cc | 221 - .../ListSkillGroupSummaryReportsRequest.cc | 106 - .../ListSkillGroupSummaryReportsResult.cc | 211 - ...GroupSummaryReportsSinceMidnightRequest.cc | 84 - ...lGroupSummaryReportsSinceMidnightResult.cc | 213 - ccc/src/model/ListSkillGroupsOfUserResult.cc | 126 - ccc/src/model/ListSkillGroupsRequest.cc | 51 - ccc/src/model/ListSkillGroupsResult.cc | 123 - ccc/src/model/ListSkillLevelsOfUserRequest.cc | 95 + ccc/src/model/ListSkillLevelsOfUserResult.cc | 89 + ccc/src/model/ListSurveysRequest.cc | 51 - ccc/src/model/ListSurveysResult.cc | 113 - .../ListTransferableSkillGroupsRequest.cc | 51 - .../ListTransferableSkillGroupsResult.cc | 101 - ccc/src/model/ListTrunkProvidersRequest.cc | 40 - ccc/src/model/ListTrunkProvidersResult.cc | 87 - .../model/ListTrunksOfSkillGroupRequest.cc | 62 - ccc/src/model/ListTrunksOfSkillGroupResult.cc | 87 - .../model/ListUnreachableContactsRequest.cc | 73 - .../model/ListUnreachableContactsResult.cc | 110 - ccc/src/model/ListUsersOfSkillGroupRequest.cc | 84 - ccc/src/model/ListUsersOfSkillGroupResult.cc | 154 - ccc/src/model/ListUsersResult.cc | 144 - ccc/src/model/ListVoiceAppraiseRequest.cc | 51 - ccc/src/model/ListVoiceAppraiseResult.cc | 135 - ccc/src/model/MakeCallRequest.cc | 95 + ccc/src/model/MakeCallResult.cc | 140 + ccc/src/model/ModifyAgentDeviceRequest.cc | 73 - ccc/src/model/ModifyCabInstanceRequest.cc | 84 - ccc/src/model/ModifyCabInstanceResult.cc | 92 - ccc/src/model/ModifyPhoneNumberRequest.cc | 97 - ccc/src/model/ModifyPhoneNumberResult.cc | 117 - ccc/src/model/ModifyPhoneTagsRequest.cc | 75 - ccc/src/model/ModifyPhoneTagsResult.cc | 72 - .../ModifyPrimaryTrunksOfSkillGroupRequest.cc | 75 - .../ModifyPrimaryTrunksOfSkillGroupResult.cc | 72 - .../ModifyPrivacyNumberCallDetailRequest.cc | 73 - .../ModifyPrivacyNumberCallDetailResult.cc | 72 - ccc/src/model/ModifyScenarioRequest.cc | 84 - ccc/src/model/ModifyScenarioResult.cc | 166 - .../model/ModifySkillGroupOfUserRequest.cc | 101 - ccc/src/model/ModifySkillGroupOfUserResult.cc | 72 - .../ModifySkillGroupOutboundNumbersRequest.cc | 86 - .../ModifySkillGroupOutboundNumbersResult.cc | 72 - ccc/src/model/ModifySkillGroupRequest.cc | 145 - ccc/src/model/ModifySkillGroupResult.cc | 72 - ccc/src/model/ModifySurveyRequest.cc | 161 - ccc/src/model/ModifySurveyResult.cc | 108 - ccc/src/model/ModifyUserRequest.cc | 145 - ccc/src/model/ModifyUserResult.cc | 72 - ccc/src/model/MonitorCallRequest.cc | 84 + ccc/src/model/MonitorCallResult.cc | 150 + ccc/src/model/MuteCallRequest.cc | 84 + ccc/src/model/MuteCallResult.cc | 148 + .../model/PickGlobalOutboundNumbersRequest.cc | 97 - .../model/PickGlobalOutboundNumbersResult.cc | 97 - ccc/src/model/PickLocalNumberRequest.cc | 75 - ccc/src/model/PickLocalNumberResult.cc | 85 - ccc/src/model/PickOutboundNumbersRequest.cc | 35 +- ccc/src/model/PickOutboundNumbersResult.cc | 49 +- ccc/src/model/PollUserStatusRequest.cc | 62 + ccc/src/model/PollUserStatusResult.cc | 152 + .../model/PublishContactFlowVersionRequest.cc | 73 - .../model/PublishContactFlowVersionResult.cc | 72 - .../model/PublishPredictiveJobGroupRequest.cc | 62 - .../model/PublishPredictiveJobGroupResult.cc | 72 - ccc/src/model/PublishSurveyRequest.cc | 62 - ccc/src/model/PublishSurveyResult.cc | 72 - ccc/src/model/ReadyForServiceRequest.cc | 73 + ccc/src/model/ReadyForServiceResult.cc | 100 + ccc/src/model/RefreshTokenRequest.cc | 51 - ccc/src/model/RefreshTokenResult.cc | 82 - ccc/src/model/RegisterDeviceRequest.cc | 73 + ...tanceResult.cc => RegisterDeviceResult.cc} | 35 +- ccc/src/model/ReleaseCallRequest.cc | 84 + ccc/src/model/ReleaseCallResult.cc | 136 + ccc/src/model/RemovePhoneNumberRequest.cc | 62 - .../model/RemoveUsersFromSkillGroupRequest.cc | 75 - .../model/RemoveUsersFromSkillGroupResult.cc | 72 - ccc/src/model/RemoveUsersRequest.cc | 64 - ccc/src/model/RemoveUsersResult.cc | 72 - ccc/src/model/RequestLoginInfoResult.cc | 112 - ccc/src/model/ResetAgentStateRequest.cc | 62 + ccc/src/model/ResetAgentStateResult.cc | 100 + ccc/src/model/ResetUserStatusRequest.cc | 64 - ccc/src/model/ResetUserStatusResult.cc | 72 - ccc/src/model/ResumeJobsRequest.cc | 99 - ccc/src/model/ResumeJobsResult.cc | 72 - ccc/src/model/ResumePredictiveJobsRequest.cc | 86 - ccc/src/model/RetrieveCallRequest.cc | 84 + ccc/src/model/RetrieveCallResult.cc | 146 + ccc/src/model/SaveWebRTCStatsRequest.cc | 139 - ccc/src/model/SaveWebRTCStatsResult.cc | 79 - ccc/src/model/SendDtmfSignalingRequest.cc | 95 + ccc/src/model/SendDtmfSignalingResult.cc | 150 + .../SendPredefinedShortMessageRequest.cc | 84 - .../model/SendPredefinedShortMessageResult.cc | 79 - ccc/src/model/SignInGroupRequest.cc | 73 + ccc/src/model/SignInGroupResult.cc | 100 + ...nInfoRequest.cc => SignOutGroupRequest.cc} | 46 +- ccc/src/model/SignOutGroupResult.cc | 106 + ccc/src/model/StartBack2BackCallRequest.cc | 95 - ccc/src/model/StartBack2BackCallResult.cc | 100 - ccc/src/model/StartJobRequest.cc | 97 - ccc/src/model/StartJobResult.cc | 87 - ccc/src/model/SubmitBatchJobsRequest.cc | 51 - ccc/src/model/SubmitBatchJobsResult.cc | 72 - ccc/src/model/SubmitCabRecordingRequest.cc | 84 - ccc/src/model/SubmitCabRecordingResult.cc | 72 - ccc/src/model/SuspendJobsRequest.cc | 99 - ccc/src/model/SuspendJobsResult.cc | 72 - ccc/src/model/SuspendPredictiveJobsRequest.cc | 86 - ccc/src/model/SuspendPredictiveJobsResult.cc | 72 - ...psOfUserRequest.cc => TakeBreakRequest.cc} | 45 +- ccc/src/model/TakeBreakResult.cc | 106 + ccc/src/model/TaskPreparingRequest.cc | 62 - ccc/src/model/TaskPreparingResult.cc | 79 - ccc/src/model/UnmuteCallRequest.cc | 84 + ccc/src/model/UnmuteCallResult.cc | 148 + 712 files changed, 11498 insertions(+), 53710 deletions(-) delete mode 100644 ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddPhoneTagsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/AnswerCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AnswerCallResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AssignJobsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/AssignUsersResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/BargeInCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/BargeInCallResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/BlindTransferRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/BlindTransferResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CancelAttendedTransferRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CancelAttendedTransferResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CancelJobsResult.h rename ccc/include/alibabacloud/ccc/model/{DeleteJobGroupRequest.h => ChangeWorkModeRequest.h} (61%) rename ccc/include/alibabacloud/ccc/model/{DeletePhoneTagsResult.h => ChangeWorkModeResult.h} (60%) delete mode 100644 ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateFaultResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateMediaRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateScenarioResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateUserRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateUserResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DialExRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DialExResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DialogueRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DialogueResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadRecordingRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/FindUsersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/FindUsersResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetConversationListRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetConversationListResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobListRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobListResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h rename ccc/include/alibabacloud/ccc/model/{GetUserRequest.h => GetLoginDetailsRequest.h} (73%) rename ccc/include/alibabacloud/ccc/model/{CallOnlinePrivacyNumberResult.h => GetLoginDetailsResult.h} (64%) rename ccc/include/alibabacloud/ccc/model/{ListContactFlowsRequest.h => GetMonoRecordingRequest.h} (70%) rename ccc/include/alibabacloud/ccc/model/{CreateSkillGroupResult.h => GetMonoRecordingResult.h} (69%) rename ccc/include/alibabacloud/ccc/model/{ListRecordingsByContactIdRequest.h => GetMultiChannelRecordingRequest.h} (68%) rename ccc/include/alibabacloud/ccc/model/{CreatePredictiveJobGroupResult.h => GetMultiChannelRecordingResult.h} (68%) rename ccc/include/alibabacloud/ccc/model/{GetNumberRegionInfoRequest.h => GetNumberLocationRequest.h} (69%) rename ccc/include/alibabacloud/ccc/model/{RemovePhoneNumberResult.h => GetNumberLocationResult.h} (68%) delete mode 100644 ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetRoutePointResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetScenarioRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetScenarioResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetServiceExtensionsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetSurveyResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetTaskListResult.h rename ccc/include/alibabacloud/ccc/model/{GetTURNCredentialsRequest.h => GetTurnCredentialsRequest.h} (75%) rename ccc/include/alibabacloud/ccc/model/{GetTURNCredentialsResult.h => GetTurnCredentialsResult.h} (76%) rename ccc/include/alibabacloud/ccc/model/{GetTURNServerListRequest.h => GetTurnServerListRequest.h} (82%) rename ccc/include/alibabacloud/ccc/model/{GetTURNServerListResult.h => GetTurnServerListResult.h} (79%) delete mode 100644 ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetUserByExtensionResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/GetUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/HoldCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/HoldCallResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h rename ccc/include/alibabacloud/ccc/model/{TaskPreparingRequest.h => InterceptCallRequest.h} (58%) create mode 100644 ccc/include/alibabacloud/ccc/model/InterceptCallResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.h rename ccc/include/alibabacloud/ccc/model/{AddPhoneNumberRequest.h => LaunchAuthenticationRequest.h} (62%) create mode 100644 ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h rename ccc/include/alibabacloud/ccc/model/{GetRoutePointRequest.h => LaunchSurveyRequest.h} (64%) create mode 100644 ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h rename ccc/include/alibabacloud/ccc/model/{ListUsersRequest.h => ListBriefSkillGroupsRequest.h} (70%) rename ccc/include/alibabacloud/ccc/model/{ListSkillGroupStatesResult.h => ListBriefSkillGroupsResult.h} (66%) delete mode 100644 ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h rename ccc/include/alibabacloud/ccc/model/{GetConfigRequest.h => ListConfigItemsRequest.h} (70%) rename ccc/include/alibabacloud/ccc/model/{GetConfigResult.h => ListConfigItemsResult.h} (65%) delete mode 100644 ccc/include/alibabacloud/ccc/model/ListConfigRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListConfigResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h rename ccc/include/alibabacloud/ccc/model/{GetTaskListRequest.h => ListDevicesRequest.h} (72%) rename ccc/include/alibabacloud/ccc/model/{CreateMediaResult.h => ListDevicesResult.h} (62%) rename ccc/include/alibabacloud/ccc/model/{ListRecentCallRecordsRequest.h => ListHistoricalAgentReportRequest.h} (68%) rename ccc/include/alibabacloud/ccc/model/{ListAgentSummaryReportsResult.h => ListHistoricalAgentReportResult.h} (67%) delete mode 100644 ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListJobStatusResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListMediasRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListMediasResult.h rename ccc/include/alibabacloud/ccc/model/{ListOutboundPhoneNumberOfUserRequest.h => ListOutboundNumbersOfUserRequest.h} (70%) rename ccc/include/alibabacloud/ccc/model/{PickLocalNumberResult.h => ListOutboundNumbersOfUserResult.h} (66%) delete mode 100644 ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListPhoneTagsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h rename ccc/include/alibabacloud/ccc/model/{ListScenariosRequest.h => ListPrivilegesOfUserRequest.h} (74%) rename ccc/include/alibabacloud/ccc/model/{ListRolesResult.h => ListPrivilegesOfUserResult.h} (67%) delete mode 100644 ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h rename ccc/include/alibabacloud/ccc/model/{ListAgentStatesRequest.h => ListRealtimeAgentStatesRequest.h} (63%) rename ccc/include/alibabacloud/ccc/model/{ListAgentStatesResult.h => ListRealtimeAgentStatesResult.h} (67%) rename ccc/include/alibabacloud/ccc/model/{ListJobGroupsRequest.h => ListRecentCallDetailRecordsRequest.h} (76%) rename ccc/include/alibabacloud/ccc/model/{ListRecordingsResult.h => ListRecentCallDetailRecordsResult.h} (64%) delete mode 100644 ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListScenariosResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h rename ccc/include/alibabacloud/ccc/model/{GetAgentDataRequest.h => ListSkillLevelsOfUserRequest.h} (65%) rename ccc/include/alibabacloud/ccc/model/{DisableTrunkProvidersResult.h => ListSkillLevelsOfUserResult.h} (62%) delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSurveysRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListSurveysResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListTrunkProvidersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListTrunkProvidersResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListUsersResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h rename ccc/include/alibabacloud/ccc/model/{CheckNumberAvaliableRequest.h => MakeCallRequest.h} (66%) create mode 100644 ccc/include/alibabacloud/ccc/model/MakeCallResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifySurveyRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifySurveyResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ModifyUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/MonitorCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/MonitorCallResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/MuteCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/MuteCallResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PickLocalNumberRequest.h rename ccc/include/alibabacloud/ccc/model/{RequestLoginInfoRequest.h => PollUserStatusRequest.h} (70%) create mode 100644 ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/PublishSurveyResult.h rename ccc/include/alibabacloud/ccc/model/{DeletePhoneTagsRequest.h => ReadyForServiceRequest.h} (61%) rename ccc/include/alibabacloud/ccc/model/{ListAgentEventsResult.h => ReadyForServiceResult.h} (60%) delete mode 100644 ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.h rename ccc/include/alibabacloud/ccc/model/{DeleteInstanceResult.h => RegisterDeviceResult.h} (72%) create mode 100644 ccc/include/alibabacloud/ccc/model/ReleaseCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ReleaseCallResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h rename ccc/include/alibabacloud/ccc/model/{ListSkillGroupsOfUserRequest.h => ResetAgentStateRequest.h} (69%) create mode 100644 ccc/include/alibabacloud/ccc/model/ResetAgentStateResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ResetUserStatusResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ResumeJobsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h rename ccc/include/alibabacloud/ccc/model/{GetJobRequest.h => RetrieveCallRequest.h} (62%) create mode 100644 ccc/include/alibabacloud/ccc/model/RetrieveCallResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SendDtmfSignalingRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SignInGroupRequest.h rename ccc/include/alibabacloud/ccc/model/{ListAgentDevicesResult.h => SignInGroupResult.h} (60%) rename ccc/include/alibabacloud/ccc/model/{RefreshTokenRequest.h => SignOutGroupRequest.h} (66%) rename ccc/include/alibabacloud/ccc/model/{CreateCabInstanceResult.h => SignOutGroupResult.h} (58%) delete mode 100644 ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/StartJobRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/StartJobResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SuspendJobsResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsRequest.h delete mode 100644 ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsResult.h rename ccc/include/alibabacloud/ccc/model/{ListRolesRequest.h => TakeBreakRequest.h} (62%) create mode 100644 ccc/include/alibabacloud/ccc/model/TakeBreakResult.h delete mode 100644 ccc/include/alibabacloud/ccc/model/TaskPreparingResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/UnmuteCallRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/UnmuteCallResult.h delete mode 100644 ccc/src/model/AbortPredictiveJobsRequest.cc delete mode 100644 ccc/src/model/AbortPredictiveJobsResult.cc delete mode 100644 ccc/src/model/AddAgentDeviceRequest.cc delete mode 100644 ccc/src/model/AddAgentDeviceResult.cc delete mode 100644 ccc/src/model/AddBulkPhoneNumbersRequest.cc delete mode 100644 ccc/src/model/AddBulkPhoneNumbersResult.cc delete mode 100644 ccc/src/model/AddJobsToPredictiveJobGroupRequest.cc delete mode 100644 ccc/src/model/AddJobsToPredictiveJobGroupResult.cc delete mode 100644 ccc/src/model/AddPhoneNumberRequest.cc delete mode 100644 ccc/src/model/AddPhoneNumberResult.cc delete mode 100644 ccc/src/model/AddPhoneTagsRequest.cc delete mode 100644 ccc/src/model/AddPhoneTagsResult.cc create mode 100644 ccc/src/model/AnswerCallRequest.cc create mode 100644 ccc/src/model/AnswerCallResult.cc delete mode 100644 ccc/src/model/AssignJobsRequest.cc delete mode 100644 ccc/src/model/AssignJobsResult.cc delete mode 100644 ccc/src/model/AssignUsersRequest.cc delete mode 100644 ccc/src/model/AssignUsersResult.cc create mode 100644 ccc/src/model/BargeInCallRequest.cc create mode 100644 ccc/src/model/BargeInCallResult.cc create mode 100644 ccc/src/model/BlindTransferRequest.cc create mode 100644 ccc/src/model/BlindTransferResult.cc delete mode 100644 ccc/src/model/CallOnlinePrivacyNumberRequest.cc delete mode 100644 ccc/src/model/CallOnlinePrivacyNumberResult.cc create mode 100644 ccc/src/model/CancelAttendedTransferRequest.cc create mode 100644 ccc/src/model/CancelAttendedTransferResult.cc delete mode 100644 ccc/src/model/CancelJobsRequest.cc delete mode 100644 ccc/src/model/CancelJobsResult.cc create mode 100644 ccc/src/model/ChangeWorkModeRequest.cc create mode 100644 ccc/src/model/ChangeWorkModeResult.cc delete mode 100644 ccc/src/model/CheckNumberAvaliableRequest.cc delete mode 100644 ccc/src/model/CheckNumberAvaliableResult.cc delete mode 100644 ccc/src/model/CommitContactFlowVersionModificationRequest.cc delete mode 100644 ccc/src/model/CommitContactFlowVersionModificationResult.cc create mode 100644 ccc/src/model/CompleteAttendedTransferRequest.cc create mode 100644 ccc/src/model/CompleteAttendedTransferResult.cc delete mode 100644 ccc/src/model/CreateBatchJobsRequest.cc delete mode 100644 ccc/src/model/CreateBatchJobsResult.cc delete mode 100644 ccc/src/model/CreateCabInstanceRequest.cc delete mode 100644 ccc/src/model/CreateCabInstanceResult.cc delete mode 100644 ccc/src/model/CreateContactFlowRequest.cc delete mode 100644 ccc/src/model/CreateContactFlowResult.cc delete mode 100644 ccc/src/model/CreateFaultRequest.cc delete mode 100644 ccc/src/model/CreateFaultResult.cc delete mode 100644 ccc/src/model/CreateInstanceRequest.cc delete mode 100644 ccc/src/model/CreateInstanceResult.cc delete mode 100644 ccc/src/model/CreateJobGroupRequest.cc delete mode 100644 ccc/src/model/CreateJobGroupResult.cc delete mode 100644 ccc/src/model/CreateMediaRequest.cc delete mode 100644 ccc/src/model/CreateMediaResult.cc delete mode 100644 ccc/src/model/CreatePredictiveJobGroupRequest.cc delete mode 100644 ccc/src/model/CreateScenarioFromTemplateRequest.cc delete mode 100644 ccc/src/model/CreateScenarioFromTemplateResult.cc delete mode 100644 ccc/src/model/CreateScenarioRequest.cc delete mode 100644 ccc/src/model/CreateScenarioResult.cc delete mode 100644 ccc/src/model/CreateSkillGroupRequest.cc delete mode 100644 ccc/src/model/CreateSkillGroupResult.cc delete mode 100644 ccc/src/model/CreateSurveyRequest.cc delete mode 100644 ccc/src/model/CreateSurveyResult.cc delete mode 100644 ccc/src/model/CreateUserRequest.cc delete mode 100644 ccc/src/model/CreateUserResult.cc delete mode 100644 ccc/src/model/CreateVoiceAppraiseRequest.cc delete mode 100644 ccc/src/model/CreateVoiceAppraiseResult.cc delete mode 100644 ccc/src/model/DeleteInstanceRequest.cc delete mode 100644 ccc/src/model/DeleteJobGroupResult.cc delete mode 100644 ccc/src/model/DeleteMediaRequest.cc delete mode 100644 ccc/src/model/DeleteMediaResult.cc delete mode 100644 ccc/src/model/DeletePhoneTagsRequest.cc delete mode 100644 ccc/src/model/DeletePhoneTagsResult.cc delete mode 100644 ccc/src/model/DeleteSkillGroupRequest.cc delete mode 100644 ccc/src/model/DeleteSurveyRequest.cc delete mode 100644 ccc/src/model/DeleteSurveyResult.cc delete mode 100644 ccc/src/model/DialExRequest.cc delete mode 100644 ccc/src/model/DialExResult.cc delete mode 100644 ccc/src/model/DialogueRequest.cc delete mode 100644 ccc/src/model/DialogueResult.cc delete mode 100644 ccc/src/model/DisableTrunkProvidersRequest.cc delete mode 100644 ccc/src/model/DisableTrunkProvidersResult.cc delete mode 100644 ccc/src/model/DownloadAllTypeRecordingRequest.cc delete mode 100644 ccc/src/model/DownloadAllTypeRecordingResult.cc delete mode 100644 ccc/src/model/DownloadCabRecordingRequest.cc delete mode 100644 ccc/src/model/DownloadCabRecordingResult.cc delete mode 100644 ccc/src/model/DownloadOriginalStatisticsReportRequest.cc delete mode 100644 ccc/src/model/DownloadOriginalStatisticsReportResult.cc delete mode 100644 ccc/src/model/DownloadRecordingRequest.cc delete mode 100644 ccc/src/model/DownloadRecordingResult.cc delete mode 100644 ccc/src/model/DownloadUnreachableContactsRequest.cc delete mode 100644 ccc/src/model/DownloadUnreachableContactsResult.cc delete mode 100644 ccc/src/model/FindUsersRequest.cc delete mode 100644 ccc/src/model/FindUsersResult.cc delete mode 100644 ccc/src/model/GenerateAgentStatisticReportRequest.cc delete mode 100644 ccc/src/model/GenerateAgentStatisticReportResult.cc delete mode 100644 ccc/src/model/GetAgentDataRequest.cc delete mode 100644 ccc/src/model/GetAgentDataResult.cc delete mode 100644 ccc/src/model/GetCallMeasureSummaryReportRequest.cc delete mode 100644 ccc/src/model/GetCallMeasureSummaryReportResult.cc delete mode 100644 ccc/src/model/GetConfigRequest.cc delete mode 100644 ccc/src/model/GetConfigResult.cc delete mode 100644 ccc/src/model/GetConversationDetailByContactIdRequest.cc delete mode 100644 ccc/src/model/GetConversationDetailByContactIdResult.cc delete mode 100644 ccc/src/model/GetConversationListRequest.cc delete mode 100644 ccc/src/model/GetConversationListResult.cc delete mode 100644 ccc/src/model/GetInstanceRequest.cc delete mode 100644 ccc/src/model/GetInstanceResult.cc delete mode 100644 ccc/src/model/GetInstanceStateRequest.cc delete mode 100644 ccc/src/model/GetInstanceStateResult.cc delete mode 100644 ccc/src/model/GetInstanceSummaryReportByIntervalRequest.cc delete mode 100644 ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc delete mode 100644 ccc/src/model/GetInstanceSummaryReportRequest.cc delete mode 100644 ccc/src/model/GetInstanceSummaryReportResult.cc delete mode 100644 ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.cc delete mode 100644 ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc delete mode 100644 ccc/src/model/GetJobDataUploadParamsResult.cc delete mode 100644 ccc/src/model/GetJobFileUploadUrlRequest.cc delete mode 100644 ccc/src/model/GetJobFileUploadUrlResult.cc delete mode 100644 ccc/src/model/GetJobGroupRequest.cc delete mode 100644 ccc/src/model/GetJobGroupResult.cc delete mode 100644 ccc/src/model/GetJobListRequest.cc delete mode 100644 ccc/src/model/GetJobListResult.cc delete mode 100644 ccc/src/model/GetJobResult.cc delete mode 100644 ccc/src/model/GetJobStatusByCallIdRequest.cc delete mode 100644 ccc/src/model/GetJobStatusByCallIdResult.cc delete mode 100644 ccc/src/model/GetJobTemplateDownloadParamsRequest.cc delete mode 100644 ccc/src/model/GetJobTemplateDownloadParamsResult.cc rename ccc/src/model/{GetScenarioRequest.cc => GetLoginDetailsRequest.cc} (56%) create mode 100644 ccc/src/model/GetLoginDetailsResult.cc rename ccc/src/model/{ListContactFlowsRequest.cc => GetMonoRecordingRequest.cc} (54%) rename ccc/src/model/{DeleteSkillGroupResult.cc => GetMonoRecordingResult.cc} (63%) rename ccc/src/model/{GetJobDataUploadParamsRequest.cc => GetMultiChannelRecordingRequest.cc} (51%) rename ccc/src/model/{CreatePredictiveJobGroupResult.cc => GetMultiChannelRecordingResult.cc} (60%) rename ccc/src/model/{DeleteJobGroupRequest.cc => GetNumberLocationRequest.cc} (55%) rename ccc/src/model/{RemovePhoneNumberResult.cc => GetNumberLocationResult.cc} (60%) delete mode 100644 ccc/src/model/GetNumberRegionInfoRequest.cc delete mode 100644 ccc/src/model/GetNumberRegionInfoResult.cc delete mode 100644 ccc/src/model/GetRecordOssUploadParamRequest.cc delete mode 100644 ccc/src/model/GetRecordOssUploadParamResult.cc delete mode 100644 ccc/src/model/GetRoutePointRequest.cc delete mode 100644 ccc/src/model/GetRoutePointResult.cc delete mode 100644 ccc/src/model/GetScenarioResult.cc delete mode 100644 ccc/src/model/GetServiceExtensionsRequest.cc delete mode 100644 ccc/src/model/GetServiceExtensionsResult.cc delete mode 100644 ccc/src/model/GetSmsConfigRequest.cc delete mode 100644 ccc/src/model/GetSmsConfigResult.cc delete mode 100644 ccc/src/model/GetSurveyRequest.cc delete mode 100644 ccc/src/model/GetSurveyResult.cc delete mode 100644 ccc/src/model/GetTURNCredentialsRequest.cc delete mode 100644 ccc/src/model/GetTURNServerListRequest.cc delete mode 100644 ccc/src/model/GetTURNServerListResult.cc delete mode 100644 ccc/src/model/GetTaskListResult.cc rename ccc/src/model/{GetUserRequest.cc => GetTurnCredentialsRequest.cc} (55%) rename ccc/src/model/{GetTURNCredentialsResult.cc => GetTurnCredentialsResult.cc} (56%) rename ccc/src/model/{ListScenariosRequest.cc => GetTurnServerListRequest.cc} (64%) rename ccc/src/model/{ModifyAgentDeviceResult.cc => GetTurnServerListResult.cc} (61%) delete mode 100644 ccc/src/model/GetUserByExtensionRequest.cc delete mode 100644 ccc/src/model/GetUserByExtensionResult.cc delete mode 100644 ccc/src/model/GetUserResult.cc create mode 100644 ccc/src/model/HoldCallRequest.cc create mode 100644 ccc/src/model/HoldCallResult.cc delete mode 100644 ccc/src/model/InflightTaskTimeoutRequest.cc delete mode 100644 ccc/src/model/InflightTaskTimeoutResult.cc create mode 100644 ccc/src/model/InitiateAttendedTransferRequest.cc create mode 100644 ccc/src/model/InitiateAttendedTransferResult.cc create mode 100644 ccc/src/model/InterceptCallRequest.cc create mode 100644 ccc/src/model/InterceptCallResult.cc delete mode 100644 ccc/src/model/LaunchAppraiseRequest.cc delete mode 100644 ccc/src/model/LaunchAppraiseResult.cc create mode 100644 ccc/src/model/LaunchAuthenticationRequest.cc create mode 100644 ccc/src/model/LaunchAuthenticationResult.cc delete mode 100644 ccc/src/model/LaunchShortMessageAppraiseRequest.cc delete mode 100644 ccc/src/model/LaunchShortMessageAppraiseResult.cc create mode 100644 ccc/src/model/LaunchSurveyRequest.cc create mode 100644 ccc/src/model/LaunchSurveyResult.cc delete mode 100644 ccc/src/model/ListAgentDevicesRequest.cc delete mode 100644 ccc/src/model/ListAgentDevicesResult.cc delete mode 100644 ccc/src/model/ListAgentEventsRequest.cc delete mode 100644 ccc/src/model/ListAgentEventsResult.cc delete mode 100644 ccc/src/model/ListAgentStateLogsRequest.cc delete mode 100644 ccc/src/model/ListAgentStateLogsResult.cc delete mode 100644 ccc/src/model/ListAgentStatesRequest.cc delete mode 100644 ccc/src/model/ListAgentStatesResult.cc delete mode 100644 ccc/src/model/ListAgentSummaryReportsByIntervalRequest.cc delete mode 100644 ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc delete mode 100644 ccc/src/model/ListAgentSummaryReportsRequest.cc delete mode 100644 ccc/src/model/ListAgentSummaryReportsResult.cc delete mode 100644 ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.cc delete mode 100644 ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc delete mode 100644 ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc delete mode 100644 ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc rename ccc/src/model/{ListUsersRequest.cc => ListBriefSkillGroupsRequest.cc} (50%) create mode 100644 ccc/src/model/ListBriefSkillGroupsResult.cc delete mode 100644 ccc/src/model/ListCallEventDetailByContactIdRequest.cc delete mode 100644 ccc/src/model/ListCallEventDetailByContactIdResult.cc delete mode 100644 ccc/src/model/ListCallMeasureSummaryReportsRequest.cc delete mode 100644 ccc/src/model/ListCallMeasureSummaryReportsResult.cc create mode 100644 ccc/src/model/ListConfigItemsRequest.cc create mode 100644 ccc/src/model/ListConfigItemsResult.cc delete mode 100644 ccc/src/model/ListConfigRequest.cc delete mode 100644 ccc/src/model/ListConfigResult.cc delete mode 100644 ccc/src/model/ListContactFlowsResult.cc rename ccc/src/model/{GetTaskListRequest.cc => ListDevicesRequest.cc} (58%) create mode 100644 ccc/src/model/ListDevicesResult.cc create mode 100644 ccc/src/model/ListHistoricalAgentReportRequest.cc create mode 100644 ccc/src/model/ListHistoricalAgentReportResult.cc delete mode 100644 ccc/src/model/ListInstancesOfUserRequest.cc delete mode 100644 ccc/src/model/ListInstancesOfUserResult.cc delete mode 100644 ccc/src/model/ListIvrTrackingDetailRequest.cc delete mode 100644 ccc/src/model/ListIvrTrackingDetailResult.cc delete mode 100644 ccc/src/model/ListJobGroupsResult.cc delete mode 100644 ccc/src/model/ListJobStatusRequest.cc delete mode 100644 ccc/src/model/ListJobStatusResult.cc delete mode 100644 ccc/src/model/ListJobsByGroupRequest.cc delete mode 100644 ccc/src/model/ListJobsByGroupResult.cc delete mode 100644 ccc/src/model/ListMediasRequest.cc delete mode 100644 ccc/src/model/ListMediasResult.cc create mode 100644 ccc/src/model/ListOutboundNumbersOfUserRequest.cc create mode 100644 ccc/src/model/ListOutboundNumbersOfUserResult.cc delete mode 100644 ccc/src/model/ListOutboundPhoneNumberOfUserRequest.cc delete mode 100644 ccc/src/model/ListOutboundPhoneNumberOfUserResult.cc delete mode 100644 ccc/src/model/ListPhoneNumbersRequest.cc delete mode 100644 ccc/src/model/ListPhoneNumbersResult.cc delete mode 100644 ccc/src/model/ListPhoneTagsRequest.cc delete mode 100644 ccc/src/model/ListPhoneTagsResult.cc rename ccc/src/model/{GetJobRequest.cc => ListPrivilegesOfUserRequest.cc} (59%) rename ccc/src/model/{ResumePredictiveJobsResult.cc => ListPrivilegesOfUserResult.cc} (54%) delete mode 100644 ccc/src/model/ListRealTimeAgentRequest.cc delete mode 100644 ccc/src/model/ListRealTimeAgentResult.cc create mode 100644 ccc/src/model/ListRealtimeAgentStatesRequest.cc create mode 100644 ccc/src/model/ListRealtimeAgentStatesResult.cc rename ccc/src/model/{ListJobGroupsRequest.cc => ListRecentCallDetailRecordsRequest.cc} (50%) create mode 100644 ccc/src/model/ListRecentCallDetailRecordsResult.cc delete mode 100644 ccc/src/model/ListRecentCallRecordsRequest.cc delete mode 100644 ccc/src/model/ListRecentCallRecordsResult.cc delete mode 100644 ccc/src/model/ListRecordingOfDualTrackRequest.cc delete mode 100644 ccc/src/model/ListRecordingOfDualTrackResult.cc delete mode 100644 ccc/src/model/ListRecordingsByContactIdRequest.cc delete mode 100644 ccc/src/model/ListRecordingsByContactIdResult.cc delete mode 100644 ccc/src/model/ListRecordingsRequest.cc delete mode 100644 ccc/src/model/ListRecordingsResult.cc delete mode 100644 ccc/src/model/ListRolesRequest.cc delete mode 100644 ccc/src/model/ListRolesResult.cc delete mode 100644 ccc/src/model/ListScenarioTemplatesRequest.cc delete mode 100644 ccc/src/model/ListScenarioTemplatesResult.cc delete mode 100644 ccc/src/model/ListScenariosResult.cc delete mode 100644 ccc/src/model/ListSkillGroupStatesRequest.cc delete mode 100644 ccc/src/model/ListSkillGroupStatesResult.cc delete mode 100644 ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc delete mode 100644 ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc delete mode 100644 ccc/src/model/ListSkillGroupSummaryReportsRequest.cc delete mode 100644 ccc/src/model/ListSkillGroupSummaryReportsResult.cc delete mode 100644 ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc delete mode 100644 ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc delete mode 100644 ccc/src/model/ListSkillGroupsOfUserResult.cc delete mode 100644 ccc/src/model/ListSkillGroupsRequest.cc delete mode 100644 ccc/src/model/ListSkillGroupsResult.cc create mode 100644 ccc/src/model/ListSkillLevelsOfUserRequest.cc create mode 100644 ccc/src/model/ListSkillLevelsOfUserResult.cc delete mode 100644 ccc/src/model/ListSurveysRequest.cc delete mode 100644 ccc/src/model/ListSurveysResult.cc delete mode 100644 ccc/src/model/ListTransferableSkillGroupsRequest.cc delete mode 100644 ccc/src/model/ListTransferableSkillGroupsResult.cc delete mode 100644 ccc/src/model/ListTrunkProvidersRequest.cc delete mode 100644 ccc/src/model/ListTrunkProvidersResult.cc delete mode 100644 ccc/src/model/ListTrunksOfSkillGroupRequest.cc delete mode 100644 ccc/src/model/ListTrunksOfSkillGroupResult.cc delete mode 100644 ccc/src/model/ListUnreachableContactsRequest.cc delete mode 100644 ccc/src/model/ListUnreachableContactsResult.cc delete mode 100644 ccc/src/model/ListUsersOfSkillGroupRequest.cc delete mode 100644 ccc/src/model/ListUsersOfSkillGroupResult.cc delete mode 100644 ccc/src/model/ListUsersResult.cc delete mode 100644 ccc/src/model/ListVoiceAppraiseRequest.cc delete mode 100644 ccc/src/model/ListVoiceAppraiseResult.cc create mode 100644 ccc/src/model/MakeCallRequest.cc create mode 100644 ccc/src/model/MakeCallResult.cc delete mode 100644 ccc/src/model/ModifyAgentDeviceRequest.cc delete mode 100644 ccc/src/model/ModifyCabInstanceRequest.cc delete mode 100644 ccc/src/model/ModifyCabInstanceResult.cc delete mode 100644 ccc/src/model/ModifyPhoneNumberRequest.cc delete mode 100644 ccc/src/model/ModifyPhoneNumberResult.cc delete mode 100644 ccc/src/model/ModifyPhoneTagsRequest.cc delete mode 100644 ccc/src/model/ModifyPhoneTagsResult.cc delete mode 100644 ccc/src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc delete mode 100644 ccc/src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc delete mode 100644 ccc/src/model/ModifyPrivacyNumberCallDetailRequest.cc delete mode 100644 ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc delete mode 100644 ccc/src/model/ModifyScenarioRequest.cc delete mode 100644 ccc/src/model/ModifyScenarioResult.cc delete mode 100644 ccc/src/model/ModifySkillGroupOfUserRequest.cc delete mode 100644 ccc/src/model/ModifySkillGroupOfUserResult.cc delete mode 100644 ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc delete mode 100644 ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc delete mode 100644 ccc/src/model/ModifySkillGroupRequest.cc delete mode 100644 ccc/src/model/ModifySkillGroupResult.cc delete mode 100644 ccc/src/model/ModifySurveyRequest.cc delete mode 100644 ccc/src/model/ModifySurveyResult.cc delete mode 100644 ccc/src/model/ModifyUserRequest.cc delete mode 100644 ccc/src/model/ModifyUserResult.cc create mode 100644 ccc/src/model/MonitorCallRequest.cc create mode 100644 ccc/src/model/MonitorCallResult.cc create mode 100644 ccc/src/model/MuteCallRequest.cc create mode 100644 ccc/src/model/MuteCallResult.cc delete mode 100644 ccc/src/model/PickGlobalOutboundNumbersRequest.cc delete mode 100644 ccc/src/model/PickGlobalOutboundNumbersResult.cc delete mode 100644 ccc/src/model/PickLocalNumberRequest.cc delete mode 100644 ccc/src/model/PickLocalNumberResult.cc create mode 100644 ccc/src/model/PollUserStatusRequest.cc create mode 100644 ccc/src/model/PollUserStatusResult.cc delete mode 100644 ccc/src/model/PublishContactFlowVersionRequest.cc delete mode 100644 ccc/src/model/PublishContactFlowVersionResult.cc delete mode 100644 ccc/src/model/PublishPredictiveJobGroupRequest.cc delete mode 100644 ccc/src/model/PublishPredictiveJobGroupResult.cc delete mode 100644 ccc/src/model/PublishSurveyRequest.cc delete mode 100644 ccc/src/model/PublishSurveyResult.cc create mode 100644 ccc/src/model/ReadyForServiceRequest.cc create mode 100644 ccc/src/model/ReadyForServiceResult.cc delete mode 100644 ccc/src/model/RefreshTokenRequest.cc delete mode 100644 ccc/src/model/RefreshTokenResult.cc create mode 100644 ccc/src/model/RegisterDeviceRequest.cc rename ccc/src/model/{DeleteInstanceResult.cc => RegisterDeviceResult.cc} (66%) create mode 100644 ccc/src/model/ReleaseCallRequest.cc create mode 100644 ccc/src/model/ReleaseCallResult.cc delete mode 100644 ccc/src/model/RemovePhoneNumberRequest.cc delete mode 100644 ccc/src/model/RemoveUsersFromSkillGroupRequest.cc delete mode 100644 ccc/src/model/RemoveUsersFromSkillGroupResult.cc delete mode 100644 ccc/src/model/RemoveUsersRequest.cc delete mode 100644 ccc/src/model/RemoveUsersResult.cc delete mode 100644 ccc/src/model/RequestLoginInfoResult.cc create mode 100644 ccc/src/model/ResetAgentStateRequest.cc create mode 100644 ccc/src/model/ResetAgentStateResult.cc delete mode 100644 ccc/src/model/ResetUserStatusRequest.cc delete mode 100644 ccc/src/model/ResetUserStatusResult.cc delete mode 100644 ccc/src/model/ResumeJobsRequest.cc delete mode 100644 ccc/src/model/ResumeJobsResult.cc delete mode 100644 ccc/src/model/ResumePredictiveJobsRequest.cc create mode 100644 ccc/src/model/RetrieveCallRequest.cc create mode 100644 ccc/src/model/RetrieveCallResult.cc delete mode 100644 ccc/src/model/SaveWebRTCStatsRequest.cc delete mode 100644 ccc/src/model/SaveWebRTCStatsResult.cc create mode 100644 ccc/src/model/SendDtmfSignalingRequest.cc create mode 100644 ccc/src/model/SendDtmfSignalingResult.cc delete mode 100644 ccc/src/model/SendPredefinedShortMessageRequest.cc delete mode 100644 ccc/src/model/SendPredefinedShortMessageResult.cc create mode 100644 ccc/src/model/SignInGroupRequest.cc create mode 100644 ccc/src/model/SignInGroupResult.cc rename ccc/src/model/{RequestLoginInfoRequest.cc => SignOutGroupRequest.cc} (52%) create mode 100644 ccc/src/model/SignOutGroupResult.cc delete mode 100644 ccc/src/model/StartBack2BackCallRequest.cc delete mode 100644 ccc/src/model/StartBack2BackCallResult.cc delete mode 100644 ccc/src/model/StartJobRequest.cc delete mode 100644 ccc/src/model/StartJobResult.cc delete mode 100644 ccc/src/model/SubmitBatchJobsRequest.cc delete mode 100644 ccc/src/model/SubmitBatchJobsResult.cc delete mode 100644 ccc/src/model/SubmitCabRecordingRequest.cc delete mode 100644 ccc/src/model/SubmitCabRecordingResult.cc delete mode 100644 ccc/src/model/SuspendJobsRequest.cc delete mode 100644 ccc/src/model/SuspendJobsResult.cc delete mode 100644 ccc/src/model/SuspendPredictiveJobsRequest.cc delete mode 100644 ccc/src/model/SuspendPredictiveJobsResult.cc rename ccc/src/model/{ListSkillGroupsOfUserRequest.cc => TakeBreakRequest.cc} (50%) create mode 100644 ccc/src/model/TakeBreakResult.cc delete mode 100644 ccc/src/model/TaskPreparingRequest.cc delete mode 100644 ccc/src/model/TaskPreparingResult.cc create mode 100644 ccc/src/model/UnmuteCallRequest.cc create mode 100644 ccc/src/model/UnmuteCallResult.cc diff --git a/CHANGELOG b/CHANGELOG index 919cb3829..c67d7c5f1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-03-19 Version: 1.36.644 +- Export new API. + 2021-03-19 Version: 1.36.643 - Export new API for predictive dialer. diff --git a/VERSION b/VERSION index 1ad05de83..82e4faa8c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.643 \ No newline at end of file +1.36.644 \ No newline at end of file diff --git a/ccc/CMakeLists.txt b/ccc/CMakeLists.txt index 67bf31af3..9006689c2 100644 --- a/ccc/CMakeLists.txt +++ b/ccc/CMakeLists.txt @@ -21,621 +21,177 @@ set(ccc_public_header include/alibabacloud/ccc/CCCExport.h ) set(ccc_public_header_model - include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h - include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h - include/alibabacloud/ccc/model/AddAgentDeviceRequest.h - include/alibabacloud/ccc/model/AddAgentDeviceResult.h - include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h - include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h - include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupRequest.h - include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h - include/alibabacloud/ccc/model/AddPhoneNumberRequest.h - include/alibabacloud/ccc/model/AddPhoneNumberResult.h - include/alibabacloud/ccc/model/AddPhoneTagsRequest.h - include/alibabacloud/ccc/model/AddPhoneTagsResult.h - include/alibabacloud/ccc/model/AssignJobsRequest.h - include/alibabacloud/ccc/model/AssignJobsResult.h - include/alibabacloud/ccc/model/AssignUsersRequest.h - include/alibabacloud/ccc/model/AssignUsersResult.h - include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h - include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h - include/alibabacloud/ccc/model/CancelJobsRequest.h - include/alibabacloud/ccc/model/CancelJobsResult.h - include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h - include/alibabacloud/ccc/model/CheckNumberAvaliableResult.h - include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h - include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h - include/alibabacloud/ccc/model/CreateBatchJobsRequest.h - include/alibabacloud/ccc/model/CreateBatchJobsResult.h - include/alibabacloud/ccc/model/CreateCabInstanceRequest.h - include/alibabacloud/ccc/model/CreateCabInstanceResult.h - include/alibabacloud/ccc/model/CreateContactFlowRequest.h - include/alibabacloud/ccc/model/CreateContactFlowResult.h - include/alibabacloud/ccc/model/CreateFaultRequest.h - include/alibabacloud/ccc/model/CreateFaultResult.h - include/alibabacloud/ccc/model/CreateInstanceRequest.h - include/alibabacloud/ccc/model/CreateInstanceResult.h - include/alibabacloud/ccc/model/CreateJobGroupRequest.h - include/alibabacloud/ccc/model/CreateJobGroupResult.h - include/alibabacloud/ccc/model/CreateMediaRequest.h - include/alibabacloud/ccc/model/CreateMediaResult.h - include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h - include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h - include/alibabacloud/ccc/model/CreateScenarioRequest.h - include/alibabacloud/ccc/model/CreateScenarioResult.h - include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h - include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h - include/alibabacloud/ccc/model/CreateSkillGroupRequest.h - include/alibabacloud/ccc/model/CreateSkillGroupResult.h - include/alibabacloud/ccc/model/CreateSurveyRequest.h - include/alibabacloud/ccc/model/CreateSurveyResult.h - include/alibabacloud/ccc/model/CreateUserRequest.h - include/alibabacloud/ccc/model/CreateUserResult.h - include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h - include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h - include/alibabacloud/ccc/model/DeleteInstanceRequest.h - include/alibabacloud/ccc/model/DeleteInstanceResult.h - include/alibabacloud/ccc/model/DeleteJobGroupRequest.h - include/alibabacloud/ccc/model/DeleteJobGroupResult.h - include/alibabacloud/ccc/model/DeleteMediaRequest.h - include/alibabacloud/ccc/model/DeleteMediaResult.h - include/alibabacloud/ccc/model/DeletePhoneTagsRequest.h - include/alibabacloud/ccc/model/DeletePhoneTagsResult.h - include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h - include/alibabacloud/ccc/model/DeleteSkillGroupResult.h - include/alibabacloud/ccc/model/DeleteSurveyRequest.h - include/alibabacloud/ccc/model/DeleteSurveyResult.h - include/alibabacloud/ccc/model/DialExRequest.h - include/alibabacloud/ccc/model/DialExResult.h - include/alibabacloud/ccc/model/DialogueRequest.h - include/alibabacloud/ccc/model/DialogueResult.h - include/alibabacloud/ccc/model/DisableTrunkProvidersRequest.h - include/alibabacloud/ccc/model/DisableTrunkProvidersResult.h - include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h - include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h - include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h - include/alibabacloud/ccc/model/DownloadCabRecordingResult.h - include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h - include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h - include/alibabacloud/ccc/model/DownloadRecordingRequest.h - include/alibabacloud/ccc/model/DownloadRecordingResult.h - include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h - include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h - include/alibabacloud/ccc/model/FindUsersRequest.h - include/alibabacloud/ccc/model/FindUsersResult.h - include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h - include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h - include/alibabacloud/ccc/model/GetAgentDataRequest.h - include/alibabacloud/ccc/model/GetAgentDataResult.h - include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h - include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h - include/alibabacloud/ccc/model/GetConfigRequest.h - include/alibabacloud/ccc/model/GetConfigResult.h - include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h - include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h - include/alibabacloud/ccc/model/GetConversationListRequest.h - include/alibabacloud/ccc/model/GetConversationListResult.h - include/alibabacloud/ccc/model/GetInstanceRequest.h - include/alibabacloud/ccc/model/GetInstanceResult.h - include/alibabacloud/ccc/model/GetInstanceStateRequest.h - include/alibabacloud/ccc/model/GetInstanceStateResult.h - include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h - include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h - include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h - include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h - include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h - include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h - include/alibabacloud/ccc/model/GetJobRequest.h - include/alibabacloud/ccc/model/GetJobResult.h - include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h - include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h - include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h - include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h - include/alibabacloud/ccc/model/GetJobGroupRequest.h - include/alibabacloud/ccc/model/GetJobGroupResult.h - include/alibabacloud/ccc/model/GetJobListRequest.h - include/alibabacloud/ccc/model/GetJobListResult.h - include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h - include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h - include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h - include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h - include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h - include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h - include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h - include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h - include/alibabacloud/ccc/model/GetRoutePointRequest.h - include/alibabacloud/ccc/model/GetRoutePointResult.h - include/alibabacloud/ccc/model/GetScenarioRequest.h - include/alibabacloud/ccc/model/GetScenarioResult.h - include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h - include/alibabacloud/ccc/model/GetServiceExtensionsResult.h - include/alibabacloud/ccc/model/GetSmsConfigRequest.h - include/alibabacloud/ccc/model/GetSmsConfigResult.h - include/alibabacloud/ccc/model/GetSurveyRequest.h - include/alibabacloud/ccc/model/GetSurveyResult.h - include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h - include/alibabacloud/ccc/model/GetTURNCredentialsResult.h - include/alibabacloud/ccc/model/GetTURNServerListRequest.h - include/alibabacloud/ccc/model/GetTURNServerListResult.h - include/alibabacloud/ccc/model/GetTaskListRequest.h - include/alibabacloud/ccc/model/GetTaskListResult.h - include/alibabacloud/ccc/model/GetUserRequest.h - include/alibabacloud/ccc/model/GetUserResult.h - include/alibabacloud/ccc/model/GetUserByExtensionRequest.h - include/alibabacloud/ccc/model/GetUserByExtensionResult.h - include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.h - include/alibabacloud/ccc/model/InflightTaskTimeoutResult.h - include/alibabacloud/ccc/model/LaunchAppraiseRequest.h - include/alibabacloud/ccc/model/LaunchAppraiseResult.h - include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h - include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h - include/alibabacloud/ccc/model/ListAgentDevicesRequest.h - include/alibabacloud/ccc/model/ListAgentDevicesResult.h - include/alibabacloud/ccc/model/ListAgentEventsRequest.h - include/alibabacloud/ccc/model/ListAgentEventsResult.h - include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h - include/alibabacloud/ccc/model/ListAgentStateLogsResult.h - include/alibabacloud/ccc/model/ListAgentStatesRequest.h - include/alibabacloud/ccc/model/ListAgentStatesResult.h - include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h - include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h - include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h - include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h - include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h - include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h - include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h - include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h + include/alibabacloud/ccc/model/AnswerCallRequest.h + include/alibabacloud/ccc/model/AnswerCallResult.h + include/alibabacloud/ccc/model/BargeInCallRequest.h + include/alibabacloud/ccc/model/BargeInCallResult.h + include/alibabacloud/ccc/model/BlindTransferRequest.h + include/alibabacloud/ccc/model/BlindTransferResult.h + include/alibabacloud/ccc/model/CancelAttendedTransferRequest.h + include/alibabacloud/ccc/model/CancelAttendedTransferResult.h + include/alibabacloud/ccc/model/ChangeWorkModeRequest.h + include/alibabacloud/ccc/model/ChangeWorkModeResult.h + include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h + include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h + include/alibabacloud/ccc/model/GetLoginDetailsRequest.h + include/alibabacloud/ccc/model/GetLoginDetailsResult.h + include/alibabacloud/ccc/model/GetMonoRecordingRequest.h + include/alibabacloud/ccc/model/GetMonoRecordingResult.h + include/alibabacloud/ccc/model/GetMultiChannelRecordingRequest.h + include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h + include/alibabacloud/ccc/model/GetNumberLocationRequest.h + include/alibabacloud/ccc/model/GetNumberLocationResult.h + include/alibabacloud/ccc/model/GetTurnCredentialsRequest.h + include/alibabacloud/ccc/model/GetTurnCredentialsResult.h + include/alibabacloud/ccc/model/GetTurnServerListRequest.h + include/alibabacloud/ccc/model/GetTurnServerListResult.h + include/alibabacloud/ccc/model/HoldCallRequest.h + include/alibabacloud/ccc/model/HoldCallResult.h + include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h + include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h + include/alibabacloud/ccc/model/InterceptCallRequest.h + include/alibabacloud/ccc/model/InterceptCallResult.h + include/alibabacloud/ccc/model/LaunchAuthenticationRequest.h + include/alibabacloud/ccc/model/LaunchAuthenticationResult.h + include/alibabacloud/ccc/model/LaunchSurveyRequest.h + include/alibabacloud/ccc/model/LaunchSurveyResult.h + include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h + include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h - include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h - include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h - include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h - include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h - include/alibabacloud/ccc/model/ListConfigRequest.h - include/alibabacloud/ccc/model/ListConfigResult.h - include/alibabacloud/ccc/model/ListContactFlowsRequest.h - include/alibabacloud/ccc/model/ListContactFlowsResult.h - include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h - include/alibabacloud/ccc/model/ListInstancesOfUserResult.h - include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h - include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h - include/alibabacloud/ccc/model/ListJobGroupsRequest.h - include/alibabacloud/ccc/model/ListJobGroupsResult.h - include/alibabacloud/ccc/model/ListJobStatusRequest.h - include/alibabacloud/ccc/model/ListJobStatusResult.h - include/alibabacloud/ccc/model/ListJobsByGroupRequest.h - include/alibabacloud/ccc/model/ListJobsByGroupResult.h - include/alibabacloud/ccc/model/ListMediasRequest.h - include/alibabacloud/ccc/model/ListMediasResult.h - include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h - include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h - include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h - include/alibabacloud/ccc/model/ListPhoneNumbersResult.h - include/alibabacloud/ccc/model/ListPhoneTagsRequest.h - include/alibabacloud/ccc/model/ListPhoneTagsResult.h - include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h - include/alibabacloud/ccc/model/ListRealTimeAgentResult.h - include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h - include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h - include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h - include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h - include/alibabacloud/ccc/model/ListRecordingsRequest.h - include/alibabacloud/ccc/model/ListRecordingsResult.h - include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h - include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h - include/alibabacloud/ccc/model/ListRolesRequest.h - include/alibabacloud/ccc/model/ListRolesResult.h - include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h - include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h - include/alibabacloud/ccc/model/ListScenariosRequest.h - include/alibabacloud/ccc/model/ListScenariosResult.h - include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h - include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h - include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h - include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h - include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h - include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h - include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h - include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.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/ListSurveysRequest.h - include/alibabacloud/ccc/model/ListSurveysResult.h - include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h - include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h - include/alibabacloud/ccc/model/ListTrunkProvidersRequest.h - include/alibabacloud/ccc/model/ListTrunkProvidersResult.h - include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h - include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h - include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h - include/alibabacloud/ccc/model/ListUnreachableContactsResult.h - include/alibabacloud/ccc/model/ListUsersRequest.h - include/alibabacloud/ccc/model/ListUsersResult.h - include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h - include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h - include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h - include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h - include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h - include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h - include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h - include/alibabacloud/ccc/model/ModifyCabInstanceResult.h - include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h - include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h - include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h - include/alibabacloud/ccc/model/ModifyPhoneTagsResult.h - include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupRequest.h - include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupResult.h - include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h - include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h - include/alibabacloud/ccc/model/ModifyScenarioRequest.h - include/alibabacloud/ccc/model/ModifyScenarioResult.h - include/alibabacloud/ccc/model/ModifySkillGroupRequest.h - include/alibabacloud/ccc/model/ModifySkillGroupResult.h - include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h - include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h - include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h - include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h - include/alibabacloud/ccc/model/ModifySurveyRequest.h - include/alibabacloud/ccc/model/ModifySurveyResult.h - include/alibabacloud/ccc/model/ModifyUserRequest.h - include/alibabacloud/ccc/model/ModifyUserResult.h - include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h - include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h - include/alibabacloud/ccc/model/PickLocalNumberRequest.h - include/alibabacloud/ccc/model/PickLocalNumberResult.h + include/alibabacloud/ccc/model/ListConfigItemsRequest.h + include/alibabacloud/ccc/model/ListConfigItemsResult.h + include/alibabacloud/ccc/model/ListDevicesRequest.h + include/alibabacloud/ccc/model/ListDevicesResult.h + include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h + include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h + include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h + include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h + include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h + include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h + include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h + include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h + include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h + include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h + include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h + include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h + include/alibabacloud/ccc/model/MakeCallRequest.h + include/alibabacloud/ccc/model/MakeCallResult.h + include/alibabacloud/ccc/model/MonitorCallRequest.h + include/alibabacloud/ccc/model/MonitorCallResult.h + include/alibabacloud/ccc/model/MuteCallRequest.h + include/alibabacloud/ccc/model/MuteCallResult.h include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h include/alibabacloud/ccc/model/PickOutboundNumbersResult.h - include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h - include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h - include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h - include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h - include/alibabacloud/ccc/model/PublishSurveyRequest.h - include/alibabacloud/ccc/model/PublishSurveyResult.h - include/alibabacloud/ccc/model/RefreshTokenRequest.h - include/alibabacloud/ccc/model/RefreshTokenResult.h - include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h - include/alibabacloud/ccc/model/RemovePhoneNumberResult.h - include/alibabacloud/ccc/model/RemoveUsersRequest.h - include/alibabacloud/ccc/model/RemoveUsersResult.h - include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h - include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h - include/alibabacloud/ccc/model/RequestLoginInfoRequest.h - include/alibabacloud/ccc/model/RequestLoginInfoResult.h - include/alibabacloud/ccc/model/ResetUserStatusRequest.h - include/alibabacloud/ccc/model/ResetUserStatusResult.h - include/alibabacloud/ccc/model/ResumeJobsRequest.h - include/alibabacloud/ccc/model/ResumeJobsResult.h - include/alibabacloud/ccc/model/ResumePredictiveJobsRequest.h - include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h - include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h - include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h - include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h - include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h - include/alibabacloud/ccc/model/StartBack2BackCallRequest.h - include/alibabacloud/ccc/model/StartBack2BackCallResult.h - include/alibabacloud/ccc/model/StartJobRequest.h - include/alibabacloud/ccc/model/StartJobResult.h - include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h - include/alibabacloud/ccc/model/SubmitBatchJobsResult.h - include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h - include/alibabacloud/ccc/model/SubmitCabRecordingResult.h - include/alibabacloud/ccc/model/SuspendJobsRequest.h - include/alibabacloud/ccc/model/SuspendJobsResult.h - include/alibabacloud/ccc/model/SuspendPredictiveJobsRequest.h - include/alibabacloud/ccc/model/SuspendPredictiveJobsResult.h - include/alibabacloud/ccc/model/TaskPreparingRequest.h - include/alibabacloud/ccc/model/TaskPreparingResult.h ) + include/alibabacloud/ccc/model/PollUserStatusRequest.h + include/alibabacloud/ccc/model/PollUserStatusResult.h + include/alibabacloud/ccc/model/ReadyForServiceRequest.h + include/alibabacloud/ccc/model/ReadyForServiceResult.h + include/alibabacloud/ccc/model/RegisterDeviceRequest.h + include/alibabacloud/ccc/model/RegisterDeviceResult.h + include/alibabacloud/ccc/model/ReleaseCallRequest.h + include/alibabacloud/ccc/model/ReleaseCallResult.h + include/alibabacloud/ccc/model/ResetAgentStateRequest.h + include/alibabacloud/ccc/model/ResetAgentStateResult.h + include/alibabacloud/ccc/model/RetrieveCallRequest.h + include/alibabacloud/ccc/model/RetrieveCallResult.h + include/alibabacloud/ccc/model/SendDtmfSignalingRequest.h + include/alibabacloud/ccc/model/SendDtmfSignalingResult.h + include/alibabacloud/ccc/model/SignInGroupRequest.h + include/alibabacloud/ccc/model/SignInGroupResult.h + include/alibabacloud/ccc/model/SignOutGroupRequest.h + include/alibabacloud/ccc/model/SignOutGroupResult.h + include/alibabacloud/ccc/model/TakeBreakRequest.h + include/alibabacloud/ccc/model/TakeBreakResult.h + include/alibabacloud/ccc/model/UnmuteCallRequest.h + include/alibabacloud/ccc/model/UnmuteCallResult.h ) set(ccc_src src/CCCClient.cc - src/model/AbortPredictiveJobsRequest.cc - src/model/AbortPredictiveJobsResult.cc - src/model/AddAgentDeviceRequest.cc - src/model/AddAgentDeviceResult.cc - src/model/AddBulkPhoneNumbersRequest.cc - src/model/AddBulkPhoneNumbersResult.cc - src/model/AddJobsToPredictiveJobGroupRequest.cc - src/model/AddJobsToPredictiveJobGroupResult.cc - src/model/AddPhoneNumberRequest.cc - src/model/AddPhoneNumberResult.cc - src/model/AddPhoneTagsRequest.cc - src/model/AddPhoneTagsResult.cc - src/model/AssignJobsRequest.cc - src/model/AssignJobsResult.cc - src/model/AssignUsersRequest.cc - src/model/AssignUsersResult.cc - src/model/CallOnlinePrivacyNumberRequest.cc - src/model/CallOnlinePrivacyNumberResult.cc - src/model/CancelJobsRequest.cc - src/model/CancelJobsResult.cc - src/model/CheckNumberAvaliableRequest.cc - src/model/CheckNumberAvaliableResult.cc - src/model/CommitContactFlowVersionModificationRequest.cc - src/model/CommitContactFlowVersionModificationResult.cc - src/model/CreateBatchJobsRequest.cc - src/model/CreateBatchJobsResult.cc - src/model/CreateCabInstanceRequest.cc - src/model/CreateCabInstanceResult.cc - src/model/CreateContactFlowRequest.cc - src/model/CreateContactFlowResult.cc - src/model/CreateFaultRequest.cc - src/model/CreateFaultResult.cc - src/model/CreateInstanceRequest.cc - src/model/CreateInstanceResult.cc - src/model/CreateJobGroupRequest.cc - src/model/CreateJobGroupResult.cc - src/model/CreateMediaRequest.cc - src/model/CreateMediaResult.cc - src/model/CreatePredictiveJobGroupRequest.cc - src/model/CreatePredictiveJobGroupResult.cc - src/model/CreateScenarioRequest.cc - src/model/CreateScenarioResult.cc - src/model/CreateScenarioFromTemplateRequest.cc - src/model/CreateScenarioFromTemplateResult.cc - src/model/CreateSkillGroupRequest.cc - src/model/CreateSkillGroupResult.cc - src/model/CreateSurveyRequest.cc - src/model/CreateSurveyResult.cc - src/model/CreateUserRequest.cc - src/model/CreateUserResult.cc - src/model/CreateVoiceAppraiseRequest.cc - src/model/CreateVoiceAppraiseResult.cc - src/model/DeleteInstanceRequest.cc - src/model/DeleteInstanceResult.cc - src/model/DeleteJobGroupRequest.cc - src/model/DeleteJobGroupResult.cc - src/model/DeleteMediaRequest.cc - src/model/DeleteMediaResult.cc - src/model/DeletePhoneTagsRequest.cc - src/model/DeletePhoneTagsResult.cc - src/model/DeleteSkillGroupRequest.cc - src/model/DeleteSkillGroupResult.cc - src/model/DeleteSurveyRequest.cc - src/model/DeleteSurveyResult.cc - src/model/DialExRequest.cc - src/model/DialExResult.cc - src/model/DialogueRequest.cc - src/model/DialogueResult.cc - src/model/DisableTrunkProvidersRequest.cc - src/model/DisableTrunkProvidersResult.cc - src/model/DownloadAllTypeRecordingRequest.cc - src/model/DownloadAllTypeRecordingResult.cc - src/model/DownloadCabRecordingRequest.cc - src/model/DownloadCabRecordingResult.cc - src/model/DownloadOriginalStatisticsReportRequest.cc - src/model/DownloadOriginalStatisticsReportResult.cc - src/model/DownloadRecordingRequest.cc - src/model/DownloadRecordingResult.cc - src/model/DownloadUnreachableContactsRequest.cc - src/model/DownloadUnreachableContactsResult.cc - src/model/FindUsersRequest.cc - src/model/FindUsersResult.cc - src/model/GenerateAgentStatisticReportRequest.cc - src/model/GenerateAgentStatisticReportResult.cc - src/model/GetAgentDataRequest.cc - src/model/GetAgentDataResult.cc - src/model/GetCallMeasureSummaryReportRequest.cc - src/model/GetCallMeasureSummaryReportResult.cc - src/model/GetConfigRequest.cc - src/model/GetConfigResult.cc - src/model/GetConversationDetailByContactIdRequest.cc - src/model/GetConversationDetailByContactIdResult.cc - src/model/GetConversationListRequest.cc - src/model/GetConversationListResult.cc - src/model/GetInstanceRequest.cc - src/model/GetInstanceResult.cc - src/model/GetInstanceStateRequest.cc - src/model/GetInstanceStateResult.cc - src/model/GetInstanceSummaryReportRequest.cc - src/model/GetInstanceSummaryReportResult.cc - src/model/GetInstanceSummaryReportByIntervalRequest.cc - src/model/GetInstanceSummaryReportByIntervalResult.cc - src/model/GetInstanceSummaryReportSinceMidnightRequest.cc - src/model/GetInstanceSummaryReportSinceMidnightResult.cc - src/model/GetJobRequest.cc - src/model/GetJobResult.cc - src/model/GetJobDataUploadParamsRequest.cc - src/model/GetJobDataUploadParamsResult.cc - src/model/GetJobFileUploadUrlRequest.cc - src/model/GetJobFileUploadUrlResult.cc - src/model/GetJobGroupRequest.cc - src/model/GetJobGroupResult.cc - src/model/GetJobListRequest.cc - src/model/GetJobListResult.cc - src/model/GetJobStatusByCallIdRequest.cc - src/model/GetJobStatusByCallIdResult.cc - src/model/GetJobTemplateDownloadParamsRequest.cc - src/model/GetJobTemplateDownloadParamsResult.cc - src/model/GetNumberRegionInfoRequest.cc - src/model/GetNumberRegionInfoResult.cc - src/model/GetRecordOssUploadParamRequest.cc - src/model/GetRecordOssUploadParamResult.cc - src/model/GetRoutePointRequest.cc - src/model/GetRoutePointResult.cc - src/model/GetScenarioRequest.cc - src/model/GetScenarioResult.cc - src/model/GetServiceExtensionsRequest.cc - src/model/GetServiceExtensionsResult.cc - src/model/GetSmsConfigRequest.cc - src/model/GetSmsConfigResult.cc - src/model/GetSurveyRequest.cc - src/model/GetSurveyResult.cc - src/model/GetTURNCredentialsRequest.cc - src/model/GetTURNCredentialsResult.cc - src/model/GetTURNServerListRequest.cc - src/model/GetTURNServerListResult.cc - src/model/GetTaskListRequest.cc - src/model/GetTaskListResult.cc - src/model/GetUserRequest.cc - src/model/GetUserResult.cc - src/model/GetUserByExtensionRequest.cc - src/model/GetUserByExtensionResult.cc - src/model/InflightTaskTimeoutRequest.cc - src/model/InflightTaskTimeoutResult.cc - src/model/LaunchAppraiseRequest.cc - src/model/LaunchAppraiseResult.cc - src/model/LaunchShortMessageAppraiseRequest.cc - src/model/LaunchShortMessageAppraiseResult.cc - src/model/ListAgentDevicesRequest.cc - src/model/ListAgentDevicesResult.cc - src/model/ListAgentEventsRequest.cc - src/model/ListAgentEventsResult.cc - src/model/ListAgentStateLogsRequest.cc - src/model/ListAgentStateLogsResult.cc - src/model/ListAgentStatesRequest.cc - src/model/ListAgentStatesResult.cc - src/model/ListAgentSummaryReportsRequest.cc - src/model/ListAgentSummaryReportsResult.cc - src/model/ListAgentSummaryReportsByIntervalRequest.cc - src/model/ListAgentSummaryReportsByIntervalResult.cc - src/model/ListAgentSummaryReportsSinceMidnightRequest.cc - src/model/ListAgentSummaryReportsSinceMidnightResult.cc - src/model/ListBasicStatisticsReportSubItemsRequest.cc - src/model/ListBasicStatisticsReportSubItemsResult.cc + src/model/AnswerCallRequest.cc + src/model/AnswerCallResult.cc + src/model/BargeInCallRequest.cc + src/model/BargeInCallResult.cc + src/model/BlindTransferRequest.cc + src/model/BlindTransferResult.cc + src/model/CancelAttendedTransferRequest.cc + src/model/CancelAttendedTransferResult.cc + src/model/ChangeWorkModeRequest.cc + src/model/ChangeWorkModeResult.cc + src/model/CompleteAttendedTransferRequest.cc + src/model/CompleteAttendedTransferResult.cc + src/model/GetLoginDetailsRequest.cc + src/model/GetLoginDetailsResult.cc + src/model/GetMonoRecordingRequest.cc + src/model/GetMonoRecordingResult.cc + src/model/GetMultiChannelRecordingRequest.cc + src/model/GetMultiChannelRecordingResult.cc + src/model/GetNumberLocationRequest.cc + src/model/GetNumberLocationResult.cc + src/model/GetTurnCredentialsRequest.cc + src/model/GetTurnCredentialsResult.cc + src/model/GetTurnServerListRequest.cc + src/model/GetTurnServerListResult.cc + src/model/HoldCallRequest.cc + src/model/HoldCallResult.cc + src/model/InitiateAttendedTransferRequest.cc + src/model/InitiateAttendedTransferResult.cc + src/model/InterceptCallRequest.cc + src/model/InterceptCallResult.cc + src/model/LaunchAuthenticationRequest.cc + src/model/LaunchAuthenticationResult.cc + src/model/LaunchSurveyRequest.cc + src/model/LaunchSurveyResult.cc + src/model/ListBriefSkillGroupsRequest.cc + src/model/ListBriefSkillGroupsResult.cc src/model/ListCallDetailRecordsRequest.cc src/model/ListCallDetailRecordsResult.cc - src/model/ListCallEventDetailByContactIdRequest.cc - src/model/ListCallEventDetailByContactIdResult.cc - src/model/ListCallMeasureSummaryReportsRequest.cc - src/model/ListCallMeasureSummaryReportsResult.cc - src/model/ListConfigRequest.cc - src/model/ListConfigResult.cc - src/model/ListContactFlowsRequest.cc - src/model/ListContactFlowsResult.cc - src/model/ListInstancesOfUserRequest.cc - src/model/ListInstancesOfUserResult.cc - src/model/ListIvrTrackingDetailRequest.cc - src/model/ListIvrTrackingDetailResult.cc - src/model/ListJobGroupsRequest.cc - src/model/ListJobGroupsResult.cc - src/model/ListJobStatusRequest.cc - src/model/ListJobStatusResult.cc - src/model/ListJobsByGroupRequest.cc - src/model/ListJobsByGroupResult.cc - src/model/ListMediasRequest.cc - src/model/ListMediasResult.cc - src/model/ListOutboundPhoneNumberOfUserRequest.cc - src/model/ListOutboundPhoneNumberOfUserResult.cc - src/model/ListPhoneNumbersRequest.cc - src/model/ListPhoneNumbersResult.cc - src/model/ListPhoneTagsRequest.cc - src/model/ListPhoneTagsResult.cc - src/model/ListRealTimeAgentRequest.cc - src/model/ListRealTimeAgentResult.cc - src/model/ListRecentCallRecordsRequest.cc - src/model/ListRecentCallRecordsResult.cc - src/model/ListRecordingOfDualTrackRequest.cc - src/model/ListRecordingOfDualTrackResult.cc - src/model/ListRecordingsRequest.cc - src/model/ListRecordingsResult.cc - src/model/ListRecordingsByContactIdRequest.cc - src/model/ListRecordingsByContactIdResult.cc - src/model/ListRolesRequest.cc - src/model/ListRolesResult.cc - src/model/ListScenarioTemplatesRequest.cc - src/model/ListScenarioTemplatesResult.cc - src/model/ListScenariosRequest.cc - src/model/ListScenariosResult.cc - src/model/ListSkillGroupStatesRequest.cc - src/model/ListSkillGroupStatesResult.cc - src/model/ListSkillGroupSummaryReportsRequest.cc - src/model/ListSkillGroupSummaryReportsResult.cc - src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc - src/model/ListSkillGroupSummaryReportsByIntervalResult.cc - src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc - src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc - src/model/ListSkillGroupsRequest.cc - src/model/ListSkillGroupsResult.cc - src/model/ListSkillGroupsOfUserRequest.cc - src/model/ListSkillGroupsOfUserResult.cc - src/model/ListSurveysRequest.cc - src/model/ListSurveysResult.cc - src/model/ListTransferableSkillGroupsRequest.cc - src/model/ListTransferableSkillGroupsResult.cc - src/model/ListTrunkProvidersRequest.cc - src/model/ListTrunkProvidersResult.cc - src/model/ListTrunksOfSkillGroupRequest.cc - src/model/ListTrunksOfSkillGroupResult.cc - src/model/ListUnreachableContactsRequest.cc - src/model/ListUnreachableContactsResult.cc - src/model/ListUsersRequest.cc - src/model/ListUsersResult.cc - src/model/ListUsersOfSkillGroupRequest.cc - src/model/ListUsersOfSkillGroupResult.cc - src/model/ListVoiceAppraiseRequest.cc - src/model/ListVoiceAppraiseResult.cc - src/model/ModifyAgentDeviceRequest.cc - src/model/ModifyAgentDeviceResult.cc - src/model/ModifyCabInstanceRequest.cc - src/model/ModifyCabInstanceResult.cc - src/model/ModifyPhoneNumberRequest.cc - src/model/ModifyPhoneNumberResult.cc - src/model/ModifyPhoneTagsRequest.cc - src/model/ModifyPhoneTagsResult.cc - src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc - src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc - src/model/ModifyPrivacyNumberCallDetailRequest.cc - src/model/ModifyPrivacyNumberCallDetailResult.cc - src/model/ModifyScenarioRequest.cc - src/model/ModifyScenarioResult.cc - src/model/ModifySkillGroupRequest.cc - src/model/ModifySkillGroupResult.cc - src/model/ModifySkillGroupOfUserRequest.cc - src/model/ModifySkillGroupOfUserResult.cc - src/model/ModifySkillGroupOutboundNumbersRequest.cc - src/model/ModifySkillGroupOutboundNumbersResult.cc - src/model/ModifySurveyRequest.cc - src/model/ModifySurveyResult.cc - src/model/ModifyUserRequest.cc - src/model/ModifyUserResult.cc - src/model/PickGlobalOutboundNumbersRequest.cc - src/model/PickGlobalOutboundNumbersResult.cc - src/model/PickLocalNumberRequest.cc - src/model/PickLocalNumberResult.cc + src/model/ListConfigItemsRequest.cc + src/model/ListConfigItemsResult.cc + src/model/ListDevicesRequest.cc + src/model/ListDevicesResult.cc + src/model/ListHistoricalAgentReportRequest.cc + src/model/ListHistoricalAgentReportResult.cc + src/model/ListOutboundNumbersOfUserRequest.cc + src/model/ListOutboundNumbersOfUserResult.cc + src/model/ListPrivilegesOfUserRequest.cc + src/model/ListPrivilegesOfUserResult.cc + src/model/ListRealtimeAgentStatesRequest.cc + src/model/ListRealtimeAgentStatesResult.cc + src/model/ListRecentCallDetailRecordsRequest.cc + src/model/ListRecentCallDetailRecordsResult.cc + src/model/ListSkillLevelsOfUserRequest.cc + src/model/ListSkillLevelsOfUserResult.cc + src/model/MakeCallRequest.cc + src/model/MakeCallResult.cc + src/model/MonitorCallRequest.cc + src/model/MonitorCallResult.cc + src/model/MuteCallRequest.cc + src/model/MuteCallResult.cc src/model/PickOutboundNumbersRequest.cc src/model/PickOutboundNumbersResult.cc - src/model/PublishContactFlowVersionRequest.cc - src/model/PublishContactFlowVersionResult.cc - src/model/PublishPredictiveJobGroupRequest.cc - src/model/PublishPredictiveJobGroupResult.cc - src/model/PublishSurveyRequest.cc - src/model/PublishSurveyResult.cc - src/model/RefreshTokenRequest.cc - src/model/RefreshTokenResult.cc - src/model/RemovePhoneNumberRequest.cc - src/model/RemovePhoneNumberResult.cc - src/model/RemoveUsersRequest.cc - src/model/RemoveUsersResult.cc - src/model/RemoveUsersFromSkillGroupRequest.cc - src/model/RemoveUsersFromSkillGroupResult.cc - src/model/RequestLoginInfoRequest.cc - src/model/RequestLoginInfoResult.cc - src/model/ResetUserStatusRequest.cc - src/model/ResetUserStatusResult.cc - src/model/ResumeJobsRequest.cc - src/model/ResumeJobsResult.cc - src/model/ResumePredictiveJobsRequest.cc - src/model/ResumePredictiveJobsResult.cc - src/model/SaveWebRTCStatsRequest.cc - src/model/SaveWebRTCStatsResult.cc - src/model/SendPredefinedShortMessageRequest.cc - src/model/SendPredefinedShortMessageResult.cc - src/model/StartBack2BackCallRequest.cc - src/model/StartBack2BackCallResult.cc - src/model/StartJobRequest.cc - src/model/StartJobResult.cc - src/model/SubmitBatchJobsRequest.cc - src/model/SubmitBatchJobsResult.cc - src/model/SubmitCabRecordingRequest.cc - src/model/SubmitCabRecordingResult.cc - src/model/SuspendJobsRequest.cc - src/model/SuspendJobsResult.cc - src/model/SuspendPredictiveJobsRequest.cc - src/model/SuspendPredictiveJobsResult.cc - src/model/TaskPreparingRequest.cc - src/model/TaskPreparingResult.cc ) + src/model/PollUserStatusRequest.cc + src/model/PollUserStatusResult.cc + src/model/ReadyForServiceRequest.cc + src/model/ReadyForServiceResult.cc + src/model/RegisterDeviceRequest.cc + src/model/RegisterDeviceResult.cc + src/model/ReleaseCallRequest.cc + src/model/ReleaseCallResult.cc + src/model/ResetAgentStateRequest.cc + src/model/ResetAgentStateResult.cc + src/model/RetrieveCallRequest.cc + src/model/RetrieveCallResult.cc + src/model/SendDtmfSignalingRequest.cc + src/model/SendDtmfSignalingResult.cc + src/model/SignInGroupRequest.cc + src/model/SignInGroupResult.cc + src/model/SignOutGroupRequest.cc + src/model/SignOutGroupResult.cc + src/model/TakeBreakRequest.cc + src/model/TakeBreakResult.cc + src/model/UnmuteCallRequest.cc + src/model/UnmuteCallResult.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 0b4af1c3c..54ee2f30b 100644 --- a/ccc/include/alibabacloud/ccc/CCCClient.h +++ b/ccc/include/alibabacloud/ccc/CCCClient.h @@ -22,312 +22,90 @@ #include #include #include "CCCExport.h" -#include "model/AbortPredictiveJobsRequest.h" -#include "model/AbortPredictiveJobsResult.h" -#include "model/AddAgentDeviceRequest.h" -#include "model/AddAgentDeviceResult.h" -#include "model/AddBulkPhoneNumbersRequest.h" -#include "model/AddBulkPhoneNumbersResult.h" -#include "model/AddJobsToPredictiveJobGroupRequest.h" -#include "model/AddJobsToPredictiveJobGroupResult.h" -#include "model/AddPhoneNumberRequest.h" -#include "model/AddPhoneNumberResult.h" -#include "model/AddPhoneTagsRequest.h" -#include "model/AddPhoneTagsResult.h" -#include "model/AssignJobsRequest.h" -#include "model/AssignJobsResult.h" -#include "model/AssignUsersRequest.h" -#include "model/AssignUsersResult.h" -#include "model/CallOnlinePrivacyNumberRequest.h" -#include "model/CallOnlinePrivacyNumberResult.h" -#include "model/CancelJobsRequest.h" -#include "model/CancelJobsResult.h" -#include "model/CheckNumberAvaliableRequest.h" -#include "model/CheckNumberAvaliableResult.h" -#include "model/CommitContactFlowVersionModificationRequest.h" -#include "model/CommitContactFlowVersionModificationResult.h" -#include "model/CreateBatchJobsRequest.h" -#include "model/CreateBatchJobsResult.h" -#include "model/CreateCabInstanceRequest.h" -#include "model/CreateCabInstanceResult.h" -#include "model/CreateContactFlowRequest.h" -#include "model/CreateContactFlowResult.h" -#include "model/CreateFaultRequest.h" -#include "model/CreateFaultResult.h" -#include "model/CreateInstanceRequest.h" -#include "model/CreateInstanceResult.h" -#include "model/CreateJobGroupRequest.h" -#include "model/CreateJobGroupResult.h" -#include "model/CreateMediaRequest.h" -#include "model/CreateMediaResult.h" -#include "model/CreatePredictiveJobGroupRequest.h" -#include "model/CreatePredictiveJobGroupResult.h" -#include "model/CreateScenarioRequest.h" -#include "model/CreateScenarioResult.h" -#include "model/CreateScenarioFromTemplateRequest.h" -#include "model/CreateScenarioFromTemplateResult.h" -#include "model/CreateSkillGroupRequest.h" -#include "model/CreateSkillGroupResult.h" -#include "model/CreateSurveyRequest.h" -#include "model/CreateSurveyResult.h" -#include "model/CreateUserRequest.h" -#include "model/CreateUserResult.h" -#include "model/CreateVoiceAppraiseRequest.h" -#include "model/CreateVoiceAppraiseResult.h" -#include "model/DeleteInstanceRequest.h" -#include "model/DeleteInstanceResult.h" -#include "model/DeleteJobGroupRequest.h" -#include "model/DeleteJobGroupResult.h" -#include "model/DeleteMediaRequest.h" -#include "model/DeleteMediaResult.h" -#include "model/DeletePhoneTagsRequest.h" -#include "model/DeletePhoneTagsResult.h" -#include "model/DeleteSkillGroupRequest.h" -#include "model/DeleteSkillGroupResult.h" -#include "model/DeleteSurveyRequest.h" -#include "model/DeleteSurveyResult.h" -#include "model/DialExRequest.h" -#include "model/DialExResult.h" -#include "model/DialogueRequest.h" -#include "model/DialogueResult.h" -#include "model/DisableTrunkProvidersRequest.h" -#include "model/DisableTrunkProvidersResult.h" -#include "model/DownloadAllTypeRecordingRequest.h" -#include "model/DownloadAllTypeRecordingResult.h" -#include "model/DownloadCabRecordingRequest.h" -#include "model/DownloadCabRecordingResult.h" -#include "model/DownloadOriginalStatisticsReportRequest.h" -#include "model/DownloadOriginalStatisticsReportResult.h" -#include "model/DownloadRecordingRequest.h" -#include "model/DownloadRecordingResult.h" -#include "model/DownloadUnreachableContactsRequest.h" -#include "model/DownloadUnreachableContactsResult.h" -#include "model/FindUsersRequest.h" -#include "model/FindUsersResult.h" -#include "model/GenerateAgentStatisticReportRequest.h" -#include "model/GenerateAgentStatisticReportResult.h" -#include "model/GetAgentDataRequest.h" -#include "model/GetAgentDataResult.h" -#include "model/GetCallMeasureSummaryReportRequest.h" -#include "model/GetCallMeasureSummaryReportResult.h" -#include "model/GetConfigRequest.h" -#include "model/GetConfigResult.h" -#include "model/GetConversationDetailByContactIdRequest.h" -#include "model/GetConversationDetailByContactIdResult.h" -#include "model/GetConversationListRequest.h" -#include "model/GetConversationListResult.h" -#include "model/GetInstanceRequest.h" -#include "model/GetInstanceResult.h" -#include "model/GetInstanceStateRequest.h" -#include "model/GetInstanceStateResult.h" -#include "model/GetInstanceSummaryReportRequest.h" -#include "model/GetInstanceSummaryReportResult.h" -#include "model/GetInstanceSummaryReportByIntervalRequest.h" -#include "model/GetInstanceSummaryReportByIntervalResult.h" -#include "model/GetInstanceSummaryReportSinceMidnightRequest.h" -#include "model/GetInstanceSummaryReportSinceMidnightResult.h" -#include "model/GetJobRequest.h" -#include "model/GetJobResult.h" -#include "model/GetJobDataUploadParamsRequest.h" -#include "model/GetJobDataUploadParamsResult.h" -#include "model/GetJobFileUploadUrlRequest.h" -#include "model/GetJobFileUploadUrlResult.h" -#include "model/GetJobGroupRequest.h" -#include "model/GetJobGroupResult.h" -#include "model/GetJobListRequest.h" -#include "model/GetJobListResult.h" -#include "model/GetJobStatusByCallIdRequest.h" -#include "model/GetJobStatusByCallIdResult.h" -#include "model/GetJobTemplateDownloadParamsRequest.h" -#include "model/GetJobTemplateDownloadParamsResult.h" -#include "model/GetNumberRegionInfoRequest.h" -#include "model/GetNumberRegionInfoResult.h" -#include "model/GetRecordOssUploadParamRequest.h" -#include "model/GetRecordOssUploadParamResult.h" -#include "model/GetRoutePointRequest.h" -#include "model/GetRoutePointResult.h" -#include "model/GetScenarioRequest.h" -#include "model/GetScenarioResult.h" -#include "model/GetServiceExtensionsRequest.h" -#include "model/GetServiceExtensionsResult.h" -#include "model/GetSmsConfigRequest.h" -#include "model/GetSmsConfigResult.h" -#include "model/GetSurveyRequest.h" -#include "model/GetSurveyResult.h" -#include "model/GetTURNCredentialsRequest.h" -#include "model/GetTURNCredentialsResult.h" -#include "model/GetTURNServerListRequest.h" -#include "model/GetTURNServerListResult.h" -#include "model/GetTaskListRequest.h" -#include "model/GetTaskListResult.h" -#include "model/GetUserRequest.h" -#include "model/GetUserResult.h" -#include "model/GetUserByExtensionRequest.h" -#include "model/GetUserByExtensionResult.h" -#include "model/InflightTaskTimeoutRequest.h" -#include "model/InflightTaskTimeoutResult.h" -#include "model/LaunchAppraiseRequest.h" -#include "model/LaunchAppraiseResult.h" -#include "model/LaunchShortMessageAppraiseRequest.h" -#include "model/LaunchShortMessageAppraiseResult.h" -#include "model/ListAgentDevicesRequest.h" -#include "model/ListAgentDevicesResult.h" -#include "model/ListAgentEventsRequest.h" -#include "model/ListAgentEventsResult.h" -#include "model/ListAgentStateLogsRequest.h" -#include "model/ListAgentStateLogsResult.h" -#include "model/ListAgentStatesRequest.h" -#include "model/ListAgentStatesResult.h" -#include "model/ListAgentSummaryReportsRequest.h" -#include "model/ListAgentSummaryReportsResult.h" -#include "model/ListAgentSummaryReportsByIntervalRequest.h" -#include "model/ListAgentSummaryReportsByIntervalResult.h" -#include "model/ListAgentSummaryReportsSinceMidnightRequest.h" -#include "model/ListAgentSummaryReportsSinceMidnightResult.h" -#include "model/ListBasicStatisticsReportSubItemsRequest.h" -#include "model/ListBasicStatisticsReportSubItemsResult.h" +#include "model/AnswerCallRequest.h" +#include "model/AnswerCallResult.h" +#include "model/BargeInCallRequest.h" +#include "model/BargeInCallResult.h" +#include "model/BlindTransferRequest.h" +#include "model/BlindTransferResult.h" +#include "model/CancelAttendedTransferRequest.h" +#include "model/CancelAttendedTransferResult.h" +#include "model/ChangeWorkModeRequest.h" +#include "model/ChangeWorkModeResult.h" +#include "model/CompleteAttendedTransferRequest.h" +#include "model/CompleteAttendedTransferResult.h" +#include "model/GetLoginDetailsRequest.h" +#include "model/GetLoginDetailsResult.h" +#include "model/GetMonoRecordingRequest.h" +#include "model/GetMonoRecordingResult.h" +#include "model/GetMultiChannelRecordingRequest.h" +#include "model/GetMultiChannelRecordingResult.h" +#include "model/GetNumberLocationRequest.h" +#include "model/GetNumberLocationResult.h" +#include "model/GetTurnCredentialsRequest.h" +#include "model/GetTurnCredentialsResult.h" +#include "model/GetTurnServerListRequest.h" +#include "model/GetTurnServerListResult.h" +#include "model/HoldCallRequest.h" +#include "model/HoldCallResult.h" +#include "model/InitiateAttendedTransferRequest.h" +#include "model/InitiateAttendedTransferResult.h" +#include "model/InterceptCallRequest.h" +#include "model/InterceptCallResult.h" +#include "model/LaunchAuthenticationRequest.h" +#include "model/LaunchAuthenticationResult.h" +#include "model/LaunchSurveyRequest.h" +#include "model/LaunchSurveyResult.h" +#include "model/ListBriefSkillGroupsRequest.h" +#include "model/ListBriefSkillGroupsResult.h" #include "model/ListCallDetailRecordsRequest.h" #include "model/ListCallDetailRecordsResult.h" -#include "model/ListCallEventDetailByContactIdRequest.h" -#include "model/ListCallEventDetailByContactIdResult.h" -#include "model/ListCallMeasureSummaryReportsRequest.h" -#include "model/ListCallMeasureSummaryReportsResult.h" -#include "model/ListConfigRequest.h" -#include "model/ListConfigResult.h" -#include "model/ListContactFlowsRequest.h" -#include "model/ListContactFlowsResult.h" -#include "model/ListInstancesOfUserRequest.h" -#include "model/ListInstancesOfUserResult.h" -#include "model/ListIvrTrackingDetailRequest.h" -#include "model/ListIvrTrackingDetailResult.h" -#include "model/ListJobGroupsRequest.h" -#include "model/ListJobGroupsResult.h" -#include "model/ListJobStatusRequest.h" -#include "model/ListJobStatusResult.h" -#include "model/ListJobsByGroupRequest.h" -#include "model/ListJobsByGroupResult.h" -#include "model/ListMediasRequest.h" -#include "model/ListMediasResult.h" -#include "model/ListOutboundPhoneNumberOfUserRequest.h" -#include "model/ListOutboundPhoneNumberOfUserResult.h" -#include "model/ListPhoneNumbersRequest.h" -#include "model/ListPhoneNumbersResult.h" -#include "model/ListPhoneTagsRequest.h" -#include "model/ListPhoneTagsResult.h" -#include "model/ListRealTimeAgentRequest.h" -#include "model/ListRealTimeAgentResult.h" -#include "model/ListRecentCallRecordsRequest.h" -#include "model/ListRecentCallRecordsResult.h" -#include "model/ListRecordingOfDualTrackRequest.h" -#include "model/ListRecordingOfDualTrackResult.h" -#include "model/ListRecordingsRequest.h" -#include "model/ListRecordingsResult.h" -#include "model/ListRecordingsByContactIdRequest.h" -#include "model/ListRecordingsByContactIdResult.h" -#include "model/ListRolesRequest.h" -#include "model/ListRolesResult.h" -#include "model/ListScenarioTemplatesRequest.h" -#include "model/ListScenarioTemplatesResult.h" -#include "model/ListScenariosRequest.h" -#include "model/ListScenariosResult.h" -#include "model/ListSkillGroupStatesRequest.h" -#include "model/ListSkillGroupStatesResult.h" -#include "model/ListSkillGroupSummaryReportsRequest.h" -#include "model/ListSkillGroupSummaryReportsResult.h" -#include "model/ListSkillGroupSummaryReportsByIntervalRequest.h" -#include "model/ListSkillGroupSummaryReportsByIntervalResult.h" -#include "model/ListSkillGroupSummaryReportsSinceMidnightRequest.h" -#include "model/ListSkillGroupSummaryReportsSinceMidnightResult.h" -#include "model/ListSkillGroupsRequest.h" -#include "model/ListSkillGroupsResult.h" -#include "model/ListSkillGroupsOfUserRequest.h" -#include "model/ListSkillGroupsOfUserResult.h" -#include "model/ListSurveysRequest.h" -#include "model/ListSurveysResult.h" -#include "model/ListTransferableSkillGroupsRequest.h" -#include "model/ListTransferableSkillGroupsResult.h" -#include "model/ListTrunkProvidersRequest.h" -#include "model/ListTrunkProvidersResult.h" -#include "model/ListTrunksOfSkillGroupRequest.h" -#include "model/ListTrunksOfSkillGroupResult.h" -#include "model/ListUnreachableContactsRequest.h" -#include "model/ListUnreachableContactsResult.h" -#include "model/ListUsersRequest.h" -#include "model/ListUsersResult.h" -#include "model/ListUsersOfSkillGroupRequest.h" -#include "model/ListUsersOfSkillGroupResult.h" -#include "model/ListVoiceAppraiseRequest.h" -#include "model/ListVoiceAppraiseResult.h" -#include "model/ModifyAgentDeviceRequest.h" -#include "model/ModifyAgentDeviceResult.h" -#include "model/ModifyCabInstanceRequest.h" -#include "model/ModifyCabInstanceResult.h" -#include "model/ModifyPhoneNumberRequest.h" -#include "model/ModifyPhoneNumberResult.h" -#include "model/ModifyPhoneTagsRequest.h" -#include "model/ModifyPhoneTagsResult.h" -#include "model/ModifyPrimaryTrunksOfSkillGroupRequest.h" -#include "model/ModifyPrimaryTrunksOfSkillGroupResult.h" -#include "model/ModifyPrivacyNumberCallDetailRequest.h" -#include "model/ModifyPrivacyNumberCallDetailResult.h" -#include "model/ModifyScenarioRequest.h" -#include "model/ModifyScenarioResult.h" -#include "model/ModifySkillGroupRequest.h" -#include "model/ModifySkillGroupResult.h" -#include "model/ModifySkillGroupOfUserRequest.h" -#include "model/ModifySkillGroupOfUserResult.h" -#include "model/ModifySkillGroupOutboundNumbersRequest.h" -#include "model/ModifySkillGroupOutboundNumbersResult.h" -#include "model/ModifySurveyRequest.h" -#include "model/ModifySurveyResult.h" -#include "model/ModifyUserRequest.h" -#include "model/ModifyUserResult.h" -#include "model/PickGlobalOutboundNumbersRequest.h" -#include "model/PickGlobalOutboundNumbersResult.h" -#include "model/PickLocalNumberRequest.h" -#include "model/PickLocalNumberResult.h" +#include "model/ListConfigItemsRequest.h" +#include "model/ListConfigItemsResult.h" +#include "model/ListDevicesRequest.h" +#include "model/ListDevicesResult.h" +#include "model/ListHistoricalAgentReportRequest.h" +#include "model/ListHistoricalAgentReportResult.h" +#include "model/ListOutboundNumbersOfUserRequest.h" +#include "model/ListOutboundNumbersOfUserResult.h" +#include "model/ListPrivilegesOfUserRequest.h" +#include "model/ListPrivilegesOfUserResult.h" +#include "model/ListRealtimeAgentStatesRequest.h" +#include "model/ListRealtimeAgentStatesResult.h" +#include "model/ListRecentCallDetailRecordsRequest.h" +#include "model/ListRecentCallDetailRecordsResult.h" +#include "model/ListSkillLevelsOfUserRequest.h" +#include "model/ListSkillLevelsOfUserResult.h" +#include "model/MakeCallRequest.h" +#include "model/MakeCallResult.h" +#include "model/MonitorCallRequest.h" +#include "model/MonitorCallResult.h" +#include "model/MuteCallRequest.h" +#include "model/MuteCallResult.h" #include "model/PickOutboundNumbersRequest.h" #include "model/PickOutboundNumbersResult.h" -#include "model/PublishContactFlowVersionRequest.h" -#include "model/PublishContactFlowVersionResult.h" -#include "model/PublishPredictiveJobGroupRequest.h" -#include "model/PublishPredictiveJobGroupResult.h" -#include "model/PublishSurveyRequest.h" -#include "model/PublishSurveyResult.h" -#include "model/RefreshTokenRequest.h" -#include "model/RefreshTokenResult.h" -#include "model/RemovePhoneNumberRequest.h" -#include "model/RemovePhoneNumberResult.h" -#include "model/RemoveUsersRequest.h" -#include "model/RemoveUsersResult.h" -#include "model/RemoveUsersFromSkillGroupRequest.h" -#include "model/RemoveUsersFromSkillGroupResult.h" -#include "model/RequestLoginInfoRequest.h" -#include "model/RequestLoginInfoResult.h" -#include "model/ResetUserStatusRequest.h" -#include "model/ResetUserStatusResult.h" -#include "model/ResumeJobsRequest.h" -#include "model/ResumeJobsResult.h" -#include "model/ResumePredictiveJobsRequest.h" -#include "model/ResumePredictiveJobsResult.h" -#include "model/SaveWebRTCStatsRequest.h" -#include "model/SaveWebRTCStatsResult.h" -#include "model/SendPredefinedShortMessageRequest.h" -#include "model/SendPredefinedShortMessageResult.h" -#include "model/StartBack2BackCallRequest.h" -#include "model/StartBack2BackCallResult.h" -#include "model/StartJobRequest.h" -#include "model/StartJobResult.h" -#include "model/SubmitBatchJobsRequest.h" -#include "model/SubmitBatchJobsResult.h" -#include "model/SubmitCabRecordingRequest.h" -#include "model/SubmitCabRecordingResult.h" -#include "model/SuspendJobsRequest.h" -#include "model/SuspendJobsResult.h" -#include "model/SuspendPredictiveJobsRequest.h" -#include "model/SuspendPredictiveJobsResult.h" -#include "model/TaskPreparingRequest.h" -#include "model/TaskPreparingResult.h" +#include "model/PollUserStatusRequest.h" +#include "model/PollUserStatusResult.h" +#include "model/ReadyForServiceRequest.h" +#include "model/ReadyForServiceResult.h" +#include "model/RegisterDeviceRequest.h" +#include "model/RegisterDeviceResult.h" +#include "model/ReleaseCallRequest.h" +#include "model/ReleaseCallResult.h" +#include "model/ResetAgentStateRequest.h" +#include "model/ResetAgentStateResult.h" +#include "model/RetrieveCallRequest.h" +#include "model/RetrieveCallResult.h" +#include "model/SendDtmfSignalingRequest.h" +#include "model/SendDtmfSignalingResult.h" +#include "model/SignInGroupRequest.h" +#include "model/SignInGroupResult.h" +#include "model/SignOutGroupRequest.h" +#include "model/SignOutGroupResult.h" +#include "model/TakeBreakRequest.h" +#include "model/TakeBreakResult.h" +#include "model/UnmuteCallRequest.h" +#include "model/UnmuteCallResult.h" namespace AlibabaCloud @@ -337,929 +115,263 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient { public: - typedef Outcome AbortPredictiveJobsOutcome; - typedef std::future AbortPredictiveJobsOutcomeCallable; - typedef std::function&)> AbortPredictiveJobsAsyncHandler; - typedef Outcome AddAgentDeviceOutcome; - typedef std::future AddAgentDeviceOutcomeCallable; - typedef std::function&)> AddAgentDeviceAsyncHandler; - typedef Outcome AddBulkPhoneNumbersOutcome; - typedef std::future AddBulkPhoneNumbersOutcomeCallable; - typedef std::function&)> AddBulkPhoneNumbersAsyncHandler; - typedef Outcome AddJobsToPredictiveJobGroupOutcome; - typedef std::future AddJobsToPredictiveJobGroupOutcomeCallable; - typedef std::function&)> AddJobsToPredictiveJobGroupAsyncHandler; - typedef Outcome AddPhoneNumberOutcome; - typedef std::future AddPhoneNumberOutcomeCallable; - typedef std::function&)> AddPhoneNumberAsyncHandler; - typedef Outcome AddPhoneTagsOutcome; - typedef std::future AddPhoneTagsOutcomeCallable; - typedef std::function&)> AddPhoneTagsAsyncHandler; - typedef Outcome AssignJobsOutcome; - typedef std::future AssignJobsOutcomeCallable; - typedef std::function&)> AssignJobsAsyncHandler; - typedef Outcome AssignUsersOutcome; - typedef std::future AssignUsersOutcomeCallable; - typedef std::function&)> AssignUsersAsyncHandler; - typedef Outcome CallOnlinePrivacyNumberOutcome; - typedef std::future CallOnlinePrivacyNumberOutcomeCallable; - typedef std::function&)> CallOnlinePrivacyNumberAsyncHandler; - typedef Outcome CancelJobsOutcome; - typedef std::future CancelJobsOutcomeCallable; - typedef std::function&)> CancelJobsAsyncHandler; - typedef Outcome CheckNumberAvaliableOutcome; - typedef std::future CheckNumberAvaliableOutcomeCallable; - typedef std::function&)> CheckNumberAvaliableAsyncHandler; - typedef Outcome CommitContactFlowVersionModificationOutcome; - typedef std::future CommitContactFlowVersionModificationOutcomeCallable; - typedef std::function&)> CommitContactFlowVersionModificationAsyncHandler; - typedef Outcome CreateBatchJobsOutcome; - typedef std::future CreateBatchJobsOutcomeCallable; - typedef std::function&)> CreateBatchJobsAsyncHandler; - typedef Outcome CreateCabInstanceOutcome; - typedef std::future CreateCabInstanceOutcomeCallable; - typedef std::function&)> CreateCabInstanceAsyncHandler; - typedef Outcome CreateContactFlowOutcome; - typedef std::future CreateContactFlowOutcomeCallable; - typedef std::function&)> CreateContactFlowAsyncHandler; - typedef Outcome CreateFaultOutcome; - typedef std::future CreateFaultOutcomeCallable; - typedef std::function&)> CreateFaultAsyncHandler; - typedef Outcome CreateInstanceOutcome; - typedef std::future CreateInstanceOutcomeCallable; - typedef std::function&)> CreateInstanceAsyncHandler; - typedef Outcome CreateJobGroupOutcome; - typedef std::future CreateJobGroupOutcomeCallable; - typedef std::function&)> CreateJobGroupAsyncHandler; - typedef Outcome CreateMediaOutcome; - typedef std::future CreateMediaOutcomeCallable; - typedef std::function&)> CreateMediaAsyncHandler; - typedef Outcome CreatePredictiveJobGroupOutcome; - typedef std::future CreatePredictiveJobGroupOutcomeCallable; - typedef std::function&)> CreatePredictiveJobGroupAsyncHandler; - typedef Outcome CreateScenarioOutcome; - typedef std::future CreateScenarioOutcomeCallable; - typedef std::function&)> CreateScenarioAsyncHandler; - typedef Outcome CreateScenarioFromTemplateOutcome; - typedef std::future CreateScenarioFromTemplateOutcomeCallable; - typedef std::function&)> CreateScenarioFromTemplateAsyncHandler; - typedef Outcome CreateSkillGroupOutcome; - typedef std::future CreateSkillGroupOutcomeCallable; - typedef std::function&)> CreateSkillGroupAsyncHandler; - typedef Outcome CreateSurveyOutcome; - typedef std::future CreateSurveyOutcomeCallable; - typedef std::function&)> CreateSurveyAsyncHandler; - typedef Outcome CreateUserOutcome; - typedef std::future CreateUserOutcomeCallable; - typedef std::function&)> CreateUserAsyncHandler; - typedef Outcome CreateVoiceAppraiseOutcome; - typedef std::future CreateVoiceAppraiseOutcomeCallable; - typedef std::function&)> CreateVoiceAppraiseAsyncHandler; - typedef Outcome DeleteInstanceOutcome; - typedef std::future DeleteInstanceOutcomeCallable; - typedef std::function&)> DeleteInstanceAsyncHandler; - typedef Outcome DeleteJobGroupOutcome; - typedef std::future DeleteJobGroupOutcomeCallable; - typedef std::function&)> DeleteJobGroupAsyncHandler; - typedef Outcome DeleteMediaOutcome; - typedef std::future DeleteMediaOutcomeCallable; - typedef std::function&)> DeleteMediaAsyncHandler; - typedef Outcome DeletePhoneTagsOutcome; - typedef std::future DeletePhoneTagsOutcomeCallable; - typedef std::function&)> DeletePhoneTagsAsyncHandler; - typedef Outcome DeleteSkillGroupOutcome; - typedef std::future DeleteSkillGroupOutcomeCallable; - typedef std::function&)> DeleteSkillGroupAsyncHandler; - typedef Outcome DeleteSurveyOutcome; - typedef std::future DeleteSurveyOutcomeCallable; - typedef std::function&)> DeleteSurveyAsyncHandler; - typedef Outcome DialExOutcome; - typedef std::future DialExOutcomeCallable; - typedef std::function&)> DialExAsyncHandler; - typedef Outcome DialogueOutcome; - typedef std::future DialogueOutcomeCallable; - typedef std::function&)> DialogueAsyncHandler; - typedef Outcome DisableTrunkProvidersOutcome; - typedef std::future DisableTrunkProvidersOutcomeCallable; - typedef std::function&)> DisableTrunkProvidersAsyncHandler; - typedef Outcome DownloadAllTypeRecordingOutcome; - typedef std::future DownloadAllTypeRecordingOutcomeCallable; - typedef std::function&)> DownloadAllTypeRecordingAsyncHandler; - typedef Outcome DownloadCabRecordingOutcome; - typedef std::future DownloadCabRecordingOutcomeCallable; - typedef std::function&)> DownloadCabRecordingAsyncHandler; - typedef Outcome DownloadOriginalStatisticsReportOutcome; - typedef std::future DownloadOriginalStatisticsReportOutcomeCallable; - typedef std::function&)> DownloadOriginalStatisticsReportAsyncHandler; - typedef Outcome DownloadRecordingOutcome; - typedef std::future DownloadRecordingOutcomeCallable; - typedef std::function&)> DownloadRecordingAsyncHandler; - typedef Outcome DownloadUnreachableContactsOutcome; - typedef std::future DownloadUnreachableContactsOutcomeCallable; - typedef std::function&)> DownloadUnreachableContactsAsyncHandler; - typedef Outcome FindUsersOutcome; - typedef std::future FindUsersOutcomeCallable; - typedef std::function&)> FindUsersAsyncHandler; - typedef Outcome GenerateAgentStatisticReportOutcome; - typedef std::future GenerateAgentStatisticReportOutcomeCallable; - typedef std::function&)> GenerateAgentStatisticReportAsyncHandler; - typedef Outcome GetAgentDataOutcome; - typedef std::future GetAgentDataOutcomeCallable; - typedef std::function&)> GetAgentDataAsyncHandler; - typedef Outcome GetCallMeasureSummaryReportOutcome; - typedef std::future GetCallMeasureSummaryReportOutcomeCallable; - typedef std::function&)> GetCallMeasureSummaryReportAsyncHandler; - typedef Outcome GetConfigOutcome; - typedef std::future GetConfigOutcomeCallable; - typedef std::function&)> GetConfigAsyncHandler; - typedef Outcome GetConversationDetailByContactIdOutcome; - typedef std::future GetConversationDetailByContactIdOutcomeCallable; - typedef std::function&)> GetConversationDetailByContactIdAsyncHandler; - typedef Outcome GetConversationListOutcome; - typedef std::future GetConversationListOutcomeCallable; - typedef std::function&)> GetConversationListAsyncHandler; - typedef Outcome GetInstanceOutcome; - typedef std::future GetInstanceOutcomeCallable; - typedef std::function&)> GetInstanceAsyncHandler; - typedef Outcome GetInstanceStateOutcome; - typedef std::future GetInstanceStateOutcomeCallable; - typedef std::function&)> GetInstanceStateAsyncHandler; - typedef Outcome GetInstanceSummaryReportOutcome; - typedef std::future GetInstanceSummaryReportOutcomeCallable; - typedef std::function&)> GetInstanceSummaryReportAsyncHandler; - typedef Outcome GetInstanceSummaryReportByIntervalOutcome; - typedef std::future GetInstanceSummaryReportByIntervalOutcomeCallable; - typedef std::function&)> GetInstanceSummaryReportByIntervalAsyncHandler; - typedef Outcome GetInstanceSummaryReportSinceMidnightOutcome; - typedef std::future GetInstanceSummaryReportSinceMidnightOutcomeCallable; - typedef std::function&)> GetInstanceSummaryReportSinceMidnightAsyncHandler; - typedef Outcome GetJobOutcome; - typedef std::future GetJobOutcomeCallable; - typedef std::function&)> GetJobAsyncHandler; - typedef Outcome GetJobDataUploadParamsOutcome; - typedef std::future GetJobDataUploadParamsOutcomeCallable; - typedef std::function&)> GetJobDataUploadParamsAsyncHandler; - typedef Outcome GetJobFileUploadUrlOutcome; - typedef std::future GetJobFileUploadUrlOutcomeCallable; - typedef std::function&)> GetJobFileUploadUrlAsyncHandler; - typedef Outcome GetJobGroupOutcome; - typedef std::future GetJobGroupOutcomeCallable; - typedef std::function&)> GetJobGroupAsyncHandler; - typedef Outcome GetJobListOutcome; - typedef std::future GetJobListOutcomeCallable; - typedef std::function&)> GetJobListAsyncHandler; - typedef Outcome GetJobStatusByCallIdOutcome; - typedef std::future GetJobStatusByCallIdOutcomeCallable; - typedef std::function&)> GetJobStatusByCallIdAsyncHandler; - typedef Outcome GetJobTemplateDownloadParamsOutcome; - typedef std::future GetJobTemplateDownloadParamsOutcomeCallable; - typedef std::function&)> GetJobTemplateDownloadParamsAsyncHandler; - typedef Outcome GetNumberRegionInfoOutcome; - typedef std::future GetNumberRegionInfoOutcomeCallable; - typedef std::function&)> GetNumberRegionInfoAsyncHandler; - typedef Outcome GetRecordOssUploadParamOutcome; - typedef std::future GetRecordOssUploadParamOutcomeCallable; - typedef std::function&)> GetRecordOssUploadParamAsyncHandler; - typedef Outcome GetRoutePointOutcome; - typedef std::future GetRoutePointOutcomeCallable; - typedef std::function&)> GetRoutePointAsyncHandler; - typedef Outcome GetScenarioOutcome; - typedef std::future GetScenarioOutcomeCallable; - typedef std::function&)> GetScenarioAsyncHandler; - typedef Outcome GetServiceExtensionsOutcome; - typedef std::future GetServiceExtensionsOutcomeCallable; - typedef std::function&)> GetServiceExtensionsAsyncHandler; - typedef Outcome GetSmsConfigOutcome; - typedef std::future GetSmsConfigOutcomeCallable; - typedef std::function&)> GetSmsConfigAsyncHandler; - typedef Outcome GetSurveyOutcome; - typedef std::future GetSurveyOutcomeCallable; - typedef std::function&)> GetSurveyAsyncHandler; - typedef Outcome GetTURNCredentialsOutcome; - typedef std::future GetTURNCredentialsOutcomeCallable; - typedef std::function&)> GetTURNCredentialsAsyncHandler; - typedef Outcome GetTURNServerListOutcome; - typedef std::future GetTURNServerListOutcomeCallable; - typedef std::function&)> GetTURNServerListAsyncHandler; - typedef Outcome GetTaskListOutcome; - typedef std::future GetTaskListOutcomeCallable; - typedef std::function&)> GetTaskListAsyncHandler; - typedef Outcome GetUserOutcome; - typedef std::future GetUserOutcomeCallable; - typedef std::function&)> GetUserAsyncHandler; - typedef Outcome GetUserByExtensionOutcome; - typedef std::future GetUserByExtensionOutcomeCallable; - typedef std::function&)> GetUserByExtensionAsyncHandler; - typedef Outcome InflightTaskTimeoutOutcome; - typedef std::future InflightTaskTimeoutOutcomeCallable; - typedef std::function&)> InflightTaskTimeoutAsyncHandler; - typedef Outcome LaunchAppraiseOutcome; - typedef std::future LaunchAppraiseOutcomeCallable; - typedef std::function&)> LaunchAppraiseAsyncHandler; - typedef Outcome LaunchShortMessageAppraiseOutcome; - typedef std::future LaunchShortMessageAppraiseOutcomeCallable; - typedef std::function&)> LaunchShortMessageAppraiseAsyncHandler; - typedef Outcome ListAgentDevicesOutcome; - typedef std::future ListAgentDevicesOutcomeCallable; - typedef std::function&)> ListAgentDevicesAsyncHandler; - typedef Outcome ListAgentEventsOutcome; - typedef std::future ListAgentEventsOutcomeCallable; - typedef std::function&)> ListAgentEventsAsyncHandler; - typedef Outcome ListAgentStateLogsOutcome; - typedef std::future ListAgentStateLogsOutcomeCallable; - typedef std::function&)> ListAgentStateLogsAsyncHandler; - typedef Outcome ListAgentStatesOutcome; - typedef std::future ListAgentStatesOutcomeCallable; - typedef std::function&)> ListAgentStatesAsyncHandler; - typedef Outcome ListAgentSummaryReportsOutcome; - typedef std::future ListAgentSummaryReportsOutcomeCallable; - typedef std::function&)> ListAgentSummaryReportsAsyncHandler; - typedef Outcome ListAgentSummaryReportsByIntervalOutcome; - typedef std::future ListAgentSummaryReportsByIntervalOutcomeCallable; - typedef std::function&)> ListAgentSummaryReportsByIntervalAsyncHandler; - typedef Outcome ListAgentSummaryReportsSinceMidnightOutcome; - typedef std::future ListAgentSummaryReportsSinceMidnightOutcomeCallable; - typedef std::function&)> ListAgentSummaryReportsSinceMidnightAsyncHandler; - typedef Outcome ListBasicStatisticsReportSubItemsOutcome; - typedef std::future ListBasicStatisticsReportSubItemsOutcomeCallable; - typedef std::function&)> ListBasicStatisticsReportSubItemsAsyncHandler; + typedef Outcome AnswerCallOutcome; + typedef std::future AnswerCallOutcomeCallable; + typedef std::function&)> AnswerCallAsyncHandler; + typedef Outcome BargeInCallOutcome; + typedef std::future BargeInCallOutcomeCallable; + typedef std::function&)> BargeInCallAsyncHandler; + typedef Outcome BlindTransferOutcome; + typedef std::future BlindTransferOutcomeCallable; + typedef std::function&)> BlindTransferAsyncHandler; + typedef Outcome CancelAttendedTransferOutcome; + typedef std::future CancelAttendedTransferOutcomeCallable; + typedef std::function&)> CancelAttendedTransferAsyncHandler; + typedef Outcome ChangeWorkModeOutcome; + typedef std::future ChangeWorkModeOutcomeCallable; + typedef std::function&)> ChangeWorkModeAsyncHandler; + typedef Outcome CompleteAttendedTransferOutcome; + typedef std::future CompleteAttendedTransferOutcomeCallable; + typedef std::function&)> CompleteAttendedTransferAsyncHandler; + typedef Outcome GetLoginDetailsOutcome; + typedef std::future GetLoginDetailsOutcomeCallable; + typedef std::function&)> GetLoginDetailsAsyncHandler; + typedef Outcome GetMonoRecordingOutcome; + typedef std::future GetMonoRecordingOutcomeCallable; + typedef std::function&)> GetMonoRecordingAsyncHandler; + typedef Outcome GetMultiChannelRecordingOutcome; + typedef std::future GetMultiChannelRecordingOutcomeCallable; + typedef std::function&)> GetMultiChannelRecordingAsyncHandler; + typedef Outcome GetNumberLocationOutcome; + typedef std::future GetNumberLocationOutcomeCallable; + typedef std::function&)> GetNumberLocationAsyncHandler; + typedef Outcome GetTurnCredentialsOutcome; + typedef std::future GetTurnCredentialsOutcomeCallable; + typedef std::function&)> GetTurnCredentialsAsyncHandler; + typedef Outcome GetTurnServerListOutcome; + typedef std::future GetTurnServerListOutcomeCallable; + typedef std::function&)> GetTurnServerListAsyncHandler; + typedef Outcome HoldCallOutcome; + typedef std::future HoldCallOutcomeCallable; + typedef std::function&)> HoldCallAsyncHandler; + typedef Outcome InitiateAttendedTransferOutcome; + typedef std::future InitiateAttendedTransferOutcomeCallable; + typedef std::function&)> InitiateAttendedTransferAsyncHandler; + typedef Outcome InterceptCallOutcome; + typedef std::future InterceptCallOutcomeCallable; + typedef std::function&)> InterceptCallAsyncHandler; + typedef Outcome LaunchAuthenticationOutcome; + typedef std::future LaunchAuthenticationOutcomeCallable; + typedef std::function&)> LaunchAuthenticationAsyncHandler; + typedef Outcome LaunchSurveyOutcome; + typedef std::future LaunchSurveyOutcomeCallable; + typedef std::function&)> LaunchSurveyAsyncHandler; + typedef Outcome ListBriefSkillGroupsOutcome; + typedef std::future ListBriefSkillGroupsOutcomeCallable; + typedef std::function&)> ListBriefSkillGroupsAsyncHandler; typedef Outcome ListCallDetailRecordsOutcome; typedef std::future ListCallDetailRecordsOutcomeCallable; typedef std::function&)> ListCallDetailRecordsAsyncHandler; - typedef Outcome ListCallEventDetailByContactIdOutcome; - typedef std::future ListCallEventDetailByContactIdOutcomeCallable; - typedef std::function&)> ListCallEventDetailByContactIdAsyncHandler; - typedef Outcome ListCallMeasureSummaryReportsOutcome; - typedef std::future ListCallMeasureSummaryReportsOutcomeCallable; - typedef std::function&)> ListCallMeasureSummaryReportsAsyncHandler; - typedef Outcome ListConfigOutcome; - typedef std::future ListConfigOutcomeCallable; - typedef std::function&)> ListConfigAsyncHandler; - typedef Outcome ListContactFlowsOutcome; - typedef std::future ListContactFlowsOutcomeCallable; - typedef std::function&)> ListContactFlowsAsyncHandler; - typedef Outcome ListInstancesOfUserOutcome; - typedef std::future ListInstancesOfUserOutcomeCallable; - typedef std::function&)> ListInstancesOfUserAsyncHandler; - typedef Outcome ListIvrTrackingDetailOutcome; - typedef std::future ListIvrTrackingDetailOutcomeCallable; - typedef std::function&)> ListIvrTrackingDetailAsyncHandler; - typedef Outcome ListJobGroupsOutcome; - typedef std::future ListJobGroupsOutcomeCallable; - typedef std::function&)> ListJobGroupsAsyncHandler; - typedef Outcome ListJobStatusOutcome; - typedef std::future ListJobStatusOutcomeCallable; - typedef std::function&)> ListJobStatusAsyncHandler; - typedef Outcome ListJobsByGroupOutcome; - typedef std::future ListJobsByGroupOutcomeCallable; - typedef std::function&)> ListJobsByGroupAsyncHandler; - typedef Outcome ListMediasOutcome; - typedef std::future ListMediasOutcomeCallable; - typedef std::function&)> ListMediasAsyncHandler; - typedef Outcome ListOutboundPhoneNumberOfUserOutcome; - typedef std::future ListOutboundPhoneNumberOfUserOutcomeCallable; - typedef std::function&)> ListOutboundPhoneNumberOfUserAsyncHandler; - typedef Outcome ListPhoneNumbersOutcome; - typedef std::future ListPhoneNumbersOutcomeCallable; - typedef std::function&)> ListPhoneNumbersAsyncHandler; - typedef Outcome ListPhoneTagsOutcome; - typedef std::future ListPhoneTagsOutcomeCallable; - typedef std::function&)> ListPhoneTagsAsyncHandler; - typedef Outcome ListRealTimeAgentOutcome; - typedef std::future ListRealTimeAgentOutcomeCallable; - typedef std::function&)> ListRealTimeAgentAsyncHandler; - typedef Outcome ListRecentCallRecordsOutcome; - typedef std::future ListRecentCallRecordsOutcomeCallable; - typedef std::function&)> ListRecentCallRecordsAsyncHandler; - typedef Outcome ListRecordingOfDualTrackOutcome; - typedef std::future ListRecordingOfDualTrackOutcomeCallable; - typedef std::function&)> ListRecordingOfDualTrackAsyncHandler; - typedef Outcome ListRecordingsOutcome; - typedef std::future ListRecordingsOutcomeCallable; - typedef std::function&)> ListRecordingsAsyncHandler; - typedef Outcome ListRecordingsByContactIdOutcome; - typedef std::future ListRecordingsByContactIdOutcomeCallable; - typedef std::function&)> ListRecordingsByContactIdAsyncHandler; - typedef Outcome ListRolesOutcome; - typedef std::future ListRolesOutcomeCallable; - typedef std::function&)> ListRolesAsyncHandler; - typedef Outcome ListScenarioTemplatesOutcome; - typedef std::future ListScenarioTemplatesOutcomeCallable; - typedef std::function&)> ListScenarioTemplatesAsyncHandler; - typedef Outcome ListScenariosOutcome; - typedef std::future ListScenariosOutcomeCallable; - typedef std::function&)> ListScenariosAsyncHandler; - typedef Outcome ListSkillGroupStatesOutcome; - typedef std::future ListSkillGroupStatesOutcomeCallable; - typedef std::function&)> ListSkillGroupStatesAsyncHandler; - typedef Outcome ListSkillGroupSummaryReportsOutcome; - typedef std::future ListSkillGroupSummaryReportsOutcomeCallable; - typedef std::function&)> ListSkillGroupSummaryReportsAsyncHandler; - typedef Outcome ListSkillGroupSummaryReportsByIntervalOutcome; - typedef std::future ListSkillGroupSummaryReportsByIntervalOutcomeCallable; - typedef std::function&)> ListSkillGroupSummaryReportsByIntervalAsyncHandler; - typedef Outcome ListSkillGroupSummaryReportsSinceMidnightOutcome; - typedef std::future ListSkillGroupSummaryReportsSinceMidnightOutcomeCallable; - typedef std::function&)> ListSkillGroupSummaryReportsSinceMidnightAsyncHandler; - typedef Outcome ListSkillGroupsOutcome; - typedef std::future ListSkillGroupsOutcomeCallable; - typedef std::function&)> ListSkillGroupsAsyncHandler; - typedef Outcome ListSkillGroupsOfUserOutcome; - typedef std::future ListSkillGroupsOfUserOutcomeCallable; - typedef std::function&)> ListSkillGroupsOfUserAsyncHandler; - typedef Outcome ListSurveysOutcome; - typedef std::future ListSurveysOutcomeCallable; - typedef std::function&)> ListSurveysAsyncHandler; - typedef Outcome ListTransferableSkillGroupsOutcome; - typedef std::future ListTransferableSkillGroupsOutcomeCallable; - typedef std::function&)> ListTransferableSkillGroupsAsyncHandler; - typedef Outcome ListTrunkProvidersOutcome; - typedef std::future ListTrunkProvidersOutcomeCallable; - typedef std::function&)> ListTrunkProvidersAsyncHandler; - typedef Outcome ListTrunksOfSkillGroupOutcome; - typedef std::future ListTrunksOfSkillGroupOutcomeCallable; - typedef std::function&)> ListTrunksOfSkillGroupAsyncHandler; - typedef Outcome ListUnreachableContactsOutcome; - typedef std::future ListUnreachableContactsOutcomeCallable; - typedef std::function&)> ListUnreachableContactsAsyncHandler; - typedef Outcome ListUsersOutcome; - typedef std::future ListUsersOutcomeCallable; - typedef std::function&)> ListUsersAsyncHandler; - typedef Outcome ListUsersOfSkillGroupOutcome; - typedef std::future ListUsersOfSkillGroupOutcomeCallable; - typedef std::function&)> ListUsersOfSkillGroupAsyncHandler; - typedef Outcome ListVoiceAppraiseOutcome; - typedef std::future ListVoiceAppraiseOutcomeCallable; - typedef std::function&)> ListVoiceAppraiseAsyncHandler; - typedef Outcome ModifyAgentDeviceOutcome; - typedef std::future ModifyAgentDeviceOutcomeCallable; - typedef std::function&)> ModifyAgentDeviceAsyncHandler; - typedef Outcome ModifyCabInstanceOutcome; - typedef std::future ModifyCabInstanceOutcomeCallable; - typedef std::function&)> ModifyCabInstanceAsyncHandler; - typedef Outcome ModifyPhoneNumberOutcome; - typedef std::future ModifyPhoneNumberOutcomeCallable; - typedef std::function&)> ModifyPhoneNumberAsyncHandler; - typedef Outcome ModifyPhoneTagsOutcome; - typedef std::future ModifyPhoneTagsOutcomeCallable; - typedef std::function&)> ModifyPhoneTagsAsyncHandler; - typedef Outcome ModifyPrimaryTrunksOfSkillGroupOutcome; - typedef std::future ModifyPrimaryTrunksOfSkillGroupOutcomeCallable; - typedef std::function&)> ModifyPrimaryTrunksOfSkillGroupAsyncHandler; - typedef Outcome ModifyPrivacyNumberCallDetailOutcome; - typedef std::future ModifyPrivacyNumberCallDetailOutcomeCallable; - typedef std::function&)> ModifyPrivacyNumberCallDetailAsyncHandler; - typedef Outcome ModifyScenarioOutcome; - typedef std::future ModifyScenarioOutcomeCallable; - typedef std::function&)> ModifyScenarioAsyncHandler; - typedef Outcome ModifySkillGroupOutcome; - typedef std::future ModifySkillGroupOutcomeCallable; - typedef std::function&)> ModifySkillGroupAsyncHandler; - typedef Outcome ModifySkillGroupOfUserOutcome; - typedef std::future ModifySkillGroupOfUserOutcomeCallable; - typedef std::function&)> ModifySkillGroupOfUserAsyncHandler; - typedef Outcome ModifySkillGroupOutboundNumbersOutcome; - typedef std::future ModifySkillGroupOutboundNumbersOutcomeCallable; - typedef std::function&)> ModifySkillGroupOutboundNumbersAsyncHandler; - typedef Outcome ModifySurveyOutcome; - typedef std::future ModifySurveyOutcomeCallable; - typedef std::function&)> ModifySurveyAsyncHandler; - typedef Outcome ModifyUserOutcome; - typedef std::future ModifyUserOutcomeCallable; - typedef std::function&)> ModifyUserAsyncHandler; - typedef Outcome PickGlobalOutboundNumbersOutcome; - typedef std::future PickGlobalOutboundNumbersOutcomeCallable; - typedef std::function&)> PickGlobalOutboundNumbersAsyncHandler; - typedef Outcome PickLocalNumberOutcome; - typedef std::future PickLocalNumberOutcomeCallable; - typedef std::function&)> PickLocalNumberAsyncHandler; + typedef Outcome ListConfigItemsOutcome; + typedef std::future ListConfigItemsOutcomeCallable; + typedef std::function&)> ListConfigItemsAsyncHandler; + typedef Outcome ListDevicesOutcome; + typedef std::future ListDevicesOutcomeCallable; + typedef std::function&)> ListDevicesAsyncHandler; + typedef Outcome ListHistoricalAgentReportOutcome; + typedef std::future ListHistoricalAgentReportOutcomeCallable; + typedef std::function&)> ListHistoricalAgentReportAsyncHandler; + typedef Outcome ListOutboundNumbersOfUserOutcome; + typedef std::future ListOutboundNumbersOfUserOutcomeCallable; + typedef std::function&)> ListOutboundNumbersOfUserAsyncHandler; + typedef Outcome ListPrivilegesOfUserOutcome; + typedef std::future ListPrivilegesOfUserOutcomeCallable; + typedef std::function&)> ListPrivilegesOfUserAsyncHandler; + typedef Outcome ListRealtimeAgentStatesOutcome; + typedef std::future ListRealtimeAgentStatesOutcomeCallable; + typedef std::function&)> ListRealtimeAgentStatesAsyncHandler; + typedef Outcome ListRecentCallDetailRecordsOutcome; + typedef std::future ListRecentCallDetailRecordsOutcomeCallable; + typedef std::function&)> ListRecentCallDetailRecordsAsyncHandler; + typedef Outcome ListSkillLevelsOfUserOutcome; + typedef std::future ListSkillLevelsOfUserOutcomeCallable; + typedef std::function&)> ListSkillLevelsOfUserAsyncHandler; + typedef Outcome MakeCallOutcome; + typedef std::future MakeCallOutcomeCallable; + typedef std::function&)> MakeCallAsyncHandler; + typedef Outcome MonitorCallOutcome; + typedef std::future MonitorCallOutcomeCallable; + typedef std::function&)> MonitorCallAsyncHandler; + typedef Outcome MuteCallOutcome; + typedef std::future MuteCallOutcomeCallable; + typedef std::function&)> MuteCallAsyncHandler; typedef Outcome PickOutboundNumbersOutcome; typedef std::future PickOutboundNumbersOutcomeCallable; typedef std::function&)> PickOutboundNumbersAsyncHandler; - typedef Outcome PublishContactFlowVersionOutcome; - typedef std::future PublishContactFlowVersionOutcomeCallable; - typedef std::function&)> PublishContactFlowVersionAsyncHandler; - typedef Outcome PublishPredictiveJobGroupOutcome; - typedef std::future PublishPredictiveJobGroupOutcomeCallable; - typedef std::function&)> PublishPredictiveJobGroupAsyncHandler; - typedef Outcome PublishSurveyOutcome; - typedef std::future PublishSurveyOutcomeCallable; - typedef std::function&)> PublishSurveyAsyncHandler; - typedef Outcome RefreshTokenOutcome; - typedef std::future RefreshTokenOutcomeCallable; - typedef std::function&)> RefreshTokenAsyncHandler; - typedef Outcome RemovePhoneNumberOutcome; - typedef std::future RemovePhoneNumberOutcomeCallable; - typedef std::function&)> RemovePhoneNumberAsyncHandler; - typedef Outcome RemoveUsersOutcome; - typedef std::future RemoveUsersOutcomeCallable; - typedef std::function&)> RemoveUsersAsyncHandler; - typedef Outcome RemoveUsersFromSkillGroupOutcome; - typedef std::future RemoveUsersFromSkillGroupOutcomeCallable; - typedef std::function&)> RemoveUsersFromSkillGroupAsyncHandler; - typedef Outcome RequestLoginInfoOutcome; - typedef std::future RequestLoginInfoOutcomeCallable; - typedef std::function&)> RequestLoginInfoAsyncHandler; - typedef Outcome ResetUserStatusOutcome; - typedef std::future ResetUserStatusOutcomeCallable; - typedef std::function&)> ResetUserStatusAsyncHandler; - typedef Outcome ResumeJobsOutcome; - typedef std::future ResumeJobsOutcomeCallable; - typedef std::function&)> ResumeJobsAsyncHandler; - typedef Outcome ResumePredictiveJobsOutcome; - typedef std::future ResumePredictiveJobsOutcomeCallable; - typedef std::function&)> ResumePredictiveJobsAsyncHandler; - typedef Outcome SaveWebRTCStatsOutcome; - typedef std::future SaveWebRTCStatsOutcomeCallable; - typedef std::function&)> SaveWebRTCStatsAsyncHandler; - typedef Outcome SendPredefinedShortMessageOutcome; - typedef std::future SendPredefinedShortMessageOutcomeCallable; - typedef std::function&)> SendPredefinedShortMessageAsyncHandler; - typedef Outcome StartBack2BackCallOutcome; - typedef std::future StartBack2BackCallOutcomeCallable; - typedef std::function&)> StartBack2BackCallAsyncHandler; - typedef Outcome StartJobOutcome; - typedef std::future StartJobOutcomeCallable; - typedef std::function&)> StartJobAsyncHandler; - typedef Outcome SubmitBatchJobsOutcome; - typedef std::future SubmitBatchJobsOutcomeCallable; - typedef std::function&)> SubmitBatchJobsAsyncHandler; - typedef Outcome SubmitCabRecordingOutcome; - typedef std::future SubmitCabRecordingOutcomeCallable; - typedef std::function&)> SubmitCabRecordingAsyncHandler; - typedef Outcome SuspendJobsOutcome; - typedef std::future SuspendJobsOutcomeCallable; - typedef std::function&)> SuspendJobsAsyncHandler; - typedef Outcome SuspendPredictiveJobsOutcome; - typedef std::future SuspendPredictiveJobsOutcomeCallable; - typedef std::function&)> SuspendPredictiveJobsAsyncHandler; - typedef Outcome TaskPreparingOutcome; - typedef std::future TaskPreparingOutcomeCallable; - typedef std::function&)> TaskPreparingAsyncHandler; + typedef Outcome PollUserStatusOutcome; + typedef std::future PollUserStatusOutcomeCallable; + typedef std::function&)> PollUserStatusAsyncHandler; + typedef Outcome ReadyForServiceOutcome; + typedef std::future ReadyForServiceOutcomeCallable; + typedef std::function&)> ReadyForServiceAsyncHandler; + typedef Outcome RegisterDeviceOutcome; + typedef std::future RegisterDeviceOutcomeCallable; + typedef std::function&)> RegisterDeviceAsyncHandler; + typedef Outcome ReleaseCallOutcome; + typedef std::future ReleaseCallOutcomeCallable; + typedef std::function&)> ReleaseCallAsyncHandler; + typedef Outcome ResetAgentStateOutcome; + typedef std::future ResetAgentStateOutcomeCallable; + typedef std::function&)> ResetAgentStateAsyncHandler; + typedef Outcome RetrieveCallOutcome; + typedef std::future RetrieveCallOutcomeCallable; + typedef std::function&)> RetrieveCallAsyncHandler; + typedef Outcome SendDtmfSignalingOutcome; + typedef std::future SendDtmfSignalingOutcomeCallable; + typedef std::function&)> SendDtmfSignalingAsyncHandler; + typedef Outcome SignInGroupOutcome; + typedef std::future SignInGroupOutcomeCallable; + typedef std::function&)> SignInGroupAsyncHandler; + typedef Outcome SignOutGroupOutcome; + typedef std::future SignOutGroupOutcomeCallable; + typedef std::function&)> SignOutGroupAsyncHandler; + typedef Outcome TakeBreakOutcome; + typedef std::future TakeBreakOutcomeCallable; + typedef std::function&)> TakeBreakAsyncHandler; + typedef Outcome UnmuteCallOutcome; + typedef std::future UnmuteCallOutcomeCallable; + typedef std::function&)> UnmuteCallAsyncHandler; 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(); - AbortPredictiveJobsOutcome abortPredictiveJobs(const Model::AbortPredictiveJobsRequest &request)const; - void abortPredictiveJobsAsync(const Model::AbortPredictiveJobsRequest& request, const AbortPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AbortPredictiveJobsOutcomeCallable abortPredictiveJobsCallable(const Model::AbortPredictiveJobsRequest& request) const; - AddAgentDeviceOutcome addAgentDevice(const Model::AddAgentDeviceRequest &request)const; - void addAgentDeviceAsync(const Model::AddAgentDeviceRequest& request, const AddAgentDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddAgentDeviceOutcomeCallable addAgentDeviceCallable(const Model::AddAgentDeviceRequest& request) const; - AddBulkPhoneNumbersOutcome addBulkPhoneNumbers(const Model::AddBulkPhoneNumbersRequest &request)const; - void addBulkPhoneNumbersAsync(const Model::AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddBulkPhoneNumbersOutcomeCallable addBulkPhoneNumbersCallable(const Model::AddBulkPhoneNumbersRequest& request) const; - AddJobsToPredictiveJobGroupOutcome addJobsToPredictiveJobGroup(const Model::AddJobsToPredictiveJobGroupRequest &request)const; - void addJobsToPredictiveJobGroupAsync(const Model::AddJobsToPredictiveJobGroupRequest& request, const AddJobsToPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddJobsToPredictiveJobGroupOutcomeCallable addJobsToPredictiveJobGroupCallable(const Model::AddJobsToPredictiveJobGroupRequest& 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; - AddPhoneTagsOutcome addPhoneTags(const Model::AddPhoneTagsRequest &request)const; - void addPhoneTagsAsync(const Model::AddPhoneTagsRequest& request, const AddPhoneTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddPhoneTagsOutcomeCallable addPhoneTagsCallable(const Model::AddPhoneTagsRequest& 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; - 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; - CallOnlinePrivacyNumberOutcome callOnlinePrivacyNumber(const Model::CallOnlinePrivacyNumberRequest &request)const; - void callOnlinePrivacyNumberAsync(const Model::CallOnlinePrivacyNumberRequest& request, const CallOnlinePrivacyNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CallOnlinePrivacyNumberOutcomeCallable callOnlinePrivacyNumberCallable(const Model::CallOnlinePrivacyNumberRequest& 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; - CheckNumberAvaliableOutcome checkNumberAvaliable(const Model::CheckNumberAvaliableRequest &request)const; - void checkNumberAvaliableAsync(const Model::CheckNumberAvaliableRequest& request, const CheckNumberAvaliableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CheckNumberAvaliableOutcomeCallable checkNumberAvaliableCallable(const Model::CheckNumberAvaliableRequest& request) const; - CommitContactFlowVersionModificationOutcome commitContactFlowVersionModification(const Model::CommitContactFlowVersionModificationRequest &request)const; - void commitContactFlowVersionModificationAsync(const Model::CommitContactFlowVersionModificationRequest& request, const CommitContactFlowVersionModificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CommitContactFlowVersionModificationOutcomeCallable commitContactFlowVersionModificationCallable(const Model::CommitContactFlowVersionModificationRequest& 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; - CreateCabInstanceOutcome createCabInstance(const Model::CreateCabInstanceRequest &request)const; - void createCabInstanceAsync(const Model::CreateCabInstanceRequest& request, const CreateCabInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCabInstanceOutcomeCallable createCabInstanceCallable(const Model::CreateCabInstanceRequest& request) const; - CreateContactFlowOutcome createContactFlow(const Model::CreateContactFlowRequest &request)const; - void createContactFlowAsync(const Model::CreateContactFlowRequest& request, const CreateContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateContactFlowOutcomeCallable createContactFlowCallable(const Model::CreateContactFlowRequest& request) const; - CreateFaultOutcome createFault(const Model::CreateFaultRequest &request)const; - void createFaultAsync(const Model::CreateFaultRequest& request, const CreateFaultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateFaultOutcomeCallable createFaultCallable(const Model::CreateFaultRequest& request) const; - CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; - void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& 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; - CreateMediaOutcome createMedia(const Model::CreateMediaRequest &request)const; - void createMediaAsync(const Model::CreateMediaRequest& request, const CreateMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMediaOutcomeCallable createMediaCallable(const Model::CreateMediaRequest& request) const; - CreatePredictiveJobGroupOutcome createPredictiveJobGroup(const Model::CreatePredictiveJobGroupRequest &request)const; - void createPredictiveJobGroupAsync(const Model::CreatePredictiveJobGroupRequest& request, const CreatePredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreatePredictiveJobGroupOutcomeCallable createPredictiveJobGroupCallable(const Model::CreatePredictiveJobGroupRequest& 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; - 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; - 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; - 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; - 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; - CreateVoiceAppraiseOutcome createVoiceAppraise(const Model::CreateVoiceAppraiseRequest &request)const; - void createVoiceAppraiseAsync(const Model::CreateVoiceAppraiseRequest& request, const CreateVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateVoiceAppraiseOutcomeCallable createVoiceAppraiseCallable(const Model::CreateVoiceAppraiseRequest& request) const; - DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; - void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& 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; - DeleteMediaOutcome deleteMedia(const Model::DeleteMediaRequest &request)const; - void deleteMediaAsync(const Model::DeleteMediaRequest& request, const DeleteMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMediaOutcomeCallable deleteMediaCallable(const Model::DeleteMediaRequest& request) const; - DeletePhoneTagsOutcome deletePhoneTags(const Model::DeletePhoneTagsRequest &request)const; - void deletePhoneTagsAsync(const Model::DeletePhoneTagsRequest& request, const DeletePhoneTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePhoneTagsOutcomeCallable deletePhoneTagsCallable(const Model::DeletePhoneTagsRequest& 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; - 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; - DialExOutcome dialEx(const Model::DialExRequest &request)const; - void dialExAsync(const Model::DialExRequest& request, const DialExAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DialExOutcomeCallable dialExCallable(const Model::DialExRequest& 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; - DisableTrunkProvidersOutcome disableTrunkProviders(const Model::DisableTrunkProvidersRequest &request)const; - void disableTrunkProvidersAsync(const Model::DisableTrunkProvidersRequest& request, const DisableTrunkProvidersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableTrunkProvidersOutcomeCallable disableTrunkProvidersCallable(const Model::DisableTrunkProvidersRequest& request) const; - DownloadAllTypeRecordingOutcome downloadAllTypeRecording(const Model::DownloadAllTypeRecordingRequest &request)const; - void downloadAllTypeRecordingAsync(const Model::DownloadAllTypeRecordingRequest& request, const DownloadAllTypeRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DownloadAllTypeRecordingOutcomeCallable downloadAllTypeRecordingCallable(const Model::DownloadAllTypeRecordingRequest& request) const; - DownloadCabRecordingOutcome downloadCabRecording(const Model::DownloadCabRecordingRequest &request)const; - void downloadCabRecordingAsync(const Model::DownloadCabRecordingRequest& request, const DownloadCabRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DownloadCabRecordingOutcomeCallable downloadCabRecordingCallable(const Model::DownloadCabRecordingRequest& 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; - 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; - 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; - FindUsersOutcome findUsers(const Model::FindUsersRequest &request)const; - void findUsersAsync(const Model::FindUsersRequest& request, const FindUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FindUsersOutcomeCallable findUsersCallable(const Model::FindUsersRequest& 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; - 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; - GetCallMeasureSummaryReportOutcome getCallMeasureSummaryReport(const Model::GetCallMeasureSummaryReportRequest &request)const; - void getCallMeasureSummaryReportAsync(const Model::GetCallMeasureSummaryReportRequest& request, const GetCallMeasureSummaryReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCallMeasureSummaryReportOutcomeCallable getCallMeasureSummaryReportCallable(const Model::GetCallMeasureSummaryReportRequest& 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; - 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; - 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; - GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const; - void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const; - GetInstanceStateOutcome getInstanceState(const Model::GetInstanceStateRequest &request)const; - void getInstanceStateAsync(const Model::GetInstanceStateRequest& request, const GetInstanceStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetInstanceStateOutcomeCallable getInstanceStateCallable(const Model::GetInstanceStateRequest& request) const; - GetInstanceSummaryReportOutcome getInstanceSummaryReport(const Model::GetInstanceSummaryReportRequest &request)const; - void getInstanceSummaryReportAsync(const Model::GetInstanceSummaryReportRequest& request, const GetInstanceSummaryReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetInstanceSummaryReportOutcomeCallable getInstanceSummaryReportCallable(const Model::GetInstanceSummaryReportRequest& request) const; - GetInstanceSummaryReportByIntervalOutcome getInstanceSummaryReportByInterval(const Model::GetInstanceSummaryReportByIntervalRequest &request)const; - void getInstanceSummaryReportByIntervalAsync(const Model::GetInstanceSummaryReportByIntervalRequest& request, const GetInstanceSummaryReportByIntervalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetInstanceSummaryReportByIntervalOutcomeCallable getInstanceSummaryReportByIntervalCallable(const Model::GetInstanceSummaryReportByIntervalRequest& request) const; - GetInstanceSummaryReportSinceMidnightOutcome getInstanceSummaryReportSinceMidnight(const Model::GetInstanceSummaryReportSinceMidnightRequest &request)const; - void getInstanceSummaryReportSinceMidnightAsync(const Model::GetInstanceSummaryReportSinceMidnightRequest& request, const GetInstanceSummaryReportSinceMidnightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetInstanceSummaryReportSinceMidnightOutcomeCallable getInstanceSummaryReportSinceMidnightCallable(const Model::GetInstanceSummaryReportSinceMidnightRequest& 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; - 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; - GetJobFileUploadUrlOutcome getJobFileUploadUrl(const Model::GetJobFileUploadUrlRequest &request)const; - void getJobFileUploadUrlAsync(const Model::GetJobFileUploadUrlRequest& request, const GetJobFileUploadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetJobFileUploadUrlOutcomeCallable getJobFileUploadUrlCallable(const Model::GetJobFileUploadUrlRequest& 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; - 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; - 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; - 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; - 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; - GetRecordOssUploadParamOutcome getRecordOssUploadParam(const Model::GetRecordOssUploadParamRequest &request)const; - void getRecordOssUploadParamAsync(const Model::GetRecordOssUploadParamRequest& request, const GetRecordOssUploadParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetRecordOssUploadParamOutcomeCallable getRecordOssUploadParamCallable(const Model::GetRecordOssUploadParamRequest& request) const; - GetRoutePointOutcome getRoutePoint(const Model::GetRoutePointRequest &request)const; - void getRoutePointAsync(const Model::GetRoutePointRequest& request, const GetRoutePointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetRoutePointOutcomeCallable getRoutePointCallable(const Model::GetRoutePointRequest& 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; - 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; - GetSmsConfigOutcome getSmsConfig(const Model::GetSmsConfigRequest &request)const; - void getSmsConfigAsync(const Model::GetSmsConfigRequest& request, const GetSmsConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSmsConfigOutcomeCallable getSmsConfigCallable(const Model::GetSmsConfigRequest& 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; - GetTURNCredentialsOutcome getTURNCredentials(const Model::GetTURNCredentialsRequest &request)const; - void getTURNCredentialsAsync(const Model::GetTURNCredentialsRequest& request, const GetTURNCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetTURNCredentialsOutcomeCallable getTURNCredentialsCallable(const Model::GetTURNCredentialsRequest& request) const; - GetTURNServerListOutcome getTURNServerList(const Model::GetTURNServerListRequest &request)const; - void getTURNServerListAsync(const Model::GetTURNServerListRequest& request, const GetTURNServerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetTURNServerListOutcomeCallable getTURNServerListCallable(const Model::GetTURNServerListRequest& 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; - 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; - GetUserByExtensionOutcome getUserByExtension(const Model::GetUserByExtensionRequest &request)const; - void getUserByExtensionAsync(const Model::GetUserByExtensionRequest& request, const GetUserByExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUserByExtensionOutcomeCallable getUserByExtensionCallable(const Model::GetUserByExtensionRequest& request) const; - InflightTaskTimeoutOutcome inflightTaskTimeout(const Model::InflightTaskTimeoutRequest &request)const; - void inflightTaskTimeoutAsync(const Model::InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InflightTaskTimeoutOutcomeCallable inflightTaskTimeoutCallable(const Model::InflightTaskTimeoutRequest& 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; - LaunchShortMessageAppraiseOutcome launchShortMessageAppraise(const Model::LaunchShortMessageAppraiseRequest &request)const; - void launchShortMessageAppraiseAsync(const Model::LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - LaunchShortMessageAppraiseOutcomeCallable launchShortMessageAppraiseCallable(const Model::LaunchShortMessageAppraiseRequest& request) const; - ListAgentDevicesOutcome listAgentDevices(const Model::ListAgentDevicesRequest &request)const; - void listAgentDevicesAsync(const Model::ListAgentDevicesRequest& request, const ListAgentDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAgentDevicesOutcomeCallable listAgentDevicesCallable(const Model::ListAgentDevicesRequest& request) const; - ListAgentEventsOutcome listAgentEvents(const Model::ListAgentEventsRequest &request)const; - void listAgentEventsAsync(const Model::ListAgentEventsRequest& request, const ListAgentEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAgentEventsOutcomeCallable listAgentEventsCallable(const Model::ListAgentEventsRequest& request) const; - ListAgentStateLogsOutcome listAgentStateLogs(const Model::ListAgentStateLogsRequest &request)const; - void listAgentStateLogsAsync(const Model::ListAgentStateLogsRequest& request, const ListAgentStateLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAgentStateLogsOutcomeCallable listAgentStateLogsCallable(const Model::ListAgentStateLogsRequest& request) const; - ListAgentStatesOutcome listAgentStates(const Model::ListAgentStatesRequest &request)const; - void listAgentStatesAsync(const Model::ListAgentStatesRequest& request, const ListAgentStatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAgentStatesOutcomeCallable listAgentStatesCallable(const Model::ListAgentStatesRequest& request) const; - ListAgentSummaryReportsOutcome listAgentSummaryReports(const Model::ListAgentSummaryReportsRequest &request)const; - void listAgentSummaryReportsAsync(const Model::ListAgentSummaryReportsRequest& request, const ListAgentSummaryReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAgentSummaryReportsOutcomeCallable listAgentSummaryReportsCallable(const Model::ListAgentSummaryReportsRequest& request) const; - ListAgentSummaryReportsByIntervalOutcome listAgentSummaryReportsByInterval(const Model::ListAgentSummaryReportsByIntervalRequest &request)const; - void listAgentSummaryReportsByIntervalAsync(const Model::ListAgentSummaryReportsByIntervalRequest& request, const ListAgentSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAgentSummaryReportsByIntervalOutcomeCallable listAgentSummaryReportsByIntervalCallable(const Model::ListAgentSummaryReportsByIntervalRequest& request) const; - ListAgentSummaryReportsSinceMidnightOutcome listAgentSummaryReportsSinceMidnight(const Model::ListAgentSummaryReportsSinceMidnightRequest &request)const; - void listAgentSummaryReportsSinceMidnightAsync(const Model::ListAgentSummaryReportsSinceMidnightRequest& request, const ListAgentSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAgentSummaryReportsSinceMidnightOutcomeCallable listAgentSummaryReportsSinceMidnightCallable(const Model::ListAgentSummaryReportsSinceMidnightRequest& 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; + AnswerCallOutcome answerCall(const Model::AnswerCallRequest &request)const; + void answerCallAsync(const Model::AnswerCallRequest& request, const AnswerCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AnswerCallOutcomeCallable answerCallCallable(const Model::AnswerCallRequest& request) const; + BargeInCallOutcome bargeInCall(const Model::BargeInCallRequest &request)const; + void bargeInCallAsync(const Model::BargeInCallRequest& request, const BargeInCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BargeInCallOutcomeCallable bargeInCallCallable(const Model::BargeInCallRequest& request) const; + BlindTransferOutcome blindTransfer(const Model::BlindTransferRequest &request)const; + void blindTransferAsync(const Model::BlindTransferRequest& request, const BlindTransferAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BlindTransferOutcomeCallable blindTransferCallable(const Model::BlindTransferRequest& request) const; + CancelAttendedTransferOutcome cancelAttendedTransfer(const Model::CancelAttendedTransferRequest &request)const; + void cancelAttendedTransferAsync(const Model::CancelAttendedTransferRequest& request, const CancelAttendedTransferAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelAttendedTransferOutcomeCallable cancelAttendedTransferCallable(const Model::CancelAttendedTransferRequest& request) const; + ChangeWorkModeOutcome changeWorkMode(const Model::ChangeWorkModeRequest &request)const; + void changeWorkModeAsync(const Model::ChangeWorkModeRequest& request, const ChangeWorkModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeWorkModeOutcomeCallable changeWorkModeCallable(const Model::ChangeWorkModeRequest& request) const; + CompleteAttendedTransferOutcome completeAttendedTransfer(const Model::CompleteAttendedTransferRequest &request)const; + void completeAttendedTransferAsync(const Model::CompleteAttendedTransferRequest& request, const CompleteAttendedTransferAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompleteAttendedTransferOutcomeCallable completeAttendedTransferCallable(const Model::CompleteAttendedTransferRequest& request) const; + GetLoginDetailsOutcome getLoginDetails(const Model::GetLoginDetailsRequest &request)const; + void getLoginDetailsAsync(const Model::GetLoginDetailsRequest& request, const GetLoginDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLoginDetailsOutcomeCallable getLoginDetailsCallable(const Model::GetLoginDetailsRequest& request) const; + GetMonoRecordingOutcome getMonoRecording(const Model::GetMonoRecordingRequest &request)const; + void getMonoRecordingAsync(const Model::GetMonoRecordingRequest& request, const GetMonoRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMonoRecordingOutcomeCallable getMonoRecordingCallable(const Model::GetMonoRecordingRequest& request) const; + GetMultiChannelRecordingOutcome getMultiChannelRecording(const Model::GetMultiChannelRecordingRequest &request)const; + void getMultiChannelRecordingAsync(const Model::GetMultiChannelRecordingRequest& request, const GetMultiChannelRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMultiChannelRecordingOutcomeCallable getMultiChannelRecordingCallable(const Model::GetMultiChannelRecordingRequest& request) const; + GetNumberLocationOutcome getNumberLocation(const Model::GetNumberLocationRequest &request)const; + void getNumberLocationAsync(const Model::GetNumberLocationRequest& request, const GetNumberLocationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNumberLocationOutcomeCallable getNumberLocationCallable(const Model::GetNumberLocationRequest& request) const; + GetTurnCredentialsOutcome getTurnCredentials(const Model::GetTurnCredentialsRequest &request)const; + void getTurnCredentialsAsync(const Model::GetTurnCredentialsRequest& request, const GetTurnCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTurnCredentialsOutcomeCallable getTurnCredentialsCallable(const Model::GetTurnCredentialsRequest& request) const; + GetTurnServerListOutcome getTurnServerList(const Model::GetTurnServerListRequest &request)const; + void getTurnServerListAsync(const Model::GetTurnServerListRequest& request, const GetTurnServerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTurnServerListOutcomeCallable getTurnServerListCallable(const Model::GetTurnServerListRequest& request) const; + HoldCallOutcome holdCall(const Model::HoldCallRequest &request)const; + void holdCallAsync(const Model::HoldCallRequest& request, const HoldCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + HoldCallOutcomeCallable holdCallCallable(const Model::HoldCallRequest& request) const; + InitiateAttendedTransferOutcome initiateAttendedTransfer(const Model::InitiateAttendedTransferRequest &request)const; + void initiateAttendedTransferAsync(const Model::InitiateAttendedTransferRequest& request, const InitiateAttendedTransferAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InitiateAttendedTransferOutcomeCallable initiateAttendedTransferCallable(const Model::InitiateAttendedTransferRequest& request) const; + InterceptCallOutcome interceptCall(const Model::InterceptCallRequest &request)const; + void interceptCallAsync(const Model::InterceptCallRequest& request, const InterceptCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InterceptCallOutcomeCallable interceptCallCallable(const Model::InterceptCallRequest& request) const; + LaunchAuthenticationOutcome launchAuthentication(const Model::LaunchAuthenticationRequest &request)const; + void launchAuthenticationAsync(const Model::LaunchAuthenticationRequest& request, const LaunchAuthenticationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LaunchAuthenticationOutcomeCallable launchAuthenticationCallable(const Model::LaunchAuthenticationRequest& request) const; + LaunchSurveyOutcome launchSurvey(const Model::LaunchSurveyRequest &request)const; + void launchSurveyAsync(const Model::LaunchSurveyRequest& request, const LaunchSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LaunchSurveyOutcomeCallable launchSurveyCallable(const Model::LaunchSurveyRequest& request) const; + ListBriefSkillGroupsOutcome listBriefSkillGroups(const Model::ListBriefSkillGroupsRequest &request)const; + void listBriefSkillGroupsAsync(const Model::ListBriefSkillGroupsRequest& request, const ListBriefSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBriefSkillGroupsOutcomeCallable listBriefSkillGroupsCallable(const Model::ListBriefSkillGroupsRequest& 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; - ListCallEventDetailByContactIdOutcome listCallEventDetailByContactId(const Model::ListCallEventDetailByContactIdRequest &request)const; - void listCallEventDetailByContactIdAsync(const Model::ListCallEventDetailByContactIdRequest& request, const ListCallEventDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCallEventDetailByContactIdOutcomeCallable listCallEventDetailByContactIdCallable(const Model::ListCallEventDetailByContactIdRequest& request) const; - ListCallMeasureSummaryReportsOutcome listCallMeasureSummaryReports(const Model::ListCallMeasureSummaryReportsRequest &request)const; - void listCallMeasureSummaryReportsAsync(const Model::ListCallMeasureSummaryReportsRequest& request, const ListCallMeasureSummaryReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCallMeasureSummaryReportsOutcomeCallable listCallMeasureSummaryReportsCallable(const Model::ListCallMeasureSummaryReportsRequest& 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; - 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; - ListInstancesOfUserOutcome listInstancesOfUser(const Model::ListInstancesOfUserRequest &request)const; - void listInstancesOfUserAsync(const Model::ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListInstancesOfUserOutcomeCallable listInstancesOfUserCallable(const Model::ListInstancesOfUserRequest& request) const; - ListIvrTrackingDetailOutcome listIvrTrackingDetail(const Model::ListIvrTrackingDetailRequest &request)const; - void listIvrTrackingDetailAsync(const Model::ListIvrTrackingDetailRequest& request, const ListIvrTrackingDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListIvrTrackingDetailOutcomeCallable listIvrTrackingDetailCallable(const Model::ListIvrTrackingDetailRequest& 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; - 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; - 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; - ListMediasOutcome listMedias(const Model::ListMediasRequest &request)const; - void listMediasAsync(const Model::ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMediasOutcomeCallable listMediasCallable(const Model::ListMediasRequest& request) const; - ListOutboundPhoneNumberOfUserOutcome listOutboundPhoneNumberOfUser(const Model::ListOutboundPhoneNumberOfUserRequest &request)const; - void listOutboundPhoneNumberOfUserAsync(const Model::ListOutboundPhoneNumberOfUserRequest& request, const ListOutboundPhoneNumberOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListOutboundPhoneNumberOfUserOutcomeCallable listOutboundPhoneNumberOfUserCallable(const Model::ListOutboundPhoneNumberOfUserRequest& 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; - ListPhoneTagsOutcome listPhoneTags(const Model::ListPhoneTagsRequest &request)const; - void listPhoneTagsAsync(const Model::ListPhoneTagsRequest& request, const ListPhoneTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPhoneTagsOutcomeCallable listPhoneTagsCallable(const Model::ListPhoneTagsRequest& 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; - ListRecentCallRecordsOutcome listRecentCallRecords(const Model::ListRecentCallRecordsRequest &request)const; - void listRecentCallRecordsAsync(const Model::ListRecentCallRecordsRequest& request, const ListRecentCallRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRecentCallRecordsOutcomeCallable listRecentCallRecordsCallable(const Model::ListRecentCallRecordsRequest& request) const; - ListRecordingOfDualTrackOutcome listRecordingOfDualTrack(const Model::ListRecordingOfDualTrackRequest &request)const; - void listRecordingOfDualTrackAsync(const Model::ListRecordingOfDualTrackRequest& request, const ListRecordingOfDualTrackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRecordingOfDualTrackOutcomeCallable listRecordingOfDualTrackCallable(const Model::ListRecordingOfDualTrackRequest& 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; - 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; - 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; - 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; - 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; - ListSkillGroupStatesOutcome listSkillGroupStates(const Model::ListSkillGroupStatesRequest &request)const; - void listSkillGroupStatesAsync(const Model::ListSkillGroupStatesRequest& request, const ListSkillGroupStatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSkillGroupStatesOutcomeCallable listSkillGroupStatesCallable(const Model::ListSkillGroupStatesRequest& request) const; - ListSkillGroupSummaryReportsOutcome listSkillGroupSummaryReports(const Model::ListSkillGroupSummaryReportsRequest &request)const; - void listSkillGroupSummaryReportsAsync(const Model::ListSkillGroupSummaryReportsRequest& request, const ListSkillGroupSummaryReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSkillGroupSummaryReportsOutcomeCallable listSkillGroupSummaryReportsCallable(const Model::ListSkillGroupSummaryReportsRequest& request) const; - ListSkillGroupSummaryReportsByIntervalOutcome listSkillGroupSummaryReportsByInterval(const Model::ListSkillGroupSummaryReportsByIntervalRequest &request)const; - void listSkillGroupSummaryReportsByIntervalAsync(const Model::ListSkillGroupSummaryReportsByIntervalRequest& request, const ListSkillGroupSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSkillGroupSummaryReportsByIntervalOutcomeCallable listSkillGroupSummaryReportsByIntervalCallable(const Model::ListSkillGroupSummaryReportsByIntervalRequest& request) const; - ListSkillGroupSummaryReportsSinceMidnightOutcome listSkillGroupSummaryReportsSinceMidnight(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest &request)const; - void listSkillGroupSummaryReportsSinceMidnightAsync(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest& request, const ListSkillGroupSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSkillGroupSummaryReportsSinceMidnightOutcomeCallable listSkillGroupSummaryReportsSinceMidnightCallable(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest& 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; - 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; - ListTransferableSkillGroupsOutcome listTransferableSkillGroups(const Model::ListTransferableSkillGroupsRequest &request)const; - void listTransferableSkillGroupsAsync(const Model::ListTransferableSkillGroupsRequest& request, const ListTransferableSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTransferableSkillGroupsOutcomeCallable listTransferableSkillGroupsCallable(const Model::ListTransferableSkillGroupsRequest& request) const; - ListTrunkProvidersOutcome listTrunkProviders(const Model::ListTrunkProvidersRequest &request)const; - void listTrunkProvidersAsync(const Model::ListTrunkProvidersRequest& request, const ListTrunkProvidersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTrunkProvidersOutcomeCallable listTrunkProvidersCallable(const Model::ListTrunkProvidersRequest& request) const; - ListTrunksOfSkillGroupOutcome listTrunksOfSkillGroup(const Model::ListTrunksOfSkillGroupRequest &request)const; - void listTrunksOfSkillGroupAsync(const Model::ListTrunksOfSkillGroupRequest& request, const ListTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTrunksOfSkillGroupOutcomeCallable listTrunksOfSkillGroupCallable(const Model::ListTrunksOfSkillGroupRequest& 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; - 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; - 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; - ListVoiceAppraiseOutcome listVoiceAppraise(const Model::ListVoiceAppraiseRequest &request)const; - void listVoiceAppraiseAsync(const Model::ListVoiceAppraiseRequest& request, const ListVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListVoiceAppraiseOutcomeCallable listVoiceAppraiseCallable(const Model::ListVoiceAppraiseRequest& request) const; - ModifyAgentDeviceOutcome modifyAgentDevice(const Model::ModifyAgentDeviceRequest &request)const; - void modifyAgentDeviceAsync(const Model::ModifyAgentDeviceRequest& request, const ModifyAgentDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAgentDeviceOutcomeCallable modifyAgentDeviceCallable(const Model::ModifyAgentDeviceRequest& request) const; - ModifyCabInstanceOutcome modifyCabInstance(const Model::ModifyCabInstanceRequest &request)const; - void modifyCabInstanceAsync(const Model::ModifyCabInstanceRequest& request, const ModifyCabInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyCabInstanceOutcomeCallable modifyCabInstanceCallable(const Model::ModifyCabInstanceRequest& 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; - ModifyPhoneTagsOutcome modifyPhoneTags(const Model::ModifyPhoneTagsRequest &request)const; - void modifyPhoneTagsAsync(const Model::ModifyPhoneTagsRequest& request, const ModifyPhoneTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyPhoneTagsOutcomeCallable modifyPhoneTagsCallable(const Model::ModifyPhoneTagsRequest& request) const; - ModifyPrimaryTrunksOfSkillGroupOutcome modifyPrimaryTrunksOfSkillGroup(const Model::ModifyPrimaryTrunksOfSkillGroupRequest &request)const; - void modifyPrimaryTrunksOfSkillGroupAsync(const Model::ModifyPrimaryTrunksOfSkillGroupRequest& request, const ModifyPrimaryTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyPrimaryTrunksOfSkillGroupOutcomeCallable modifyPrimaryTrunksOfSkillGroupCallable(const Model::ModifyPrimaryTrunksOfSkillGroupRequest& request) const; - ModifyPrivacyNumberCallDetailOutcome modifyPrivacyNumberCallDetail(const Model::ModifyPrivacyNumberCallDetailRequest &request)const; - void modifyPrivacyNumberCallDetailAsync(const Model::ModifyPrivacyNumberCallDetailRequest& request, const ModifyPrivacyNumberCallDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyPrivacyNumberCallDetailOutcomeCallable modifyPrivacyNumberCallDetailCallable(const Model::ModifyPrivacyNumberCallDetailRequest& 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; - 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; - ModifySkillGroupOfUserOutcome modifySkillGroupOfUser(const Model::ModifySkillGroupOfUserRequest &request)const; - void modifySkillGroupOfUserAsync(const Model::ModifySkillGroupOfUserRequest& request, const ModifySkillGroupOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySkillGroupOfUserOutcomeCallable modifySkillGroupOfUserCallable(const Model::ModifySkillGroupOfUserRequest& request) const; - ModifySkillGroupOutboundNumbersOutcome modifySkillGroupOutboundNumbers(const Model::ModifySkillGroupOutboundNumbersRequest &request)const; - void modifySkillGroupOutboundNumbersAsync(const Model::ModifySkillGroupOutboundNumbersRequest& request, const ModifySkillGroupOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySkillGroupOutboundNumbersOutcomeCallable modifySkillGroupOutboundNumbersCallable(const Model::ModifySkillGroupOutboundNumbersRequest& 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; - 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; - PickGlobalOutboundNumbersOutcome pickGlobalOutboundNumbers(const Model::PickGlobalOutboundNumbersRequest &request)const; - void pickGlobalOutboundNumbersAsync(const Model::PickGlobalOutboundNumbersRequest& request, const PickGlobalOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PickGlobalOutboundNumbersOutcomeCallable pickGlobalOutboundNumbersCallable(const Model::PickGlobalOutboundNumbersRequest& 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; + ListConfigItemsOutcome listConfigItems(const Model::ListConfigItemsRequest &request)const; + void listConfigItemsAsync(const Model::ListConfigItemsRequest& request, const ListConfigItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigItemsOutcomeCallable listConfigItemsCallable(const Model::ListConfigItemsRequest& request) const; + ListDevicesOutcome listDevices(const Model::ListDevicesRequest &request)const; + void listDevicesAsync(const Model::ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDevicesOutcomeCallable listDevicesCallable(const Model::ListDevicesRequest& request) const; + ListHistoricalAgentReportOutcome listHistoricalAgentReport(const Model::ListHistoricalAgentReportRequest &request)const; + void listHistoricalAgentReportAsync(const Model::ListHistoricalAgentReportRequest& request, const ListHistoricalAgentReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListHistoricalAgentReportOutcomeCallable listHistoricalAgentReportCallable(const Model::ListHistoricalAgentReportRequest& request) const; + ListOutboundNumbersOfUserOutcome listOutboundNumbersOfUser(const Model::ListOutboundNumbersOfUserRequest &request)const; + void listOutboundNumbersOfUserAsync(const Model::ListOutboundNumbersOfUserRequest& request, const ListOutboundNumbersOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOutboundNumbersOfUserOutcomeCallable listOutboundNumbersOfUserCallable(const Model::ListOutboundNumbersOfUserRequest& request) const; + 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; + ListRealtimeAgentStatesOutcome listRealtimeAgentStates(const Model::ListRealtimeAgentStatesRequest &request)const; + void listRealtimeAgentStatesAsync(const Model::ListRealtimeAgentStatesRequest& request, const ListRealtimeAgentStatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRealtimeAgentStatesOutcomeCallable listRealtimeAgentStatesCallable(const Model::ListRealtimeAgentStatesRequest& request) const; + ListRecentCallDetailRecordsOutcome listRecentCallDetailRecords(const Model::ListRecentCallDetailRecordsRequest &request)const; + void listRecentCallDetailRecordsAsync(const Model::ListRecentCallDetailRecordsRequest& request, const ListRecentCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecentCallDetailRecordsOutcomeCallable listRecentCallDetailRecordsCallable(const Model::ListRecentCallDetailRecordsRequest& request) const; + ListSkillLevelsOfUserOutcome listSkillLevelsOfUser(const Model::ListSkillLevelsOfUserRequest &request)const; + void listSkillLevelsOfUserAsync(const Model::ListSkillLevelsOfUserRequest& request, const ListSkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillLevelsOfUserOutcomeCallable listSkillLevelsOfUserCallable(const Model::ListSkillLevelsOfUserRequest& request) const; + MakeCallOutcome makeCall(const Model::MakeCallRequest &request)const; + void makeCallAsync(const Model::MakeCallRequest& request, const MakeCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MakeCallOutcomeCallable makeCallCallable(const Model::MakeCallRequest& request) const; + MonitorCallOutcome monitorCall(const Model::MonitorCallRequest &request)const; + void monitorCallAsync(const Model::MonitorCallRequest& request, const MonitorCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MonitorCallOutcomeCallable monitorCallCallable(const Model::MonitorCallRequest& request) const; + MuteCallOutcome muteCall(const Model::MuteCallRequest &request)const; + void muteCallAsync(const Model::MuteCallRequest& request, const MuteCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MuteCallOutcomeCallable muteCallCallable(const Model::MuteCallRequest& request) const; PickOutboundNumbersOutcome pickOutboundNumbers(const Model::PickOutboundNumbersRequest &request)const; void pickOutboundNumbersAsync(const Model::PickOutboundNumbersRequest& request, const PickOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PickOutboundNumbersOutcomeCallable pickOutboundNumbersCallable(const Model::PickOutboundNumbersRequest& request) const; - PublishContactFlowVersionOutcome publishContactFlowVersion(const Model::PublishContactFlowVersionRequest &request)const; - void publishContactFlowVersionAsync(const Model::PublishContactFlowVersionRequest& request, const PublishContactFlowVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PublishContactFlowVersionOutcomeCallable publishContactFlowVersionCallable(const Model::PublishContactFlowVersionRequest& request) const; - PublishPredictiveJobGroupOutcome publishPredictiveJobGroup(const Model::PublishPredictiveJobGroupRequest &request)const; - void publishPredictiveJobGroupAsync(const Model::PublishPredictiveJobGroupRequest& request, const PublishPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PublishPredictiveJobGroupOutcomeCallable publishPredictiveJobGroupCallable(const Model::PublishPredictiveJobGroupRequest& 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; - 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; - 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; - 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; - RemoveUsersFromSkillGroupOutcome removeUsersFromSkillGroup(const Model::RemoveUsersFromSkillGroupRequest &request)const; - void removeUsersFromSkillGroupAsync(const Model::RemoveUsersFromSkillGroupRequest& request, const RemoveUsersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveUsersFromSkillGroupOutcomeCallable removeUsersFromSkillGroupCallable(const Model::RemoveUsersFromSkillGroupRequest& 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; - ResetUserStatusOutcome resetUserStatus(const Model::ResetUserStatusRequest &request)const; - void resetUserStatusAsync(const Model::ResetUserStatusRequest& request, const ResetUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResetUserStatusOutcomeCallable resetUserStatusCallable(const Model::ResetUserStatusRequest& 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; - ResumePredictiveJobsOutcome resumePredictiveJobs(const Model::ResumePredictiveJobsRequest &request)const; - void resumePredictiveJobsAsync(const Model::ResumePredictiveJobsRequest& request, const ResumePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResumePredictiveJobsOutcomeCallable resumePredictiveJobsCallable(const Model::ResumePredictiveJobsRequest& request) const; - SaveWebRTCStatsOutcome saveWebRTCStats(const Model::SaveWebRTCStatsRequest &request)const; - void saveWebRTCStatsAsync(const Model::SaveWebRTCStatsRequest& request, const SaveWebRTCStatsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveWebRTCStatsOutcomeCallable saveWebRTCStatsCallable(const Model::SaveWebRTCStatsRequest& request) const; - SendPredefinedShortMessageOutcome sendPredefinedShortMessage(const Model::SendPredefinedShortMessageRequest &request)const; - void sendPredefinedShortMessageAsync(const Model::SendPredefinedShortMessageRequest& request, const SendPredefinedShortMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SendPredefinedShortMessageOutcomeCallable sendPredefinedShortMessageCallable(const Model::SendPredefinedShortMessageRequest& 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; - 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; - 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; - SubmitCabRecordingOutcome submitCabRecording(const Model::SubmitCabRecordingRequest &request)const; - void submitCabRecordingAsync(const Model::SubmitCabRecordingRequest& request, const SubmitCabRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitCabRecordingOutcomeCallable submitCabRecordingCallable(const Model::SubmitCabRecordingRequest& 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; - SuspendPredictiveJobsOutcome suspendPredictiveJobs(const Model::SuspendPredictiveJobsRequest &request)const; - void suspendPredictiveJobsAsync(const Model::SuspendPredictiveJobsRequest& request, const SuspendPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SuspendPredictiveJobsOutcomeCallable suspendPredictiveJobsCallable(const Model::SuspendPredictiveJobsRequest& request) const; - TaskPreparingOutcome taskPreparing(const Model::TaskPreparingRequest &request)const; - void taskPreparingAsync(const Model::TaskPreparingRequest& request, const TaskPreparingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TaskPreparingOutcomeCallable taskPreparingCallable(const Model::TaskPreparingRequest& request) const; + PollUserStatusOutcome pollUserStatus(const Model::PollUserStatusRequest &request)const; + void pollUserStatusAsync(const Model::PollUserStatusRequest& request, const PollUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PollUserStatusOutcomeCallable pollUserStatusCallable(const Model::PollUserStatusRequest& request) const; + ReadyForServiceOutcome readyForService(const Model::ReadyForServiceRequest &request)const; + void readyForServiceAsync(const Model::ReadyForServiceRequest& request, const ReadyForServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReadyForServiceOutcomeCallable readyForServiceCallable(const Model::ReadyForServiceRequest& request) const; + RegisterDeviceOutcome registerDevice(const Model::RegisterDeviceRequest &request)const; + void registerDeviceAsync(const Model::RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegisterDeviceOutcomeCallable registerDeviceCallable(const Model::RegisterDeviceRequest& request) const; + ReleaseCallOutcome releaseCall(const Model::ReleaseCallRequest &request)const; + void releaseCallAsync(const Model::ReleaseCallRequest& request, const ReleaseCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseCallOutcomeCallable releaseCallCallable(const Model::ReleaseCallRequest& request) const; + ResetAgentStateOutcome resetAgentState(const Model::ResetAgentStateRequest &request)const; + void resetAgentStateAsync(const Model::ResetAgentStateRequest& request, const ResetAgentStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAgentStateOutcomeCallable resetAgentStateCallable(const Model::ResetAgentStateRequest& request) const; + RetrieveCallOutcome retrieveCall(const Model::RetrieveCallRequest &request)const; + void retrieveCallAsync(const Model::RetrieveCallRequest& request, const RetrieveCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetrieveCallOutcomeCallable retrieveCallCallable(const Model::RetrieveCallRequest& request) const; + SendDtmfSignalingOutcome sendDtmfSignaling(const Model::SendDtmfSignalingRequest &request)const; + void sendDtmfSignalingAsync(const Model::SendDtmfSignalingRequest& request, const SendDtmfSignalingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendDtmfSignalingOutcomeCallable sendDtmfSignalingCallable(const Model::SendDtmfSignalingRequest& request) const; + SignInGroupOutcome signInGroup(const Model::SignInGroupRequest &request)const; + void signInGroupAsync(const Model::SignInGroupRequest& request, const SignInGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SignInGroupOutcomeCallable signInGroupCallable(const Model::SignInGroupRequest& request) const; + SignOutGroupOutcome signOutGroup(const Model::SignOutGroupRequest &request)const; + void signOutGroupAsync(const Model::SignOutGroupRequest& request, const SignOutGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SignOutGroupOutcomeCallable signOutGroupCallable(const Model::SignOutGroupRequest& request) const; + TakeBreakOutcome takeBreak(const Model::TakeBreakRequest &request)const; + void takeBreakAsync(const Model::TakeBreakRequest& request, const TakeBreakAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TakeBreakOutcomeCallable takeBreakCallable(const Model::TakeBreakRequest& request) const; + UnmuteCallOutcome unmuteCall(const Model::UnmuteCallRequest &request)const; + void unmuteCallAsync(const Model::UnmuteCallRequest& request, const UnmuteCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnmuteCallOutcomeCallable unmuteCallCallable(const Model::UnmuteCallRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h b/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h deleted file mode 100644 index 6f57c0f81..000000000 --- a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ABORTPREDICTIVEJOBSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AbortPredictiveJobsRequest : public RpcServiceRequest - { - - public: - AbortPredictiveJobsRequest(); - ~AbortPredictiveJobsRequest(); - - 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 getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - - private: - bool all_; - std::vector jobId_; - std::string instanceId_; - std::string skillGroupId_; - std::string jobGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h deleted file mode 100644 index 20a388db6..000000000 --- a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ABORTPREDICTIVEJOBSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AbortPredictiveJobsResult : public ServiceResult - { - public: - - - AbortPredictiveJobsResult(); - explicit AbortPredictiveJobsResult(const std::string &payload); - ~AbortPredictiveJobsResult(); - 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_ABORTPREDICTIVEJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h deleted file mode 100644 index 7ca5bac0b..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDAGENTDEVICEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AddAgentDeviceRequest : public RpcServiceRequest - { - - public: - AddAgentDeviceRequest(); - ~AddAgentDeviceRequest(); - - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getClientPort()const; - void setClientPort(const std::string& clientPort); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientIp()const; - void setClientIp(const std::string& clientIp); - std::string getBrowserVersion()const; - void setBrowserVersion(const std::string& browserVersion); - - private: - std::string remark_; - std::string clientPort_; - std::string accessKeyId_; - std::string instanceId_; - std::string clientIp_; - std::string browserVersion_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h deleted file mode 100644 index 168433117..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDAGENTDEVICERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AddAgentDeviceResult : public ServiceResult - { - public: - - - AddAgentDeviceResult(); - explicit AddAgentDeviceResult(const std::string &payload); - ~AddAgentDeviceResult(); - std::string getMessage()const; - long getAgentDeviceId()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - long agentDeviceId_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h deleted file mode 100644 index ce0e453e0..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDBULKPHONENUMBERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AddBulkPhoneNumbersRequest : public RpcServiceRequest - { - - public: - AddBulkPhoneNumbersRequest(); - ~AddBulkPhoneNumbersRequest(); - - std::string getContactFlowId()const; - void setContactFlowId(const std::string& contactFlowId); - std::string getUsage()const; - void setUsage(const std::string& usage); - std::vector getPhoneNumber()const; - void setPhoneNumber(const std::vector& phoneNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getSkillGroupId()const; - void setSkillGroupId(const std::vector& skillGroupId); - - private: - std::string contactFlowId_; - std::string usage_; - std::vector phoneNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::vector skillGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h deleted file mode 100644 index 535ed8c99..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDBULKPHONENUMBERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AddBulkPhoneNumbersResult : public ServiceResult - { - public: - struct PhoneNumber - { - struct ContactFlow - { - std::string type; - std::string contactFlowId; - std::string instanceId; - std::string contactFlowName; - std::string contactFlowDescription; - }; - struct SkillGroup - { - std::string skillGroupName; - std::string skillGroupId; - }; - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; - std::string instanceId; - int remainingTime; - std::vector skillGroups; - int trunks; - std::string phoneNumberId; - ContactFlow contactFlow; - std::string phoneNumberDescription; - }; - - - AddBulkPhoneNumbersResult(); - explicit AddBulkPhoneNumbersResult(const std::string &payload); - ~AddBulkPhoneNumbersResult(); - std::vector getArrearagePhoneNumbers()const; - std::vector getPhoneNumbers()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getFailedPhoneNumbers()const; - std::vector getUserdPhoneNumbers()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::vector arrearagePhoneNumbers_; - std::vector phoneNumbers_; - std::string message_; - int httpStatusCode_; - std::vector failedPhoneNumbers_; - std::vector userdPhoneNumbers_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupRequest.h deleted file mode 100644 index fe0062656..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDJOBSTOPREDICTIVEJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AddJobsToPredictiveJobGroupRequest : public RpcServiceRequest - { - - public: - AddJobsToPredictiveJobGroupRequest(); - ~AddJobsToPredictiveJobGroupRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::vector getJobsJson()const; - void setJobsJson(const std::vector& jobsJson); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - - private: - std::string clientToken_; - std::vector jobsJson_; - std::string instanceId_; - std::string skillGroupId_; - std::string jobGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h deleted file mode 100644 index e02bccc15..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AddJobsToPredictiveJobGroupResult : public ServiceResult - { - public: - - - AddJobsToPredictiveJobGroupResult(); - explicit AddJobsToPredictiveJobGroupResult(const std::string &payload); - ~AddJobsToPredictiveJobGroupResult(); - 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_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h deleted file mode 100644 index 5d4a3a7c2..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDPHONENUMBERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - 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; - ContactFlow contactFlow; - std::string phoneNumberDescription; - }; - - - AddPhoneNumberResult(); - explicit AddPhoneNumberResult(const std::string &payload); - ~AddPhoneNumberResult(); - 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_; - PhoneNumber phoneNumber_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneTagsRequest.h b/ccc/include/alibabacloud/ccc/model/AddPhoneTagsRequest.h deleted file mode 100644 index 88baa88ce..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneTagsRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDPHONETAGSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AddPhoneTagsRequest : public RpcServiceRequest - { - - public: - AddPhoneTagsRequest(); - ~AddPhoneTagsRequest(); - - std::string getRegionNameProvince()const; - void setRegionNameProvince(const std::string& regionNameProvince); - int getType()const; - void setType(int type); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getConcurrency()const; - void setConcurrency(int concurrency); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getProvider()const; - void setProvider(const std::string& provider); - std::vector getPhoneNumberList()const; - void setPhoneNumberList(const std::vector& phoneNumberList); - std::string getServiceTag()const; - void setServiceTag(const std::string& serviceTag); - std::string getSipTag()const; - void setSipTag(const std::string& sipTag); - std::string getRegionNameCity()const; - void setRegionNameCity(const std::string& regionNameCity); - - private: - std::string regionNameProvince_; - int type_; - std::string accessKeyId_; - int concurrency_; - std::string instanceId_; - std::string provider_; - std::vector phoneNumberList_; - std::string serviceTag_; - std::string sipTag_; - std::string regionNameCity_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h b/ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h deleted file mode 100644 index 88d2e2505..000000000 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ADDPHONETAGSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT AddPhoneTagsResult : public ServiceResult - { - public: - - - AddPhoneTagsResult(); - explicit AddPhoneTagsResult(const std::string &payload); - ~AddPhoneTagsResult(); - 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_ADDPHONETAGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AnswerCallRequest.h b/ccc/include/alibabacloud/ccc/model/AnswerCallRequest.h new file mode 100644 index 000000000..487b49876 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AnswerCallRequest.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_ANSWERCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ANSWERCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AnswerCallRequest : public RpcServiceRequest + { + + public: + AnswerCallRequest(); + ~AnswerCallRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ANSWERCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AnswerCallResult.h b/ccc/include/alibabacloud/ccc/model/AnswerCallResult.h new file mode 100644 index 000000000..254cfc550 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AnswerCallResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ANSWERCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ANSWERCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AnswerCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + AnswerCallResult(); + explicit AnswerCallResult(const std::string &payload); + ~AnswerCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ANSWERCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h b/ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h deleted file mode 100644 index 5e34f9c8c..000000000 --- a/ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::vector getJobsJson()const; - void setJobsJson(const std::vector& jobsJson); - 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 getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string groupId_; - std::vector jobsJson_; - std::vector callingNumber_; - std::string instanceId_; - std::string strategyJson_; - std::string scenarioId_; - - }; - } - } -} -#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 deleted file mode 100644 index c6deb0518..000000000 --- a/ccc/include/alibabacloud/ccc/model/AssignJobsResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 1831d549c..000000000 --- a/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getRoleId()const; - void setRoleId(const std::vector& roleId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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 getSkillGroupId()const; - void setSkillGroupId(const std::vector& skillGroupId); - - private: - std::vector roleId_; - std::string accessKeyId_; - std::vector userRamId_; - std::vector skillLevel_; - std::string instanceId_; - std::vector skillGroupId_; - - }; - } - } -} -#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 deleted file mode 100644 index a49f3f8fa..000000000 --- a/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/BargeInCallRequest.h b/ccc/include/alibabacloud/ccc/model/BargeInCallRequest.h new file mode 100644 index 000000000..67335d24a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/BargeInCallRequest.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_BARGEINCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_BARGEINCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT BargeInCallRequest : public RpcServiceRequest + { + + public: + BargeInCallRequest(); + ~BargeInCallRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getBargedUserId()const; + void setBargedUserId(const std::string& bargedUserId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + int getTimeoutSeconds()const; + void setTimeoutSeconds(int timeoutSeconds); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string userId_; + std::string deviceId_; + std::string bargedUserId_; + std::string jobId_; + int timeoutSeconds_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_BARGEINCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h b/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h new file mode 100644 index 000000000..9e1aa75d7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_BARGEINCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_BARGEINCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT BargeInCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + BargeInCallResult(); + explicit BargeInCallResult(const std::string &payload); + ~BargeInCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_BARGEINCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/BlindTransferRequest.h b/ccc/include/alibabacloud/ccc/model/BlindTransferRequest.h new file mode 100644 index 000000000..521289c07 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/BlindTransferRequest.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_BLINDTRANSFERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_BLINDTRANSFERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT BlindTransferRequest : public RpcServiceRequest + { + + public: + BlindTransferRequest(); + ~BlindTransferRequest(); + + std::string getTransferee()const; + void setTransferee(const std::string& transferee); + std::string getTransferor()const; + void setTransferor(const std::string& transferor); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + int getTimeoutSeconds()const; + void setTimeoutSeconds(int timeoutSeconds); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string transferee_; + std::string transferor_; + std::string userId_; + std::string deviceId_; + int timeoutSeconds_; + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_BLINDTRANSFERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/BlindTransferResult.h b/ccc/include/alibabacloud/ccc/model/BlindTransferResult.h new file mode 100644 index 000000000..9aea570c7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/BlindTransferResult.h @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_BLINDTRANSFERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_BLINDTRANSFERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT BlindTransferResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + std::string associatedData; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + BlindTransferResult(); + explicit BlindTransferResult(const std::string &payload); + ~BlindTransferResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_BLINDTRANSFERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h deleted file mode 100644 index a8e8643e5..000000000 --- a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CALLONLINEPRIVACYNUMBERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CallOnlinePrivacyNumberRequest : public RpcServiceRequest - { - - public: - CallOnlinePrivacyNumberRequest(); - ~CallOnlinePrivacyNumberRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTelA()const; - void setTelA(const std::string& telA); - std::string getTelB()const; - void setTelB(const std::string& telB); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string accessKeyId_; - std::string telA_; - std::string telB_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferRequest.h b/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferRequest.h new file mode 100644 index 000000000..edb66c180 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferRequest.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_CANCELATTENDEDTRANSFERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CANCELATTENDEDTRANSFERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CancelAttendedTransferRequest : public RpcServiceRequest + { + + public: + CancelAttendedTransferRequest(); + ~CancelAttendedTransferRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CANCELATTENDEDTRANSFERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferResult.h b/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferResult.h new file mode 100644 index 000000000..a3b6866c1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CANCELATTENDEDTRANSFERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CANCELATTENDEDTRANSFERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CancelAttendedTransferResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + CancelAttendedTransferResult(); + explicit CancelAttendedTransferResult(const std::string &payload); + ~CancelAttendedTransferResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CANCELATTENDEDTRANSFERRESULT_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 deleted file mode 100644 index fcbb0ff40..000000000 --- a/ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getJobReferenceId()const; - void setJobReferenceId(const std::vector& jobReferenceId); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::vector getJobId()const; - void setJobId(const std::vector& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - bool all_; - std::vector jobReferenceId_; - std::string groupId_; - std::vector jobId_; - std::string instanceId_; - 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 deleted file mode 100644 index 0ab2e9b41..000000000 --- a/ccc/include/alibabacloud/ccc/model/CancelJobsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/DeleteJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h index 81318e551..5b1466656 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODEREQUEST_H_ #include #include @@ -28,24 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeleteJobGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ChangeWorkModeRequest : public RpcServiceRequest { public: - DeleteJobGroupRequest(); - ~DeleteJobGroupRequest(); + ChangeWorkModeRequest(); + ~ChangeWorkModeRequest(); + std::string getWorkMode()const; + void setWorkMode(const std::string& workMode); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); private: + std::string workMode_; + std::string userId_; + std::string deviceId_; std::string instanceId_; - std::string jobGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeResult.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h rename to ccc/include/alibabacloud/ccc/model/ChangeWorkModeResult.h index af4bfbcce..b727c1aeb 100644 --- a/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODERESULT_H_ #include #include @@ -29,29 +29,44 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeletePhoneTagsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ChangeWorkModeResult : public ServiceResult { public: + struct Data + { + std::string extension; + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + std::string userId; + bool outboundScenario; + std::string jobId; + std::string workMode; + std::vector signedSkillGroupIdList; + }; - DeletePhoneTagsResult(); - explicit DeletePhoneTagsResult(const std::string &payload); - ~DeletePhoneTagsResult(); + ChangeWorkModeResult(); + explicit ChangeWorkModeResult(const std::string &payload); + ~ChangeWorkModeResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + std::vector params_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableResult.h b/ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableResult.h deleted file mode 100644 index c63f7d8df..000000000 --- a/ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CHECKNUMBERAVALIABLERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CHECKNUMBERAVALIABLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CheckNumberAvaliableResult : public ServiceResult - { - public: - struct CallerAvaliable - { - bool avaliable; - std::string reason; - }; - struct CalleeAvaliable - { - bool avaliable; - std::string reason; - }; - - - CheckNumberAvaliableResult(); - explicit CheckNumberAvaliableResult(const std::string &payload); - ~CheckNumberAvaliableResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - CallerAvaliable getCallerAvaliable()const; - std::string getCode()const; - bool getSuccess()const; - CalleeAvaliable getCalleeAvaliable()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - CallerAvaliable callerAvaliable_; - std::string code_; - bool success_; - CalleeAvaliable calleeAvaliable_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CHECKNUMBERAVALIABLERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h b/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h deleted file mode 100644 index cacc49f5a..000000000 --- a/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_COMMITCONTACTFLOWVERSIONMODIFICATIONREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CommitContactFlowVersionModificationRequest : public RpcServiceRequest - { - - public: - CommitContactFlowVersionModificationRequest(); - ~CommitContactFlowVersionModificationRequest(); - - std::string getCanvas()const; - void setCanvas(const std::string& canvas); - std::string getContent()const; - void setContent(const std::string& content); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getContactFlowVersionId()const; - void setContactFlowVersionId(const std::string& contactFlowVersionId); - - private: - std::string canvas_; - std::string content_; - std::string accessKeyId_; - std::string instanceId_; - std::string contactFlowVersionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h b/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h deleted file mode 100644 index c8cf51e32..000000000 --- a/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_COMMITCONTACTFLOWVERSIONMODIFICATIONRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CommitContactFlowVersionModificationResult : public ServiceResult - { - public: - struct ContactFlowVersion - { - std::string lastModified; - std::string status; - std::string lastModifiedBy; - std::string lockedBy; - std::string contactFlowVersionId; - std::string version; - std::string content; - std::string canvas; - std::string contactFlowVersionDescription; - }; - - - CommitContactFlowVersionModificationResult(); - explicit CommitContactFlowVersionModificationResult(const std::string &payload); - ~CommitContactFlowVersionModificationResult(); - std::string getMessage()const; - ContactFlowVersion getContactFlowVersion()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - ContactFlowVersion contactFlowVersion_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h b/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h new file mode 100644 index 000000000..c819f8c1e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.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_COMPLETEATTENDEDTRANSFERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_COMPLETEATTENDEDTRANSFERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CompleteAttendedTransferRequest : public RpcServiceRequest + { + + public: + CompleteAttendedTransferRequest(); + ~CompleteAttendedTransferRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_COMPLETEATTENDEDTRANSFERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h b/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h new file mode 100644 index 000000000..c60a7655e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_COMPLETEATTENDEDTRANSFERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_COMPLETEATTENDEDTRANSFERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CompleteAttendedTransferResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + CompleteAttendedTransferResult(); + explicit CompleteAttendedTransferResult(const std::string &payload); + ~CompleteAttendedTransferResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_COMPLETEATTENDEDTRANSFERRESULT_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 deleted file mode 100644 index 999873e6d..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::string getDescription()const; - void setDescription(const std::string& description); - std::string getJobFilePath()const; - void setJobFilePath(const std::string& jobFilePath); - 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 getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string description_; - std::string jobFilePath_; - std::vector callingNumber_; - std::string instanceId_; - bool submitted_; - std::string strategyJson_; - std::string name_; - std::string scenarioId_; - - }; - } - } -} -#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 deleted file mode 100644 index 0dde4707d..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/CreateCabInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.h deleted file mode 100644 index 0b11fd0c5..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATECABINSTANCEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateCabInstanceRequest : public RpcServiceRequest - { - - public: - CreateCabInstanceRequest(); - ~CreateCabInstanceRequest(); - - int getMaxConcurrentConversation()const; - void setMaxConcurrentConversation(int maxConcurrentConversation); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getCallCenterInstanceId()const; - void setCallCenterInstanceId(const std::string& callCenterInstanceId); - std::string getInstanceDescription()const; - void setInstanceDescription(const std::string& instanceDescription); - - private: - int maxConcurrentConversation_; - std::string instanceName_; - std::string callCenterInstanceId_; - std::string instanceDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h deleted file mode 100644 index 1708ff835..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATECONTACTFLOWREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateContactFlowRequest : public RpcServiceRequest - { - - public: - CreateContactFlowRequest(); - ~CreateContactFlowRequest(); - - std::string getCanvas()const; - void setCanvas(const std::string& canvas); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - std::string getContent()const; - void setContent(const std::string& content); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string canvas_; - std::string description_; - std::string type_; - std::string content_; - std::string accessKeyId_; - std::string instanceId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h deleted file mode 100644 index d64f06ac8..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATECONTACTFLOWRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateContactFlowResult : 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 content; - std::string canvas; - 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; - }; - - - CreateContactFlowResult(); - explicit CreateContactFlowResult(const std::string &payload); - ~CreateContactFlowResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - ContactFlow getContactFlow()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - ContactFlow contactFlow_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h b/ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h deleted file mode 100644 index 0fadc3fcd..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATEFAULTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEFAULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateFaultRequest : public RpcServiceRequest - { - - public: - CreateFaultRequest(); - ~CreateFaultRequest(); - - std::string getAgentOssFileName()const; - void setAgentOssFileName(const std::string& agentOssFileName); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getOperatingSystemVersion()const; - void setOperatingSystemVersion(const std::string& operatingSystemVersion); - long getStartTime()const; - void setStartTime(long startTime); - std::string getMicrophoneList()const; - void setMicrophoneList(const std::string& microphoneList); - std::string getClientPort()const; - void setClientPort(const std::string& clientPort); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCustomFilePath()const; - void setCustomFilePath(const std::string& customFilePath); - std::string getClientIp()const; - void setClientIp(const std::string& clientIp); - std::string getSpeakerList()const; - void setSpeakerList(const std::string& speakerList); - long getAgentId()const; - void setAgentId(long agentId); - long getEndTime()const; - void setEndTime(long endTime); - std::string getSpeakerEquipment()const; - void setSpeakerEquipment(const std::string& speakerEquipment); - std::string getServicePort()const; - void setServicePort(const std::string& servicePort); - std::string getServiceIp()const; - void setServiceIp(const std::string& serviceIp); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getAgentFilePath()const; - void setAgentFilePath(const std::string& agentFilePath); - std::string getConnectId()const; - void setConnectId(const std::string& connectId); - std::string getCustomOssFileName()const; - void setCustomOssFileName(const std::string& customOssFileName); - std::string getMicrophoneEquipment()const; - void setMicrophoneEquipment(const std::string& microphoneEquipment); - std::string getBrowserVersion()const; - void setBrowserVersion(const std::string& browserVersion); - - private: - std::string agentOssFileName_; - std::string description_; - std::string operatingSystemVersion_; - long startTime_; - std::string microphoneList_; - std::string clientPort_; - std::string accessKeyId_; - std::string customFilePath_; - std::string clientIp_; - std::string speakerList_; - long agentId_; - long endTime_; - std::string speakerEquipment_; - std::string servicePort_; - std::string serviceIp_; - std::string instanceId_; - std::string agentFilePath_; - std::string connectId_; - std::string customOssFileName_; - std::string microphoneEquipment_; - std::string browserVersion_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEFAULTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h b/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h deleted file mode 100644 index abd530465..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATEFAULTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateFaultResult : public ServiceResult - { - public: - - - CreateFaultResult(); - explicit CreateFaultResult(const std::string &payload); - ~CreateFaultResult(); - 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_CREATEFAULTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h deleted file mode 100644 index 153845d0f..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateInstanceRequest : public RpcServiceRequest - { - - public: - CreateInstanceRequest(); - ~CreateInstanceRequest(); - - std::vector getPhoneNumbers()const; - void setPhoneNumbers(const std::vector& phoneNumbers); - std::vector getUserObject()const; - void setUserObject(const std::vector& userObject); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getDescription()const; - void setDescription(const std::string& description); - int getStorageMaxDays()const; - void setStorageMaxDays(int storageMaxDays); - std::vector getAdminRamId()const; - void setAdminRamId(const std::vector& adminRamId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getName()const; - void setName(const std::string& name); - int getStorageMaxSize()const; - void setStorageMaxSize(int storageMaxSize); - std::string getDirectoryId()const; - void setDirectoryId(const std::string& directoryId); - - private: - std::vector phoneNumbers_; - std::vector userObject_; - std::string domainName_; - std::string phoneNumber_; - std::string description_; - int storageMaxDays_; - std::vector adminRamId_; - std::string accessKeyId_; - std::string name_; - int storageMaxSize_; - std::string directoryId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h b/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h deleted file mode 100644 index 9753a5dd1..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATEINSTANCERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateInstanceResult : public ServiceResult - { - public: - struct Instance - { - struct User - { - struct Detail - { - std::string loginName; - std::string department; - std::string email; - std::string phone; - std::string displayName; - }; - std::string instanceId; - std::string userId; - std::string ramId; - Detail detail; - }; - 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 status; - std::vector phoneNumbers; - std::string owner; - long createdTime; - std::vector successLoginNames; - std::string instanceId; - std::string domainName; - std::string consoleUrl; - int storageMaxSize; - std::vector admin; - std::vector failLoginNames; - std::vector successPhoneNumbers; - std::string instanceName; - int maxOnlineAgents; - std::string tenantId; - std::string directoryId; - std::string storageBucket; - std::vector failPhoneNumbers; - std::string instanceDescription; - int storageMaxDays; - }; - - - CreateInstanceResult(); - explicit CreateInstanceResult(const std::string &payload); - ~CreateInstanceResult(); - std::string getMessage()const; - Instance getInstance()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - Instance instance_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEINSTANCERESULT_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 deleted file mode 100644 index 2ea8c7c7b..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::string getDescription()const; - void setDescription(const std::string& description); - 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 getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string description_; - std::vector callingNumber_; - std::string instanceId_; - std::string strategyJson_; - std::string name_; - 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 deleted file mode 100644 index 6165cda67..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/CreateMediaRequest.h b/ccc/include/alibabacloud/ccc/model/CreateMediaRequest.h deleted file mode 100644 index 4b48045b2..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateMediaRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATEMEDIAREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEMEDIAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateMediaRequest : public RpcServiceRequest - { - - public: - CreateMediaRequest(); - ~CreateMediaRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getOssFilePath()const; - void setOssFilePath(const std::string& ossFilePath); - std::string getUploadResult()const; - void setUploadResult(const std::string& uploadResult); - std::string getType()const; - void setType(const std::string& type); - std::string getContent()const; - void setContent(const std::string& content); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getOssFileName()const; - void setOssFileName(const std::string& ossFileName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getFileName()const; - void setFileName(const std::string& fileName); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string description_; - std::string ossFilePath_; - std::string uploadResult_; - std::string type_; - std::string content_; - std::string accessKeyId_; - std::string ossFileName_; - std::string instanceId_; - std::string fileName_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEMEDIAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h deleted file mode 100644 index fc5aeb130..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATEPREDICTIVEJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobGroupRequest : public RpcServiceRequest - { - - public: - CreatePredictiveJobGroupRequest(); - ~CreatePredictiveJobGroupRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - bool getTimingSchedule()const; - void setTimingSchedule(bool timingSchedule); - std::vector getJobsJson()const; - void setJobsJson(const std::vector& jobsJson); - std::string getJobFilePath()const; - void setJobFilePath(const std::string& jobFilePath); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getIsDraft()const; - void setIsDraft(bool isDraft); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - std::string getStrategyJson()const; - void setStrategyJson(const std::string& strategyJson); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string description_; - bool timingSchedule_; - std::vector jobsJson_; - std::string jobFilePath_; - std::string instanceId_; - bool isDraft_; - std::string skillGroupId_; - std::string strategyJson_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_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 deleted file mode 100644 index 81169564b..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getDescription()const; - void setDescription(const std::string& description); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string variables_; - std::string description_; - std::string templateId_; - std::string instanceId_; - std::string name_; - - }; - } - } -} -#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 deleted file mode 100644 index 28076f68a..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 614ddac55..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::vector getSurveysJson()const; - void setSurveysJson(const std::vector& surveysJson); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - 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); - - private: - std::vector surveysJson_; - std::string description_; - std::string type_; - std::string instanceId_; - std::string strategyJson_; - std::string name_; - - }; - } - } -} -#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 deleted file mode 100644 index c59439b2b..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateScenarioResult.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index e9f99947d..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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(); - - bool getAllowPrivateOutboundNumber()const; - void setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRoutingStrategy()const; - void setRoutingStrategy(const std::string& routingStrategy); - std::vector getUserId()const; - void setUserId(const std::vector& userId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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); - - private: - bool allowPrivateOutboundNumber_; - std::string description_; - std::string routingStrategy_; - std::vector userId_; - std::string accessKeyId_; - std::vector skillLevel_; - std::string instanceId_; - std::vector outboundPhoneNumberId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_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 deleted file mode 100644 index 96dfaf6da..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getRole()const; - void setRole(const std::string& role); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSpeechOptimizationParam()const; - void setSpeechOptimizationParam(const std::string& speechOptimizationParam); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - 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 getCorpora()const; - void setCorpora(const std::string& corpora); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string role_; - std::string description_; - std::string speechOptimizationParam_; - std::string instanceId_; - int round_; - std::string flowJson_; - std::string name_; - std::string globalQuestions_; - std::string corpora_; - 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 deleted file mode 100644 index 31300b817..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 27df9100f..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateUserRequest : public RpcServiceRequest - { - - public: - CreateUserRequest(); - ~CreateUserRequest(); - - std::string getPrivateOutboundNumberId()const; - void setPrivateOutboundNumberId(const std::string& privateOutboundNumberId); - std::string getLoginName()const; - void setLoginName(const std::string& loginName); - std::vector getRoleId()const; - void setRoleId(const std::vector& roleId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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::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); - - private: - std::string privateOutboundNumberId_; - std::string loginName_; - std::vector roleId_; - std::string accessKeyId_; - std::vector skillLevel_; - std::string instanceId_; - std::string phone_; - std::string displayName_; - std::vector skillGroupId_; - std::string email_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h deleted file mode 100644 index 0117738a0..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/CreateVoiceAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h deleted file mode 100644 index ac6cb5693..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATEVOICEAPPRAISEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateVoiceAppraiseRequest : public RpcServiceRequest - { - - public: - CreateVoiceAppraiseRequest(); - ~CreateVoiceAppraiseRequest(); - - bool getIsAppraise()const; - void setIsAppraise(bool isAppraise); - std::string getContent()const; - void setContent(const std::string& content); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getContactFlowVersionId()const; - void setContactFlowVersionId(const std::string& contactFlowVersionId); - - private: - bool isAppraise_; - std::string content_; - std::string accessKeyId_; - std::string instanceId_; - std::string contactFlowVersionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h deleted file mode 100644 index 2e6f5cd33..000000000 --- a/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_CREATEVOICEAPPRAISERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT CreateVoiceAppraiseResult : public ServiceResult - { - public: - - - CreateVoiceAppraiseResult(); - explicit CreateVoiceAppraiseResult(const std::string &payload); - ~CreateVoiceAppraiseResult(); - 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_CREATEVOICEAPPRAISERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h deleted file mode 100644 index 1be39ec81..000000000 --- a/ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DELETEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DeleteInstanceRequest : public RpcServiceRequest - { - - public: - DeleteInstanceRequest(); - ~DeleteInstanceRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string accessKeyId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEINSTANCEREQUEST_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 deleted file mode 100644 index 91d39927d..000000000 --- a/ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/DeleteMediaRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h deleted file mode 100644 index 3b53abb00..000000000 --- a/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DELETEMEDIAREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DeleteMediaRequest : public RpcServiceRequest - { - - public: - DeleteMediaRequest(); - ~DeleteMediaRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::string name_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h b/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h deleted file mode 100644 index 3ffe6f252..000000000 --- a/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DELETEMEDIARESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETEMEDIARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DeleteMediaResult : public ServiceResult - { - public: - - - DeleteMediaResult(); - explicit DeleteMediaResult(const std::string &payload); - ~DeleteMediaResult(); - 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_DELETEMEDIARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h deleted file mode 100644 index 96945d011..000000000 --- a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DeleteSkillGroupRequest : public RpcServiceRequest - { - - public: - DeleteSkillGroupRequest(); - ~DeleteSkillGroupRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::string skillGroupId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h deleted file mode 100644 index a1223b3c2..000000000 --- a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DeleteSkillGroupResult : public ServiceResult - { - public: - - - DeleteSkillGroupResult(); - explicit DeleteSkillGroupResult(const std::string &payload); - ~DeleteSkillGroupResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - 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_DELETESKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h deleted file mode 100644 index 051dd88bd..000000000 --- a/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 924f9f70c..000000000 --- a/ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/DialExRequest.h b/ccc/include/alibabacloud/ccc/model/DialExRequest.h deleted file mode 100644 index 50d51a772..000000000 --- a/ccc/include/alibabacloud/ccc/model/DialExRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DIALEXREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DIALEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DialExRequest : public RpcServiceRequest - { - - public: - DialExRequest(); - ~DialExRequest(); - - std::string getCallee()const; - void setCallee(const std::string& callee); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getRoutPoint()const; - void setRoutPoint(const std::string& routPoint); - std::string getCaller()const; - void setCaller(const std::string& caller); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getProvider()const; - void setProvider(const std::string& provider); - int getAnswerMode()const; - void setAnswerMode(int answerMode); - - private: - std::string callee_; - std::string accessKeyId_; - std::string routPoint_; - std::string caller_; - std::string instanceId_; - std::string provider_; - int answerMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DIALEXREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DialExResult.h b/ccc/include/alibabacloud/ccc/model/DialExResult.h deleted file mode 100644 index 4690e2fbf..000000000 --- a/ccc/include/alibabacloud/ccc/model/DialExResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DIALEXRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DIALEXRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DialExResult : public ServiceResult - { - public: - - - DialExResult(); - explicit DialExResult(const std::string &payload); - ~DialExResult(); - 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_DIALEXRESULT_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 deleted file mode 100644 index ea0ad3c50..000000000 --- a/ccc/include/alibabacloud/ccc/model/DialogueRequest.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - 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); - std::string getActionParams()const; - void setActionParams(const std::string& actionParams); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getActionKey()const; - void setActionKey(const std::string& actionKey); - - private: - std::string callId_; - std::string calledNumber_; - long instanceOwnerId_; - std::string callType_; - std::string scenarioId_; - std::string taskId_; - std::string utterance_; - std::string actionParams_; - std::string callingNumber_; - std::string instanceId_; - std::string actionKey_; - - }; - } - } -} -#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 deleted file mode 100644 index d88e02600..000000000 --- a/ccc/include/alibabacloud/ccc/model/DialogueResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - bool interruptible; - 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/DisableTrunkProvidersRequest.h b/ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersRequest.h deleted file mode 100644 index 8e596a98a..000000000 --- a/ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DISABLETRUNKPROVIDERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DisableTrunkProvidersRequest : public RpcServiceRequest - { - - public: - DisableTrunkProvidersRequest(); - ~DisableTrunkProvidersRequest(); - - std::vector getProviderName()const; - void setProviderName(const std::vector& providerName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::vector providerName_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h deleted file mode 100644 index ef7549023..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DOWNLOADALLTYPERECORDINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DownloadAllTypeRecordingRequest : public RpcServiceRequest - { - - public: - DownloadAllTypeRecordingRequest(); - ~DownloadAllTypeRecordingRequest(); - - std::string getContactId()const; - void setContactId(const std::string& contactId); - std::string getChannel()const; - void setChannel(const std::string& channel); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string contactId_; - std::string channel_; - std::string accessKeyId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h b/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h deleted file mode 100644 index 5614fa161..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DOWNLOADALLTYPERECORDINGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DownloadAllTypeRecordingResult : public ServiceResult - { - public: - struct MediaDownloadParam - { - std::string fileName; - std::string signatureUrl; - }; - - - DownloadAllTypeRecordingResult(); - explicit DownloadAllTypeRecordingResult(const std::string &payload); - ~DownloadAllTypeRecordingResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getMediaDownloadParamList()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector mediaDownloadParamList_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h deleted file mode 100644 index b16671bc7..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DOWNLOADCABRECORDINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DownloadCabRecordingRequest : public RpcServiceRequest - { - - public: - DownloadCabRecordingRequest(); - ~DownloadCabRecordingRequest(); - - 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_DOWNLOADCABRECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h deleted file mode 100644 index 18f194088..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DOWNLOADCABRECORDINGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DownloadCabRecordingResult : public ServiceResult - { - public: - struct MediaDownloadParam - { - std::string fileName; - std::string signatureUrl; - }; - - - DownloadCabRecordingResult(); - explicit DownloadCabRecordingResult(const std::string &payload); - ~DownloadCabRecordingResult(); - 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: - MediaDownloadParam mediaDownloadParam_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGRESULT_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 deleted file mode 100644 index 69c116d1d..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index f77d2836e..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/DownloadRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadRecordingRequest.h deleted file mode 100644 index 7e20b3469..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadRecordingRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DOWNLOADRECORDINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DownloadRecordingRequest : public RpcServiceRequest - { - - public: - DownloadRecordingRequest(); - ~DownloadRecordingRequest(); - - std::string getChannel()const; - void setChannel(const std::string& channel); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getFileName()const; - void setFileName(const std::string& fileName); - - private: - std::string channel_; - std::string accessKeyId_; - std::string instanceId_; - std::string fileName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGREQUEST_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 deleted file mode 100644 index 4e1bfac5c..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DOWNLOADRECORDINGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT DownloadRecordingResult : public ServiceResult - { - public: - struct MediaDownloadParam - { - std::string fileName; - std::string signatureUrl; - }; - - - DownloadRecordingResult(); - explicit DownloadRecordingResult(const std::string &payload); - ~DownloadRecordingResult(); - 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: - MediaDownloadParam mediaDownloadParam_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h deleted file mode 100644 index 2c3cae1fd..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 3fa3e3f01..000000000 --- a/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/FindUsersRequest.h b/ccc/include/alibabacloud/ccc/model/FindUsersRequest.h deleted file mode 100644 index 8c8573583..000000000 --- a/ccc/include/alibabacloud/ccc/model/FindUsersRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_FINDUSERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT FindUsersRequest : public RpcServiceRequest - { - - public: - FindUsersRequest(); - ~FindUsersRequest(); - - std::string getCriteria()const; - void setCriteria(const std::string& criteria); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string criteria_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/FindUsersResult.h b/ccc/include/alibabacloud/ccc/model/FindUsersResult.h deleted file mode 100644 index 8627d2e18..000000000 --- a/ccc/include/alibabacloud/ccc/model/FindUsersResult.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_FINDUSERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_FINDUSERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT FindUsersResult : 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; - }; - Skill skill; - std::string skillLevelId; - int level; - }; - std::vector skillLevels; - std::string privateOutboundNumberId; - std::string instanceId; - std::string userId; - std::string ramId; - std::vector roles; - Detail detail; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - FindUsersResult(); - explicit FindUsersResult(const std::string &payload); - ~FindUsersResult(); - 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_; - Users users_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_FINDUSERSRESULT_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 deleted file mode 100644 index 6d3292382..000000000 --- a/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 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); - 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); - - private: - std::string agentId_; - std::string startDate_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string endDate_; - int pageSize_; - - }; - } - } -} -#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 deleted file mode 100644 index 816ed065a..000000000 --- a/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetAgentDataResult.h b/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h deleted file mode 100644 index 19129dc0d..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetCallMeasureSummaryReportRequest.h b/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h deleted file mode 100644 index 4314ab532..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETCALLMEASURESUMMARYREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETCALLMEASURESUMMARYREPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetCallMeasureSummaryReportRequest : public RpcServiceRequest - { - - public: - GetCallMeasureSummaryReportRequest(); - ~GetCallMeasureSummaryReportRequest(); - - std::string getIntervalType()const; - void setIntervalType(const std::string& intervalType); - int getYear()const; - void setYear(int year); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getMonth()const; - void setMonth(int month); - int getPageSize()const; - void setPageSize(int pageSize); - int getDay()const; - void setDay(int day); - - private: - std::string intervalType_; - int year_; - int pageNumber_; - std::string accessKeyId_; - int month_; - int pageSize_; - int day_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETCALLMEASURESUMMARYREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h b/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h deleted file mode 100644 index 117b84bda..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETCALLMEASURESUMMARYREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETCALLMEASURESUMMARYREPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetCallMeasureSummaryReportResult : public ServiceResult - { - public: - struct SummaryReport - { - long inboundCount; - int month; - long inboundDurationByMinute; - long outboundDurationByMinute; - int year; - long outboundCount; - int day; - }; - struct NumberReports - { - struct NumberReport - { - long inboundCount; - int month; - long inboundDurationByMinute; - long outboundDurationByMinute; - std::string number; - int year; - long outboundCount; - int day; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - GetCallMeasureSummaryReportResult(); - explicit GetCallMeasureSummaryReportResult(const std::string &payload); - ~GetCallMeasureSummaryReportResult(); - NumberReports getNumberReports()const; - SummaryReport getSummaryReport()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - NumberReports numberReports_; - SummaryReport summaryReport_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETCALLMEASURESUMMARYREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h deleted file mode 100644 index 72e772667..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getContactId()const; - void setContactId(const std::string& contactId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string contactId_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#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 deleted file mode 100644 index 04b5551e8..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index eab0b3ff3..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetConversationListRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 584d60267..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetConversationListResult.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h deleted file mode 100644 index c12adb119..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceRequest : public RpcServiceRequest - { - - public: - GetInstanceRequest(); - ~GetInstanceRequest(); - - 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_GETINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h deleted file mode 100644 index 7ff018413..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceResult : public ServiceResult - { - public: - struct Instance - { - struct User - { - struct Detail - { - std::string loginName; - std::string department; - std::string email; - std::string phone; - std::string displayName; - }; - std::string instanceId; - std::string userId; - std::string ramId; - Detail detail; - }; - 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 status; - std::vector phoneNumbers; - std::string owner; - long createdTime; - std::string instanceId; - std::string domainName; - std::string consoleUrl; - int storageMaxSize; - std::vector admin; - std::string instanceName; - int maxOnlineAgents; - std::string tenantId; - std::string directoryId; - std::string storageBucket; - std::string instanceDescription; - int storageMaxDays; - }; - - - GetInstanceResult(); - explicit GetInstanceResult(const std::string &payload); - ~GetInstanceResult(); - std::string getMessage()const; - Instance getInstance()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - Instance instance_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h deleted file mode 100644 index 3ae1f7e49..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCESTATEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceStateRequest : public RpcServiceRequest - { - - public: - GetInstanceStateRequest(); - ~GetInstanceStateRequest(); - - 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_GETINSTANCESTATEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h deleted file mode 100644 index 834e745fd..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCESTATERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceStateResult : public ServiceResult - { - public: - struct RealTimeInstanceState - { - struct AgentStateCount - { - std::string state; - long count; - }; - std::vector agentStateDistributions; - }; - - - GetInstanceStateResult(); - explicit GetInstanceStateResult(const std::string &payload); - ~GetInstanceStateResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - RealTimeInstanceState getRealTimeInstanceState()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::string code_; - RealTimeInstanceState realTimeInstanceState_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h deleted file mode 100644 index 6ce7a13cf..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCESUMMARYREPORTBYINTERVALREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportByIntervalRequest : public RpcServiceRequest - { - - public: - GetInstanceSummaryReportByIntervalRequest(); - ~GetInstanceSummaryReportByIntervalRequest(); - - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string endTime_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - int pageSize_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h deleted file mode 100644 index fa25ae947..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCESUMMARYREPORTBYINTERVALRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportByIntervalResult : public ServiceResult - { - public: - struct InstanceTimeIntervalReport - { - struct InstanceSummaryReport - { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long totalTalkTime; - long averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; - struct Inbound - { - long callsAbandonedInQueue; - float serviceLevel20; - long totalWorkTime; - long callsIncomingLine; - long satisfactionSurveysOffered; - long callsOffered; - long maxRingTime; - float satisfactionIndex; - long callsIncomingQueue; - long callsIncomingIVR; - long callsHandled; - long maxWaitTime; - long totalRingTime; - long satisfactionSurveysResponded; - float handleRate; - long averageRingTime; - long totalTalkTime; - long averageWaitTime; - long totalWaitTime; - std::string maxTalkTime; - long averageWorkTime; - long maxWorkTime; - long averageTalkTime; - long callsAbandonedInIVR; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - float answerRate; - long averageTalkTime; - }; - Overall overall; - Outbound outbound; - std::string instanceId; - Inbound inbound; - std::string timestamp; - }; - std::string instanceId; - std::vector intervalList; - }; - - - GetInstanceSummaryReportByIntervalResult(); - explicit GetInstanceSummaryReportByIntervalResult(const std::string &payload); - ~GetInstanceSummaryReportByIntervalResult(); - InstanceTimeIntervalReport getInstanceTimeIntervalReport()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - InstanceTimeIntervalReport instanceTimeIntervalReport_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h deleted file mode 100644 index d6ea93aa2..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCESUMMARYREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportRequest : public RpcServiceRequest - { - - public: - GetInstanceSummaryReportRequest(); - ~GetInstanceSummaryReportRequest(); - - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string endTime_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h deleted file mode 100644 index 1df0396db..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCESUMMARYREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportResult : public ServiceResult - { - public: - struct InstanceSummaryReport - { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long totalTalkTime; - long averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; - struct Inbound - { - long callsAbandonedInQueue; - float serviceLevel20; - long totalWorkTime; - long callsIncomingLine; - long satisfactionSurveysOffered; - long callsOffered; - long maxRingTime; - float satisfactionIndex; - long callsIncomingQueue; - long callsIncomingIVR; - long callsHandled; - long maxWaitTime; - long totalRingTime; - long satisfactionSurveysResponded; - float handleRate; - long averageRingTime; - long totalTalkTime; - long averageWaitTime; - long totalWaitTime; - std::string maxTalkTime; - long averageWorkTime; - long maxWorkTime; - long averageTalkTime; - long callsAbandonedInIVR; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - float answerRate; - long averageTalkTime; - }; - Overall overall; - Outbound outbound; - std::string instanceId; - Inbound inbound; - }; - - - GetInstanceSummaryReportResult(); - explicit GetInstanceSummaryReportResult(const std::string &payload); - ~GetInstanceSummaryReportResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - InstanceSummaryReport getInstanceSummaryReport()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - InstanceSummaryReport instanceSummaryReport_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h deleted file mode 100644 index d119ec9eb..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportSinceMidnightRequest : public RpcServiceRequest - { - - public: - GetInstanceSummaryReportSinceMidnightRequest(); - ~GetInstanceSummaryReportSinceMidnightRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h deleted file mode 100644 index c48903e79..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportSinceMidnightResult : public ServiceResult - { - public: - struct InstanceSummaryReport - { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long totalTalkTime; - long averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; - struct Inbound - { - long callsAbandonedInQueue; - float serviceLevel20; - long totalWorkTime; - long callsIncomingLine; - long satisfactionSurveysOffered; - long callsOffered; - long maxRingTime; - float satisfactionIndex; - long callsIncomingQueue; - long callsIncomingIVR; - long callsHandled; - long maxWaitTime; - long totalRingTime; - long satisfactionSurveysResponded; - float handleRate; - long averageRingTime; - long totalTalkTime; - long averageWaitTime; - long totalWaitTime; - std::string maxTalkTime; - long averageWorkTime; - long maxWorkTime; - long averageTalkTime; - long callsAbandonedInIVR; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - float answerRate; - long averageTalkTime; - }; - Overall overall; - Outbound outbound; - std::string instanceId; - Inbound inbound; - std::string timestamp; - }; - - - GetInstanceSummaryReportSinceMidnightResult(); - explicit GetInstanceSummaryReportSinceMidnightResult(const std::string &payload); - ~GetInstanceSummaryReportSinceMidnightResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - InstanceSummaryReport getInstanceSummaryReport()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - InstanceSummaryReport instanceSummaryReport_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_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 deleted file mode 100644 index a26dc098b..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 314c08170..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetJobFileUploadUrlRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h deleted file mode 100644 index 8f6da70c0..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETJOBFILEUPLOADURLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetJobFileUploadUrlRequest : public RpcServiceRequest - { - - public: - GetJobFileUploadUrlRequest(); - ~GetJobFileUploadUrlRequest(); - - 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_GETJOBFILEUPLOADURLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h deleted file mode 100644 index 0619be30c..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETJOBFILEUPLOADURLRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetJobFileUploadUrlResult : public ServiceResult - { - public: - - - GetJobFileUploadUrlResult(); - explicit GetJobFileUploadUrlResult(const std::string &payload); - ~GetJobFileUploadUrlResult(); - std::string getFilePath()const; - std::string getUploadUrl()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 filePath_; - std::string uploadUrl_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_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 deleted file mode 100644 index 2b15e1f9f..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 23ec7ffd4..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 020e68704..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobListRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - bool getQueryAll()const; - void setQueryAll(bool queryAll); - 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 getStatus()const; - void setStatus(int status); - - private: - int pageNumber_; - bool queryAll_; - std::string instanceId_; - std::string jobGroupId_; - int pageSize_; - int status_; - - }; - } - } -} -#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 deleted file mode 100644 index 0ff0021a2..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobListResult.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetJobResult.h b/ccc/include/alibabacloud/ccc/model/GetJobResult.h deleted file mode 100644 index c2210bbf5..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobResult.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index c7fce5597..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 67377840c..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 endTime; - 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 deleted file mode 100644 index 068dea5f2..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 1e7100401..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetUserRequest.h b/ccc/include/alibabacloud/ccc/model/GetLoginDetailsRequest.h similarity index 73% rename from ccc/include/alibabacloud/ccc/model/GetUserRequest.h rename to ccc/include/alibabacloud/ccc/model/GetLoginDetailsRequest.h index 1ce1c43e1..e5d42cbf9 100644 --- a/ccc/include/alibabacloud/ccc/model/GetUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetLoginDetailsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSREQUEST_H_ #include #include @@ -28,27 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetLoginDetailsRequest : public RpcServiceRequest { public: - GetUserRequest(); - ~GetUserRequest(); + GetLoginDetailsRequest(); + ~GetLoginDetailsRequest(); - 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); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); private: - std::string instanceId_; std::string userId_; - std::string accessKeyId_; + std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h b/ccc/include/alibabacloud/ccc/model/GetLoginDetailsResult.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h rename to ccc/include/alibabacloud/ccc/model/GetLoginDetailsResult.h index fcfd4a2eb..ab0f9dff0 100644 --- a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetLoginDetailsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSRESULT_H_ #include #include @@ -29,39 +29,41 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CallOnlinePrivacyNumberResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetLoginDetailsResult : public ServiceResult { public: struct Data { - std::string represent; - std::string callId; - std::string dateCreated; - std::string telX; - std::string statusCode; + std::string extension; + std::string deviceId; + std::string sipServerUrl; + std::string userId; + std::string signature; + std::string userKey; + std::string displayName; }; - CallOnlinePrivacyNumberResult(); - explicit CallOnlinePrivacyNumberResult(const std::string &payload); - ~CallOnlinePrivacyNumberResult(); + GetLoginDetailsResult(); + explicit GetLoginDetailsResult(const std::string &payload); + ~GetLoginDetailsResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + std::vector params_; Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h rename to ccc/include/alibabacloud/ccc/model/GetMonoRecordingRequest.h index 921dc7a24..7a9ed8647 100644 --- a/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListContactFlowsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetMonoRecordingRequest : public RpcServiceRequest { public: - ListContactFlowsRequest(); - ~ListContactFlowsRequest(); + GetMonoRecordingRequest(); + ~GetMonoRecordingRequest(); + std::string getContactId()const; + void setContactId(const std::string& contactId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: + std::string contactId_; std::string instanceId_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h rename to ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h index c594714e9..0925f0ca5 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGRESULT_H_ #include #include @@ -29,31 +29,34 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CreateSkillGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetMonoRecordingResult : public ServiceResult { public: + struct Data + { + std::string fileUrl; + std::string fileName; + }; - CreateSkillGroupResult(); - explicit CreateSkillGroupResult(const std::string &payload); - ~CreateSkillGroupResult(); + GetMonoRecordingResult(); + explicit GetMonoRecordingResult(const std::string &payload); + ~GetMonoRecordingResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::string getSkillGroupId()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - std::string skillGroupId_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h b/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingRequest.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h rename to ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingRequest.h index d0d35dd8a..11dd4fde5 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGREQUEST_H_ #include #include @@ -28,27 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRecordingsByContactIdRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetMultiChannelRecordingRequest : public RpcServiceRequest { public: - ListRecordingsByContactIdRequest(); - ~ListRecordingsByContactIdRequest(); + GetMultiChannelRecordingRequest(); + ~GetMultiChannelRecordingRequest(); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); std::string getContactId()const; void setContactId(const std::string& contactId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); private: - std::string instanceId_; std::string contactId_; - std::string accessKeyId_; + std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h rename to ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h index fe820fb96..9ad1977d7 100644 --- a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGRESULT_H_ #include #include @@ -29,31 +29,34 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetMultiChannelRecordingResult : public ServiceResult { public: + struct Data + { + std::string fileUrl; + std::string fileName; + }; - CreatePredictiveJobGroupResult(); - explicit CreatePredictiveJobGroupResult(const std::string &payload); - ~CreatePredictiveJobGroupResult(); - std::string getJobGroupId()const; + GetMultiChannelRecordingResult(); + explicit GetMultiChannelRecordingResult(const std::string &payload); + ~GetMultiChannelRecordingResult(); std::string getMessage()const; int getHttpStatusCode()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string jobGroupId_; std::string message_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h b/ccc/include/alibabacloud/ccc/model/GetNumberLocationRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h rename to ccc/include/alibabacloud/ccc/model/GetNumberLocationRequest.h index 7128a513c..7ba6a979a 100644 --- a/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetNumberLocationRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFOREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFOREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONREQUEST_H_ #include #include @@ -28,27 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetNumberRegionInfoRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetNumberLocationRequest : public RpcServiceRequest { public: - GetNumberRegionInfoRequest(); - ~GetNumberRegionInfoRequest(); + GetNumberLocationRequest(); + ~GetNumberLocationRequest(); 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 +#endif // !ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/GetNumberLocationResult.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h rename to ccc/include/alibabacloud/ccc/model/GetNumberLocationResult.h index c23aec746..7a28d784f 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetNumberLocationResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONRESULT_H_ #include #include @@ -29,29 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumberResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetNumberLocationResult : public ServiceResult { public: + struct Data + { + std::string number; + std::string city; + std::string province; + }; - RemovePhoneNumberResult(); - explicit RemovePhoneNumberResult(const std::string &payload); - ~RemovePhoneNumberResult(); + GetNumberLocationResult(); + explicit GetNumberLocationResult(const std::string &payload); + ~GetNumberLocationResult(); std::string getMessage()const; int getHttpStatusCode()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONRESULT_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 deleted file mode 100644 index dfb3b6a2b..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetRecordOssUploadParamRequest.h b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h deleted file mode 100644 index ec8569e0b..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETRECORDOSSUPLOADPARAMREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetRecordOssUploadParamRequest : public RpcServiceRequest - { - - public: - GetRecordOssUploadParamRequest(); - ~GetRecordOssUploadParamRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getFileName()const; - void setFileName(const std::string& fileName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::string fileName_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h deleted file mode 100644 index 6a9a38fcd..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETRECORDOSSUPLOADPARAMRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetRecordOssUploadParamResult : public ServiceResult - { - public: - - - GetRecordOssUploadParamResult(); - explicit GetRecordOssUploadParamResult(const std::string &payload); - ~GetRecordOssUploadParamResult(); - std::string getPolicy()const; - std::string getMessage()const; - std::string getSignature()const; - int getHttpStatusCode()const; - std::string getOssFileName()const; - std::string getHost()const; - std::string getExpires()const; - std::string getDir()const; - std::string getCode()const; - std::string getOssAccessKeyId()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string policy_; - std::string message_; - std::string signature_; - int httpStatusCode_; - std::string ossFileName_; - std::string host_; - std::string expires_; - std::string dir_; - std::string code_; - std::string ossAccessKeyId_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetRoutePointResult.h b/ccc/include/alibabacloud/ccc/model/GetRoutePointResult.h deleted file mode 100644 index 99b888f6c..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetRoutePointResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETROUTEPOINTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETROUTEPOINTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetRoutePointResult : public ServiceResult - { - public: - - - GetRoutePointResult(); - explicit GetRoutePointResult(const std::string &payload); - ~GetRoutePointResult(); - std::string getStatusDesc()const; - std::string getMessage()const; - std::string getRoutePoint()const; - int getHttpStatusCode()const; - std::string getCode()const; - std::string getStatusCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string statusDesc_; - std::string message_; - std::string routePoint_; - int httpStatusCode_; - std::string code_; - std::string statusCode_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETROUTEPOINTRESULT_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 deleted file mode 100644 index 081487d12..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetScenarioRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 32e359fb0..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetScenarioResult.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetServiceExtensionsRequest.h b/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h deleted file mode 100644 index 294993a6a..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETSERVICEEXTENSIONSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetServiceExtensionsRequest : public RpcServiceRequest - { - - public: - GetServiceExtensionsRequest(); - ~GetServiceExtensionsRequest(); - - std::string getServiceType()const; - void setServiceType(const std::string& serviceType); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string serviceType_; - std::string instanceId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSREQUEST_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 deleted file mode 100644 index 4b5ff1306..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETSERVICEEXTENSIONSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetServiceExtensionsResult : public ServiceResult - { - public: - 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; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector serviceExtensions_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h b/ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h deleted file mode 100644 index d02ae161f..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETSMSCONFIGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetSmsConfigRequest : public RpcServiceRequest - { - - public: - GetSmsConfigRequest(); - ~GetSmsConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getScenario()const; - void setScenario(const std::vector& scenario); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::vector scenario_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.h b/ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.h deleted file mode 100644 index 5761b05ac..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETSMSCONFIGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetSmsConfigResult : public ServiceResult - { - public: - struct SmsConfig - { - std::string templateCode; - std::string gmtCreate; - std::string description; - std::string extra; - std::string instance; - std::string gmtModified; - long id; - std::string signName; - int scenario; - std::string name; - }; - - - GetSmsConfigResult(); - explicit GetSmsConfigResult(const std::string &payload); - ~GetSmsConfigResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getSmsConfigs()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector smsConfigs_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h deleted file mode 100644 index 6bc39fc06..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 1f557b150..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetSurveyResult.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetTaskListResult.h b/ccc/include/alibabacloud/ccc/model/GetTaskListResult.h deleted file mode 100644 index 9778faf46..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetTaskListResult.h +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetTURNCredentialsRequest.h b/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsRequest.h similarity index 75% rename from ccc/include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h rename to ccc/include/alibabacloud/ccc/model/GetTurnCredentialsRequest.h index 98d13208a..34f2bda74 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsRequest.h @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetTURNCredentialsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetTurnCredentialsRequest : public RpcServiceRequest { public: - GetTURNCredentialsRequest(); - ~GetTURNCredentialsRequest(); + GetTurnCredentialsRequest(); + ~GetTurnCredentialsRequest(); + std::string getUserId()const; + void setUserId(const std::string& userId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserName()const; - void setUserName(const std::string& userName); private: + std::string userId_; std::string instanceId_; - std::string accessKeyId_; - std::string userName_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsResult.h b/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsResult.h similarity index 76% rename from ccc/include/alibabacloud/ccc/model/GetTURNCredentialsResult.h rename to ccc/include/alibabacloud/ccc/model/GetTurnCredentialsResult.h index eed5c9d12..aa06c9bcf 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsResult.h @@ -29,30 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetTURNCredentialsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetTurnCredentialsResult : public ServiceResult { public: + struct Data + { + std::string userName; + std::string password; + }; - GetTURNCredentialsResult(); - explicit GetTURNCredentialsResult(const std::string &payload); - ~GetTURNCredentialsResult(); + GetTurnCredentialsResult(); + explicit GetTurnCredentialsResult(const std::string &payload); + ~GetTurnCredentialsResult(); std::string getMessage()const; - std::string getUsername()const; int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; - std::string getPassword()const; protected: void parse(const std::string &payload); private: std::string message_; - std::string username_; int httpStatusCode_; + std::vector params_; + Data data_; std::string code_; - bool success_; - std::string password_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetTURNServerListRequest.h b/ccc/include/alibabacloud/ccc/model/GetTurnServerListRequest.h similarity index 82% rename from ccc/include/alibabacloud/ccc/model/GetTURNServerListRequest.h rename to ccc/include/alibabacloud/ccc/model/GetTurnServerListRequest.h index bad764108..910b32b28 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTURNServerListRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetTurnServerListRequest.h @@ -28,21 +28,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetTURNServerListRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetTurnServerListRequest : public RpcServiceRequest { public: - GetTURNServerListRequest(); - ~GetTURNServerListRequest(); + GetTurnServerListRequest(); + ~GetTurnServerListRequest(); 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_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetTURNServerListResult.h b/ccc/include/alibabacloud/ccc/model/GetTurnServerListResult.h similarity index 79% rename from ccc/include/alibabacloud/ccc/model/GetTURNServerListResult.h rename to ccc/include/alibabacloud/ccc/model/GetTurnServerListResult.h index 8e4879fc8..e4b8a72db 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTURNServerListResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetTurnServerListResult.h @@ -29,28 +29,28 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetTURNServerListResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetTurnServerListResult : public ServiceResult { public: - GetTURNServerListResult(); - explicit GetTURNServerListResult(const std::string &payload); - ~GetTURNServerListResult(); + GetTurnServerListResult(); + explicit GetTurnServerListResult(const std::string &payload); + ~GetTurnServerListResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; + std::string getData()const; std::string getCode()const; - std::string getTurnServerListConfig()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + std::vector params_; + std::string data_; std::string code_; - std::string turnServerListConfig_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h b/ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h deleted file mode 100644 index 9309b0fb8..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETUSERBYEXTENSIONREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetUserByExtensionRequest : public RpcServiceRequest - { - - public: - GetUserByExtensionRequest(); - ~GetUserByExtensionRequest(); - - std::string getExtension()const; - void setExtension(const std::string& extension); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string extension_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetUserByExtensionResult.h b/ccc/include/alibabacloud/ccc/model/GetUserByExtensionResult.h deleted file mode 100644 index 2d3176944..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetUserByExtensionResult.h +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETUSERBYEXTENSIONRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetUserByExtensionResult : public ServiceResult - { - public: - struct User - { - struct Detail - { - std::string extension; - 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; - }; - - - GetUserByExtensionResult(); - explicit GetUserByExtensionResult(const std::string &payload); - ~GetUserByExtensionResult(); - 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: - User user_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONRESULT_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 deleted file mode 100644 index 95b6c033a..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetUserResult.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_GETUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - 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; - }; - 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(); - 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: - User user_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/HoldCallRequest.h b/ccc/include/alibabacloud/ccc/model/HoldCallRequest.h new file mode 100644 index 000000000..6107e7922 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/HoldCallRequest.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_HOLDCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_HOLDCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT HoldCallRequest : public RpcServiceRequest + { + + public: + HoldCallRequest(); + ~HoldCallRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getMusic()const; + void setMusic(const std::string& music); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + std::string music_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_HOLDCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/HoldCallResult.h b/ccc/include/alibabacloud/ccc/model/HoldCallResult.h new file mode 100644 index 000000000..26c9ab81e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/HoldCallResult.h @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_HOLDCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_HOLDCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT HoldCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + HoldCallResult(); + explicit HoldCallResult(const std::string &payload); + ~HoldCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_HOLDCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.h b/ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.h deleted file mode 100644 index 946648d46..000000000 --- a/ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_INFLIGHTTASKTIMEOUTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_INFLIGHTTASKTIMEOUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT InflightTaskTimeoutRequest : public RpcServiceRequest - { - - public: - InflightTaskTimeoutRequest(); - ~InflightTaskTimeoutRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string instanceId_; - long instanceOwnerId_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_INFLIGHTTASKTIMEOUTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutResult.h b/ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutResult.h deleted file mode 100644 index d194e9580..000000000 --- a/ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_INFLIGHTTASKTIMEOUTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_INFLIGHTTASKTIMEOUTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT InflightTaskTimeoutResult : public ServiceResult - { - public: - - - InflightTaskTimeoutResult(); - explicit InflightTaskTimeoutResult(const std::string &payload); - ~InflightTaskTimeoutResult(); - 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_INFLIGHTTASKTIMEOUTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h new file mode 100644 index 000000000..160aec044 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.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_INITIATEATTENDEDTRANSFERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT InitiateAttendedTransferRequest : public RpcServiceRequest + { + + public: + InitiateAttendedTransferRequest(); + ~InitiateAttendedTransferRequest(); + + std::string getTransferee()const; + void setTransferee(const std::string& transferee); + std::string getTransferor()const; + void setTransferor(const std::string& transferor); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + int getTimeoutSeconds()const; + void setTimeoutSeconds(int timeoutSeconds); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string transferee_; + std::string transferor_; + std::string userId_; + std::string deviceId_; + int timeoutSeconds_; + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h new file mode 100644 index 000000000..e61f8c575 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT InitiateAttendedTransferResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + InitiateAttendedTransferResult(); + explicit InitiateAttendedTransferResult(const std::string &payload); + ~InitiateAttendedTransferResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/TaskPreparingRequest.h b/ccc/include/alibabacloud/ccc/model/InterceptCallRequest.h similarity index 58% rename from ccc/include/alibabacloud/ccc/model/TaskPreparingRequest.h rename to ccc/include/alibabacloud/ccc/model/InterceptCallRequest.h index e2f6c7530..2591fc278 100644 --- a/ccc/include/alibabacloud/ccc/model/TaskPreparingRequest.h +++ b/ccc/include/alibabacloud/ccc/model/InterceptCallRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_TASKPREPARINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_TASKPREPARINGREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLREQUEST_H_ #include #include @@ -28,27 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT TaskPreparingRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT InterceptCallRequest : public RpcServiceRequest { public: - TaskPreparingRequest(); - ~TaskPreparingRequest(); + InterceptCallRequest(); + ~InterceptCallRequest(); + std::string getInterceptedUserId()const; + void setInterceptedUserId(const std::string& interceptedUserId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); std::string getJobId()const; void setJobId(const std::string& jobId); + int getTimeoutSeconds()const; + void setTimeoutSeconds(int timeoutSeconds); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); private: + std::string interceptedUserId_; + std::string userId_; + std::string deviceId_; std::string jobId_; + int timeoutSeconds_; std::string instanceId_; - long instanceOwnerId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_TASKPREPARINGREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/InterceptCallResult.h b/ccc/include/alibabacloud/ccc/model/InterceptCallResult.h new file mode 100644 index 000000000..d648b2421 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/InterceptCallResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT InterceptCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + InterceptCallResult(); + explicit InterceptCallResult(const std::string &payload); + ~InterceptCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h deleted file mode 100644 index 4f7260461..000000000 --- a/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 8175a8eff..000000000 --- a/ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/AddPhoneNumberRequest.h b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationRequest.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h rename to ccc/include/alibabacloud/ccc/model/LaunchAuthenticationRequest.h index 7025884be..565cd4961 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h +++ b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT LaunchAuthenticationRequest : public RpcServiceRequest { public: - AddPhoneNumberRequest(); - ~AddPhoneNumberRequest(); + LaunchAuthenticationRequest(); + ~LaunchAuthenticationRequest(); std::string getContactFlowId()const; void setContactFlowId(const std::string& contactFlowId); - std::string getUsage()const; - void setUsage(const std::string& usage); - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: std::string contactFlowId_; - std::string usage_; - std::string phoneNumber_; - std::string accessKeyId_; + std::string userId_; + std::string deviceId_; + std::string jobId_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h new file mode 100644 index 000000000..7d7f6cc90 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchAuthenticationResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + LaunchAuthenticationResult(); + explicit LaunchAuthenticationResult(const std::string &payload); + ~LaunchAuthenticationResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h deleted file mode 100644 index 73c610d8c..000000000 --- a/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LAUNCHSHORTMESSAGEAPPRAISEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT LaunchShortMessageAppraiseRequest : public RpcServiceRequest - { - - public: - LaunchShortMessageAppraiseRequest(); - ~LaunchShortMessageAppraiseRequest(); - - int getContactType()const; - void setContactType(int contactType); - std::string getPhoneNumbers()const; - void setPhoneNumbers(const std::string& phoneNumbers); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getAcid()const; - void setAcid(const std::string& acid); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - - private: - int contactType_; - std::string phoneNumbers_; - std::string accessKeyId_; - std::string acid_; - std::string instanceId_; - std::string skillGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h deleted file mode 100644 index 355684d26..000000000 --- a/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LAUNCHSHORTMESSAGEAPPRAISERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT LaunchShortMessageAppraiseResult : public ServiceResult - { - public: - - - LaunchShortMessageAppraiseResult(); - explicit LaunchShortMessageAppraiseResult(const std::string &payload); - ~LaunchShortMessageAppraiseResult(); - 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_LAUNCHSHORTMESSAGEAPPRAISERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetRoutePointRequest.h b/ccc/include/alibabacloud/ccc/model/LaunchSurveyRequest.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/GetRoutePointRequest.h rename to ccc/include/alibabacloud/ccc/model/LaunchSurveyRequest.h index b78cddb80..14f64eaf3 100644 --- a/ccc/include/alibabacloud/ccc/model/GetRoutePointRequest.h +++ b/ccc/include/alibabacloud/ccc/model/LaunchSurveyRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETROUTEPOINTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETROUTEPOINTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHSURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHSURVEYREQUEST_H_ #include #include @@ -28,27 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetRoutePointRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT LaunchSurveyRequest : public RpcServiceRequest { public: - GetRoutePointRequest(); - ~GetRoutePointRequest(); + LaunchSurveyRequest(); + ~LaunchSurveyRequest(); std::string getContactFlowId()const; void setContactFlowId(const std::string& contactFlowId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string contactFlowId_; + std::string userId_; + std::string deviceId_; + std::string jobId_; std::string instanceId_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETROUTEPOINTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHSURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h b/ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h new file mode 100644 index 000000000..9f96a79de --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHSURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHSURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchSurveyResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + LaunchSurveyResult(); + explicit LaunchSurveyResult(const std::string &payload); + ~LaunchSurveyResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHSURVEYRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h deleted file mode 100644 index b6fb0914b..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTDEVICESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentDevicesRequest : public RpcServiceRequest - { - - public: - ListAgentDevicesRequest(); - ~ListAgentDevicesRequest(); - - std::string getRamIds()const; - void setRamIds(const std::string& ramIds); - long getStartTime()const; - void setStartTime(long startTime); - long getStopTime()const; - void setStopTime(long stopTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string ramIds_; - long startTime_; - long stopTime_; - std::string accessKeyId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.h deleted file mode 100644 index fbefb126e..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTEVENTSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentEventsRequest : public RpcServiceRequest - { - - public: - ListAgentEventsRequest(); - ~ListAgentEventsRequest(); - - long getStartTime()const; - void setStartTime(long startTime); - long getStopTime()const; - void setStopTime(long stopTime); - std::vector getRamId()const; - void setRamId(const std::vector& ramId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getEvent()const; - void setEvent(const std::vector& event); - - private: - long startTime_; - long stopTime_; - std::vector ramId_; - std::string accessKeyId_; - std::string instanceId_; - std::vector event_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h deleted file mode 100644 index 630e62801..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTSTATELOGSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentStateLogsRequest : public RpcServiceRequest - { - - public: - ListAgentStateLogsRequest(); - ~ListAgentStateLogsRequest(); - - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); - long getRamId()const; - void setRamId(long ramId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - long endTime_; - long startTime_; - long ramId_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h deleted file mode 100644 index f8c85074b..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTSTATELOGSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentStateLogsResult : public ServiceResult - { - public: - struct AgentStateLogPage - { - struct AgentStateLog - { - std::string skillGroupIds; - std::string counterParty; - long stateTime; - std::string instanceId; - std::string state; - long ramId; - std::string stateCode; - std::string connectId; - std::string contactId; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListAgentStateLogsResult(); - explicit ListAgentStateLogsResult(const std::string &payload); - ~ListAgentStateLogsResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - AgentStateLogPage getAgentStateLogPage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::string code_; - AgentStateLogPage agentStateLogPage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h deleted file mode 100644 index 8056499e6..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTSUMMARYREPORTSBYINTERVALREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsByIntervalRequest : public RpcServiceRequest - { - - public: - ListAgentSummaryReportsByIntervalRequest(); - ~ListAgentSummaryReportsByIntervalRequest(); - - std::string getAgentIds()const; - void setAgentIds(const std::string& agentIds); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string agentIds_; - std::string endTime_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroupId_; - int pageSize_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h deleted file mode 100644 index 27f5a382c..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTSUMMARYREPORTSBYINTERVALRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsByIntervalResult : public ServiceResult - { - public: - struct PagedAgentSummaryReport - { - struct AgentTimeIntervalReport - { - struct AgentSummaryReport - { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - long oneTransferCalls; - float satisfactionIndex; - long satisfactionSurveysResponded; - std::string lastLogOutTime; - long totalTalkTime; - long averageReadyTime; - std::string firstLogInTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; - struct Inbound - { - float serviceLevel20; - long totalWorkTime; - long satisfactionSurveysOffered; - long callsOffered; - long maxRingTime; - float satisfactionIndex; - long callsHandled; - long totalRingTime; - long satisfactionSurveysResponded; - float handleRate; - long averageRingTime; - long totalTalkTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - long averageTalkTime; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - float answerRate; - long averageTalkTime; - }; - Overall overall; - Outbound outbound; - std::string loginName; - std::string skillGroupIds; - std::string instanceId; - std::string skillGroupNames; - std::string agentId; - std::string agentName; - Inbound inbound; - std::string timestamp; - }; - std::vector intervalList; - std::string agentId; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListAgentSummaryReportsByIntervalResult(); - explicit ListAgentSummaryReportsByIntervalResult(const std::string &payload); - ~ListAgentSummaryReportsByIntervalResult(); - std::string getMessage()const; - PagedAgentSummaryReport getPagedAgentSummaryReport()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - PagedAgentSummaryReport pagedAgentSummaryReport_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h deleted file mode 100644 index 68bcc44cf..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTSUMMARYREPORTSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsRequest : public RpcServiceRequest - { - - public: - ListAgentSummaryReportsRequest(); - ~ListAgentSummaryReportsRequest(); - - std::string getAgentIds()const; - void setAgentIds(const std::string& agentIds); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string agentIds_; - std::string endTime_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroupId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h deleted file mode 100644 index 1a832aef8..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsSinceMidnightRequest : public RpcServiceRequest - { - - public: - ListAgentSummaryReportsSinceMidnightRequest(); - ~ListAgentSummaryReportsSinceMidnightRequest(); - - std::string getAgentIds()const; - void setAgentIds(const std::string& agentIds); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string agentIds_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroupId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h deleted file mode 100644 index 4e79b7fab..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsSinceMidnightResult : public ServiceResult - { - public: - struct PagedAgentSummaryReport - { - struct AgentSummaryReport - { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - long oneTransferCalls; - float satisfactionIndex; - long satisfactionSurveysResponded; - long totalTalkTime; - long averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; - struct Inbound - { - float serviceLevel20; - long totalWorkTime; - long satisfactionSurveysOffered; - long callsOffered; - long maxRingTime; - float satisfactionIndex; - long callsHandled; - long totalRingTime; - long satisfactionSurveysResponded; - float handleRate; - long averageRingTime; - long totalTalkTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - long averageTalkTime; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - long averageWorkTime; - std::string maxWorkTime; - float answerRate; - long averageTalkTime; - }; - Overall overall; - Outbound outbound; - std::string loginName; - std::string skillGroupIds; - std::string instanceId; - std::string skillGroupNames; - std::string agentId; - std::string agentName; - Inbound inbound; - std::string timestamp; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListAgentSummaryReportsSinceMidnightResult(); - explicit ListAgentSummaryReportsSinceMidnightResult(const std::string &payload); - ~ListAgentSummaryReportsSinceMidnightResult(); - std::string getMessage()const; - PagedAgentSummaryReport getPagedAgentSummaryReport()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - PagedAgentSummaryReport pagedAgentSummaryReport_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTRESULT_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 deleted file mode 100644 index 33d322ba7..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getTitle()const; - void setTitle(const std::string& title); - int getPageNumber()const; - void setPageNumber(int pageNumber); - 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); - - private: - std::string title_; - int pageNumber_; - std::string instanceId_; - std::string jobGroupId_; - int pageSize_; - - }; - } - } -} -#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 deleted file mode 100644 index aa242bdcf..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ListUsersRequest.h b/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ListUsersRequest.h rename to ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h index 5af0614b4..12c84271b 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUSERSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSREQUEST_H_ #include #include @@ -28,17 +28,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListUsersRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListBriefSkillGroupsRequest : public RpcServiceRequest { public: - ListUsersRequest(); - ~ListUsersRequest(); + ListBriefSkillGroupsRequest(); + ~ListBriefSkillGroupsRequest(); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getSearchPattern()const; + void setSearchPattern(const std::string& searchPattern); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; @@ -46,7 +46,7 @@ namespace AlibabaCloud private: int pageNumber_; - std::string accessKeyId_; + std::string searchPattern_; std::string instanceId_; int pageSize_; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h rename to ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h index 9cbcbd3a9..6cc586de4 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSRESULT_H_ #include #include @@ -29,39 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupStatesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListBriefSkillGroupsResult : public ServiceResult { public: struct Data { - struct RealTimeSkillGroupState + struct SkillGroup { - long breakingAgents; - long talkingAgents; + std::string description; std::string skillGroupName; std::string instanceId; - long loggedInAgents; - long readyAgents; - long waitingCalls; + int phoneNumberCount; + int userCount; + std::string displayName; std::string skillGroupId; - long longestCall; - long workingAgents; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListSkillGroupStatesResult(); - explicit ListSkillGroupStatesResult(const std::string &payload); - ~ListSkillGroupStatesResult(); + ListBriefSkillGroupsResult(); + explicit ListBriefSkillGroupsResult(const std::string &payload); + ~ListBriefSkillGroupsResult(); std::string getMessage()const; int getHttpStatusCode()const; Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -70,10 +66,9 @@ namespace AlibabaCloud int httpStatusCode_; Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSRESULT_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 b46e29642..329e6d4e4 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h @@ -35,47 +35,53 @@ namespace AlibabaCloud ListCallDetailRecordsRequest(); ~ListCallDetailRecordsRequest(); - std::string getContactType()const; - void setContactType(const std::string& contactType); std::string getContactId()const; void setContactId(const std::string& contactId); - std::string getCriteria()const; - void setCriteria(const std::string& criteria); - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); + std::string getOrderByField()const; + void setOrderByField(const std::string& orderByField); long getStartTime()const; void setStartTime(long startTime); - long getStopTime()const; - void setStopTime(long stopTime); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getContactDisposition()const; - void setContactDisposition(const std::string& contactDisposition); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); int getPageSize()const; void setPageSize(int pageSize); + std::string getSortOrder()const; + void setSortOrder(const std::string& sortOrder); bool getWithRecording()const; void setWithRecording(bool withRecording); + std::string getAgentId()const; + void setAgentId(const std::string& agentId); + std::string getContactType()const; + void setContactType(const std::string& contactType); + long getEndTime()const; + void setEndTime(long endTime); + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); + std::string getContactDisposition()const; + void setContactDisposition(const std::string& contactDisposition); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); private: - std::string contactType_; std::string contactId_; - std::string criteria_; - std::string phoneNumber_; - std::string orderBy_; + std::string orderByField_; long startTime_; - long stopTime_; int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string contactDisposition_; + std::string calledNumber_; int pageSize_; + std::string sortOrder_; bool withRecording_; + std::string agentId_; + std::string contactType_; + long endTime_; + std::string callingNumber_; + std::string contactDisposition_; + std::string instanceId_; + std::string skillGroupId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h index 3a92b5fff..465ecaf6a 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h @@ -32,44 +32,23 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListCallDetailRecordsResult : public ServiceResult { public: - struct CallDetailRecords + struct Data { struct CallDetailRecord { - struct CallDetailAgent - { - std::string feedback; - std::string satisfaction; - std::string agentId; - }; - struct Recording - { - std::string fileDescription; - std::string qualityCheckTid; - std::string fileName; - long startTime; - int duration; - std::string contactId; - std::string agentId; - std::string agentName; - std::string qualityCheckTaskId; - }; + std::string skillGroupIds; 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 satisfactionDesc; + std::string callDuration; std::string callingNumber; - std::string feedback; std::string skillGroupNames; + std::string agentIds; + long establishedTime; std::string agentNames; - std::string skillGroupIdList; }; int totalCount; int pageSize; @@ -82,19 +61,17 @@ namespace AlibabaCloud explicit ListCallDetailRecordsResult(const std::string &payload); ~ListCallDetailRecordsResult(); std::string getMessage()const; - CallDetailRecords getCallDetailRecords()const; int getHttpStatusCode()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; - CallDetailRecords callDetailRecords_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h b/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h deleted file mode 100644 index 51de6c04d..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTCALLEVENTDETAILBYCONTACTIDREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListCallEventDetailByContactIdRequest : public RpcServiceRequest - { - - public: - ListCallEventDetailByContactIdRequest(); - ~ListCallEventDetailByContactIdRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getContactId()const; - void setContactId(const std::string& contactId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::string contactId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h b/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h deleted file mode 100644 index 5af106d0b..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTCALLEVENTDETAILBYCONTACTIDRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListCallEventDetailByContactIdResult : public ServiceResult - { - public: - struct Data - { - struct CallEventDetail - { - struct DetailData - { - std::string helper; - std::string skillGroup; - std::string hangUper; - std::string eventType; - std::string satisfactionalResearch; - }; - std::string status; - std::string event; - int duration; - std::string agentName; - std::string callMode; - DetailData detailData; - std::string timeStamp; - }; - std::string callee; - std::string releaseReason; - std::vector events; - std::string caller; - std::string privacyNumber; - std::string releaseAgent; - std::string callType; - std::string startTime; - }; - - - ListCallEventDetailByContactIdResult(); - explicit ListCallEventDetailByContactIdResult(const std::string &payload); - ~ListCallEventDetailByContactIdResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - Data getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - Data data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h deleted file mode 100644 index 01d90f10a..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTCALLMEASURESUMMARYREPORTSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListCallMeasureSummaryReportsRequest : public RpcServiceRequest - { - - public: - ListCallMeasureSummaryReportsRequest(); - ~ListCallMeasureSummaryReportsRequest(); - - std::string getIntervalType()const; - void setIntervalType(const std::string& intervalType); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string intervalType_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h deleted file mode 100644 index c04a614f4..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTCALLMEASURESUMMARYREPORTSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListCallMeasureSummaryReportsResult : public ServiceResult - { - public: - struct CallMeasureSummaryReport - { - long inboundCount; - std::string month; - long inboundDurationByMinute; - long outboundDurationByMinute; - std::string year; - long outboundCount; - std::string day; - }; - - - ListCallMeasureSummaryReportsResult(); - explicit ListCallMeasureSummaryReportsResult(const std::string &payload); - ~ListCallMeasureSummaryReportsResult(); - std::vector getCallMeasureSummaryReportList()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 callMeasureSummaryReportList_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConfigRequest.h b/ccc/include/alibabacloud/ccc/model/ListConfigItemsRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/GetConfigRequest.h rename to ccc/include/alibabacloud/ccc/model/ListConfigItemsRequest.h index e799bc3d7..55bd5c2e2 100644 --- a/ccc/include/alibabacloud/ccc/model/GetConfigRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListConfigItemsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSREQUEST_H_ #include #include @@ -28,28 +28,22 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetConfigRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListConfigItemsRequest : public RpcServiceRequest { public: - GetConfigRequest(); - ~GetConfigRequest(); + ListConfigItemsRequest(); + ~ListConfigItemsRequest(); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); std::string getObjectType()const; void setObjectType(const std::string& objectType); std::string getObjectId()const; void setObjectId(const std::string& objectId); private: - std::string accessKeyId_; std::string instanceId_; - std::string name_; std::string objectType_; std::string objectId_; @@ -57,4 +51,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConfigResult.h b/ccc/include/alibabacloud/ccc/model/ListConfigItemsResult.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/GetConfigResult.h rename to ccc/include/alibabacloud/ccc/model/ListConfigItemsResult.h index 881af8071..cfaaee686 100644 --- a/ccc/include/alibabacloud/ccc/model/GetConfigResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListConfigItemsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSRESULT_H_ #include #include @@ -29,36 +29,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetConfigResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListConfigItemsResult : public ServiceResult { public: struct ConfigItem { + std::string objectType; + std::string instanceId; + std::string objectId; std::string value; std::string name; }; - GetConfigResult(); - explicit GetConfigResult(const std::string &payload); - ~GetConfigResult(); + ListConfigItemsResult(); + explicit ListConfigItemsResult(const std::string &payload); + ~ListConfigItemsResult(); std::string getMessage()const; int getHttpStatusCode()const; - ConfigItem getConfigItem()const; + std::vector getParams()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_; - ConfigItem configItem_; + std::vector params_; + std::vector data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListConfigRequest.h b/ccc/include/alibabacloud/ccc/model/ListConfigRequest.h deleted file mode 100644 index e9433425f..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListConfigRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 36b767103..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListConfigResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 4e8e490d1..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListContactFlowsResult : public ServiceResult - { - public: - struct 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; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::vector contactFlows_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h b/ccc/include/alibabacloud/ccc/model/ListDevicesRequest.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h rename to ccc/include/alibabacloud/ccc/model/ListDevicesRequest.h index c36b02b26..8d98abea9 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListDevicesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETTASKLISTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETTASKLISTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTDEVICESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTDEVICESREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetTaskListRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListDevicesRequest : public RpcServiceRequest { public: - GetTaskListRequest(); - ~GetTaskListRequest(); + ListDevicesRequest(); + ~ListDevicesRequest(); - std::string getJobId()const; - void setJobId(const std::string& jobId); + std::string getUserId()const; + void setUserId(const std::string& userId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - std::string jobId_; + std::string userId_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETTASKLISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTDEVICESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateMediaResult.h b/ccc/include/alibabacloud/ccc/model/ListDevicesResult.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/CreateMediaResult.h rename to ccc/include/alibabacloud/ccc/model/ListDevicesResult.h index fa75ef2a6..38e2e6b87 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateMediaResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListDevicesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CREATEMEDIARESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEMEDIARESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTDEVICESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTDEVICESRESULT_H_ #include #include @@ -29,40 +29,41 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CreateMediaResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListDevicesResult : public ServiceResult { public: - struct MediaUploadParam + struct Device { - std::string instance; - std::string fileName; - std::string ossFileName; - std::string id; - std::string name; - std::string ossFilePath; + std::string extension; + std::string instanceId; + std::string deviceId; + std::string userId; + std::string callId; + long expires; + std::string contact; }; - CreateMediaResult(); - explicit CreateMediaResult(const std::string &payload); - ~CreateMediaResult(); - MediaUploadParam getMediaUploadParam()const; + ListDevicesResult(); + explicit ListDevicesResult(const std::string &payload); + ~ListDevicesResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; + std::vector getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: - MediaUploadParam mediaUploadParam_; std::string message_; int httpStatusCode_; + std::vector params_; + std::vector data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEMEDIARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTDEVICESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h b/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h index 0c8a8bb40..22b9b3d6d 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTREQUEST_H_ #include #include @@ -28,39 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRecentCallRecordsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListHistoricalAgentReportRequest : public RpcServiceRequest { public: - ListRecentCallRecordsRequest(); - ~ListRecentCallRecordsRequest(); + ListHistoricalAgentReportRequest(); + ~ListHistoricalAgentReportRequest(); - std::string getCriteria()const; - void setCriteria(const std::string& criteria); long getStartTime()const; void setStartTime(long startTime); long getStopTime()const; void setStopTime(long stopTime); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getAgentIdList()const; + void setAgentIdList(const std::string& agentIdList); int getPageSize()const; void setPageSize(int pageSize); private: - std::string criteria_; long startTime_; long stopTime_; int pageNumber_; - std::string accessKeyId_; std::string instanceId_; + std::string agentIdList_; int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h b/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h rename to ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h index a8608cf2f..cd34a3366 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTRESULT_H_ #include #include @@ -29,78 +29,79 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListHistoricalAgentReportResult : public ServiceResult { public: - struct PagedAgentSummaryReport + struct Data { - struct AgentSummaryReport + struct Items { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - long oneTransferCalls; - float satisfactionIndex; - long satisfactionSurveysResponded; - std::string lastLogOutTime; - long totalTalkTime; - long averageReadyTime; - std::string firstLogInTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; struct Inbound { - float serviceLevel20; + long callsConsulted; + long serviceLevel20; long totalWorkTime; + long totalHoldTime; long satisfactionSurveysOffered; long callsOffered; long maxRingTime; + long callsHold; float satisfactionIndex; long callsHandled; - long totalRingTime; long satisfactionSurveysResponded; + long totalRingTime; float handleRate; - long averageRingTime; + float averageRingTime; long totalTalkTime; + long callsTransfered; long maxTalkTime; - long averageWorkTime; + float averageWorkTime; long maxWorkTime; - long averageTalkTime; + float averageTalkTime; }; struct Outbound { long totalDialingTime; long totalWorkTime; + long totalHoldTime; long satisfactionSurveysOffered; float satisfactionIndex; long satisfactionSurveysResponded; - long averageDialingTime; + float averageDialingTime; long callsAnswered; long callsDialed; long totalTalkTime; long maxDialingTime; long maxTalkTime; long averageWorkTime; - std::string maxWorkTime; + long maxWorkTime; float answerRate; - long averageTalkTime; + float averageTalkTime; + }; + struct Overall + { + long totalReadyTime; + long totalBreakTime; + long totalCalls; + long totalWorkTime; + long totalHoldTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + float averageBreakTime; + long satisfactionSurveysResponded; + long totalTalkTime; + float averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + float averageWorkTime; + long maxReadyTime; + long maxBreakTime; + long maxWorkTime; + float averageTalkTime; + float occupancyRate; }; - Overall overall; Outbound outbound; - std::string loginName; - std::string skillGroupIds; - std::string instanceId; - std::string skillGroupNames; + Overall overall; std::string agentId; std::string agentName; Inbound inbound; @@ -108,30 +109,28 @@ namespace AlibabaCloud int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListAgentSummaryReportsResult(); - explicit ListAgentSummaryReportsResult(const std::string &payload); - ~ListAgentSummaryReportsResult(); + ListHistoricalAgentReportResult(); + explicit ListHistoricalAgentReportResult(const std::string &payload); + ~ListHistoricalAgentReportResult(); std::string getMessage()const; - PagedAgentSummaryReport getPagedAgentSummaryReport()const; int getHttpStatusCode()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; - PagedAgentSummaryReport pagedAgentSummaryReport_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h deleted file mode 100644 index 5174233a4..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserRequest : public RpcServiceRequest - { - - public: - ListInstancesOfUserRequest(); - ~ListInstancesOfUserRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h deleted file mode 100644 index 3856f11aa..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserResult : public ServiceResult - { - public: - struct CallCenterInstance - { - struct User - { - struct Detail - { - std::string loginName; - std::string department; - std::string email; - std::string phone; - std::string displayName; - }; - std::string instanceId; - std::string userId; - std::string ramId; - Detail detail; - }; - 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 status; - std::vector phoneNumbers; - std::string owner; - long createdTime; - std::string instanceId; - std::string domainName; - std::string consoleUrl; - int storageMaxSize; - std::vector admin; - std::string instanceName; - int maxOnlineAgents; - std::string tenantId; - std::string directoryId; - std::string storageBucket; - std::string instanceDescription; - int storageMaxDays; - }; - - - ListInstancesOfUserResult(); - explicit ListInstancesOfUserResult(const std::string &payload); - ~ListInstancesOfUserResult(); - std::vector getInstances()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 instances_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h deleted file mode 100644 index d1fa5d340..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTIVRTRACKINGDETAILREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListIvrTrackingDetailRequest : public RpcServiceRequest - { - - public: - ListIvrTrackingDetailRequest(); - ~ListIvrTrackingDetailRequest(); - - std::string getContactId()const; - void setContactId(const std::string& contactId); - long getStartTime()const; - void setStartTime(long startTime); - long getStopTime()const; - void setStopTime(long stopTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string contactId_; - long startTime_; - long stopTime_; - int pageNumber_; - std::string accessKeyId_; - std::string callingNumber_; - std::string instanceId_; - std::string calledNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h deleted file mode 100644 index a7ed3a438..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTIVRTRACKINGDETAILRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListIvrTrackingDetailResult : public ServiceResult - { - public: - struct IvrTrackingDetails - { - struct IvrTrackingDetail - { - std::string status; - std::string calledNumber; - std::string description; - std::string nodeName; - std::string deviceID; - long startTime; - std::string contactId; - std::string callingNumber; - std::string tenantId; - std::string flowName; - std::string nodeType; - std::string outputData; - std::string inputData; - long stopTime; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListIvrTrackingDetailResult(); - explicit ListIvrTrackingDetailResult(const std::string &payload); - ~ListIvrTrackingDetailResult(); - std::string getMessage()const; - IvrTrackingDetails getIvrTrackingDetails()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - IvrTrackingDetails ivrTrackingDetails_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILRESULT_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 deleted file mode 100644 index a74ad7963..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index a427c5cec..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 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); - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getContactName()const; - void setContactName(const std::string& contactName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string timeAlignment_; - std::string groupId_; - std::string phoneNumber_; - long endTime_; - long startTime_; - int pageNumber_; - std::string contactName_; - std::string instanceId_; - int pageSize_; - std::string scenarioId_; - - }; - } - } -} -#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 deleted file mode 100644 index 0ec06d5d2..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListJobStatusResult.h +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 7a83b4a29..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getJobStatus()const; - void setJobStatus(const std::string& jobStatus); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobFailureReason()const; - void setJobFailureReason(const std::string& jobFailureReason); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string jobStatus_; - int pageNumber_; - std::string instanceId_; - std::string jobFailureReason_; - std::string jobGroupId_; - int pageSize_; - - }; - } - } -} -#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 deleted file mode 100644 index c7a807f7b..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ListMediasRequest.h b/ccc/include/alibabacloud/ccc/model/ListMediasRequest.h deleted file mode 100644 index 6869a45fc..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListMediasRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTMEDIASREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTMEDIASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListMediasRequest : public RpcServiceRequest - { - - public: - ListMediasRequest(); - ~ListMediasRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getNamePrefix()const; - void setNamePrefix(const std::string& namePrefix); - - private: - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - int pageSize_; - std::string namePrefix_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTMEDIASREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListMediasResult.h b/ccc/include/alibabacloud/ccc/model/ListMediasResult.h deleted file mode 100644 index 7bfd0748a..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListMediasResult.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTMEDIASRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListMediasResult : public ServiceResult - { - public: - struct Medias - { - struct Media - { - std::string filePath; - std::string status; - std::string type; - std::string description; - std::string instance; - std::string content; - std::string fileName; - std::string ossFileName; - std::string name; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListMediasResult(); - explicit ListMediasResult(const std::string &payload); - ~ListMediasResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - Medias getMedias()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - Medias medias_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h rename to ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h index d82cd7ef1..af6a65f59 100644 --- a/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListOutboundPhoneNumberOfUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListOutboundNumbersOfUserRequest : public RpcServiceRequest { public: - ListOutboundPhoneNumberOfUserRequest(); - ~ListOutboundPhoneNumberOfUserRequest(); + ListOutboundNumbersOfUserRequest(); + ~ListOutboundNumbersOfUserRequest(); 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); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getSkillGroupIdList()const; + void setSkillGroupIdList(const std::string& skillGroupIdList); int getPageSize()const; void setPageSize(int pageSize); private: std::string userId_; int pageNumber_; - std::string accessKeyId_; std::string instanceId_; + std::string skillGroupIdList_; int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h b/ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h rename to ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h index fae3afb58..ff7d4f878 100644 --- a/ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERRESULT_H_ #include #include @@ -29,46 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT PickLocalNumberResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListOutboundNumbersOfUserResult : public ServiceResult { public: struct Data { - struct Callee + struct PhoneNumber { std::string number; std::string city; std::string province; }; - struct Caller - { - std::string number; - std::string city; - std::string province; - }; - Callee callee; - Caller caller; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; }; - PickLocalNumberResult(); - explicit PickLocalNumberResult(const std::string &payload); - ~PickLocalNumberResult(); + ListOutboundNumbersOfUserResult(); + explicit ListOutboundNumbersOfUserResult(const std::string &payload); + ~ListOutboundNumbersOfUserResult(); std::string getMessage()const; + int getHttpStatusCode()const; Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; + int httpStatusCode_; Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h deleted file mode 100644 index 441fd57d7..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListOutboundPhoneNumberOfUserResult : public ServiceResult - { - public: - struct PhoneNumber - { - struct PrivacyNumber - { - std::string regionNameCity; - std::string type; - std::string subId; - std::string poolId; - std::string extra; - std::string poolName; - std::string phoneNumber; - std::string telX; - std::string bizId; - }; - std::string usage; - bool testOnly; - bool allowOutbound; - std::string instanceId; - int remainingTime; - bool privateFlag; - int trunks; - std::string city; - std::string phoneNumberId; - std::string province; - std::string phoneNumberDescription; - std::string sipTelX; - std::string number; - PrivacyNumber privacyNumber; - }; - - - ListOutboundPhoneNumberOfUserResult(); - explicit ListOutboundPhoneNumberOfUserResult(const std::string &payload); - ~ListOutboundPhoneNumberOfUserResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getNumberList()const; - std::vector getOutboundPhoneNumbers()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector numberList_; - std::vector outboundPhoneNumbers_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h deleted file mode 100644 index 5e05613ea..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTPHONENUMBERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListPhoneNumbersRequest : public RpcServiceRequest - { - - public: - ListPhoneNumbersRequest(); - ~ListPhoneNumbersRequest(); - - bool getOutboundOnly()const; - void setOutboundOnly(bool outboundOnly); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - bool outboundOnly_; - std::string instanceId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSREQUEST_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 deleted file mode 100644 index c1aca59ab..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTPHONENUMBERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - 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; - }; - struct PrivacyNumber - { - std::string regionNameCity; - std::string type; - std::string subId; - std::string poolId; - std::string extra; - std::string poolName; - std::string phoneNumber; - std::string telX; - std::string bizId; - }; - struct SkillGroup - { - std::string skillGroupName; - std::string skillGroupId; - }; - std::string assignee; - std::string usage; - bool testOnly; - bool allowOutbound; - std::string instanceId; - int remainingTime; - std::vector skillGroups; - int trunks; - std::string city; - std::string phoneNumberId; - std::string province; - std::string phoneNumberDescription; - std::string sipTelX; - std::string number; - PrivacyNumber privacyNumber; - int numberCommodityStatus; - ContactFlow contactFlow; - }; - - - 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; - - protected: - void parse(const std::string &payload); - private: - std::vector phoneNumbers_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneTagsRequest.h b/ccc/include/alibabacloud/ccc/model/ListPhoneTagsRequest.h deleted file mode 100644 index f9087ce6e..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneTagsRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTPHONETAGSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListPhoneTagsRequest : public RpcServiceRequest - { - - public: - ListPhoneTagsRequest(); - ~ListPhoneTagsRequest(); - - std::vector getNumberGroupIds()const; - void setNumberGroupIds(const std::vector& numberGroupIds); - int getCurrentPage()const; - void setCurrentPage(int currentPage); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - bool getOutboundOnly()const; - void setOutboundOnly(bool outboundOnly); - std::string getNumber()const; - void setNumber(const std::string& number); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::vector numberGroupIds_; - int currentPage_; - std::string accessKeyId_; - bool outboundOnly_; - std::string number_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h b/ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h deleted file mode 100644 index ad002c9ca..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTPHONETAGSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListPhoneTagsResult : public ServiceResult - { - public: - struct PhoneNumbers - { - struct PhoneNumber - { - std::string usage; - std::string instanceId; - std::string contactFlowId; - std::string serviceTag; - long createTime; - std::string city; - std::string phoneNumberId; - std::string province; - std::string phoneNumberDescription; - std::string provider; - int type; - std::string number; - int concurrency; - std::vector skillGroupIdList; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListPhoneTagsResult(); - explicit ListPhoneTagsResult(const std::string &payload); - ~ListPhoneTagsResult(); - PhoneNumbers getPhoneNumbers()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - PhoneNumbers phoneNumbers_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h similarity index 74% rename from ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h rename to ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h index 0323d91da..da7a852c6 100644 --- a/ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListScenariosRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListPrivilegesOfUserRequest : public RpcServiceRequest { public: - ListScenariosRequest(); - ~ListScenariosRequest(); + ListPrivilegesOfUserRequest(); + ~ListPrivilegesOfUserRequest(); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRolesResult.h b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListRolesResult.h rename to ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h index 8958f4eca..b32ceb07b 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRolesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTROLESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTROLESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ #include #include @@ -29,38 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRolesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListPrivilegesOfUserResult : public ServiceResult { public: - struct Role + struct DataItem { - std::string roleName; + std::string scope; std::string instanceId; - std::string roleDescription; - std::string roleId; + std::string name; }; - ListRolesResult(); - explicit ListRolesResult(const std::string &payload); - ~ListRolesResult(); + ListPrivilegesOfUserResult(); + explicit ListPrivilegesOfUserResult(const std::string &payload); + ~ListPrivilegesOfUserResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getRoles()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 roles_; + std::vector data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTROLESRESULT_H_ \ No newline at end of file +#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 deleted file mode 100644 index 6dbcf9905..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 715eda223..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ListAgentStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h rename to ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h index 0b63e2b4c..fb7fa1efd 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESREQUEST_H_ #include #include @@ -28,39 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentStatesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListRealtimeAgentStatesRequest : public RpcServiceRequest { public: - ListAgentStatesRequest(); - ~ListAgentStatesRequest(); + ListRealtimeAgentStatesRequest(); + ~ListRealtimeAgentStatesRequest(); - std::string getAgentIds()const; - void setAgentIds(const std::string& agentIds); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getAgentIdList()const; + void setAgentIdList(const std::string& agentIdList); std::string getSkillGroupId()const; void setSkillGroupId(const std::string& skillGroupId); + std::string getAgentName()const; + void setAgentName(const std::string& agentName); int getPageSize()const; void setPageSize(int pageSize); - std::string getState()const; - void setState(const std::string& state); + std::string getStateList()const; + void setStateList(const std::string& stateList); private: - std::string agentIds_; int pageNumber_; - std::string accessKeyId_; std::string instanceId_; + std::string agentIdList_; std::string skillGroupId_; + std::string agentName_; int pageSize_; - std::string state_; + std::string stateList_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h rename to ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h index 9cb11843a..99997ff2c 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESRESULT_H_ #include #include @@ -29,36 +29,37 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentStatesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListRealtimeAgentStatesResult : public ServiceResult { public: struct Data { - struct RealTimeAgentState + struct AgentState { - std::string loginName; - std::string stateDuration; + std::string extension; + std::string counterParty; + long stateTime; std::string instanceId; std::string state; - std::string dn; + std::string stateCode; std::string agentId; std::string agentName; + std::vector skillGroupIdList; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListAgentStatesResult(); - explicit ListAgentStatesResult(const std::string &payload); - ~ListAgentStatesResult(); + ListRealtimeAgentStatesResult(); + explicit ListRealtimeAgentStatesResult(const std::string &payload); + ~ListRealtimeAgentStatesResult(); std::string getMessage()const; int getHttpStatusCode()const; Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -67,10 +68,9 @@ namespace AlibabaCloud int httpStatusCode_; Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h similarity index 76% rename from ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h index 9a69287d8..014ee6283 100644 --- a/ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListJobGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListRecentCallDetailRecordsRequest : public RpcServiceRequest { public: - ListJobGroupsRequest(); - ~ListJobGroupsRequest(); + ListRecentCallDetailRecordsRequest(); + ~ListRecentCallDetailRecordsRequest(); long getEndTime()const; void setEndTime(long endTime); @@ -57,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h b/ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h rename to ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h index c823d649f..027c714a8 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSRESULT_H_ #include #include @@ -29,54 +29,50 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRecordingsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListRecentCallDetailRecordsResult : public ServiceResult { public: - struct Recordings + struct Data { - struct Recording + struct CallDetailRecord { - std::string filePath; + std::string skillGroupIds; std::string calledNumber; std::string contactType; + std::string contactDisposition; std::string instanceId; - std::string fileName; - std::string channel; + std::string agentIds; long startTime; - int duration; + long duration; std::string contactId; + std::string callDuration; std::string callingNumber; - std::string fileDescription; - std::string agentId; - std::string agentName; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListRecordingsResult(); - explicit ListRecordingsResult(const std::string &payload); - ~ListRecordingsResult(); + ListRecentCallDetailRecordsResult(); + explicit ListRecentCallDetailRecordsResult(const std::string &payload); + ~ListRecentCallDetailRecordsResult(); std::string getMessage()const; int getHttpStatusCode()const; - Recordings getRecordings()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Recordings recordings_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h b/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h deleted file mode 100644 index 10da7eb1f..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTRECENTCALLRECORDSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListRecentCallRecordsResult : public ServiceResult - { - public: - struct CallDetailRecords - { - struct CallDetailRecord - { - struct CallDetailAgent - { - int holdTime; - int workTime; - std::string skillGroupName; - std::string feedback; - std::string satisfaction; - 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 satisfactionDesc; - std::string callingNumber; - std::string extraAttr1; - std::string extraAttr; - std::string feedback; - std::string skillGroupNames; - std::string agentNames; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListRecentCallRecordsResult(); - explicit ListRecentCallRecordsResult(const std::string &payload); - ~ListRecentCallRecordsResult(); - 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_; - CallDetailRecords callDetailRecords_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h deleted file mode 100644 index c01fa5180..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTRECORDINGOFDUALTRACKREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGOFDUALTRACKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListRecordingOfDualTrackRequest : public RpcServiceRequest - { - - public: - ListRecordingOfDualTrackRequest(); - ~ListRecordingOfDualTrackRequest(); - - std::string getAgentId()const; - void setAgentId(const std::string& agentId); - long getStartTime()const; - void setStartTime(long startTime); - long getStopTime()const; - void setStopTime(long stopTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getConnectId()const; - void setConnectId(const std::string& connectId); - - private: - std::string agentId_; - long startTime_; - long stopTime_; - int pageNumber_; - std::string accessKeyId_; - std::string callingNumber_; - std::string instanceId_; - std::string calledNumber_; - int pageSize_; - std::string connectId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGOFDUALTRACKREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h b/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h deleted file mode 100644 index 72dcb8780..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTRECORDINGOFDUALTRACKRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGOFDUALTRACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListRecordingOfDualTrackResult : 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; - }; - - - ListRecordingOfDualTrackResult(); - explicit ListRecordingOfDualTrackResult(const std::string &payload); - ~ListRecordingOfDualTrackResult(); - 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_; - Recordings recordings_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGOFDUALTRACKRESULT_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 deleted file mode 100644 index 3a3ddd987..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTRECORDINGSBYCONTACTIDRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListRecordingsByContactIdResult : public ServiceResult - { - public: - struct Recording - { - std::string filePath; - std::string calledNumber; - std::string contactType; - std::string instanceId; - std::string qualityCheckTid; - 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 qualityCheckTaskId; - }; - - - 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; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector recordings_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h deleted file mode 100644 index 305424749..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTRECORDINGSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListRecordingsRequest : public RpcServiceRequest - { - - public: - ListRecordingsRequest(); - ~ListRecordingsRequest(); - - std::string getAgentId()const; - void setAgentId(const std::string& agentId); - std::string getCriteria()const; - void setCriteria(const std::string& criteria); - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - 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; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string agentId_; - std::string criteria_; - std::string phoneNumber_; - long stopTime_; - long startTime_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h deleted file mode 100644 index ea3eb8ff9..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index b10f46fcb..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ListScenariosResult.h b/ccc/include/alibabacloud/ccc/model/ListScenariosResult.h deleted file mode 100644 index 134bb7efa..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListScenariosResult.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ListSkillGroupStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h deleted file mode 100644 index ac19e0dbd..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSTATESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupStatesRequest : public RpcServiceRequest - { - - public: - ListSkillGroupStatesRequest(); - ~ListSkillGroupStatesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupIds()const; - void setSkillGroupIds(const std::string& skillGroupIds); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroupIds_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h deleted file mode 100644 index c2a3b3424..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsByIntervalRequest : public RpcServiceRequest - { - - public: - ListSkillGroupSummaryReportsByIntervalRequest(); - ~ListSkillGroupSummaryReportsByIntervalRequest(); - - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupIds()const; - void setSkillGroupIds(const std::string& skillGroupIds); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string endTime_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroupIds_; - int pageSize_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h deleted file mode 100644 index 03d1aaffa..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsByIntervalResult : public ServiceResult - { - public: - struct PagedSkillGroupSummaryReport - { - struct SkillGroupTimeIntervalReport - { - struct SkillGroupSummaryReport - { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long totalTalkTime; - long averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; - struct Inbound - { - float serviceLevel20; - long totalWorkTime; - long abandonedInQueueOfQueueCount; - long answeredByAgentOfQueueCount; - long giveUpByAgentOfQueueCount; - long callsOffered; - long maxRingTime; - float satisfactionIndex; - long totalRingTime; - float handleRate; - long totalTalkTime; - long overFlowInQueueOfQueueCount; - long maxTalkTime; - long averageTalkTime; - long answeredByAgentOfQueueWaitTimeDuration; - long satisfactionSurveysOffered; - long queueWaitTimeDuration; - long callsHandled; - long satisfactionSurveysResponded; - long queueMaxWaitTimeDuration; - long averageRingTime; - long answeredByAgentOfQueueMaxWaitTimeDuration; - long averageWorkTime; - long maxWorkTime; - long inComingQueueOfQueueCount; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - float answerRate; - long averageTalkTime; - }; - Overall overall; - Outbound outbound; - std::string skillGroupName; - std::string instanceId; - std::string skillGroupId; - Inbound inbound; - std::string timestamp; - }; - std::vector intervalList; - std::string skillGroupId; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListSkillGroupSummaryReportsByIntervalResult(); - explicit ListSkillGroupSummaryReportsByIntervalResult(const std::string &payload); - ~ListSkillGroupSummaryReportsByIntervalResult(); - PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - PagedSkillGroupSummaryReport pagedSkillGroupSummaryReport_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h deleted file mode 100644 index 4c5532e1d..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSUMMARYREPORTSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsRequest : public RpcServiceRequest - { - - public: - ListSkillGroupSummaryReportsRequest(); - ~ListSkillGroupSummaryReportsRequest(); - - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupIds()const; - void setSkillGroupIds(const std::string& skillGroupIds); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string endTime_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroupIds_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h deleted file mode 100644 index 08a509284..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSUMMARYREPORTSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsResult : public ServiceResult - { - public: - struct PagedSkillGroupSummaryReport - { - struct SkillGroupSummaryReport - { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long totalTalkTime; - long averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; - struct Inbound - { - float serviceLevel20; - long totalWorkTime; - long abandonedInQueueOfQueueCount; - long answeredByAgentOfQueueCount; - long giveUpByAgentOfQueueCount; - long callsOffered; - long maxRingTime; - float satisfactionIndex; - long totalRingTime; - float handleRate; - long totalTalkTime; - long overFlowInQueueOfQueueCount; - std::string maxTalkTime; - long averageTalkTime; - long answeredByAgentOfQueueWaitTimeDuration; - long satisfactionSurveysOffered; - long queueWaitTimeDuration; - long callsHandled; - long satisfactionSurveysResponded; - long queueMaxWaitTimeDuration; - long averageRingTime; - long answeredByAgentOfQueueMaxWaitTimeDuration; - long averageWorkTime; - long maxWorkTime; - long inComingQueueOfQueueCount; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - float answerRate; - long averageTalkTime; - }; - Overall overall; - Outbound outbound; - std::string skillGroupName; - std::string instanceId; - std::string skillGroupId; - Inbound inbound; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListSkillGroupSummaryReportsResult(); - explicit ListSkillGroupSummaryReportsResult(const std::string &payload); - ~ListSkillGroupSummaryReportsResult(); - PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - PagedSkillGroupSummaryReport pagedSkillGroupSummaryReport_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h deleted file mode 100644 index 28bd0fe18..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsSinceMidnightRequest : public RpcServiceRequest - { - - public: - ListSkillGroupSummaryReportsSinceMidnightRequest(); - ~ListSkillGroupSummaryReportsSinceMidnightRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroups()const; - void setSkillGroups(const std::string& skillGroups); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroups_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h deleted file mode 100644 index 14a315f1a..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsSinceMidnightResult : public ServiceResult - { - public: - struct PagedSkillGroupSummaryReport - { - struct SkillGroupSummaryReport - { - struct Overall - { - long totalReadyTime; - long totalCalls; - long totalBreakTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long totalTalkTime; - long averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - long maxReadyTime; - long averageWorkTime; - long maxWorkTime; - float occupancyRate; - long averageTalkTime; - }; - struct Inbound - { - float serviceLevel20; - long totalWorkTime; - long abandonedInQueueOfQueueCount; - long answeredByAgentOfQueueCount; - long giveUpByAgentOfQueueCount; - long callsOffered; - long maxRingTime; - float satisfactionIndex; - long totalRingTime; - float handleRate; - long totalTalkTime; - long overFlowInQueueOfQueueCount; - std::string maxTalkTime; - long averageTalkTime; - long answeredByAgentOfQueueWaitTimeDuration; - long satisfactionSurveysOffered; - long queueWaitTimeDuration; - long callsHandled; - long satisfactionSurveysResponded; - long queueMaxWaitTimeDuration; - long averageRingTime; - long answeredByAgentOfQueueMaxWaitTimeDuration; - long averageWorkTime; - long maxWorkTime; - long inComingQueueOfQueueCount; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - long satisfactionSurveysResponded; - long averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - long averageWorkTime; - long maxWorkTime; - float answerRate; - long averageTalkTime; - }; - Overall overall; - Outbound outbound; - std::string skillGroupName; - std::string instanceId; - std::string skillGroupId; - Inbound inbound; - std::string timestamp; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListSkillGroupSummaryReportsSinceMidnightResult(); - explicit ListSkillGroupSummaryReportsSinceMidnightResult(const std::string &payload); - ~ListSkillGroupSummaryReportsSinceMidnightResult(); - PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - PagedSkillGroupSummaryReport pagedSkillGroupSummaryReport_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_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 deleted file mode 100644 index f1d73ae26..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSOFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - 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 city; - std::string phoneNumberId; - std::string province; - std::string phoneNumberDescription; - }; - std::string skillGroupName; - std::string instanceId; - std::string routingStrategy; - 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; - - protected: - void parse(const std::string &payload); - private: - std::vector skillLevels_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsRequest.h deleted file mode 100644 index 9cc6d59d5..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupsRequest : public RpcServiceRequest - { - - public: - ListSkillGroupsRequest(); - ~ListSkillGroupsRequest(); - - 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_LISTSKILLGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h deleted file mode 100644 index 011265772..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTSKILLGROUPSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - 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 routingStrategy; - 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; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector skillGroups_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h rename to ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h index ab919a011..e50506e03 100644 --- a/ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERREQUEST_H_ #include #include @@ -28,39 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetAgentDataRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListSkillLevelsOfUserRequest : public RpcServiceRequest { public: - GetAgentDataRequest(); - ~GetAgentDataRequest(); + ListSkillLevelsOfUserRequest(); + ~ListSkillLevelsOfUserRequest(); - std::string getStartDay()const; - void setStartDay(const std::string& startDay); std::string getUserId()const; void setUserId(const std::string& userId); + bool getIsMember()const; + void setIsMember(bool isMember); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getSearchPattern()const; + void setSearchPattern(const std::string& searchPattern); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getEndDay()const; - void setEndDay(const std::string& endDay); int getPageSize()const; void setPageSize(int pageSize); private: - std::string startDay_; std::string userId_; + bool isMember_; int pageNumber_; - std::string accessKeyId_; + std::string searchPattern_; std::string instanceId_; - std::string endDay_; int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersResult.h rename to ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h index 934685b02..6c2e64249 100644 --- a/ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERRESULT_H_ #include #include @@ -29,29 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DisableTrunkProvidersResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListSkillLevelsOfUserResult : public ServiceResult { public: + struct Data + { + struct UserSkillLevel + { + std::string skillGroupName; + std::string skillLevel; + std::string skillGroupId; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; - DisableTrunkProvidersResult(); - explicit DisableTrunkProvidersResult(const std::string &payload); - ~DisableTrunkProvidersResult(); + ListSkillLevelsOfUserResult(); + explicit ListSkillLevelsOfUserResult(const std::string &payload); + ~ListSkillLevelsOfUserResult(); std::string getMessage()const; int getHttpStatusCode()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSurveysRequest.h b/ccc/include/alibabacloud/ccc/model/ListSurveysRequest.h deleted file mode 100644 index 7b986d293..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSurveysRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index f4ddfbd0b..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSurveysResult.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ListTransferableSkillGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h deleted file mode 100644 index 7a4e3a7cd..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListTransferableSkillGroupsRequest : public RpcServiceRequest - { - - public: - ListTransferableSkillGroupsRequest(); - ~ListTransferableSkillGroupsRequest(); - - 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_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h deleted file mode 100644 index e629f813a..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTTRANSFERABLESKILLGROUPSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListTransferableSkillGroupsResult : public ServiceResult - { - public: - struct SkillGroup - { - bool allowPrivateOutboundNumber; - std::string skillGroupName; - std::string accSkillGroupName; - std::string instanceId; - int userCount; - std::string routingStrategy; - std::string skillGroupId; - std::string accQueueName; - std::string skillGroupDescription; - }; - - - ListTransferableSkillGroupsResult(); - explicit ListTransferableSkillGroupsResult(const std::string &payload); - ~ListTransferableSkillGroupsResult(); - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersRequest.h b/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersRequest.h deleted file mode 100644 index 8bc961656..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTTRUNKPROVIDERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListTrunkProvidersRequest : public RpcServiceRequest - { - - public: - ListTrunkProvidersRequest(); - ~ListTrunkProvidersRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersResult.h b/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersResult.h deleted file mode 100644 index 33c9f6919..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTTRUNKPROVIDERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListTrunkProvidersResult : public ServiceResult - { - public: - struct TrunkProvider - { - std::string status; - std::string providerName; - }; - - - ListTrunkProvidersResult(); - explicit ListTrunkProvidersResult(const std::string &payload); - ~ListTrunkProvidersResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getTrunkProviders()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector trunkProviders_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h deleted file mode 100644 index 8083cc160..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTTRUNKSOFSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListTrunksOfSkillGroupRequest : public RpcServiceRequest - { - - public: - ListTrunksOfSkillGroupRequest(); - ~ListTrunksOfSkillGroupRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::string skillGroupId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h deleted file mode 100644 index 8fd09c686..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTTRUNKSOFSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListTrunksOfSkillGroupResult : public ServiceResult - { - public: - struct TrunkConfig - { - std::string providerName; - bool primary; - }; - - - ListTrunksOfSkillGroupResult(); - explicit ListTrunksOfSkillGroupResult(const std::string &payload); - ~ListTrunksOfSkillGroupResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getTrunkConfigs()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector trunkConfigs_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPRESULT_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 deleted file mode 100644 index 91e75d899..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - 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); - - private: - int pageNumber_; - std::string instanceId_; - std::string jobGroupId_; - int pageSize_; - - }; - } - } -} -#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 deleted file mode 100644 index e8f1c855a..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ListUsersOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h deleted file mode 100644 index b39183f74..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTUSERSOFSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListUsersOfSkillGroupRequest : public RpcServiceRequest - { - - public: - ListUsersOfSkillGroupRequest(); - ~ListUsersOfSkillGroupRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroupId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_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 deleted file mode 100644 index 5df48ab78..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTUSERSOFSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - 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; - }; - 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; - Users getUsers()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - Users users_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h deleted file mode 100644 index 6af04c8b1..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTUSERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUSERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - 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; - }; - Skill skill; - std::string skillLevelId; - int level; - }; - std::vector skillLevels; - std::string privateOutboundNumberId; - 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; - Users getUsers()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - Users users_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h deleted file mode 100644 index ea6f85a02..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTVOICEAPPRAISEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListVoiceAppraiseRequest : public RpcServiceRequest - { - - public: - ListVoiceAppraiseRequest(); - ~ListVoiceAppraiseRequest(); - - 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_LISTVOICEAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h deleted file mode 100644 index 6a7b1f57a..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_LISTVOICEAPPRAISERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListVoiceAppraiseResult : public ServiceResult - { - public: - struct ContactFlow - { - struct ContactFlowVersion - { - std::string lastModified; - std::string status; - std::string lastModifiedBy; - std::string contactFlowVersionId; - std::string version; - std::string content; - std::string contactFlowVersionDescription; - }; - struct PhoneNumber - { - 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; - }; - - - ListVoiceAppraiseResult(); - explicit ListVoiceAppraiseResult(const std::string &payload); - ~ListVoiceAppraiseResult(); - std::string getMessage()const; - std::string getNotice()const; - int getHttpStatusCode()const; - ContactFlow getContactFlow()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string notice_; - int httpStatusCode_; - ContactFlow contactFlow_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h b/ccc/include/alibabacloud/ccc/model/MakeCallRequest.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h rename to ccc/include/alibabacloud/ccc/model/MakeCallRequest.h index d744eeb60..cebc1948f 100644 --- a/ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h +++ b/ccc/include/alibabacloud/ccc/model/MakeCallRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CHECKNUMBERAVALIABLEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CHECKNUMBERAVALIABLEREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MAKECALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MAKECALLREQUEST_H_ #include #include @@ -28,30 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CheckNumberAvaliableRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT MakeCallRequest : public RpcServiceRequest { public: - CheckNumberAvaliableRequest(); - ~CheckNumberAvaliableRequest(); + MakeCallRequest(); + ~MakeCallRequest(); + std::string getCallee()const; + void setCallee(const std::string& callee); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + int getTimeoutSeconds()const; + void setTimeoutSeconds(int timeoutSeconds); std::string getCaller()const; void setCaller(const std::string& caller); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getCallee()const; - void setCallee(const std::string& callee); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: + std::string callee_; + std::string userId_; + std::string deviceId_; + int timeoutSeconds_; std::string caller_; std::string instanceId_; - std::string callee_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CHECKNUMBERAVALIABLEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_MAKECALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/MakeCallResult.h b/ccc/include/alibabacloud/ccc/model/MakeCallResult.h new file mode 100644 index 000000000..5e4e6a35f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/MakeCallResult.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_MAKECALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MAKECALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT MakeCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + std::string associatedData; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string extension; + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + std::string userId; + bool outboundScenario; + std::string jobId; + std::string workMode; + std::vector signedSkillGroupIdList; + }; + UserContext userContext; + CallContext callContext; + }; + + + MakeCallResult(); + explicit MakeCallResult(const std::string &payload); + ~MakeCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MAKECALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h deleted file mode 100644 index d66b95daf..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYAGENTDEVICEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyAgentDeviceRequest : public RpcServiceRequest - { - - public: - ModifyAgentDeviceRequest(); - ~ModifyAgentDeviceRequest(); - - int getIsLogin()const; - void setIsLogin(int isLogin); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getAgentDeviceId()const; - void setAgentDeviceId(long agentDeviceId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - int isLogin_; - std::string accessKeyId_; - long agentDeviceId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h deleted file mode 100644 index 440f94623..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYAGENTDEVICERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyAgentDeviceResult : public ServiceResult - { - public: - - - ModifyAgentDeviceResult(); - explicit ModifyAgentDeviceResult(const std::string &payload); - ~ModifyAgentDeviceResult(); - 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_MODIFYAGENTDEVICERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h deleted file mode 100644 index 2e5123eaf..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYCABINSTANCEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyCabInstanceRequest : public RpcServiceRequest - { - - public: - ModifyCabInstanceRequest(); - ~ModifyCabInstanceRequest(); - - int getMaxConcurrentConversation()const; - void setMaxConcurrentConversation(int maxConcurrentConversation); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getCallCenterInstanceId()const; - void setCallCenterInstanceId(const std::string& callCenterInstanceId); - std::string getInstanceDescription()const; - void setInstanceDescription(const std::string& instanceDescription); - - private: - int maxConcurrentConversation_; - std::string instanceId_; - std::string instanceName_; - std::string callCenterInstanceId_; - std::string instanceDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.h b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.h deleted file mode 100644 index 06c7c70b4..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYCABINSTANCERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyCabInstanceResult : public ServiceResult - { - public: - struct Instance - { - std::string instanceName; - std::string owner; - int maxConcurrentConversation; - std::string instanceId; - long creationTime; - std::string instanceDescription; - std::string callCenterInstanceId; - }; - - - ModifyCabInstanceResult(); - explicit ModifyCabInstanceResult(const std::string &payload); - ~ModifyCabInstanceResult(); - std::string getMessage()const; - Instance getInstance()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - Instance instance_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h deleted file mode 100644 index 64c03b953..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyPhoneNumberRequest : public RpcServiceRequest - { - - public: - ModifyPhoneNumberRequest(); - ~ModifyPhoneNumberRequest(); - - std::string getContactFlowId()const; - void setContactFlowId(const std::string& contactFlowId); - std::string getUsage()const; - void setUsage(const std::string& usage); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getPhoneNumberId()const; - void setPhoneNumberId(const std::string& phoneNumberId); - std::vector getSkillGroupId()const; - void setSkillGroupId(const std::vector& skillGroupId); - - private: - std::string contactFlowId_; - std::string usage_; - std::string accessKeyId_; - std::string instanceId_; - std::string phoneNumberId_; - std::vector skillGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h deleted file mode 100644 index 65f041ee3..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyPhoneNumberResult : public ServiceResult - { - public: - struct PhoneNumber - { - struct ContactFlow - { - std::string type; - std::string contactFlowId; - std::string instanceId; - std::string contactFlowName; - std::string contactFlowDescription; - }; - struct SkillGroup - { - std::string skillGroupName; - std::string skillGroupId; - }; - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; - std::string instanceId; - int remainingTime; - std::vector skillGroups; - 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; - PhoneNumber getPhoneNumber()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - PhoneNumber phoneNumber_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h deleted file mode 100644 index 5b5eca3cc..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYPHONETAGSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPHONETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyPhoneTagsRequest : public RpcServiceRequest - { - - public: - ModifyPhoneTagsRequest(); - ~ModifyPhoneTagsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getSkillGroupIdList()const; - void setSkillGroupIdList(const std::vector& skillGroupIdList); - std::string getServiceTag()const; - void setServiceTag(const std::string& serviceTag); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::vector skillGroupIdList_; - std::string serviceTag_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPHONETAGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsResult.h deleted file mode 100644 index 6ea7490c3..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYPHONETAGSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPHONETAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyPhoneTagsResult : public ServiceResult - { - public: - - - ModifyPhoneTagsResult(); - explicit ModifyPhoneTagsResult(const std::string &payload); - ~ModifyPhoneTagsResult(); - 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_MODIFYPHONETAGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupRequest.h deleted file mode 100644 index a10126360..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYPRIMARYTRUNKSOFSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyPrimaryTrunksOfSkillGroupRequest : public RpcServiceRequest - { - - public: - ModifyPrimaryTrunksOfSkillGroupRequest(); - ~ModifyPrimaryTrunksOfSkillGroupRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getPrimaryProviderName()const; - void setPrimaryProviderName(const std::vector& primaryProviderName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - - private: - std::string accessKeyId_; - std::vector primaryProviderName_; - std::string instanceId_; - std::string skillGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupResult.h deleted file mode 100644 index da57c4d5c..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYPRIMARYTRUNKSOFSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyPrimaryTrunksOfSkillGroupResult : public ServiceResult - { - public: - - - ModifyPrimaryTrunksOfSkillGroupResult(); - explicit ModifyPrimaryTrunksOfSkillGroupResult(const std::string &payload); - ~ModifyPrimaryTrunksOfSkillGroupResult(); - 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_MODIFYPRIMARYTRUNKSOFSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h deleted file mode 100644 index 1e51bfe47..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYPRIVACYNUMBERCALLDETAILREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyPrivacyNumberCallDetailRequest : public RpcServiceRequest - { - - public: - ModifyPrivacyNumberCallDetailRequest(); - ~ModifyPrivacyNumberCallDetailRequest(); - - std::string getCallId()const; - void setCallId(const std::string& callId); - std::string getContactId()const; - void setContactId(const std::string& contactId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string callId_; - std::string contactId_; - std::string accessKeyId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h deleted file mode 100644 index 25391a9ef..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyPrivacyNumberCallDetailResult : public ServiceResult - { - public: - - - ModifyPrivacyNumberCallDetailResult(); - explicit ModifyPrivacyNumberCallDetailResult(const std::string &payload); - ~ModifyPrivacyNumberCallDetailResult(); - 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_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h deleted file mode 100644 index 33ea621d8..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getDescription()const; - void setDescription(const std::string& description); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string variables_; - std::string description_; - std::string instanceId_; - std::string name_; - 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 deleted file mode 100644 index 6e8d47ee6..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ModifySkillGroupOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h deleted file mode 100644 index 64ec18813..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYSKILLGROUPOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOfUserRequest : public RpcServiceRequest - { - - public: - ModifySkillGroupOfUserRequest(); - ~ModifySkillGroupOfUserRequest(); - - std::vector getRoleId()const; - void setRoleId(const std::vector& roleId); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getSkillLevel()const; - void setSkillLevel(const std::vector& skillLevel); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getSkillGroupId()const; - void setSkillGroupId(const std::vector& skillGroupId); - - private: - std::vector roleId_; - std::string userId_; - std::string accessKeyId_; - std::vector skillLevel_; - std::string instanceId_; - std::vector skillGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h deleted file mode 100644 index 36f42da74..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYSKILLGROUPOFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOfUserResult : public ServiceResult - { - public: - - - ModifySkillGroupOfUserResult(); - explicit ModifySkillGroupOfUserResult(const std::string &payload); - ~ModifySkillGroupOfUserResult(); - 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_MODIFYSKILLGROUPOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h deleted file mode 100644 index 5f21c01c7..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYSKILLGROUPOUTBOUNDNUMBERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOutboundNumbersRequest : public RpcServiceRequest - { - - public: - ModifySkillGroupOutboundNumbersRequest(); - ~ModifySkillGroupOutboundNumbersRequest(); - - int getOperationType()const; - void setOperationType(int operationType); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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); - - private: - int operationType_; - std::string accessKeyId_; - std::string instanceId_; - std::vector outboundPhoneNumberId_; - std::string skillGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h deleted file mode 100644 index 4572d1605..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_MODIFYSKILLGROUPOUTBOUNDNUMBERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOutboundNumbersResult : public ServiceResult - { - public: - - - ModifySkillGroupOutboundNumbersResult(); - explicit ModifySkillGroupOutboundNumbersResult(const std::string &payload); - ~ModifySkillGroupOutboundNumbersResult(); - 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_MODIFYSKILLGROUPOUTBOUNDNUMBERSRESULT_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 deleted file mode 100644 index a31a8e279..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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(); - - bool getAllowPrivateOutboundNumber()const; - void setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRoutingStrategy()const; - void setRoutingStrategy(const std::string& routingStrategy); - std::vector getUserId()const; - void setUserId(const std::vector& userId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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); - - private: - bool allowPrivateOutboundNumber_; - std::string description_; - std::string routingStrategy_; - std::vector userId_; - std::string accessKeyId_; - std::vector skillLevel_; - std::string instanceId_; - std::vector outboundPhoneNumberId_; - std::string skillGroupId_; - std::string name_; - - }; - } - } -} -#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 deleted file mode 100644 index 52905d804..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index ba2184ac9..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifySurveyRequest.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getRole()const; - void setRole(const std::string& role); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getFlowJson()const; - void setFlowJson(const std::string& flowJson); - std::string getGlobalQuestions()const; - void setGlobalQuestions(const std::string& globalQuestions); - std::string getCorpora()const; - void setCorpora(const std::string& corpora); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - std::string getSurveyId()const; - void setSurveyId(const std::string& surveyId); - std::string getSpeechOptimizationParam()const; - void setSpeechOptimizationParam(const std::string& speechOptimizationParam); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getRound()const; - void setRound(int round); - std::string getName()const; - void setName(const std::string& name); - std::string getFlowId()const; - void setFlowId(const std::string& flowId); - - private: - std::string role_; - std::string description_; - std::string flowJson_; - std::string globalQuestions_; - std::string corpora_; - std::string scenarioId_; - std::string surveyId_; - std::string speechOptimizationParam_; - std::string instanceId_; - int round_; - std::string name_; - 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 deleted file mode 100644 index dac8eb3bb..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifySurveyResult.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 982a30cad..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyUserRequest : public RpcServiceRequest - { - - public: - ModifyUserRequest(); - ~ModifyUserRequest(); - - std::string getPrivateOutboundNumberId()const; - void setPrivateOutboundNumberId(const std::string& privateOutboundNumberId); - std::vector getRoleId()const; - void setRoleId(const std::vector& roleId); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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::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); - - private: - std::string privateOutboundNumberId_; - std::vector roleId_; - std::string userId_; - std::string accessKeyId_; - std::vector skillLevel_; - std::string instanceId_; - std::string phone_; - std::string displayName_; - std::vector skillGroupId_; - std::string email_; - - }; - } - } -} -#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 deleted file mode 100644 index 8ec1130e0..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/MonitorCallRequest.h b/ccc/include/alibabacloud/ccc/model/MonitorCallRequest.h new file mode 100644 index 000000000..7f3e3b60b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/MonitorCallRequest.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_MONITORCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MONITORCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT MonitorCallRequest : public RpcServiceRequest + { + + public: + MonitorCallRequest(); + ~MonitorCallRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + int getTimeoutSeconds()const; + void setTimeoutSeconds(int timeoutSeconds); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getMonitoredUserId()const; + void setMonitoredUserId(const std::string& monitoredUserId); + + private: + std::string userId_; + std::string deviceId_; + int timeoutSeconds_; + std::string instanceId_; + std::string monitoredUserId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MONITORCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h b/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h new file mode 100644 index 000000000..f75bb2f44 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MONITORCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MONITORCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT MonitorCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + MonitorCallResult(); + explicit MonitorCallResult(const std::string &payload); + ~MonitorCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MONITORCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/MuteCallRequest.h b/ccc/include/alibabacloud/ccc/model/MuteCallRequest.h new file mode 100644 index 000000000..6fc89efee --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/MuteCallRequest.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_MUTECALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MUTECALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT MuteCallRequest : public RpcServiceRequest + { + + public: + MuteCallRequest(); + ~MuteCallRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MUTECALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/MuteCallResult.h b/ccc/include/alibabacloud/ccc/model/MuteCallResult.h new file mode 100644 index 000000000..c0c6bb7b2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/MuteCallResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MUTECALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MUTECALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT MuteCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + MuteCallResult(); + explicit MuteCallResult(const std::string &payload); + ~MuteCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MUTECALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h deleted file mode 100644 index 73f255d78..000000000 --- a/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_PICKGLOBALOUTBOUNDNUMBERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT PickGlobalOutboundNumbersRequest : public RpcServiceRequest - { - - public: - PickGlobalOutboundNumbersRequest(); - ~PickGlobalOutboundNumbersRequest(); - - bool getIsVirtual()const; - void setIsVirtual(bool isVirtual); - int getCount()const; - void setCount(int count); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getSkillGroupId()const; - void setSkillGroupId(const std::vector& skillGroupId); - std::string getCalleeNumber()const; - void setCalleeNumber(const std::string& calleeNumber); - - private: - bool isVirtual_; - int count_; - std::string accessKeyId_; - std::string instanceId_; - std::vector skillGroupId_; - std::string calleeNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h deleted file mode 100644 index 9a3559332..000000000 --- a/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT PickGlobalOutboundNumbersResult : public ServiceResult - { - public: - struct DialNumberPair - { - 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; - }; - - - PickGlobalOutboundNumbersResult(); - explicit PickGlobalOutboundNumbersResult(const std::string &payload); - ~PickGlobalOutboundNumbersResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - std::vector getDialNumberPairs()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - std::vector dialNumberPairs_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_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 deleted file mode 100644 index 6a06569a5..000000000 --- a/ccc/include/alibabacloud/ccc/model/PickLocalNumberRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - 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); - - private: - std::string accessKeyId_; - std::string instanceId_; - std::vector candidateNumber_; - std::string calleeNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h index 68919bee1..dfdb376ec 100644 --- a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h @@ -37,21 +37,18 @@ namespace AlibabaCloud int getCount()const; void setCount(int count); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); 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 getSkillGroupIdList()const; + void setSkillGroupIdList(const std::string& skillGroupIdList); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); private: int count_; - std::string accessKeyId_; std::string instanceId_; - std::vector candidateNumber_; - std::string calleeNumber_; + std::string skillGroupIdList_; + std::string calledNumber_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h index 1252ad792..ab232ac99 100644 --- a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h @@ -32,7 +32,7 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT PickOutboundNumbersResult : public ServiceResult { public: - struct DialNumberPair + struct NumberPair { struct Callee { @@ -56,18 +56,16 @@ namespace AlibabaCloud ~PickOutboundNumbersResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getData()const; std::string getCode()const; - bool getSuccess()const; - std::vector getDialNumberPairs()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + std::vector data_; std::string code_; - bool success_; - std::vector dialNumberPairs_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/RequestLoginInfoRequest.h b/ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/RequestLoginInfoRequest.h rename to ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.h index 0f8d76b8a..1003df506 100644 --- a/ccc/include/alibabacloud/ccc/model/RequestLoginInfoRequest.h +++ b/ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RequestLoginInfoRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT PollUserStatusRequest : public RpcServiceRequest { public: - RequestLoginInfoRequest(); - ~RequestLoginInfoRequest(); + PollUserStatusRequest(); + ~PollUserStatusRequest(); - 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); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); private: - std::string instanceId_; std::string userId_; - std::string accessKeyId_; + std::string deviceId_; + std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h b/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h new file mode 100644 index 000000000..3a13ef90a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_POLLUSERSTATUSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PollUserStatusResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string channelVariables; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + PollUserStatusResult(); + explicit PollUserStatusResult(const std::string &payload); + ~PollUserStatusResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h deleted file mode 100644 index 88f0d8462..000000000 --- a/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT PublishContactFlowVersionRequest : public RpcServiceRequest - { - - public: - PublishContactFlowVersionRequest(); - ~PublishContactFlowVersionRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getContactFlowVersionId()const; - void setContactFlowVersionId(const std::string& contactFlowVersionId); - bool getUseTianGong()const; - void setUseTianGong(bool useTianGong); - - private: - std::string accessKeyId_; - std::string instanceId_; - std::string contactFlowVersionId_; - bool useTianGong_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h deleted file mode 100644 index 80a31ad27..000000000 --- a/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_PUBLISHCONTACTFLOWVERSIONRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT PublishContactFlowVersionResult : public ServiceResult - { - public: - - - PublishContactFlowVersionResult(); - explicit PublishContactFlowVersionResult(const std::string &payload); - ~PublishContactFlowVersionResult(); - 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_PUBLISHCONTACTFLOWVERSIONRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h deleted file mode 100644 index 81de5faec..000000000 --- a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupRequest : public RpcServiceRequest - { - - public: - PublishPredictiveJobGroupRequest(); - ~PublishPredictiveJobGroupRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - - private: - std::string instanceId_; - std::string skillGroupId_; - std::string jobGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h deleted file mode 100644 index 63982c551..000000000 --- a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupResult : public ServiceResult - { - public: - - - PublishPredictiveJobGroupResult(); - explicit PublishPredictiveJobGroupResult(const std::string &payload); - ~PublishPredictiveJobGroupResult(); - 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_PUBLISHPREDICTIVEJOBGROUPRESULT_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 deleted file mode 100644 index 92b9cbf2a..000000000 --- a/ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 6dca13e09..000000000 --- a/ccc/include/alibabacloud/ccc/model/PublishSurveyResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/DeletePhoneTagsRequest.h b/ccc/include/alibabacloud/ccc/model/ReadyForServiceRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/DeletePhoneTagsRequest.h rename to ccc/include/alibabacloud/ccc/model/ReadyForServiceRequest.h index e4e50b3a0..3a115f60a 100644 --- a/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ReadyForServiceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_READYFORSERVICEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_READYFORSERVICEREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeletePhoneTagsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ReadyForServiceRequest : public RpcServiceRequest { public: - DeletePhoneTagsRequest(); - ~DeletePhoneTagsRequest(); + ReadyForServiceRequest(); + ~ReadyForServiceRequest(); + bool getOutboundScenario()const; + void setOutboundScenario(bool outboundScenario); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::vector getPhoneNumberList()const; - void setPhoneNumberList(const std::vector& phoneNumberList); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: + bool outboundScenario_; + std::string userId_; + std::string deviceId_; std::string instanceId_; - std::vector phoneNumberList_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_READYFORSERVICEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h b/ccc/include/alibabacloud/ccc/model/ReadyForServiceResult.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h rename to ccc/include/alibabacloud/ccc/model/ReadyForServiceResult.h index 193951d24..8b3000e1e 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ReadyForServiceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_READYFORSERVICERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_READYFORSERVICERESULT_H_ #include #include @@ -29,45 +29,44 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentEventsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ReadyForServiceResult : public ServiceResult { public: - struct AgentEvent + struct Data { - struct SkillGroup - { - std::string skillGroupName; - std::string skillGroupId; - }; - std::vector skillGroupIds; - std::string loginName; + std::string extension; + std::string userState; std::string instanceId; - long eventTime; - long ramId; - std::string event; + std::string breakCode; + std::string deviceId; + std::string userId; + bool outboundScenario; + std::string jobId; + std::string workMode; + std::vector signedSkillGroupIdList; }; - ListAgentEventsResult(); - explicit ListAgentEventsResult(const std::string &payload); - ~ListAgentEventsResult(); - std::vector getAgentEventList()const; + ReadyForServiceResult(); + explicit ReadyForServiceResult(const std::string &payload); + ~ReadyForServiceResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector agentEventList_; std::string message_; int httpStatusCode_; + std::vector params_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_READYFORSERVICERESULT_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 deleted file mode 100644 index 5104ecdd1..000000000 --- a/ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_REFRESHTOKENRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT RefreshTokenResult : public ServiceResult - { - public: - struct Token - { - std::string signData; - std::string signature; - }; - - - RefreshTokenResult(); - explicit RefreshTokenResult(const std::string &payload); - ~RefreshTokenResult(); - 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_; - Token token_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.h b/ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.h new file mode 100644 index 000000000..27d47bd12 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.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_REGISTERDEVICEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RegisterDeviceRequest : public RpcServiceRequest + { + + public: + RegisterDeviceRequest(); + ~RegisterDeviceRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string userId_; + std::string deviceId_; + std::string password_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REGISTERDEVICEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h b/ccc/include/alibabacloud/ccc/model/RegisterDeviceResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h rename to ccc/include/alibabacloud/ccc/model/RegisterDeviceResult.h index b6944364c..6ab74d967 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/RegisterDeviceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DELETEINSTANCERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETEINSTANCERESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REGISTERDEVICERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICERESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeleteInstanceResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT RegisterDeviceResult : public ServiceResult { public: - DeleteInstanceResult(); - explicit DeleteInstanceResult(const std::string &payload); - ~DeleteInstanceResult(); + RegisterDeviceResult(); + explicit RegisterDeviceResult(const std::string &payload); + ~RegisterDeviceResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + std::vector params_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEINSTANCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REGISTERDEVICERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ReleaseCallRequest.h b/ccc/include/alibabacloud/ccc/model/ReleaseCallRequest.h new file mode 100644 index 000000000..1ead1d5df --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ReleaseCallRequest.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_RELEASECALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RELEASECALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ReleaseCallRequest : public RpcServiceRequest + { + + public: + ReleaseCallRequest(); + ~ReleaseCallRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RELEASECALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ReleaseCallResult.h b/ccc/include/alibabacloud/ccc/model/ReleaseCallResult.h new file mode 100644 index 000000000..434a92b9f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ReleaseCallResult.h @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RELEASECALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_RELEASECALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ReleaseCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseReason; + std::string originator; + std::string releaseInitiator; + std::string userId; + std::string callType; + std::string userExtension; + std::string associatedData; + std::string channelId; + long timestamp; + std::string jobId; + }; + std::string instanceId; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string extension; + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + std::string userId; + bool outboundScenario; + std::string jobId; + std::string workMode; + std::vector signedSkillGroupIdList; + }; + UserContext userContext; + CallContext callContext; + }; + + + ReleaseCallResult(); + explicit ReleaseCallResult(const std::string &payload); + ~ReleaseCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RELEASECALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h deleted file mode 100644 index 9d2c3f802..000000000 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_REMOVEPHONENUMBERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumberRequest : public RpcServiceRequest - { - - public: - RemovePhoneNumberRequest(); - ~RemovePhoneNumberRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getPhoneNumberId()const; - void setPhoneNumberId(const std::string& phoneNumberId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::string phoneNumberId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h deleted file mode 100644 index 65ed989c8..000000000 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_REMOVEUSERSFROMSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT RemoveUsersFromSkillGroupRequest : public RpcServiceRequest - { - - public: - RemoveUsersFromSkillGroupRequest(); - ~RemoveUsersFromSkillGroupRequest(); - - std::vector getUserId()const; - void setUserId(const std::vector& userId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - - private: - std::vector userId_; - std::string accessKeyId_; - std::string instanceId_; - std::string skillGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h deleted file mode 100644 index 8461d846c..000000000 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_REMOVEUSERSFROMSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT RemoveUsersFromSkillGroupResult : public ServiceResult - { - public: - - - RemoveUsersFromSkillGroupResult(); - explicit RemoveUsersFromSkillGroupResult(const std::string &payload); - ~RemoveUsersFromSkillGroupResult(); - 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_REMOVEUSERSFROMSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h deleted file mode 100644 index c29b4d962..000000000 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 85f577d26..000000000 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 14bbe80db..000000000 --- a/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_REQUESTLOGININFORESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT RequestLoginInfoResult : public ServiceResult - { - public: - struct LoginInfo - { - struct Role - { - std::string roleName; - std::string instanceId; - std::string roleDescription; - std::string roleId; - }; - 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::vector roles; - std::string webRtcUrl; - }; - - - RequestLoginInfoResult(); - explicit RequestLoginInfoResult(const std::string &payload); - ~RequestLoginInfoResult(); - 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: - LoginInfo loginInfo_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFORESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ResetAgentStateRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h rename to ccc/include/alibabacloud/ccc/model/ResetAgentStateRequest.h index 3345f9c9c..727442bf5 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ResetAgentStateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATEREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupsOfUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ResetAgentStateRequest : public RpcServiceRequest { public: - ListSkillGroupsOfUserRequest(); - ~ListSkillGroupsOfUserRequest(); + ResetAgentStateRequest(); + ~ResetAgentStateRequest(); - 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); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); private: - std::string instanceId_; std::string userId_; - std::string accessKeyId_; + std::string deviceId_; + std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResetAgentStateResult.h b/ccc/include/alibabacloud/ccc/model/ResetAgentStateResult.h new file mode 100644 index 000000000..9201d01d5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ResetAgentStateResult.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_RESETAGENTSTATERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ResetAgentStateResult : public ServiceResult + { + public: + struct Data + { + std::string extension; + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + std::string userId; + bool outboundScenario; + std::string jobId; + std::string workMode; + std::vector signedSkillGroupIdList; + }; + + + ResetAgentStateResult(); + explicit ResetAgentStateResult(const std::string &payload); + ~ResetAgentStateResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h b/ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h deleted file mode 100644 index 3671f3533..000000000 --- a/ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_RESETUSERSTATUSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ResetUserStatusRequest : public RpcServiceRequest - { - - public: - ResetUserStatusRequest(); - ~ResetUserStatusRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getRamIdList()const; - void setRamIdList(const std::vector& ramIdList); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string instanceId_; - std::vector ramIdList_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResetUserStatusResult.h b/ccc/include/alibabacloud/ccc/model/ResetUserStatusResult.h deleted file mode 100644 index b048b65c1..000000000 --- a/ccc/include/alibabacloud/ccc/model/ResetUserStatusResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_RESETUSERSTATUSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ResetUserStatusResult : public ServiceResult - { - public: - - - ResetUserStatusResult(); - explicit ResetUserStatusResult(const std::string &payload); - ~ResetUserStatusResult(); - 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_RESETUSERSTATUSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.h b/ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.h deleted file mode 100644 index fd37fadfb..000000000 --- a/ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getJobReferenceId()const; - void setJobReferenceId(const std::vector& jobReferenceId); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::vector getJobId()const; - void setJobId(const std::vector& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - bool all_; - std::vector jobReferenceId_; - std::string groupId_; - std::vector jobId_; - std::string instanceId_; - 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 deleted file mode 100644 index 228542741..000000000 --- a/ccc/include/alibabacloud/ccc/model/ResumeJobsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ResumePredictiveJobsRequest.h b/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsRequest.h deleted file mode 100644 index fc5b153d2..000000000 --- a/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_RESUMEPREDICTIVEJOBSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ResumePredictiveJobsRequest : public RpcServiceRequest - { - - public: - ResumePredictiveJobsRequest(); - ~ResumePredictiveJobsRequest(); - - 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 getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - - private: - bool all_; - std::vector jobId_; - std::string instanceId_; - std::string skillGroupId_; - std::string jobGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h deleted file mode 100644 index 78dfccfbf..000000000 --- a/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_RESUMEPREDICTIVEJOBSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ResumePredictiveJobsResult : public ServiceResult - { - public: - - - ResumePredictiveJobsResult(); - explicit ResumePredictiveJobsResult(const std::string &payload); - ~ResumePredictiveJobsResult(); - 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_RESUMEPREDICTIVEJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobRequest.h b/ccc/include/alibabacloud/ccc/model/RetrieveCallRequest.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/GetJobRequest.h rename to ccc/include/alibabacloud/ccc/model/RetrieveCallRequest.h index 75a07085f..4dcaa41c7 100644 --- a/ccc/include/alibabacloud/ccc/model/GetJobRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RetrieveCallRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_RETRIEVECALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RETRIEVECALLREQUEST_H_ #include #include @@ -28,24 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetJobRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT RetrieveCallRequest : public RpcServiceRequest { public: - GetJobRequest(); - ~GetJobRequest(); + RetrieveCallRequest(); + ~RetrieveCallRequest(); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); std::string getJobId()const; void setJobId(const std::string& jobId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); private: + std::string userId_; + std::string deviceId_; std::string jobId_; std::string instanceId_; + std::string channelId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_RETRIEVECALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RetrieveCallResult.h b/ccc/include/alibabacloud/ccc/model/RetrieveCallResult.h new file mode 100644 index 000000000..85f5c0ce4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RetrieveCallResult.h @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RETRIEVECALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_RETRIEVECALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RetrieveCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + RetrieveCallResult(); + explicit RetrieveCallResult(const std::string &payload); + ~RetrieveCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RETRIEVECALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h deleted file mode 100644 index 9a0807c61..000000000 --- a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_SAVEWEBRTCSTATSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCSTATSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SaveWebRTCStatsRequest : public RpcServiceRequest - { - - public: - SaveWebRTCStatsRequest(); - ~SaveWebRTCStatsRequest(); - - std::string getCallId()const; - void setCallId(const std::string& callId); - long getRecordTime()const; - void setRecordTime(long recordTime); - long getCallStartTime()const; - void setCallStartTime(long callStartTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUid()const; - void setUid(const std::string& uid); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getStats()const; - void setStats(const std::string& stats); - std::string getTenantId()const; - void setTenantId(const std::string& tenantId); - std::string getCalleeNumber()const; - void setCalleeNumber(const std::string& calleeNumber); - std::string getCallerNumber()const; - void setCallerNumber(const std::string& callerNumber); - - private: - std::string callId_; - long recordTime_; - long callStartTime_; - std::string accessKeyId_; - std::string uid_; - std::string instanceId_; - std::string stats_; - std::string tenantId_; - std::string calleeNumber_; - std::string callerNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCSTATSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h deleted file mode 100644 index 8f540d06c..000000000 --- a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_SAVEWEBRTCSTATSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCSTATSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SaveWebRTCStatsResult : public ServiceResult - { - public: - - - SaveWebRTCStatsResult(); - explicit SaveWebRTCStatsResult(const std::string &payload); - ~SaveWebRTCStatsResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - long getRowCount()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - long rowCount_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCSTATSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingRequest.h b/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingRequest.h new file mode 100644 index 000000000..02720844b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingRequest.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_SENDDTMFSIGNALINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SENDDTMFSIGNALINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SendDtmfSignalingRequest : public RpcServiceRequest + { + + public: + SendDtmfSignalingRequest(); + ~SendDtmfSignalingRequest(); + + std::string getDtmf()const; + void setDtmf(const std::string& dtmf); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::string dtmf_; + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SENDDTMFSIGNALINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h b/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h new file mode 100644 index 000000000..cb86fbdda --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_SENDDTMFSIGNALINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SENDDTMFSIGNALINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SendDtmfSignalingResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + SendDtmfSignalingResult(); + explicit SendDtmfSignalingResult(const std::string &payload); + ~SendDtmfSignalingResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SENDDTMFSIGNALINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h deleted file mode 100644 index d79327b27..000000000 --- a/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_SENDPREDEFINEDSHORTMESSAGEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SendPredefinedShortMessageRequest : public RpcServiceRequest - { - - public: - SendPredefinedShortMessageRequest(); - ~SendPredefinedShortMessageRequest(); - - std::string getPhoneNumbers()const; - void setPhoneNumbers(const std::string& phoneNumbers); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getConfigId()const; - void setConfigId(long configId); - std::string getTemplateParam()const; - void setTemplateParam(const std::string& templateParam); - - private: - std::string phoneNumbers_; - std::string accessKeyId_; - std::string instanceId_; - long configId_; - std::string templateParam_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h deleted file mode 100644 index a994a4cdc..000000000 --- a/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_SENDPREDEFINEDSHORTMESSAGERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SendPredefinedShortMessageResult : public ServiceResult - { - public: - - - SendPredefinedShortMessageResult(); - explicit SendPredefinedShortMessageResult(const std::string &payload); - ~SendPredefinedShortMessageResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - std::string getBizId()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::string code_; - std::string bizId_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SignInGroupRequest.h b/ccc/include/alibabacloud/ccc/model/SignInGroupRequest.h new file mode 100644 index 000000000..37a494d2a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SignInGroupRequest.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_SIGNINGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SIGNINGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SignInGroupRequest : public RpcServiceRequest + { + + public: + SignInGroupRequest(); + ~SignInGroupRequest(); + + std::string getSignedSkillGroupIdList()const; + void setSignedSkillGroupIdList(const std::string& signedSkillGroupIdList); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string signedSkillGroupIdList_; + std::string userId_; + std::string deviceId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SIGNINGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h b/ccc/include/alibabacloud/ccc/model/SignInGroupResult.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h rename to ccc/include/alibabacloud/ccc/model/SignInGroupResult.h index 03cf1a516..0f74f76ea 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h +++ b/ccc/include/alibabacloud/ccc/model/SignInGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_SIGNINGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SIGNINGROUPRESULT_H_ #include #include @@ -29,42 +29,44 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentDevicesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT SignInGroupResult : public ServiceResult { public: - struct AgentDevice + struct Data { - long loginTime; + std::string extension; + std::string userState; std::string instanceId; - long ramId; - int isLogin; - std::string clientPort; - std::string clientIp; - std::string browserVersion; - std::string remark; + std::string breakCode; + std::string deviceId; + std::string userId; + bool outboundScenario; + std::string jobId; + std::string workMode; + std::vector signedSkillGroupIdList; }; - ListAgentDevicesResult(); - explicit ListAgentDevicesResult(const std::string &payload); - ~ListAgentDevicesResult(); + SignInGroupResult(); + explicit SignInGroupResult(const std::string &payload); + ~SignInGroupResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; std::string getCode()const; - std::vector getAgentDeviceList()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + std::vector params_; + Data data_; std::string code_; - std::vector agentDeviceList_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_SIGNINGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RefreshTokenRequest.h b/ccc/include/alibabacloud/ccc/model/SignOutGroupRequest.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/RefreshTokenRequest.h rename to ccc/include/alibabacloud/ccc/model/SignOutGroupRequest.h index c0e102110..e30a5093e 100644 --- a/ccc/include/alibabacloud/ccc/model/RefreshTokenRequest.h +++ b/ccc/include/alibabacloud/ccc/model/SignOutGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REFRESHTOKENREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REFRESHTOKENREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RefreshTokenRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT SignOutGroupRequest : public RpcServiceRequest { public: - RefreshTokenRequest(); - ~RefreshTokenRequest(); + SignOutGroupRequest(); + ~SignOutGroupRequest(); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: + std::string userId_; + std::string deviceId_; std::string instanceId_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REFRESHTOKENREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h b/ccc/include/alibabacloud/ccc/model/SignOutGroupResult.h similarity index 58% rename from ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h rename to ccc/include/alibabacloud/ccc/model/SignOutGroupResult.h index 31f8ac821..e066a4714 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/SignOutGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPRESULT_H_ #include #include @@ -29,41 +29,47 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CreateCabInstanceResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT SignOutGroupResult : public ServiceResult { public: - struct Instance + struct Data { - std::string instanceName; - std::string owner; - int maxConcurrentConversation; + std::string userState; std::string instanceId; - long creationTime; - std::string instanceDescription; - std::string callCenterInstanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; }; - CreateCabInstanceResult(); - explicit CreateCabInstanceResult(const std::string &payload); - ~CreateCabInstanceResult(); + SignOutGroupResult(); + explicit SignOutGroupResult(const std::string &payload); + ~SignOutGroupResult(); std::string getMessage()const; - Instance getInstance()const; int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; - Instance instance_; int httpStatusCode_; + std::vector params_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPRESULT_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 deleted file mode 100644 index bdc3731ae..000000000 --- a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getCallCenterNumber()const; - void setCallCenterNumber(const std::string& callCenterNumber); - std::string getCallee()const; - void setCallee(const std::string& callee); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCaller()const; - void setCaller(const std::string& caller); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getWorkflowId()const; - void setWorkflowId(const std::string& workflowId); - - private: - std::string callCenterNumber_; - std::string callee_; - std::string accessKeyId_; - std::string caller_; - std::string instanceId_; - std::string workflowId_; - - }; - } - } -} -#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 deleted file mode 100644 index 57f9b4383..000000000 --- a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 75a549530..000000000 --- a/ccc/include/alibabacloud/ccc/model/StartJobRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getGroupId()const; - void setGroupId(const std::string& groupId); - 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); - bool getSelfHostedCallCenter()const; - void setSelfHostedCallCenter(bool selfHostedCallCenter); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string groupId_; - std::string jobJson_; - std::vector callingNumber_; - std::string instanceId_; - 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 deleted file mode 100644 index 22e8c1627..000000000 --- a/ccc/include/alibabacloud/ccc/model/StartJobResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 7aa78c8ca..000000000 --- a/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index b83c9f616..000000000 --- a/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/SubmitCabRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h deleted file mode 100644 index 144d41091..000000000 --- a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_SUBMITCABRECORDINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SubmitCabRecordingRequest : public RpcServiceRequest - { - - public: - SubmitCabRecordingRequest(); - ~SubmitCabRecordingRequest(); - - std::string getMergedRecording()const; - void setMergedRecording(const std::string& mergedRecording); - std::string getResourceRecording()const; - void setResourceRecording(const std::string& resourceRecording); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string mergedRecording_; - std::string resourceRecording_; - std::string instanceId_; - long instanceOwnerId_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h deleted file mode 100644 index 2c44ee9a4..000000000 --- a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_SUBMITCABRECORDINGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SubmitCabRecordingResult : public ServiceResult - { - public: - - - SubmitCabRecordingResult(); - explicit SubmitCabRecordingResult(const std::string &payload); - ~SubmitCabRecordingResult(); - 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_SUBMITCABRECORDINGRESULT_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 deleted file mode 100644 index 3c47ea0fc..000000000 --- a/ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 getJobReferenceId()const; - void setJobReferenceId(const std::vector& jobReferenceId); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::vector getJobId()const; - void setJobId(const std::vector& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - bool all_; - std::vector jobReferenceId_; - std::string groupId_; - std::vector jobId_; - std::string instanceId_; - 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 deleted file mode 100644 index 76017e879..000000000 --- a/ccc/include/alibabacloud/ccc/model/SuspendJobsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/SuspendPredictiveJobsRequest.h b/ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsRequest.h deleted file mode 100644 index 352e2bcb6..000000000 --- a/ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_SUSPENDPREDICTIVEJOBSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SUSPENDPREDICTIVEJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SuspendPredictiveJobsRequest : public RpcServiceRequest - { - - public: - SuspendPredictiveJobsRequest(); - ~SuspendPredictiveJobsRequest(); - - 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 getSkillGroupId()const; - void setSkillGroupId(const std::string& skillGroupId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - - private: - bool all_; - std::vector jobId_; - std::string instanceId_; - std::string skillGroupId_; - std::string jobGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SUSPENDPREDICTIVEJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsResult.h deleted file mode 100644 index 3ad8da1d6..000000000 --- a/ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_SUSPENDPREDICTIVEJOBSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SUSPENDPREDICTIVEJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SuspendPredictiveJobsResult : public ServiceResult - { - public: - - - SuspendPredictiveJobsResult(); - explicit SuspendPredictiveJobsResult(const std::string &payload); - ~SuspendPredictiveJobsResult(); - 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_SUSPENDPREDICTIVEJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRolesRequest.h b/ccc/include/alibabacloud/ccc/model/TakeBreakRequest.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/ListRolesRequest.h rename to ccc/include/alibabacloud/ccc/model/TakeBreakRequest.h index 9ec631c8b..c80f82a59 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRolesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/TakeBreakRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTROLESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTROLESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_TAKEBREAKREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_TAKEBREAKREQUEST_H_ #include #include @@ -28,24 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRolesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT TakeBreakRequest : public RpcServiceRequest { public: - ListRolesRequest(); - ~ListRolesRequest(); + TakeBreakRequest(); + ~TakeBreakRequest(); + std::string getCode()const; + void setCode(const std::string& code); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: + std::string code_; + std::string userId_; + std::string deviceId_; std::string instanceId_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTROLESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_TAKEBREAKREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/TakeBreakResult.h b/ccc/include/alibabacloud/ccc/model/TakeBreakResult.h new file mode 100644 index 000000000..651563d82 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/TakeBreakResult.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_TAKEBREAKRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_TAKEBREAKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT TakeBreakResult : public ServiceResult + { + public: + struct Data + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::vector signedSkillGroupIdList; + std::string extension; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + + + TakeBreakResult(); + explicit TakeBreakResult(const std::string &payload); + ~TakeBreakResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_TAKEBREAKRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/TaskPreparingResult.h b/ccc/include/alibabacloud/ccc/model/TaskPreparingResult.h deleted file mode 100644 index d3a2290ac..000000000 --- a/ccc/include/alibabacloud/ccc/model/TaskPreparingResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_TASKPREPARINGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_TASKPREPARINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT TaskPreparingResult : public ServiceResult - { - public: - - - TaskPreparingResult(); - explicit TaskPreparingResult(const std::string &payload); - ~TaskPreparingResult(); - std::string getTaskId()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 taskId_; - std::string message_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_TASKPREPARINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/UnmuteCallRequest.h b/ccc/include/alibabacloud/ccc/model/UnmuteCallRequest.h new file mode 100644 index 000000000..12a5e6b81 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/UnmuteCallRequest.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_UNMUTECALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_UNMUTECALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT UnmuteCallRequest : public RpcServiceRequest + { + + public: + UnmuteCallRequest(); + ~UnmuteCallRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_UNMUTECALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/UnmuteCallResult.h b/ccc/include/alibabacloud/ccc/model/UnmuteCallResult.h new file mode 100644 index 000000000..1d2b648a5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/UnmuteCallResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_UNMUTECALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_UNMUTECALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT UnmuteCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + int index; + std::string associatedData; + std::string skillGroupId; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string extension; + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + std::string userId; + long heartbeat; + bool outboundScenario; + std::string mobile; + std::string jobId; + std::string workMode; + std::vector signedSkillGroupIdList; + }; + UserContext userContext; + CallContext callContext; + }; + + + UnmuteCallResult(); + explicit UnmuteCallResult(const std::string &payload); + ~UnmuteCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_UNMUTECALLRESULT_H_ \ No newline at end of file diff --git a/ccc/src/CCCClient.cc b/ccc/src/CCCClient.cc index e7d815705..7f012a404 100644 --- a/ccc/src/CCCClient.cc +++ b/ccc/src/CCCClient.cc @@ -51,2952 +51,648 @@ CCCClient::CCCClient(const std::string & accessKeyId, const std::string & access CCCClient::~CCCClient() {} -CCCClient::AbortPredictiveJobsOutcome CCCClient::abortPredictiveJobs(const AbortPredictiveJobsRequest &request) const +CCCClient::AnswerCallOutcome CCCClient::answerCall(const AnswerCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AbortPredictiveJobsOutcome(endpointOutcome.error()); + return AnswerCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AbortPredictiveJobsOutcome(AbortPredictiveJobsResult(outcome.result())); + return AnswerCallOutcome(AnswerCallResult(outcome.result())); else - return AbortPredictiveJobsOutcome(outcome.error()); + return AnswerCallOutcome(outcome.error()); } -void CCCClient::abortPredictiveJobsAsync(const AbortPredictiveJobsRequest& request, const AbortPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::answerCallAsync(const AnswerCallRequest& request, const AnswerCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, abortPredictiveJobs(request), context); + handler(this, request, answerCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AbortPredictiveJobsOutcomeCallable CCCClient::abortPredictiveJobsCallable(const AbortPredictiveJobsRequest &request) const +CCCClient::AnswerCallOutcomeCallable CCCClient::answerCallCallable(const AnswerCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->abortPredictiveJobs(request); + return this->answerCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddAgentDeviceOutcome CCCClient::addAgentDevice(const AddAgentDeviceRequest &request) const +CCCClient::BargeInCallOutcome CCCClient::bargeInCall(const BargeInCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddAgentDeviceOutcome(endpointOutcome.error()); + return BargeInCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddAgentDeviceOutcome(AddAgentDeviceResult(outcome.result())); + return BargeInCallOutcome(BargeInCallResult(outcome.result())); else - return AddAgentDeviceOutcome(outcome.error()); + return BargeInCallOutcome(outcome.error()); } -void CCCClient::addAgentDeviceAsync(const AddAgentDeviceRequest& request, const AddAgentDeviceAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::bargeInCallAsync(const BargeInCallRequest& request, const BargeInCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addAgentDevice(request), context); + handler(this, request, bargeInCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddAgentDeviceOutcomeCallable CCCClient::addAgentDeviceCallable(const AddAgentDeviceRequest &request) const +CCCClient::BargeInCallOutcomeCallable CCCClient::bargeInCallCallable(const BargeInCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addAgentDevice(request); + return this->bargeInCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddBulkPhoneNumbersOutcome CCCClient::addBulkPhoneNumbers(const AddBulkPhoneNumbersRequest &request) const +CCCClient::BlindTransferOutcome CCCClient::blindTransfer(const BlindTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddBulkPhoneNumbersOutcome(endpointOutcome.error()); + return BlindTransferOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddBulkPhoneNumbersOutcome(AddBulkPhoneNumbersResult(outcome.result())); + return BlindTransferOutcome(BlindTransferResult(outcome.result())); else - return AddBulkPhoneNumbersOutcome(outcome.error()); + return BlindTransferOutcome(outcome.error()); } -void CCCClient::addBulkPhoneNumbersAsync(const AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::blindTransferAsync(const BlindTransferRequest& request, const BlindTransferAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addBulkPhoneNumbers(request), context); + handler(this, request, blindTransfer(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddBulkPhoneNumbersOutcomeCallable CCCClient::addBulkPhoneNumbersCallable(const AddBulkPhoneNumbersRequest &request) const +CCCClient::BlindTransferOutcomeCallable CCCClient::blindTransferCallable(const BlindTransferRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addBulkPhoneNumbers(request); + return this->blindTransfer(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddJobsToPredictiveJobGroupOutcome CCCClient::addJobsToPredictiveJobGroup(const AddJobsToPredictiveJobGroupRequest &request) const +CCCClient::CancelAttendedTransferOutcome CCCClient::cancelAttendedTransfer(const CancelAttendedTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddJobsToPredictiveJobGroupOutcome(endpointOutcome.error()); + return CancelAttendedTransferOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddJobsToPredictiveJobGroupOutcome(AddJobsToPredictiveJobGroupResult(outcome.result())); + return CancelAttendedTransferOutcome(CancelAttendedTransferResult(outcome.result())); else - return AddJobsToPredictiveJobGroupOutcome(outcome.error()); + return CancelAttendedTransferOutcome(outcome.error()); } -void CCCClient::addJobsToPredictiveJobGroupAsync(const AddJobsToPredictiveJobGroupRequest& request, const AddJobsToPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::cancelAttendedTransferAsync(const CancelAttendedTransferRequest& request, const CancelAttendedTransferAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addJobsToPredictiveJobGroup(request), context); + handler(this, request, cancelAttendedTransfer(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddJobsToPredictiveJobGroupOutcomeCallable CCCClient::addJobsToPredictiveJobGroupCallable(const AddJobsToPredictiveJobGroupRequest &request) const +CCCClient::CancelAttendedTransferOutcomeCallable CCCClient::cancelAttendedTransferCallable(const CancelAttendedTransferRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addJobsToPredictiveJobGroup(request); + return this->cancelAttendedTransfer(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const +CCCClient::ChangeWorkModeOutcome CCCClient::changeWorkMode(const ChangeWorkModeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddPhoneNumberOutcome(endpointOutcome.error()); + return ChangeWorkModeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddPhoneNumberOutcome(AddPhoneNumberResult(outcome.result())); + return ChangeWorkModeOutcome(ChangeWorkModeResult(outcome.result())); else - return AddPhoneNumberOutcome(outcome.error()); + return ChangeWorkModeOutcome(outcome.error()); } -void CCCClient::addPhoneNumberAsync(const AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::changeWorkModeAsync(const ChangeWorkModeRequest& request, const ChangeWorkModeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addPhoneNumber(request), context); + handler(this, request, changeWorkMode(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const AddPhoneNumberRequest &request) const +CCCClient::ChangeWorkModeOutcomeCallable CCCClient::changeWorkModeCallable(const ChangeWorkModeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addPhoneNumber(request); + return this->changeWorkMode(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddPhoneTagsOutcome CCCClient::addPhoneTags(const AddPhoneTagsRequest &request) const +CCCClient::CompleteAttendedTransferOutcome CCCClient::completeAttendedTransfer(const CompleteAttendedTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddPhoneTagsOutcome(endpointOutcome.error()); + return CompleteAttendedTransferOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddPhoneTagsOutcome(AddPhoneTagsResult(outcome.result())); + return CompleteAttendedTransferOutcome(CompleteAttendedTransferResult(outcome.result())); else - return AddPhoneTagsOutcome(outcome.error()); + return CompleteAttendedTransferOutcome(outcome.error()); } -void CCCClient::addPhoneTagsAsync(const AddPhoneTagsRequest& request, const AddPhoneTagsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::completeAttendedTransferAsync(const CompleteAttendedTransferRequest& request, const CompleteAttendedTransferAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addPhoneTags(request), context); + handler(this, request, completeAttendedTransfer(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddPhoneTagsOutcomeCallable CCCClient::addPhoneTagsCallable(const AddPhoneTagsRequest &request) const +CCCClient::CompleteAttendedTransferOutcomeCallable CCCClient::completeAttendedTransferCallable(const CompleteAttendedTransferRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addPhoneTags(request); + return this->completeAttendedTransfer(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AssignJobsOutcome CCCClient::assignJobs(const AssignJobsRequest &request) const +CCCClient::GetLoginDetailsOutcome CCCClient::getLoginDetails(const GetLoginDetailsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AssignJobsOutcome(endpointOutcome.error()); + return GetLoginDetailsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AssignJobsOutcome(AssignJobsResult(outcome.result())); + return GetLoginDetailsOutcome(GetLoginDetailsResult(outcome.result())); else - return AssignJobsOutcome(outcome.error()); + return GetLoginDetailsOutcome(outcome.error()); } -void CCCClient::assignJobsAsync(const AssignJobsRequest& request, const AssignJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getLoginDetailsAsync(const GetLoginDetailsRequest& request, const GetLoginDetailsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, assignJobs(request), context); + handler(this, request, getLoginDetails(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AssignJobsOutcomeCallable CCCClient::assignJobsCallable(const AssignJobsRequest &request) const +CCCClient::GetLoginDetailsOutcomeCallable CCCClient::getLoginDetailsCallable(const GetLoginDetailsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->assignJobs(request); + return this->getLoginDetails(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AssignUsersOutcome CCCClient::assignUsers(const AssignUsersRequest &request) const +CCCClient::GetMonoRecordingOutcome CCCClient::getMonoRecording(const GetMonoRecordingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AssignUsersOutcome(endpointOutcome.error()); + return GetMonoRecordingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AssignUsersOutcome(AssignUsersResult(outcome.result())); + return GetMonoRecordingOutcome(GetMonoRecordingResult(outcome.result())); else - return AssignUsersOutcome(outcome.error()); + return GetMonoRecordingOutcome(outcome.error()); } -void CCCClient::assignUsersAsync(const AssignUsersRequest& request, const AssignUsersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getMonoRecordingAsync(const GetMonoRecordingRequest& request, const GetMonoRecordingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, assignUsers(request), context); + handler(this, request, getMonoRecording(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AssignUsersOutcomeCallable CCCClient::assignUsersCallable(const AssignUsersRequest &request) const +CCCClient::GetMonoRecordingOutcomeCallable CCCClient::getMonoRecordingCallable(const GetMonoRecordingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->assignUsers(request); + return this->getMonoRecording(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CallOnlinePrivacyNumberOutcome CCCClient::callOnlinePrivacyNumber(const CallOnlinePrivacyNumberRequest &request) const +CCCClient::GetMultiChannelRecordingOutcome CCCClient::getMultiChannelRecording(const GetMultiChannelRecordingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CallOnlinePrivacyNumberOutcome(endpointOutcome.error()); + return GetMultiChannelRecordingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CallOnlinePrivacyNumberOutcome(CallOnlinePrivacyNumberResult(outcome.result())); + return GetMultiChannelRecordingOutcome(GetMultiChannelRecordingResult(outcome.result())); else - return CallOnlinePrivacyNumberOutcome(outcome.error()); + return GetMultiChannelRecordingOutcome(outcome.error()); } -void CCCClient::callOnlinePrivacyNumberAsync(const CallOnlinePrivacyNumberRequest& request, const CallOnlinePrivacyNumberAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getMultiChannelRecordingAsync(const GetMultiChannelRecordingRequest& request, const GetMultiChannelRecordingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, callOnlinePrivacyNumber(request), context); + handler(this, request, getMultiChannelRecording(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CallOnlinePrivacyNumberOutcomeCallable CCCClient::callOnlinePrivacyNumberCallable(const CallOnlinePrivacyNumberRequest &request) const +CCCClient::GetMultiChannelRecordingOutcomeCallable CCCClient::getMultiChannelRecordingCallable(const GetMultiChannelRecordingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->callOnlinePrivacyNumber(request); + return this->getMultiChannelRecording(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CancelJobsOutcome CCCClient::cancelJobs(const CancelJobsRequest &request) const +CCCClient::GetNumberLocationOutcome CCCClient::getNumberLocation(const GetNumberLocationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CancelJobsOutcome(endpointOutcome.error()); + return GetNumberLocationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CancelJobsOutcome(CancelJobsResult(outcome.result())); + return GetNumberLocationOutcome(GetNumberLocationResult(outcome.result())); else - return CancelJobsOutcome(outcome.error()); + return GetNumberLocationOutcome(outcome.error()); } -void CCCClient::cancelJobsAsync(const CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getNumberLocationAsync(const GetNumberLocationRequest& request, const GetNumberLocationAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, cancelJobs(request), context); + handler(this, request, getNumberLocation(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CancelJobsOutcomeCallable CCCClient::cancelJobsCallable(const CancelJobsRequest &request) const +CCCClient::GetNumberLocationOutcomeCallable CCCClient::getNumberLocationCallable(const GetNumberLocationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->cancelJobs(request); + return this->getNumberLocation(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CheckNumberAvaliableOutcome CCCClient::checkNumberAvaliable(const CheckNumberAvaliableRequest &request) const +CCCClient::GetTurnCredentialsOutcome CCCClient::getTurnCredentials(const GetTurnCredentialsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CheckNumberAvaliableOutcome(endpointOutcome.error()); + return GetTurnCredentialsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CheckNumberAvaliableOutcome(CheckNumberAvaliableResult(outcome.result())); + return GetTurnCredentialsOutcome(GetTurnCredentialsResult(outcome.result())); else - return CheckNumberAvaliableOutcome(outcome.error()); + return GetTurnCredentialsOutcome(outcome.error()); } -void CCCClient::checkNumberAvaliableAsync(const CheckNumberAvaliableRequest& request, const CheckNumberAvaliableAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getTurnCredentialsAsync(const GetTurnCredentialsRequest& request, const GetTurnCredentialsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, checkNumberAvaliable(request), context); + handler(this, request, getTurnCredentials(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CheckNumberAvaliableOutcomeCallable CCCClient::checkNumberAvaliableCallable(const CheckNumberAvaliableRequest &request) const +CCCClient::GetTurnCredentialsOutcomeCallable CCCClient::getTurnCredentialsCallable(const GetTurnCredentialsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->checkNumberAvaliable(request); + return this->getTurnCredentials(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CommitContactFlowVersionModificationOutcome CCCClient::commitContactFlowVersionModification(const CommitContactFlowVersionModificationRequest &request) const +CCCClient::GetTurnServerListOutcome CCCClient::getTurnServerList(const GetTurnServerListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CommitContactFlowVersionModificationOutcome(endpointOutcome.error()); + return GetTurnServerListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CommitContactFlowVersionModificationOutcome(CommitContactFlowVersionModificationResult(outcome.result())); + return GetTurnServerListOutcome(GetTurnServerListResult(outcome.result())); else - return CommitContactFlowVersionModificationOutcome(outcome.error()); + return GetTurnServerListOutcome(outcome.error()); } -void CCCClient::commitContactFlowVersionModificationAsync(const CommitContactFlowVersionModificationRequest& request, const CommitContactFlowVersionModificationAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getTurnServerListAsync(const GetTurnServerListRequest& request, const GetTurnServerListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, commitContactFlowVersionModification(request), context); + handler(this, request, getTurnServerList(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CommitContactFlowVersionModificationOutcomeCallable CCCClient::commitContactFlowVersionModificationCallable(const CommitContactFlowVersionModificationRequest &request) const +CCCClient::GetTurnServerListOutcomeCallable CCCClient::getTurnServerListCallable(const GetTurnServerListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->commitContactFlowVersionModification(request); + return this->getTurnServerList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateBatchJobsOutcome CCCClient::createBatchJobs(const CreateBatchJobsRequest &request) const +CCCClient::HoldCallOutcome CCCClient::holdCall(const HoldCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateBatchJobsOutcome(endpointOutcome.error()); + return HoldCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateBatchJobsOutcome(CreateBatchJobsResult(outcome.result())); + return HoldCallOutcome(HoldCallResult(outcome.result())); else - return CreateBatchJobsOutcome(outcome.error()); + return HoldCallOutcome(outcome.error()); } -void CCCClient::createBatchJobsAsync(const CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::holdCallAsync(const HoldCallRequest& request, const HoldCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createBatchJobs(request), context); + handler(this, request, holdCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateBatchJobsOutcomeCallable CCCClient::createBatchJobsCallable(const CreateBatchJobsRequest &request) const +CCCClient::HoldCallOutcomeCallable CCCClient::holdCallCallable(const HoldCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createBatchJobs(request); + return this->holdCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateCabInstanceOutcome CCCClient::createCabInstance(const CreateCabInstanceRequest &request) const +CCCClient::InitiateAttendedTransferOutcome CCCClient::initiateAttendedTransfer(const InitiateAttendedTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateCabInstanceOutcome(endpointOutcome.error()); + return InitiateAttendedTransferOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateCabInstanceOutcome(CreateCabInstanceResult(outcome.result())); + return InitiateAttendedTransferOutcome(InitiateAttendedTransferResult(outcome.result())); else - return CreateCabInstanceOutcome(outcome.error()); + return InitiateAttendedTransferOutcome(outcome.error()); } -void CCCClient::createCabInstanceAsync(const CreateCabInstanceRequest& request, const CreateCabInstanceAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::initiateAttendedTransferAsync(const InitiateAttendedTransferRequest& request, const InitiateAttendedTransferAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createCabInstance(request), context); + handler(this, request, initiateAttendedTransfer(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateCabInstanceOutcomeCallable CCCClient::createCabInstanceCallable(const CreateCabInstanceRequest &request) const +CCCClient::InitiateAttendedTransferOutcomeCallable CCCClient::initiateAttendedTransferCallable(const InitiateAttendedTransferRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createCabInstance(request); + return this->initiateAttendedTransfer(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateContactFlowOutcome CCCClient::createContactFlow(const CreateContactFlowRequest &request) const +CCCClient::InterceptCallOutcome CCCClient::interceptCall(const InterceptCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateContactFlowOutcome(endpointOutcome.error()); + return InterceptCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateContactFlowOutcome(CreateContactFlowResult(outcome.result())); + return InterceptCallOutcome(InterceptCallResult(outcome.result())); else - return CreateContactFlowOutcome(outcome.error()); + return InterceptCallOutcome(outcome.error()); } -void CCCClient::createContactFlowAsync(const CreateContactFlowRequest& request, const CreateContactFlowAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::interceptCallAsync(const InterceptCallRequest& request, const InterceptCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createContactFlow(request), context); + handler(this, request, interceptCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateContactFlowOutcomeCallable CCCClient::createContactFlowCallable(const CreateContactFlowRequest &request) const +CCCClient::InterceptCallOutcomeCallable CCCClient::interceptCallCallable(const InterceptCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createContactFlow(request); + return this->interceptCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateFaultOutcome CCCClient::createFault(const CreateFaultRequest &request) const +CCCClient::LaunchAuthenticationOutcome CCCClient::launchAuthentication(const LaunchAuthenticationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateFaultOutcome(endpointOutcome.error()); + return LaunchAuthenticationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateFaultOutcome(CreateFaultResult(outcome.result())); + return LaunchAuthenticationOutcome(LaunchAuthenticationResult(outcome.result())); else - return CreateFaultOutcome(outcome.error()); + return LaunchAuthenticationOutcome(outcome.error()); } -void CCCClient::createFaultAsync(const CreateFaultRequest& request, const CreateFaultAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::launchAuthenticationAsync(const LaunchAuthenticationRequest& request, const LaunchAuthenticationAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createFault(request), context); + handler(this, request, launchAuthentication(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateFaultOutcomeCallable CCCClient::createFaultCallable(const CreateFaultRequest &request) const +CCCClient::LaunchAuthenticationOutcomeCallable CCCClient::launchAuthenticationCallable(const LaunchAuthenticationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createFault(request); + return this->launchAuthentication(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateInstanceOutcome CCCClient::createInstance(const CreateInstanceRequest &request) const +CCCClient::LaunchSurveyOutcome CCCClient::launchSurvey(const LaunchSurveyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateInstanceOutcome(endpointOutcome.error()); + return LaunchSurveyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); + return LaunchSurveyOutcome(LaunchSurveyResult(outcome.result())); else - return CreateInstanceOutcome(outcome.error()); + return LaunchSurveyOutcome(outcome.error()); } -void CCCClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::launchSurveyAsync(const LaunchSurveyRequest& request, const LaunchSurveyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createInstance(request), context); + handler(this, request, launchSurvey(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateInstanceOutcomeCallable CCCClient::createInstanceCallable(const CreateInstanceRequest &request) const +CCCClient::LaunchSurveyOutcomeCallable CCCClient::launchSurveyCallable(const LaunchSurveyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createInstance(request); + return this->launchSurvey(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateJobGroupOutcome CCCClient::createJobGroup(const CreateJobGroupRequest &request) const +CCCClient::ListBriefSkillGroupsOutcome CCCClient::listBriefSkillGroups(const ListBriefSkillGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateJobGroupOutcome(endpointOutcome.error()); + return ListBriefSkillGroupsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateJobGroupOutcome(CreateJobGroupResult(outcome.result())); + return ListBriefSkillGroupsOutcome(ListBriefSkillGroupsResult(outcome.result())); else - return CreateJobGroupOutcome(outcome.error()); + return ListBriefSkillGroupsOutcome(outcome.error()); } -void CCCClient::createJobGroupAsync(const CreateJobGroupRequest& request, const CreateJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listBriefSkillGroupsAsync(const ListBriefSkillGroupsRequest& request, const ListBriefSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createJobGroup(request), context); + handler(this, request, listBriefSkillGroups(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateJobGroupOutcomeCallable CCCClient::createJobGroupCallable(const CreateJobGroupRequest &request) const +CCCClient::ListBriefSkillGroupsOutcomeCallable CCCClient::listBriefSkillGroupsCallable(const ListBriefSkillGroupsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createJobGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::CreateMediaOutcome CCCClient::createMedia(const CreateMediaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateMediaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateMediaOutcome(CreateMediaResult(outcome.result())); - else - return CreateMediaOutcome(outcome.error()); -} - -void CCCClient::createMediaAsync(const CreateMediaRequest& request, const CreateMediaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createMedia(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreateMediaOutcomeCallable CCCClient::createMediaCallable(const CreateMediaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createMedia(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::CreatePredictiveJobGroupOutcome CCCClient::createPredictiveJobGroup(const CreatePredictiveJobGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreatePredictiveJobGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreatePredictiveJobGroupOutcome(CreatePredictiveJobGroupResult(outcome.result())); - else - return CreatePredictiveJobGroupOutcome(outcome.error()); -} - -void CCCClient::createPredictiveJobGroupAsync(const CreatePredictiveJobGroupRequest& request, const CreatePredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createPredictiveJobGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreatePredictiveJobGroupOutcomeCallable CCCClient::createPredictiveJobGroupCallable(const CreatePredictiveJobGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createPredictiveJobGroup(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::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::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::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::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::CreateVoiceAppraiseOutcome CCCClient::createVoiceAppraise(const CreateVoiceAppraiseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateVoiceAppraiseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateVoiceAppraiseOutcome(CreateVoiceAppraiseResult(outcome.result())); - else - return CreateVoiceAppraiseOutcome(outcome.error()); -} - -void CCCClient::createVoiceAppraiseAsync(const CreateVoiceAppraiseRequest& request, const CreateVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createVoiceAppraise(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreateVoiceAppraiseOutcomeCallable CCCClient::createVoiceAppraiseCallable(const CreateVoiceAppraiseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createVoiceAppraise(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::DeleteInstanceOutcome CCCClient::deleteInstance(const DeleteInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteInstanceOutcome(DeleteInstanceResult(outcome.result())); - else - return DeleteInstanceOutcome(outcome.error()); -} - -void CCCClient::deleteInstanceAsync(const DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DeleteInstanceOutcomeCallable CCCClient::deleteInstanceCallable(const DeleteInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteInstance(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(); -} - -CCCClient::DeleteMediaOutcome CCCClient::deleteMedia(const DeleteMediaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteMediaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteMediaOutcome(DeleteMediaResult(outcome.result())); - else - return DeleteMediaOutcome(outcome.error()); -} - -void CCCClient::deleteMediaAsync(const DeleteMediaRequest& request, const DeleteMediaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteMedia(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DeleteMediaOutcomeCallable CCCClient::deleteMediaCallable(const DeleteMediaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteMedia(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::DeletePhoneTagsOutcome CCCClient::deletePhoneTags(const DeletePhoneTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeletePhoneTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeletePhoneTagsOutcome(DeletePhoneTagsResult(outcome.result())); - else - return DeletePhoneTagsOutcome(outcome.error()); -} - -void CCCClient::deletePhoneTagsAsync(const DeletePhoneTagsRequest& request, const DeletePhoneTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deletePhoneTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DeletePhoneTagsOutcomeCallable CCCClient::deletePhoneTagsCallable(const DeletePhoneTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deletePhoneTags(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::DeleteSurveyOutcome CCCClient::deleteSurvey(const DeleteSurveyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSurveyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSurveyOutcome(DeleteSurveyResult(outcome.result())); - else - return DeleteSurveyOutcome(outcome.error()); -} - -void CCCClient::deleteSurveyAsync(const DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSurvey(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DeleteSurveyOutcomeCallable CCCClient::deleteSurveyCallable(const DeleteSurveyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSurvey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::DialExOutcome CCCClient::dialEx(const DialExRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DialExOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DialExOutcome(DialExResult(outcome.result())); - else - return DialExOutcome(outcome.error()); -} - -void CCCClient::dialExAsync(const DialExRequest& request, const DialExAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, dialEx(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DialExOutcomeCallable CCCClient::dialExCallable(const DialExRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->dialEx(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::DisableTrunkProvidersOutcome CCCClient::disableTrunkProviders(const DisableTrunkProvidersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DisableTrunkProvidersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DisableTrunkProvidersOutcome(DisableTrunkProvidersResult(outcome.result())); - else - return DisableTrunkProvidersOutcome(outcome.error()); -} - -void CCCClient::disableTrunkProvidersAsync(const DisableTrunkProvidersRequest& request, const DisableTrunkProvidersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, disableTrunkProviders(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DisableTrunkProvidersOutcomeCallable CCCClient::disableTrunkProvidersCallable(const DisableTrunkProvidersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->disableTrunkProviders(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::DownloadAllTypeRecordingOutcome CCCClient::downloadAllTypeRecording(const DownloadAllTypeRecordingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DownloadAllTypeRecordingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DownloadAllTypeRecordingOutcome(DownloadAllTypeRecordingResult(outcome.result())); - else - return DownloadAllTypeRecordingOutcome(outcome.error()); -} - -void CCCClient::downloadAllTypeRecordingAsync(const DownloadAllTypeRecordingRequest& request, const DownloadAllTypeRecordingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, downloadAllTypeRecording(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DownloadAllTypeRecordingOutcomeCallable CCCClient::downloadAllTypeRecordingCallable(const DownloadAllTypeRecordingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->downloadAllTypeRecording(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::DownloadCabRecordingOutcome CCCClient::downloadCabRecording(const DownloadCabRecordingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DownloadCabRecordingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DownloadCabRecordingOutcome(DownloadCabRecordingResult(outcome.result())); - else - return DownloadCabRecordingOutcome(outcome.error()); -} - -void CCCClient::downloadCabRecordingAsync(const DownloadCabRecordingRequest& request, const DownloadCabRecordingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, downloadCabRecording(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DownloadCabRecordingOutcomeCallable CCCClient::downloadCabRecordingCallable(const DownloadCabRecordingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->downloadCabRecording(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::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::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::FindUsersOutcome CCCClient::findUsers(const FindUsersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FindUsersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FindUsersOutcome(FindUsersResult(outcome.result())); - else - return FindUsersOutcome(outcome.error()); -} - -void CCCClient::findUsersAsync(const FindUsersRequest& request, const FindUsersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, findUsers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::FindUsersOutcomeCallable CCCClient::findUsersCallable(const FindUsersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->findUsers(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::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::GetCallMeasureSummaryReportOutcome CCCClient::getCallMeasureSummaryReport(const GetCallMeasureSummaryReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCallMeasureSummaryReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCallMeasureSummaryReportOutcome(GetCallMeasureSummaryReportResult(outcome.result())); - else - return GetCallMeasureSummaryReportOutcome(outcome.error()); -} - -void CCCClient::getCallMeasureSummaryReportAsync(const GetCallMeasureSummaryReportRequest& request, const GetCallMeasureSummaryReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCallMeasureSummaryReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetCallMeasureSummaryReportOutcomeCallable CCCClient::getCallMeasureSummaryReportCallable(const GetCallMeasureSummaryReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCallMeasureSummaryReport(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::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::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::GetInstanceOutcome CCCClient::getInstance(const GetInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetInstanceOutcome(GetInstanceResult(outcome.result())); - else - return GetInstanceOutcome(outcome.error()); -} - -void CCCClient::getInstanceAsync(const GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetInstanceOutcomeCallable CCCClient::getInstanceCallable(const GetInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetInstanceStateOutcome CCCClient::getInstanceState(const GetInstanceStateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetInstanceStateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetInstanceStateOutcome(GetInstanceStateResult(outcome.result())); - else - return GetInstanceStateOutcome(outcome.error()); -} - -void CCCClient::getInstanceStateAsync(const GetInstanceStateRequest& request, const GetInstanceStateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getInstanceState(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetInstanceStateOutcomeCallable CCCClient::getInstanceStateCallable(const GetInstanceStateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getInstanceState(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetInstanceSummaryReportOutcome CCCClient::getInstanceSummaryReport(const GetInstanceSummaryReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetInstanceSummaryReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetInstanceSummaryReportOutcome(GetInstanceSummaryReportResult(outcome.result())); - else - return GetInstanceSummaryReportOutcome(outcome.error()); -} - -void CCCClient::getInstanceSummaryReportAsync(const GetInstanceSummaryReportRequest& request, const GetInstanceSummaryReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getInstanceSummaryReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetInstanceSummaryReportOutcomeCallable CCCClient::getInstanceSummaryReportCallable(const GetInstanceSummaryReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getInstanceSummaryReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetInstanceSummaryReportByIntervalOutcome CCCClient::getInstanceSummaryReportByInterval(const GetInstanceSummaryReportByIntervalRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetInstanceSummaryReportByIntervalOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetInstanceSummaryReportByIntervalOutcome(GetInstanceSummaryReportByIntervalResult(outcome.result())); - else - return GetInstanceSummaryReportByIntervalOutcome(outcome.error()); -} - -void CCCClient::getInstanceSummaryReportByIntervalAsync(const GetInstanceSummaryReportByIntervalRequest& request, const GetInstanceSummaryReportByIntervalAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getInstanceSummaryReportByInterval(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetInstanceSummaryReportByIntervalOutcomeCallable CCCClient::getInstanceSummaryReportByIntervalCallable(const GetInstanceSummaryReportByIntervalRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getInstanceSummaryReportByInterval(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetInstanceSummaryReportSinceMidnightOutcome CCCClient::getInstanceSummaryReportSinceMidnight(const GetInstanceSummaryReportSinceMidnightRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetInstanceSummaryReportSinceMidnightOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetInstanceSummaryReportSinceMidnightOutcome(GetInstanceSummaryReportSinceMidnightResult(outcome.result())); - else - return GetInstanceSummaryReportSinceMidnightOutcome(outcome.error()); -} - -void CCCClient::getInstanceSummaryReportSinceMidnightAsync(const GetInstanceSummaryReportSinceMidnightRequest& request, const GetInstanceSummaryReportSinceMidnightAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getInstanceSummaryReportSinceMidnight(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetInstanceSummaryReportSinceMidnightOutcomeCallable CCCClient::getInstanceSummaryReportSinceMidnightCallable(const GetInstanceSummaryReportSinceMidnightRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getInstanceSummaryReportSinceMidnight(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::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::GetJobFileUploadUrlOutcome CCCClient::getJobFileUploadUrl(const GetJobFileUploadUrlRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetJobFileUploadUrlOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetJobFileUploadUrlOutcome(GetJobFileUploadUrlResult(outcome.result())); - else - return GetJobFileUploadUrlOutcome(outcome.error()); -} - -void CCCClient::getJobFileUploadUrlAsync(const GetJobFileUploadUrlRequest& request, const GetJobFileUploadUrlAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getJobFileUploadUrl(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetJobFileUploadUrlOutcomeCallable CCCClient::getJobFileUploadUrlCallable(const GetJobFileUploadUrlRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getJobFileUploadUrl(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::GetJobListOutcome CCCClient::getJobList(const GetJobListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetJobListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetJobListOutcome(GetJobListResult(outcome.result())); - else - return GetJobListOutcome(outcome.error()); -} - -void CCCClient::getJobListAsync(const GetJobListRequest& request, const GetJobListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getJobList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetJobListOutcomeCallable CCCClient::getJobListCallable(const GetJobListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getJobList(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::GetJobTemplateDownloadParamsOutcome CCCClient::getJobTemplateDownloadParams(const GetJobTemplateDownloadParamsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetJobTemplateDownloadParamsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetJobTemplateDownloadParamsOutcome(GetJobTemplateDownloadParamsResult(outcome.result())); - else - return GetJobTemplateDownloadParamsOutcome(outcome.error()); -} - -void CCCClient::getJobTemplateDownloadParamsAsync(const GetJobTemplateDownloadParamsRequest& request, const GetJobTemplateDownloadParamsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getJobTemplateDownloadParams(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetJobTemplateDownloadParamsOutcomeCallable CCCClient::getJobTemplateDownloadParamsCallable(const GetJobTemplateDownloadParamsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getJobTemplateDownloadParams(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::GetRecordOssUploadParamOutcome CCCClient::getRecordOssUploadParam(const GetRecordOssUploadParamRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetRecordOssUploadParamOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetRecordOssUploadParamOutcome(GetRecordOssUploadParamResult(outcome.result())); - else - return GetRecordOssUploadParamOutcome(outcome.error()); -} - -void CCCClient::getRecordOssUploadParamAsync(const GetRecordOssUploadParamRequest& request, const GetRecordOssUploadParamAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getRecordOssUploadParam(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetRecordOssUploadParamOutcomeCallable CCCClient::getRecordOssUploadParamCallable(const GetRecordOssUploadParamRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getRecordOssUploadParam(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetRoutePointOutcome CCCClient::getRoutePoint(const GetRoutePointRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetRoutePointOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetRoutePointOutcome(GetRoutePointResult(outcome.result())); - else - return GetRoutePointOutcome(outcome.error()); -} - -void CCCClient::getRoutePointAsync(const GetRoutePointRequest& request, const GetRoutePointAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getRoutePoint(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetRoutePointOutcomeCallable CCCClient::getRoutePointCallable(const GetRoutePointRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getRoutePoint(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::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::GetSmsConfigOutcome CCCClient::getSmsConfig(const GetSmsConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSmsConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSmsConfigOutcome(GetSmsConfigResult(outcome.result())); - else - return GetSmsConfigOutcome(outcome.error()); -} - -void CCCClient::getSmsConfigAsync(const GetSmsConfigRequest& request, const GetSmsConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSmsConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetSmsConfigOutcomeCallable CCCClient::getSmsConfigCallable(const GetSmsConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSmsConfig(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::GetTURNCredentialsOutcome CCCClient::getTURNCredentials(const GetTURNCredentialsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetTURNCredentialsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetTURNCredentialsOutcome(GetTURNCredentialsResult(outcome.result())); - else - return GetTURNCredentialsOutcome(outcome.error()); -} - -void CCCClient::getTURNCredentialsAsync(const GetTURNCredentialsRequest& request, const GetTURNCredentialsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getTURNCredentials(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetTURNCredentialsOutcomeCallable CCCClient::getTURNCredentialsCallable(const GetTURNCredentialsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getTURNCredentials(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetTURNServerListOutcome CCCClient::getTURNServerList(const GetTURNServerListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetTURNServerListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetTURNServerListOutcome(GetTURNServerListResult(outcome.result())); - else - return GetTURNServerListOutcome(outcome.error()); -} - -void CCCClient::getTURNServerListAsync(const GetTURNServerListRequest& request, const GetTURNServerListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getTURNServerList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetTURNServerListOutcomeCallable CCCClient::getTURNServerListCallable(const GetTURNServerListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getTURNServerList(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::GetUserOutcome CCCClient::getUser(const GetUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetUserOutcome(GetUserResult(outcome.result())); - else - return GetUserOutcome(outcome.error()); -} - -void CCCClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetUserByExtensionOutcome CCCClient::getUserByExtension(const GetUserByExtensionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetUserByExtensionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetUserByExtensionOutcome(GetUserByExtensionResult(outcome.result())); - else - return GetUserByExtensionOutcome(outcome.error()); -} - -void CCCClient::getUserByExtensionAsync(const GetUserByExtensionRequest& request, const GetUserByExtensionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getUserByExtension(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetUserByExtensionOutcomeCallable CCCClient::getUserByExtensionCallable(const GetUserByExtensionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getUserByExtension(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::InflightTaskTimeoutOutcome CCCClient::inflightTaskTimeout(const InflightTaskTimeoutRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return InflightTaskTimeoutOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return InflightTaskTimeoutOutcome(InflightTaskTimeoutResult(outcome.result())); - else - return InflightTaskTimeoutOutcome(outcome.error()); -} - -void CCCClient::inflightTaskTimeoutAsync(const InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, inflightTaskTimeout(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::InflightTaskTimeoutOutcomeCallable CCCClient::inflightTaskTimeoutCallable(const InflightTaskTimeoutRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->inflightTaskTimeout(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::LaunchShortMessageAppraiseOutcome CCCClient::launchShortMessageAppraise(const LaunchShortMessageAppraiseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return LaunchShortMessageAppraiseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return LaunchShortMessageAppraiseOutcome(LaunchShortMessageAppraiseResult(outcome.result())); - else - return LaunchShortMessageAppraiseOutcome(outcome.error()); -} - -void CCCClient::launchShortMessageAppraiseAsync(const LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, launchShortMessageAppraise(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::LaunchShortMessageAppraiseOutcomeCallable CCCClient::launchShortMessageAppraiseCallable(const LaunchShortMessageAppraiseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->launchShortMessageAppraise(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListAgentDevicesOutcome CCCClient::listAgentDevices(const ListAgentDevicesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAgentDevicesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAgentDevicesOutcome(ListAgentDevicesResult(outcome.result())); - else - return ListAgentDevicesOutcome(outcome.error()); -} - -void CCCClient::listAgentDevicesAsync(const ListAgentDevicesRequest& request, const ListAgentDevicesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAgentDevices(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListAgentDevicesOutcomeCallable CCCClient::listAgentDevicesCallable(const ListAgentDevicesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAgentDevices(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListAgentEventsOutcome CCCClient::listAgentEvents(const ListAgentEventsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAgentEventsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAgentEventsOutcome(ListAgentEventsResult(outcome.result())); - else - return ListAgentEventsOutcome(outcome.error()); -} - -void CCCClient::listAgentEventsAsync(const ListAgentEventsRequest& request, const ListAgentEventsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAgentEvents(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListAgentEventsOutcomeCallable CCCClient::listAgentEventsCallable(const ListAgentEventsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAgentEvents(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListAgentStateLogsOutcome CCCClient::listAgentStateLogs(const ListAgentStateLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAgentStateLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAgentStateLogsOutcome(ListAgentStateLogsResult(outcome.result())); - else - return ListAgentStateLogsOutcome(outcome.error()); -} - -void CCCClient::listAgentStateLogsAsync(const ListAgentStateLogsRequest& request, const ListAgentStateLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAgentStateLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListAgentStateLogsOutcomeCallable CCCClient::listAgentStateLogsCallable(const ListAgentStateLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAgentStateLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListAgentStatesOutcome CCCClient::listAgentStates(const ListAgentStatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAgentStatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAgentStatesOutcome(ListAgentStatesResult(outcome.result())); - else - return ListAgentStatesOutcome(outcome.error()); -} - -void CCCClient::listAgentStatesAsync(const ListAgentStatesRequest& request, const ListAgentStatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAgentStates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListAgentStatesOutcomeCallable CCCClient::listAgentStatesCallable(const ListAgentStatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAgentStates(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListAgentSummaryReportsOutcome CCCClient::listAgentSummaryReports(const ListAgentSummaryReportsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAgentSummaryReportsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAgentSummaryReportsOutcome(ListAgentSummaryReportsResult(outcome.result())); - else - return ListAgentSummaryReportsOutcome(outcome.error()); -} - -void CCCClient::listAgentSummaryReportsAsync(const ListAgentSummaryReportsRequest& request, const ListAgentSummaryReportsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAgentSummaryReports(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListAgentSummaryReportsOutcomeCallable CCCClient::listAgentSummaryReportsCallable(const ListAgentSummaryReportsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAgentSummaryReports(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListAgentSummaryReportsByIntervalOutcome CCCClient::listAgentSummaryReportsByInterval(const ListAgentSummaryReportsByIntervalRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAgentSummaryReportsByIntervalOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAgentSummaryReportsByIntervalOutcome(ListAgentSummaryReportsByIntervalResult(outcome.result())); - else - return ListAgentSummaryReportsByIntervalOutcome(outcome.error()); -} - -void CCCClient::listAgentSummaryReportsByIntervalAsync(const ListAgentSummaryReportsByIntervalRequest& request, const ListAgentSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAgentSummaryReportsByInterval(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListAgentSummaryReportsByIntervalOutcomeCallable CCCClient::listAgentSummaryReportsByIntervalCallable(const ListAgentSummaryReportsByIntervalRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAgentSummaryReportsByInterval(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListAgentSummaryReportsSinceMidnightOutcome CCCClient::listAgentSummaryReportsSinceMidnight(const ListAgentSummaryReportsSinceMidnightRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAgentSummaryReportsSinceMidnightOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAgentSummaryReportsSinceMidnightOutcome(ListAgentSummaryReportsSinceMidnightResult(outcome.result())); - else - return ListAgentSummaryReportsSinceMidnightOutcome(outcome.error()); -} - -void CCCClient::listAgentSummaryReportsSinceMidnightAsync(const ListAgentSummaryReportsSinceMidnightRequest& request, const ListAgentSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAgentSummaryReportsSinceMidnight(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListAgentSummaryReportsSinceMidnightOutcomeCallable CCCClient::listAgentSummaryReportsSinceMidnightCallable(const ListAgentSummaryReportsSinceMidnightRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAgentSummaryReportsSinceMidnight(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); + return this->listBriefSkillGroups(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3039,1764 +735,396 @@ CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecords return task->get_future(); } -CCCClient::ListCallEventDetailByContactIdOutcome CCCClient::listCallEventDetailByContactId(const ListCallEventDetailByContactIdRequest &request) const +CCCClient::ListConfigItemsOutcome CCCClient::listConfigItems(const ListConfigItemsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListCallEventDetailByContactIdOutcome(endpointOutcome.error()); + return ListConfigItemsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListCallEventDetailByContactIdOutcome(ListCallEventDetailByContactIdResult(outcome.result())); + return ListConfigItemsOutcome(ListConfigItemsResult(outcome.result())); else - return ListCallEventDetailByContactIdOutcome(outcome.error()); + return ListConfigItemsOutcome(outcome.error()); } -void CCCClient::listCallEventDetailByContactIdAsync(const ListCallEventDetailByContactIdRequest& request, const ListCallEventDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listConfigItemsAsync(const ListConfigItemsRequest& request, const ListConfigItemsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listCallEventDetailByContactId(request), context); + handler(this, request, listConfigItems(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListCallEventDetailByContactIdOutcomeCallable CCCClient::listCallEventDetailByContactIdCallable(const ListCallEventDetailByContactIdRequest &request) const +CCCClient::ListConfigItemsOutcomeCallable CCCClient::listConfigItemsCallable(const ListConfigItemsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listCallEventDetailByContactId(request); + return this->listConfigItems(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListCallMeasureSummaryReportsOutcome CCCClient::listCallMeasureSummaryReports(const ListCallMeasureSummaryReportsRequest &request) const +CCCClient::ListDevicesOutcome CCCClient::listDevices(const ListDevicesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListCallMeasureSummaryReportsOutcome(endpointOutcome.error()); + return ListDevicesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListCallMeasureSummaryReportsOutcome(ListCallMeasureSummaryReportsResult(outcome.result())); + return ListDevicesOutcome(ListDevicesResult(outcome.result())); else - return ListCallMeasureSummaryReportsOutcome(outcome.error()); + return ListDevicesOutcome(outcome.error()); } -void CCCClient::listCallMeasureSummaryReportsAsync(const ListCallMeasureSummaryReportsRequest& request, const ListCallMeasureSummaryReportsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listDevicesAsync(const ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listCallMeasureSummaryReports(request), context); + handler(this, request, listDevices(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListCallMeasureSummaryReportsOutcomeCallable CCCClient::listCallMeasureSummaryReportsCallable(const ListCallMeasureSummaryReportsRequest &request) const +CCCClient::ListDevicesOutcomeCallable CCCClient::listDevicesCallable(const ListDevicesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listCallMeasureSummaryReports(request); + return this->listDevices(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListConfigOutcome CCCClient::listConfig(const ListConfigRequest &request) const +CCCClient::ListHistoricalAgentReportOutcome CCCClient::listHistoricalAgentReport(const ListHistoricalAgentReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListConfigOutcome(endpointOutcome.error()); + return ListHistoricalAgentReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListConfigOutcome(ListConfigResult(outcome.result())); + return ListHistoricalAgentReportOutcome(ListHistoricalAgentReportResult(outcome.result())); else - return ListConfigOutcome(outcome.error()); + return ListHistoricalAgentReportOutcome(outcome.error()); } -void CCCClient::listConfigAsync(const ListConfigRequest& request, const ListConfigAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listHistoricalAgentReportAsync(const ListHistoricalAgentReportRequest& request, const ListHistoricalAgentReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listConfig(request), context); + handler(this, request, listHistoricalAgentReport(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListConfigOutcomeCallable CCCClient::listConfigCallable(const ListConfigRequest &request) const +CCCClient::ListHistoricalAgentReportOutcomeCallable CCCClient::listHistoricalAgentReportCallable(const ListHistoricalAgentReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listConfig(request); + return this->listHistoricalAgentReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const +CCCClient::ListOutboundNumbersOfUserOutcome CCCClient::listOutboundNumbersOfUser(const ListOutboundNumbersOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListContactFlowsOutcome(endpointOutcome.error()); + return ListOutboundNumbersOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListContactFlowsOutcome(ListContactFlowsResult(outcome.result())); + return ListOutboundNumbersOfUserOutcome(ListOutboundNumbersOfUserResult(outcome.result())); else - return ListContactFlowsOutcome(outcome.error()); + return ListOutboundNumbersOfUserOutcome(outcome.error()); } -void CCCClient::listContactFlowsAsync(const ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listOutboundNumbersOfUserAsync(const ListOutboundNumbersOfUserRequest& request, const ListOutboundNumbersOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listContactFlows(request), context); + handler(this, request, listOutboundNumbersOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(const ListContactFlowsRequest &request) const +CCCClient::ListOutboundNumbersOfUserOutcomeCallable CCCClient::listOutboundNumbersOfUserCallable(const ListOutboundNumbersOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listContactFlows(request); + return this->listOutboundNumbersOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListInstancesOfUserOutcome CCCClient::listInstancesOfUser(const ListInstancesOfUserRequest &request) const +CCCClient::ListPrivilegesOfUserOutcome CCCClient::listPrivilegesOfUser(const ListPrivilegesOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListInstancesOfUserOutcome(endpointOutcome.error()); + return ListPrivilegesOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListInstancesOfUserOutcome(ListInstancesOfUserResult(outcome.result())); + return ListPrivilegesOfUserOutcome(ListPrivilegesOfUserResult(outcome.result())); else - return ListInstancesOfUserOutcome(outcome.error()); + return ListPrivilegesOfUserOutcome(outcome.error()); } -void CCCClient::listInstancesOfUserAsync(const ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listPrivilegesOfUserAsync(const ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listInstancesOfUser(request), context); + handler(this, request, listPrivilegesOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListInstancesOfUserOutcomeCallable CCCClient::listInstancesOfUserCallable(const ListInstancesOfUserRequest &request) const +CCCClient::ListPrivilegesOfUserOutcomeCallable CCCClient::listPrivilegesOfUserCallable(const ListPrivilegesOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listInstancesOfUser(request); + return this->listPrivilegesOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListIvrTrackingDetailOutcome CCCClient::listIvrTrackingDetail(const ListIvrTrackingDetailRequest &request) const +CCCClient::ListRealtimeAgentStatesOutcome CCCClient::listRealtimeAgentStates(const ListRealtimeAgentStatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListIvrTrackingDetailOutcome(endpointOutcome.error()); + return ListRealtimeAgentStatesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListIvrTrackingDetailOutcome(ListIvrTrackingDetailResult(outcome.result())); + return ListRealtimeAgentStatesOutcome(ListRealtimeAgentStatesResult(outcome.result())); else - return ListIvrTrackingDetailOutcome(outcome.error()); + return ListRealtimeAgentStatesOutcome(outcome.error()); } -void CCCClient::listIvrTrackingDetailAsync(const ListIvrTrackingDetailRequest& request, const ListIvrTrackingDetailAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listRealtimeAgentStatesAsync(const ListRealtimeAgentStatesRequest& request, const ListRealtimeAgentStatesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listIvrTrackingDetail(request), context); + handler(this, request, listRealtimeAgentStates(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListIvrTrackingDetailOutcomeCallable CCCClient::listIvrTrackingDetailCallable(const ListIvrTrackingDetailRequest &request) const +CCCClient::ListRealtimeAgentStatesOutcomeCallable CCCClient::listRealtimeAgentStatesCallable(const ListRealtimeAgentStatesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listIvrTrackingDetail(request); + return this->listRealtimeAgentStates(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListJobGroupsOutcome CCCClient::listJobGroups(const ListJobGroupsRequest &request) const +CCCClient::ListRecentCallDetailRecordsOutcome CCCClient::listRecentCallDetailRecords(const ListRecentCallDetailRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListJobGroupsOutcome(endpointOutcome.error()); + return ListRecentCallDetailRecordsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListJobGroupsOutcome(ListJobGroupsResult(outcome.result())); + return ListRecentCallDetailRecordsOutcome(ListRecentCallDetailRecordsResult(outcome.result())); else - return ListJobGroupsOutcome(outcome.error()); + return ListRecentCallDetailRecordsOutcome(outcome.error()); } -void CCCClient::listJobGroupsAsync(const ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listRecentCallDetailRecordsAsync(const ListRecentCallDetailRecordsRequest& request, const ListRecentCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listJobGroups(request), context); + handler(this, request, listRecentCallDetailRecords(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListJobGroupsOutcomeCallable CCCClient::listJobGroupsCallable(const ListJobGroupsRequest &request) const +CCCClient::ListRecentCallDetailRecordsOutcomeCallable CCCClient::listRecentCallDetailRecordsCallable(const ListRecentCallDetailRecordsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listJobGroups(request); + return this->listRecentCallDetailRecords(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListJobStatusOutcome CCCClient::listJobStatus(const ListJobStatusRequest &request) const +CCCClient::ListSkillLevelsOfUserOutcome CCCClient::listSkillLevelsOfUser(const ListSkillLevelsOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListJobStatusOutcome(endpointOutcome.error()); + return ListSkillLevelsOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListJobStatusOutcome(ListJobStatusResult(outcome.result())); + return ListSkillLevelsOfUserOutcome(ListSkillLevelsOfUserResult(outcome.result())); else - return ListJobStatusOutcome(outcome.error()); + return ListSkillLevelsOfUserOutcome(outcome.error()); } -void CCCClient::listJobStatusAsync(const ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listSkillLevelsOfUserAsync(const ListSkillLevelsOfUserRequest& request, const ListSkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listJobStatus(request), context); + handler(this, request, listSkillLevelsOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListJobStatusOutcomeCallable CCCClient::listJobStatusCallable(const ListJobStatusRequest &request) const +CCCClient::ListSkillLevelsOfUserOutcomeCallable CCCClient::listSkillLevelsOfUserCallable(const ListSkillLevelsOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listJobStatus(request); + return this->listSkillLevelsOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListJobsByGroupOutcome CCCClient::listJobsByGroup(const ListJobsByGroupRequest &request) const +CCCClient::MakeCallOutcome CCCClient::makeCall(const MakeCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListJobsByGroupOutcome(endpointOutcome.error()); + return MakeCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListJobsByGroupOutcome(ListJobsByGroupResult(outcome.result())); + return MakeCallOutcome(MakeCallResult(outcome.result())); else - return ListJobsByGroupOutcome(outcome.error()); + return MakeCallOutcome(outcome.error()); } -void CCCClient::listJobsByGroupAsync(const ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::makeCallAsync(const MakeCallRequest& request, const MakeCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listJobsByGroup(request), context); + handler(this, request, makeCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListJobsByGroupOutcomeCallable CCCClient::listJobsByGroupCallable(const ListJobsByGroupRequest &request) const +CCCClient::MakeCallOutcomeCallable CCCClient::makeCallCallable(const MakeCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listJobsByGroup(request); + return this->makeCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListMediasOutcome CCCClient::listMedias(const ListMediasRequest &request) const +CCCClient::MonitorCallOutcome CCCClient::monitorCall(const MonitorCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMediasOutcome(endpointOutcome.error()); + return MonitorCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMediasOutcome(ListMediasResult(outcome.result())); + return MonitorCallOutcome(MonitorCallResult(outcome.result())); else - return ListMediasOutcome(outcome.error()); + return MonitorCallOutcome(outcome.error()); } -void CCCClient::listMediasAsync(const ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::monitorCallAsync(const MonitorCallRequest& request, const MonitorCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMedias(request), context); + handler(this, request, monitorCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListMediasOutcomeCallable CCCClient::listMediasCallable(const ListMediasRequest &request) const +CCCClient::MonitorCallOutcomeCallable CCCClient::monitorCallCallable(const MonitorCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMedias(request); + return this->monitorCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListOutboundPhoneNumberOfUserOutcome CCCClient::listOutboundPhoneNumberOfUser(const ListOutboundPhoneNumberOfUserRequest &request) const +CCCClient::MuteCallOutcome CCCClient::muteCall(const MuteCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListOutboundPhoneNumberOfUserOutcome(endpointOutcome.error()); + return MuteCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListOutboundPhoneNumberOfUserOutcome(ListOutboundPhoneNumberOfUserResult(outcome.result())); + return MuteCallOutcome(MuteCallResult(outcome.result())); else - return ListOutboundPhoneNumberOfUserOutcome(outcome.error()); + return MuteCallOutcome(outcome.error()); } -void CCCClient::listOutboundPhoneNumberOfUserAsync(const ListOutboundPhoneNumberOfUserRequest& request, const ListOutboundPhoneNumberOfUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::muteCallAsync(const MuteCallRequest& request, const MuteCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listOutboundPhoneNumberOfUser(request), context); + handler(this, request, muteCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListOutboundPhoneNumberOfUserOutcomeCallable CCCClient::listOutboundPhoneNumberOfUserCallable(const ListOutboundPhoneNumberOfUserRequest &request) const +CCCClient::MuteCallOutcomeCallable CCCClient::muteCallCallable(const MuteCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listOutboundPhoneNumberOfUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListPhoneNumbersOutcome CCCClient::listPhoneNumbers(const ListPhoneNumbersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListPhoneNumbersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListPhoneNumbersOutcome(ListPhoneNumbersResult(outcome.result())); - else - return ListPhoneNumbersOutcome(outcome.error()); -} - -void CCCClient::listPhoneNumbersAsync(const ListPhoneNumbersRequest& request, const ListPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listPhoneNumbers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListPhoneNumbersOutcomeCallable CCCClient::listPhoneNumbersCallable(const ListPhoneNumbersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listPhoneNumbers(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListPhoneTagsOutcome CCCClient::listPhoneTags(const ListPhoneTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListPhoneTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListPhoneTagsOutcome(ListPhoneTagsResult(outcome.result())); - else - return ListPhoneTagsOutcome(outcome.error()); -} - -void CCCClient::listPhoneTagsAsync(const ListPhoneTagsRequest& request, const ListPhoneTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listPhoneTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListPhoneTagsOutcomeCallable CCCClient::listPhoneTagsCallable(const ListPhoneTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listPhoneTags(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::ListRecentCallRecordsOutcome CCCClient::listRecentCallRecords(const ListRecentCallRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListRecentCallRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListRecentCallRecordsOutcome(ListRecentCallRecordsResult(outcome.result())); - else - return ListRecentCallRecordsOutcome(outcome.error()); -} - -void CCCClient::listRecentCallRecordsAsync(const ListRecentCallRecordsRequest& request, const ListRecentCallRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listRecentCallRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListRecentCallRecordsOutcomeCallable CCCClient::listRecentCallRecordsCallable(const ListRecentCallRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listRecentCallRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListRecordingOfDualTrackOutcome CCCClient::listRecordingOfDualTrack(const ListRecordingOfDualTrackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListRecordingOfDualTrackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListRecordingOfDualTrackOutcome(ListRecordingOfDualTrackResult(outcome.result())); - else - return ListRecordingOfDualTrackOutcome(outcome.error()); -} - -void CCCClient::listRecordingOfDualTrackAsync(const ListRecordingOfDualTrackRequest& request, const ListRecordingOfDualTrackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listRecordingOfDualTrack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListRecordingOfDualTrackOutcomeCallable CCCClient::listRecordingOfDualTrackCallable(const ListRecordingOfDualTrackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listRecordingOfDualTrack(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::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::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::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::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::ListSkillGroupStatesOutcome CCCClient::listSkillGroupStates(const ListSkillGroupStatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSkillGroupStatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSkillGroupStatesOutcome(ListSkillGroupStatesResult(outcome.result())); - else - return ListSkillGroupStatesOutcome(outcome.error()); -} - -void CCCClient::listSkillGroupStatesAsync(const ListSkillGroupStatesRequest& request, const ListSkillGroupStatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSkillGroupStates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListSkillGroupStatesOutcomeCallable CCCClient::listSkillGroupStatesCallable(const ListSkillGroupStatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSkillGroupStates(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListSkillGroupSummaryReportsOutcome CCCClient::listSkillGroupSummaryReports(const ListSkillGroupSummaryReportsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSkillGroupSummaryReportsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSkillGroupSummaryReportsOutcome(ListSkillGroupSummaryReportsResult(outcome.result())); - else - return ListSkillGroupSummaryReportsOutcome(outcome.error()); -} - -void CCCClient::listSkillGroupSummaryReportsAsync(const ListSkillGroupSummaryReportsRequest& request, const ListSkillGroupSummaryReportsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSkillGroupSummaryReports(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListSkillGroupSummaryReportsOutcomeCallable CCCClient::listSkillGroupSummaryReportsCallable(const ListSkillGroupSummaryReportsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSkillGroupSummaryReports(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListSkillGroupSummaryReportsByIntervalOutcome CCCClient::listSkillGroupSummaryReportsByInterval(const ListSkillGroupSummaryReportsByIntervalRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSkillGroupSummaryReportsByIntervalOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSkillGroupSummaryReportsByIntervalOutcome(ListSkillGroupSummaryReportsByIntervalResult(outcome.result())); - else - return ListSkillGroupSummaryReportsByIntervalOutcome(outcome.error()); -} - -void CCCClient::listSkillGroupSummaryReportsByIntervalAsync(const ListSkillGroupSummaryReportsByIntervalRequest& request, const ListSkillGroupSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSkillGroupSummaryReportsByInterval(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListSkillGroupSummaryReportsByIntervalOutcomeCallable CCCClient::listSkillGroupSummaryReportsByIntervalCallable(const ListSkillGroupSummaryReportsByIntervalRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSkillGroupSummaryReportsByInterval(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListSkillGroupSummaryReportsSinceMidnightOutcome CCCClient::listSkillGroupSummaryReportsSinceMidnight(const ListSkillGroupSummaryReportsSinceMidnightRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSkillGroupSummaryReportsSinceMidnightOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSkillGroupSummaryReportsSinceMidnightOutcome(ListSkillGroupSummaryReportsSinceMidnightResult(outcome.result())); - else - return ListSkillGroupSummaryReportsSinceMidnightOutcome(outcome.error()); -} - -void CCCClient::listSkillGroupSummaryReportsSinceMidnightAsync(const ListSkillGroupSummaryReportsSinceMidnightRequest& request, const ListSkillGroupSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSkillGroupSummaryReportsSinceMidnight(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListSkillGroupSummaryReportsSinceMidnightOutcomeCallable CCCClient::listSkillGroupSummaryReportsSinceMidnightCallable(const ListSkillGroupSummaryReportsSinceMidnightRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSkillGroupSummaryReportsSinceMidnight(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::ListSkillGroupsOfUserOutcome CCCClient::listSkillGroupsOfUser(const ListSkillGroupsOfUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSkillGroupsOfUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSkillGroupsOfUserOutcome(ListSkillGroupsOfUserResult(outcome.result())); - else - return ListSkillGroupsOfUserOutcome(outcome.error()); -} - -void CCCClient::listSkillGroupsOfUserAsync(const ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSkillGroupsOfUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListSkillGroupsOfUserOutcomeCallable CCCClient::listSkillGroupsOfUserCallable(const ListSkillGroupsOfUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSkillGroupsOfUser(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::ListTransferableSkillGroupsOutcome CCCClient::listTransferableSkillGroups(const ListTransferableSkillGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTransferableSkillGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTransferableSkillGroupsOutcome(ListTransferableSkillGroupsResult(outcome.result())); - else - return ListTransferableSkillGroupsOutcome(outcome.error()); -} - -void CCCClient::listTransferableSkillGroupsAsync(const ListTransferableSkillGroupsRequest& request, const ListTransferableSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTransferableSkillGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListTransferableSkillGroupsOutcomeCallable CCCClient::listTransferableSkillGroupsCallable(const ListTransferableSkillGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTransferableSkillGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListTrunkProvidersOutcome CCCClient::listTrunkProviders(const ListTrunkProvidersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTrunkProvidersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTrunkProvidersOutcome(ListTrunkProvidersResult(outcome.result())); - else - return ListTrunkProvidersOutcome(outcome.error()); -} - -void CCCClient::listTrunkProvidersAsync(const ListTrunkProvidersRequest& request, const ListTrunkProvidersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTrunkProviders(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListTrunkProvidersOutcomeCallable CCCClient::listTrunkProvidersCallable(const ListTrunkProvidersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTrunkProviders(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListTrunksOfSkillGroupOutcome CCCClient::listTrunksOfSkillGroup(const ListTrunksOfSkillGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTrunksOfSkillGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTrunksOfSkillGroupOutcome(ListTrunksOfSkillGroupResult(outcome.result())); - else - return ListTrunksOfSkillGroupOutcome(outcome.error()); -} - -void CCCClient::listTrunksOfSkillGroupAsync(const ListTrunksOfSkillGroupRequest& request, const ListTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTrunksOfSkillGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListTrunksOfSkillGroupOutcomeCallable CCCClient::listTrunksOfSkillGroupCallable(const ListTrunksOfSkillGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTrunksOfSkillGroup(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::ListUsersOutcome CCCClient::listUsers(const ListUsersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListUsersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListUsersOutcome(ListUsersResult(outcome.result())); - else - return ListUsersOutcome(outcome.error()); -} - -void CCCClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listUsers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListUsersOutcomeCallable CCCClient::listUsersCallable(const ListUsersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listUsers(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::ListVoiceAppraiseOutcome CCCClient::listVoiceAppraise(const ListVoiceAppraiseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListVoiceAppraiseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListVoiceAppraiseOutcome(ListVoiceAppraiseResult(outcome.result())); - else - return ListVoiceAppraiseOutcome(outcome.error()); -} - -void CCCClient::listVoiceAppraiseAsync(const ListVoiceAppraiseRequest& request, const ListVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listVoiceAppraise(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListVoiceAppraiseOutcomeCallable CCCClient::listVoiceAppraiseCallable(const ListVoiceAppraiseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listVoiceAppraise(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ModifyAgentDeviceOutcome CCCClient::modifyAgentDevice(const ModifyAgentDeviceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyAgentDeviceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyAgentDeviceOutcome(ModifyAgentDeviceResult(outcome.result())); - else - return ModifyAgentDeviceOutcome(outcome.error()); -} - -void CCCClient::modifyAgentDeviceAsync(const ModifyAgentDeviceRequest& request, const ModifyAgentDeviceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyAgentDevice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ModifyAgentDeviceOutcomeCallable CCCClient::modifyAgentDeviceCallable(const ModifyAgentDeviceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyAgentDevice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ModifyCabInstanceOutcome CCCClient::modifyCabInstance(const ModifyCabInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyCabInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyCabInstanceOutcome(ModifyCabInstanceResult(outcome.result())); - else - return ModifyCabInstanceOutcome(outcome.error()); -} - -void CCCClient::modifyCabInstanceAsync(const ModifyCabInstanceRequest& request, const ModifyCabInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyCabInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ModifyCabInstanceOutcomeCallable CCCClient::modifyCabInstanceCallable(const ModifyCabInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyCabInstance(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::ModifyPhoneTagsOutcome CCCClient::modifyPhoneTags(const ModifyPhoneTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyPhoneTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyPhoneTagsOutcome(ModifyPhoneTagsResult(outcome.result())); - else - return ModifyPhoneTagsOutcome(outcome.error()); -} - -void CCCClient::modifyPhoneTagsAsync(const ModifyPhoneTagsRequest& request, const ModifyPhoneTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyPhoneTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ModifyPhoneTagsOutcomeCallable CCCClient::modifyPhoneTagsCallable(const ModifyPhoneTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyPhoneTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ModifyPrimaryTrunksOfSkillGroupOutcome CCCClient::modifyPrimaryTrunksOfSkillGroup(const ModifyPrimaryTrunksOfSkillGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyPrimaryTrunksOfSkillGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyPrimaryTrunksOfSkillGroupOutcome(ModifyPrimaryTrunksOfSkillGroupResult(outcome.result())); - else - return ModifyPrimaryTrunksOfSkillGroupOutcome(outcome.error()); -} - -void CCCClient::modifyPrimaryTrunksOfSkillGroupAsync(const ModifyPrimaryTrunksOfSkillGroupRequest& request, const ModifyPrimaryTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyPrimaryTrunksOfSkillGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ModifyPrimaryTrunksOfSkillGroupOutcomeCallable CCCClient::modifyPrimaryTrunksOfSkillGroupCallable(const ModifyPrimaryTrunksOfSkillGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyPrimaryTrunksOfSkillGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ModifyPrivacyNumberCallDetailOutcome CCCClient::modifyPrivacyNumberCallDetail(const ModifyPrivacyNumberCallDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyPrivacyNumberCallDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyPrivacyNumberCallDetailOutcome(ModifyPrivacyNumberCallDetailResult(outcome.result())); - else - return ModifyPrivacyNumberCallDetailOutcome(outcome.error()); -} - -void CCCClient::modifyPrivacyNumberCallDetailAsync(const ModifyPrivacyNumberCallDetailRequest& request, const ModifyPrivacyNumberCallDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyPrivacyNumberCallDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ModifyPrivacyNumberCallDetailOutcomeCallable CCCClient::modifyPrivacyNumberCallDetailCallable(const ModifyPrivacyNumberCallDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyPrivacyNumberCallDetail(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::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::ModifySkillGroupOfUserOutcome CCCClient::modifySkillGroupOfUser(const ModifySkillGroupOfUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySkillGroupOfUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySkillGroupOfUserOutcome(ModifySkillGroupOfUserResult(outcome.result())); - else - return ModifySkillGroupOfUserOutcome(outcome.error()); -} - -void CCCClient::modifySkillGroupOfUserAsync(const ModifySkillGroupOfUserRequest& request, const ModifySkillGroupOfUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySkillGroupOfUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ModifySkillGroupOfUserOutcomeCallable CCCClient::modifySkillGroupOfUserCallable(const ModifySkillGroupOfUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySkillGroupOfUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ModifySkillGroupOutboundNumbersOutcome CCCClient::modifySkillGroupOutboundNumbers(const ModifySkillGroupOutboundNumbersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySkillGroupOutboundNumbersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySkillGroupOutboundNumbersOutcome(ModifySkillGroupOutboundNumbersResult(outcome.result())); - else - return ModifySkillGroupOutboundNumbersOutcome(outcome.error()); -} - -void CCCClient::modifySkillGroupOutboundNumbersAsync(const ModifySkillGroupOutboundNumbersRequest& request, const ModifySkillGroupOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySkillGroupOutboundNumbers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ModifySkillGroupOutboundNumbersOutcomeCallable CCCClient::modifySkillGroupOutboundNumbersCallable(const ModifySkillGroupOutboundNumbersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySkillGroupOutboundNumbers(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::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::PickGlobalOutboundNumbersOutcome CCCClient::pickGlobalOutboundNumbers(const PickGlobalOutboundNumbersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PickGlobalOutboundNumbersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PickGlobalOutboundNumbersOutcome(PickGlobalOutboundNumbersResult(outcome.result())); - else - return PickGlobalOutboundNumbersOutcome(outcome.error()); -} - -void CCCClient::pickGlobalOutboundNumbersAsync(const PickGlobalOutboundNumbersRequest& request, const PickGlobalOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, pickGlobalOutboundNumbers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::PickGlobalOutboundNumbersOutcomeCallable CCCClient::pickGlobalOutboundNumbersCallable(const PickGlobalOutboundNumbersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->pickGlobalOutboundNumbers(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); + return this->muteCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4839,720 +1167,396 @@ CCCClient::PickOutboundNumbersOutcomeCallable CCCClient::pickOutboundNumbersCall return task->get_future(); } -CCCClient::PublishContactFlowVersionOutcome CCCClient::publishContactFlowVersion(const PublishContactFlowVersionRequest &request) const +CCCClient::PollUserStatusOutcome CCCClient::pollUserStatus(const PollUserStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PublishContactFlowVersionOutcome(endpointOutcome.error()); + return PollUserStatusOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PublishContactFlowVersionOutcome(PublishContactFlowVersionResult(outcome.result())); + return PollUserStatusOutcome(PollUserStatusResult(outcome.result())); else - return PublishContactFlowVersionOutcome(outcome.error()); + return PollUserStatusOutcome(outcome.error()); } -void CCCClient::publishContactFlowVersionAsync(const PublishContactFlowVersionRequest& request, const PublishContactFlowVersionAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::pollUserStatusAsync(const PollUserStatusRequest& request, const PollUserStatusAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, publishContactFlowVersion(request), context); + handler(this, request, pollUserStatus(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::PublishContactFlowVersionOutcomeCallable CCCClient::publishContactFlowVersionCallable(const PublishContactFlowVersionRequest &request) const +CCCClient::PollUserStatusOutcomeCallable CCCClient::pollUserStatusCallable(const PollUserStatusRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->publishContactFlowVersion(request); + return this->pollUserStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::PublishPredictiveJobGroupOutcome CCCClient::publishPredictiveJobGroup(const PublishPredictiveJobGroupRequest &request) const +CCCClient::ReadyForServiceOutcome CCCClient::readyForService(const ReadyForServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PublishPredictiveJobGroupOutcome(endpointOutcome.error()); + return ReadyForServiceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PublishPredictiveJobGroupOutcome(PublishPredictiveJobGroupResult(outcome.result())); + return ReadyForServiceOutcome(ReadyForServiceResult(outcome.result())); else - return PublishPredictiveJobGroupOutcome(outcome.error()); + return ReadyForServiceOutcome(outcome.error()); } -void CCCClient::publishPredictiveJobGroupAsync(const PublishPredictiveJobGroupRequest& request, const PublishPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::readyForServiceAsync(const ReadyForServiceRequest& request, const ReadyForServiceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, publishPredictiveJobGroup(request), context); + handler(this, request, readyForService(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::PublishPredictiveJobGroupOutcomeCallable CCCClient::publishPredictiveJobGroupCallable(const PublishPredictiveJobGroupRequest &request) const +CCCClient::ReadyForServiceOutcomeCallable CCCClient::readyForServiceCallable(const ReadyForServiceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->publishPredictiveJobGroup(request); + return this->readyForService(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::PublishSurveyOutcome CCCClient::publishSurvey(const PublishSurveyRequest &request) const +CCCClient::RegisterDeviceOutcome CCCClient::registerDevice(const RegisterDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PublishSurveyOutcome(endpointOutcome.error()); + return RegisterDeviceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PublishSurveyOutcome(PublishSurveyResult(outcome.result())); + return RegisterDeviceOutcome(RegisterDeviceResult(outcome.result())); else - return PublishSurveyOutcome(outcome.error()); + return RegisterDeviceOutcome(outcome.error()); } -void CCCClient::publishSurveyAsync(const PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::registerDeviceAsync(const RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, publishSurvey(request), context); + handler(this, request, registerDevice(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::PublishSurveyOutcomeCallable CCCClient::publishSurveyCallable(const PublishSurveyRequest &request) const +CCCClient::RegisterDeviceOutcomeCallable CCCClient::registerDeviceCallable(const RegisterDeviceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->publishSurvey(request); + return this->registerDevice(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::RefreshTokenOutcome CCCClient::refreshToken(const RefreshTokenRequest &request) const +CCCClient::ReleaseCallOutcome CCCClient::releaseCall(const ReleaseCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RefreshTokenOutcome(endpointOutcome.error()); + return ReleaseCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RefreshTokenOutcome(RefreshTokenResult(outcome.result())); + return ReleaseCallOutcome(ReleaseCallResult(outcome.result())); else - return RefreshTokenOutcome(outcome.error()); + return ReleaseCallOutcome(outcome.error()); } -void CCCClient::refreshTokenAsync(const RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::releaseCallAsync(const ReleaseCallRequest& request, const ReleaseCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, refreshToken(request), context); + handler(this, request, releaseCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RefreshTokenOutcomeCallable CCCClient::refreshTokenCallable(const RefreshTokenRequest &request) const +CCCClient::ReleaseCallOutcomeCallable CCCClient::releaseCallCallable(const ReleaseCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->refreshToken(request); + return this->releaseCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::RemovePhoneNumberOutcome CCCClient::removePhoneNumber(const RemovePhoneNumberRequest &request) const +CCCClient::ResetAgentStateOutcome CCCClient::resetAgentState(const ResetAgentStateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RemovePhoneNumberOutcome(endpointOutcome.error()); + return ResetAgentStateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RemovePhoneNumberOutcome(RemovePhoneNumberResult(outcome.result())); + return ResetAgentStateOutcome(ResetAgentStateResult(outcome.result())); else - return RemovePhoneNumberOutcome(outcome.error()); + return ResetAgentStateOutcome(outcome.error()); } -void CCCClient::removePhoneNumberAsync(const RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::resetAgentStateAsync(const ResetAgentStateRequest& request, const ResetAgentStateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, removePhoneNumber(request), context); + handler(this, request, resetAgentState(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable(const RemovePhoneNumberRequest &request) const +CCCClient::ResetAgentStateOutcomeCallable CCCClient::resetAgentStateCallable(const ResetAgentStateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->removePhoneNumber(request); + return this->resetAgentState(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::RemoveUsersOutcome CCCClient::removeUsers(const RemoveUsersRequest &request) const +CCCClient::RetrieveCallOutcome CCCClient::retrieveCall(const RetrieveCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RemoveUsersOutcome(endpointOutcome.error()); + return RetrieveCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RemoveUsersOutcome(RemoveUsersResult(outcome.result())); + return RetrieveCallOutcome(RetrieveCallResult(outcome.result())); else - return RemoveUsersOutcome(outcome.error()); + return RetrieveCallOutcome(outcome.error()); } -void CCCClient::removeUsersAsync(const RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::retrieveCallAsync(const RetrieveCallRequest& request, const RetrieveCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, removeUsers(request), context); + handler(this, request, retrieveCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RemoveUsersOutcomeCallable CCCClient::removeUsersCallable(const RemoveUsersRequest &request) const +CCCClient::RetrieveCallOutcomeCallable CCCClient::retrieveCallCallable(const RetrieveCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->removeUsers(request); + return this->retrieveCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::RemoveUsersFromSkillGroupOutcome CCCClient::removeUsersFromSkillGroup(const RemoveUsersFromSkillGroupRequest &request) const +CCCClient::SendDtmfSignalingOutcome CCCClient::sendDtmfSignaling(const SendDtmfSignalingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RemoveUsersFromSkillGroupOutcome(endpointOutcome.error()); + return SendDtmfSignalingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RemoveUsersFromSkillGroupOutcome(RemoveUsersFromSkillGroupResult(outcome.result())); + return SendDtmfSignalingOutcome(SendDtmfSignalingResult(outcome.result())); else - return RemoveUsersFromSkillGroupOutcome(outcome.error()); + return SendDtmfSignalingOutcome(outcome.error()); } -void CCCClient::removeUsersFromSkillGroupAsync(const RemoveUsersFromSkillGroupRequest& request, const RemoveUsersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::sendDtmfSignalingAsync(const SendDtmfSignalingRequest& request, const SendDtmfSignalingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, removeUsersFromSkillGroup(request), context); + handler(this, request, sendDtmfSignaling(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RemoveUsersFromSkillGroupOutcomeCallable CCCClient::removeUsersFromSkillGroupCallable(const RemoveUsersFromSkillGroupRequest &request) const +CCCClient::SendDtmfSignalingOutcomeCallable CCCClient::sendDtmfSignalingCallable(const SendDtmfSignalingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->removeUsersFromSkillGroup(request); + return this->sendDtmfSignaling(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::RequestLoginInfoOutcome CCCClient::requestLoginInfo(const RequestLoginInfoRequest &request) const +CCCClient::SignInGroupOutcome CCCClient::signInGroup(const SignInGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RequestLoginInfoOutcome(endpointOutcome.error()); + return SignInGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RequestLoginInfoOutcome(RequestLoginInfoResult(outcome.result())); + return SignInGroupOutcome(SignInGroupResult(outcome.result())); else - return RequestLoginInfoOutcome(outcome.error()); + return SignInGroupOutcome(outcome.error()); } -void CCCClient::requestLoginInfoAsync(const RequestLoginInfoRequest& request, const RequestLoginInfoAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::signInGroupAsync(const SignInGroupRequest& request, const SignInGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, requestLoginInfo(request), context); + handler(this, request, signInGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RequestLoginInfoOutcomeCallable CCCClient::requestLoginInfoCallable(const RequestLoginInfoRequest &request) const +CCCClient::SignInGroupOutcomeCallable CCCClient::signInGroupCallable(const SignInGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->requestLoginInfo(request); + return this->signInGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ResetUserStatusOutcome CCCClient::resetUserStatus(const ResetUserStatusRequest &request) const +CCCClient::SignOutGroupOutcome CCCClient::signOutGroup(const SignOutGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ResetUserStatusOutcome(endpointOutcome.error()); + return SignOutGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ResetUserStatusOutcome(ResetUserStatusResult(outcome.result())); + return SignOutGroupOutcome(SignOutGroupResult(outcome.result())); else - return ResetUserStatusOutcome(outcome.error()); + return SignOutGroupOutcome(outcome.error()); } -void CCCClient::resetUserStatusAsync(const ResetUserStatusRequest& request, const ResetUserStatusAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::signOutGroupAsync(const SignOutGroupRequest& request, const SignOutGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, resetUserStatus(request), context); + handler(this, request, signOutGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ResetUserStatusOutcomeCallable CCCClient::resetUserStatusCallable(const ResetUserStatusRequest &request) const +CCCClient::SignOutGroupOutcomeCallable CCCClient::signOutGroupCallable(const SignOutGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->resetUserStatus(request); + return this->signOutGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ResumeJobsOutcome CCCClient::resumeJobs(const ResumeJobsRequest &request) const +CCCClient::TakeBreakOutcome CCCClient::takeBreak(const TakeBreakRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ResumeJobsOutcome(endpointOutcome.error()); + return TakeBreakOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ResumeJobsOutcome(ResumeJobsResult(outcome.result())); + return TakeBreakOutcome(TakeBreakResult(outcome.result())); else - return ResumeJobsOutcome(outcome.error()); + return TakeBreakOutcome(outcome.error()); } -void CCCClient::resumeJobsAsync(const ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::takeBreakAsync(const TakeBreakRequest& request, const TakeBreakAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, resumeJobs(request), context); + handler(this, request, takeBreak(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ResumeJobsOutcomeCallable CCCClient::resumeJobsCallable(const ResumeJobsRequest &request) const +CCCClient::TakeBreakOutcomeCallable CCCClient::takeBreakCallable(const TakeBreakRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->resumeJobs(request); + return this->takeBreak(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ResumePredictiveJobsOutcome CCCClient::resumePredictiveJobs(const ResumePredictiveJobsRequest &request) const +CCCClient::UnmuteCallOutcome CCCClient::unmuteCall(const UnmuteCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ResumePredictiveJobsOutcome(endpointOutcome.error()); + return UnmuteCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ResumePredictiveJobsOutcome(ResumePredictiveJobsResult(outcome.result())); + return UnmuteCallOutcome(UnmuteCallResult(outcome.result())); else - return ResumePredictiveJobsOutcome(outcome.error()); + return UnmuteCallOutcome(outcome.error()); } -void CCCClient::resumePredictiveJobsAsync(const ResumePredictiveJobsRequest& request, const ResumePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::unmuteCallAsync(const UnmuteCallRequest& request, const UnmuteCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, resumePredictiveJobs(request), context); + handler(this, request, unmuteCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ResumePredictiveJobsOutcomeCallable CCCClient::resumePredictiveJobsCallable(const ResumePredictiveJobsRequest &request) const +CCCClient::UnmuteCallOutcomeCallable CCCClient::unmuteCallCallable(const UnmuteCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->resumePredictiveJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::SaveWebRTCStatsOutcome CCCClient::saveWebRTCStats(const SaveWebRTCStatsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SaveWebRTCStatsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SaveWebRTCStatsOutcome(SaveWebRTCStatsResult(outcome.result())); - else - return SaveWebRTCStatsOutcome(outcome.error()); -} - -void CCCClient::saveWebRTCStatsAsync(const SaveWebRTCStatsRequest& request, const SaveWebRTCStatsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, saveWebRTCStats(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::SaveWebRTCStatsOutcomeCallable CCCClient::saveWebRTCStatsCallable(const SaveWebRTCStatsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->saveWebRTCStats(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::SendPredefinedShortMessageOutcome CCCClient::sendPredefinedShortMessage(const SendPredefinedShortMessageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SendPredefinedShortMessageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SendPredefinedShortMessageOutcome(SendPredefinedShortMessageResult(outcome.result())); - else - return SendPredefinedShortMessageOutcome(outcome.error()); -} - -void CCCClient::sendPredefinedShortMessageAsync(const SendPredefinedShortMessageRequest& request, const SendPredefinedShortMessageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, sendPredefinedShortMessage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::SendPredefinedShortMessageOutcomeCallable CCCClient::sendPredefinedShortMessageCallable(const SendPredefinedShortMessageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->sendPredefinedShortMessage(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::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::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::SubmitCabRecordingOutcome CCCClient::submitCabRecording(const SubmitCabRecordingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitCabRecordingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitCabRecordingOutcome(SubmitCabRecordingResult(outcome.result())); - else - return SubmitCabRecordingOutcome(outcome.error()); -} - -void CCCClient::submitCabRecordingAsync(const SubmitCabRecordingRequest& request, const SubmitCabRecordingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitCabRecording(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::SubmitCabRecordingOutcomeCallable CCCClient::submitCabRecordingCallable(const SubmitCabRecordingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitCabRecording(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::SuspendPredictiveJobsOutcome CCCClient::suspendPredictiveJobs(const SuspendPredictiveJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SuspendPredictiveJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SuspendPredictiveJobsOutcome(SuspendPredictiveJobsResult(outcome.result())); - else - return SuspendPredictiveJobsOutcome(outcome.error()); -} - -void CCCClient::suspendPredictiveJobsAsync(const SuspendPredictiveJobsRequest& request, const SuspendPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, suspendPredictiveJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::SuspendPredictiveJobsOutcomeCallable CCCClient::suspendPredictiveJobsCallable(const SuspendPredictiveJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->suspendPredictiveJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::TaskPreparingOutcome CCCClient::taskPreparing(const TaskPreparingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TaskPreparingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TaskPreparingOutcome(TaskPreparingResult(outcome.result())); - else - return TaskPreparingOutcome(outcome.error()); -} - -void CCCClient::taskPreparingAsync(const TaskPreparingRequest& request, const TaskPreparingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, taskPreparing(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::TaskPreparingOutcomeCallable CCCClient::taskPreparingCallable(const TaskPreparingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->taskPreparing(request); + return this->unmuteCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/ccc/src/model/AbortPredictiveJobsRequest.cc b/ccc/src/model/AbortPredictiveJobsRequest.cc deleted file mode 100644 index 4d5033db1..000000000 --- a/ccc/src/model/AbortPredictiveJobsRequest.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::AbortPredictiveJobsRequest; - -AbortPredictiveJobsRequest::AbortPredictiveJobsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "AbortPredictiveJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -AbortPredictiveJobsRequest::~AbortPredictiveJobsRequest() -{} - -bool AbortPredictiveJobsRequest::getAll()const -{ - return all_; -} - -void AbortPredictiveJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); -} - -std::vector AbortPredictiveJobsRequest::getJobId()const -{ - return jobId_; -} - -void AbortPredictiveJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } -} - -std::string AbortPredictiveJobsRequest::getInstanceId()const -{ - return instanceId_; -} - -void AbortPredictiveJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string AbortPredictiveJobsRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void AbortPredictiveJobsRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -std::string AbortPredictiveJobsRequest::getJobGroupId()const -{ - return jobGroupId_; -} - -void AbortPredictiveJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); -} - diff --git a/ccc/src/model/AbortPredictiveJobsResult.cc b/ccc/src/model/AbortPredictiveJobsResult.cc deleted file mode 100644 index 7a459f8dd..000000000 --- a/ccc/src/model/AbortPredictiveJobsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -AbortPredictiveJobsResult::AbortPredictiveJobsResult() : - ServiceResult() -{} - -AbortPredictiveJobsResult::AbortPredictiveJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AbortPredictiveJobsResult::~AbortPredictiveJobsResult() -{} - -void AbortPredictiveJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -std::string AbortPredictiveJobsResult::getMessage()const -{ - return message_; -} - -int AbortPredictiveJobsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string AbortPredictiveJobsResult::getCode()const -{ - return code_; -} - -bool AbortPredictiveJobsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/AddAgentDeviceRequest.cc b/ccc/src/model/AddAgentDeviceRequest.cc deleted file mode 100644 index bb3275539..000000000 --- a/ccc/src/model/AddAgentDeviceRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::AddAgentDeviceRequest; - -AddAgentDeviceRequest::AddAgentDeviceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "AddAgentDevice") -{ - setMethod(HttpRequest::Method::Post); -} - -AddAgentDeviceRequest::~AddAgentDeviceRequest() -{} - -std::string AddAgentDeviceRequest::getRemark()const -{ - return remark_; -} - -void AddAgentDeviceRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setBodyParameter("Remark", remark); -} - -std::string AddAgentDeviceRequest::getClientPort()const -{ - return clientPort_; -} - -void AddAgentDeviceRequest::setClientPort(const std::string& clientPort) -{ - clientPort_ = clientPort; - setParameter("ClientPort", clientPort); -} - -std::string AddAgentDeviceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddAgentDeviceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string AddAgentDeviceRequest::getInstanceId()const -{ - return instanceId_; -} - -void AddAgentDeviceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string AddAgentDeviceRequest::getClientIp()const -{ - return clientIp_; -} - -void AddAgentDeviceRequest::setClientIp(const std::string& clientIp) -{ - clientIp_ = clientIp; - setParameter("ClientIp", clientIp); -} - -std::string AddAgentDeviceRequest::getBrowserVersion()const -{ - return browserVersion_; -} - -void AddAgentDeviceRequest::setBrowserVersion(const std::string& browserVersion) -{ - browserVersion_ = browserVersion; - setBodyParameter("BrowserVersion", browserVersion); -} - diff --git a/ccc/src/model/AddAgentDeviceResult.cc b/ccc/src/model/AddAgentDeviceResult.cc deleted file mode 100644 index 9530721e1..000000000 --- a/ccc/src/model/AddAgentDeviceResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -AddAgentDeviceResult::AddAgentDeviceResult() : - ServiceResult() -{} - -AddAgentDeviceResult::AddAgentDeviceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddAgentDeviceResult::~AddAgentDeviceResult() -{} - -void AddAgentDeviceResult::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["AgentDeviceId"].isNull()) - agentDeviceId_ = std::stol(value["AgentDeviceId"].asString()); - -} - -std::string AddAgentDeviceResult::getMessage()const -{ - return message_; -} - -long AddAgentDeviceResult::getAgentDeviceId()const -{ - return agentDeviceId_; -} - -int AddAgentDeviceResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string AddAgentDeviceResult::getCode()const -{ - return code_; -} - -bool AddAgentDeviceResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/AddBulkPhoneNumbersRequest.cc b/ccc/src/model/AddBulkPhoneNumbersRequest.cc deleted file mode 100644 index 1b8041d36..000000000 --- a/ccc/src/model/AddBulkPhoneNumbersRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::AddBulkPhoneNumbersRequest; - -AddBulkPhoneNumbersRequest::AddBulkPhoneNumbersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "AddBulkPhoneNumbers") -{ - setMethod(HttpRequest::Method::Post); -} - -AddBulkPhoneNumbersRequest::~AddBulkPhoneNumbersRequest() -{} - -std::string AddBulkPhoneNumbersRequest::getContactFlowId()const -{ - return contactFlowId_; -} - -void AddBulkPhoneNumbersRequest::setContactFlowId(const std::string& contactFlowId) -{ - contactFlowId_ = contactFlowId; - setParameter("ContactFlowId", contactFlowId); -} - -std::string AddBulkPhoneNumbersRequest::getUsage()const -{ - return usage_; -} - -void AddBulkPhoneNumbersRequest::setUsage(const std::string& usage) -{ - usage_ = usage; - setParameter("Usage", usage); -} - -std::vector AddBulkPhoneNumbersRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void AddBulkPhoneNumbersRequest::setPhoneNumber(const std::vector& phoneNumber) -{ - phoneNumber_ = phoneNumber; - for(int dep1 = 0; dep1!= phoneNumber.size(); dep1++) { - setParameter("PhoneNumber."+ std::to_string(dep1), phoneNumber.at(dep1)); - } -} - -std::string AddBulkPhoneNumbersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddBulkPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string AddBulkPhoneNumbersRequest::getInstanceId()const -{ - return instanceId_; -} - -void AddBulkPhoneNumbersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector AddBulkPhoneNumbersRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void AddBulkPhoneNumbersRequest::setSkillGroupId(const std::vector& skillGroupId) -{ - skillGroupId_ = skillGroupId; - for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } -} - diff --git a/ccc/src/model/AddBulkPhoneNumbersResult.cc b/ccc/src/model/AddBulkPhoneNumbersResult.cc deleted file mode 100644 index 9757880ee..000000000 --- a/ccc/src/model/AddBulkPhoneNumbersResult.cc +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -AddBulkPhoneNumbersResult::AddBulkPhoneNumbersResult() : - ServiceResult() -{} - -AddBulkPhoneNumbersResult::AddBulkPhoneNumbersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddBulkPhoneNumbersResult::~AddBulkPhoneNumbersResult() -{} - -void AddBulkPhoneNumbersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPhoneNumbersNode = value["PhoneNumbers"]["PhoneNumber"]; - for (auto valuePhoneNumbersPhoneNumber : allPhoneNumbersNode) - { - PhoneNumber phoneNumbersObject; - if(!valuePhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumbersObject.phoneNumberId = valuePhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!valuePhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumbersObject.instanceId = valuePhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!valuePhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumbersObject.number = valuePhoneNumbersPhoneNumber["Number"].asString(); - if(!valuePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumbersObject.phoneNumberDescription = valuePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!valuePhoneNumbersPhoneNumber["TestOnly"].isNull()) - phoneNumbersObject.testOnly = valuePhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!valuePhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumbersObject.remainingTime = std::stoi(valuePhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!valuePhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - phoneNumbersObject.allowOutbound = valuePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!valuePhoneNumbersPhoneNumber["Usage"].isNull()) - phoneNumbersObject.usage = valuePhoneNumbersPhoneNumber["Usage"].asString(); - if(!valuePhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumbersObject.trunks = std::stoi(valuePhoneNumbersPhoneNumber["Trunks"].asString()); - auto allSkillGroupsNode = valuePhoneNumbersPhoneNumber["SkillGroups"]["SkillGroup"]; - for (auto valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode) - { - PhoneNumber::SkillGroup skillGroupsObject; - if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull()) - skillGroupsObject.skillGroupId = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString(); - if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].isNull()) - skillGroupsObject.skillGroupName = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].asString(); - phoneNumbersObject.skillGroups.push_back(skillGroupsObject); - } - 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); - } - auto allArrearagePhoneNumbers = value["ArrearagePhoneNumbers"]["ArrearagePhoneNumber"]; - for (const auto &item : allArrearagePhoneNumbers) - arrearagePhoneNumbers_.push_back(item.asString()); - auto allFailedPhoneNumbers = value["FailedPhoneNumbers"]["FailedPhoneNumber"]; - for (const auto &item : allFailedPhoneNumbers) - failedPhoneNumbers_.push_back(item.asString()); - auto allUserdPhoneNumbers = value["UserdPhoneNumbers"]["UserdPhoneNumber"]; - for (const auto &item : allUserdPhoneNumbers) - userdPhoneNumbers_.push_back(item.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 AddBulkPhoneNumbersResult::getArrearagePhoneNumbers()const -{ - return arrearagePhoneNumbers_; -} - -std::vector AddBulkPhoneNumbersResult::getPhoneNumbers()const -{ - return phoneNumbers_; -} - -std::string AddBulkPhoneNumbersResult::getMessage()const -{ - return message_; -} - -int AddBulkPhoneNumbersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector AddBulkPhoneNumbersResult::getFailedPhoneNumbers()const -{ - return failedPhoneNumbers_; -} - -std::vector AddBulkPhoneNumbersResult::getUserdPhoneNumbers()const -{ - return userdPhoneNumbers_; -} - -std::string AddBulkPhoneNumbersResult::getCode()const -{ - return code_; -} - -bool AddBulkPhoneNumbersResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/AddJobsToPredictiveJobGroupRequest.cc b/ccc/src/model/AddJobsToPredictiveJobGroupRequest.cc deleted file mode 100644 index ee9853267..000000000 --- a/ccc/src/model/AddJobsToPredictiveJobGroupRequest.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::AddJobsToPredictiveJobGroupRequest; - -AddJobsToPredictiveJobGroupRequest::AddJobsToPredictiveJobGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "AddJobsToPredictiveJobGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -AddJobsToPredictiveJobGroupRequest::~AddJobsToPredictiveJobGroupRequest() -{} - -std::string AddJobsToPredictiveJobGroupRequest::getClientToken()const -{ - return clientToken_; -} - -void AddJobsToPredictiveJobGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::vector AddJobsToPredictiveJobGroupRequest::getJobsJson()const -{ - return jobsJson_; -} - -void AddJobsToPredictiveJobGroupRequest::setJobsJson(const std::vector& jobsJson) -{ - jobsJson_ = jobsJson; - for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) { - setBodyParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1)); - } -} - -std::string AddJobsToPredictiveJobGroupRequest::getInstanceId()const -{ - return instanceId_; -} - -void AddJobsToPredictiveJobGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string AddJobsToPredictiveJobGroupRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void AddJobsToPredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -std::string AddJobsToPredictiveJobGroupRequest::getJobGroupId()const -{ - return jobGroupId_; -} - -void AddJobsToPredictiveJobGroupRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); -} - diff --git a/ccc/src/model/AddJobsToPredictiveJobGroupResult.cc b/ccc/src/model/AddJobsToPredictiveJobGroupResult.cc deleted file mode 100644 index bdaeaa444..000000000 --- a/ccc/src/model/AddJobsToPredictiveJobGroupResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -AddJobsToPredictiveJobGroupResult::AddJobsToPredictiveJobGroupResult() : - ServiceResult() -{} - -AddJobsToPredictiveJobGroupResult::AddJobsToPredictiveJobGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddJobsToPredictiveJobGroupResult::~AddJobsToPredictiveJobGroupResult() -{} - -void AddJobsToPredictiveJobGroupResult::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 AddJobsToPredictiveJobGroupResult::getMessage()const -{ - return message_; -} - -int AddJobsToPredictiveJobGroupResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string AddJobsToPredictiveJobGroupResult::getCode()const -{ - return code_; -} - -bool AddJobsToPredictiveJobGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/AddPhoneNumberRequest.cc b/ccc/src/model/AddPhoneNumberRequest.cc deleted file mode 100644 index 4c7a489d4..000000000 --- a/ccc/src/model/AddPhoneNumberRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::AddPhoneNumberRequest; - -AddPhoneNumberRequest::AddPhoneNumberRequest() : - RpcServiceRequest("ccc", "2017-07-05", "AddPhoneNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -AddPhoneNumberRequest::~AddPhoneNumberRequest() -{} - -std::string AddPhoneNumberRequest::getContactFlowId()const -{ - return contactFlowId_; -} - -void AddPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId) -{ - contactFlowId_ = contactFlowId; - setParameter("ContactFlowId", contactFlowId); -} - -std::string AddPhoneNumberRequest::getUsage()const -{ - return usage_; -} - -void AddPhoneNumberRequest::setUsage(const std::string& usage) -{ - usage_ = usage; - setParameter("Usage", usage); -} - -std::string AddPhoneNumberRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void AddPhoneNumberRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -std::string AddPhoneNumberRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string AddPhoneNumberRequest::getInstanceId()const -{ - return instanceId_; -} - -void AddPhoneNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/AddPhoneNumberResult.cc b/ccc/src/model/AddPhoneNumberResult.cc deleted file mode 100644 index b8d49443b..000000000 --- a/ccc/src/model/AddPhoneNumberResult.cc +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -AddPhoneNumberResult::AddPhoneNumberResult() : - ServiceResult() -{} - -AddPhoneNumberResult::AddPhoneNumberResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddPhoneNumberResult::~AddPhoneNumberResult() -{} - -void AddPhoneNumberResult::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["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_; -} - -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/AddPhoneTagsRequest.cc b/ccc/src/model/AddPhoneTagsRequest.cc deleted file mode 100644 index 56a765569..000000000 --- a/ccc/src/model/AddPhoneTagsRequest.cc +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::AddPhoneTagsRequest; - -AddPhoneTagsRequest::AddPhoneTagsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "AddPhoneTags") -{ - setMethod(HttpRequest::Method::Post); -} - -AddPhoneTagsRequest::~AddPhoneTagsRequest() -{} - -std::string AddPhoneTagsRequest::getRegionNameProvince()const -{ - return regionNameProvince_; -} - -void AddPhoneTagsRequest::setRegionNameProvince(const std::string& regionNameProvince) -{ - regionNameProvince_ = regionNameProvince; - setParameter("RegionNameProvince", regionNameProvince); -} - -int AddPhoneTagsRequest::getType()const -{ - return type_; -} - -void AddPhoneTagsRequest::setType(int type) -{ - type_ = type; - setParameter("Type", std::to_string(type)); -} - -std::string AddPhoneTagsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddPhoneTagsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int AddPhoneTagsRequest::getConcurrency()const -{ - return concurrency_; -} - -void AddPhoneTagsRequest::setConcurrency(int concurrency) -{ - concurrency_ = concurrency; - setParameter("Concurrency", std::to_string(concurrency)); -} - -std::string AddPhoneTagsRequest::getInstanceId()const -{ - return instanceId_; -} - -void AddPhoneTagsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string AddPhoneTagsRequest::getProvider()const -{ - return provider_; -} - -void AddPhoneTagsRequest::setProvider(const std::string& provider) -{ - provider_ = provider; - setParameter("Provider", provider); -} - -std::vector AddPhoneTagsRequest::getPhoneNumberList()const -{ - return phoneNumberList_; -} - -void AddPhoneTagsRequest::setPhoneNumberList(const std::vector& phoneNumberList) -{ - phoneNumberList_ = phoneNumberList; - for(int dep1 = 0; dep1!= phoneNumberList.size(); dep1++) { - setParameter("PhoneNumberList."+ std::to_string(dep1), phoneNumberList.at(dep1)); - } -} - -std::string AddPhoneTagsRequest::getServiceTag()const -{ - return serviceTag_; -} - -void AddPhoneTagsRequest::setServiceTag(const std::string& serviceTag) -{ - serviceTag_ = serviceTag; - setParameter("ServiceTag", serviceTag); -} - -std::string AddPhoneTagsRequest::getSipTag()const -{ - return sipTag_; -} - -void AddPhoneTagsRequest::setSipTag(const std::string& sipTag) -{ - sipTag_ = sipTag; - setParameter("SipTag", sipTag); -} - -std::string AddPhoneTagsRequest::getRegionNameCity()const -{ - return regionNameCity_; -} - -void AddPhoneTagsRequest::setRegionNameCity(const std::string& regionNameCity) -{ - regionNameCity_ = regionNameCity; - setParameter("RegionNameCity", regionNameCity); -} - diff --git a/ccc/src/model/AddPhoneTagsResult.cc b/ccc/src/model/AddPhoneTagsResult.cc deleted file mode 100644 index 56c38b513..000000000 --- a/ccc/src/model/AddPhoneTagsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -AddPhoneTagsResult::AddPhoneTagsResult() : - ServiceResult() -{} - -AddPhoneTagsResult::AddPhoneTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddPhoneTagsResult::~AddPhoneTagsResult() -{} - -void AddPhoneTagsResult::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 AddPhoneTagsResult::getMessage()const -{ - return message_; -} - -int AddPhoneTagsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string AddPhoneTagsResult::getCode()const -{ - return code_; -} - -bool AddPhoneTagsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/AnswerCallRequest.cc b/ccc/src/model/AnswerCallRequest.cc new file mode 100644 index 000000000..db3123b52 --- /dev/null +++ b/ccc/src/model/AnswerCallRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::AnswerCallRequest; + +AnswerCallRequest::AnswerCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AnswerCall") +{ + setMethod(HttpRequest::Method::Post); +} + +AnswerCallRequest::~AnswerCallRequest() +{} + +std::string AnswerCallRequest::getUserId()const +{ + return userId_; +} + +void AnswerCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string AnswerCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void AnswerCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string AnswerCallRequest::getJobId()const +{ + return jobId_; +} + +void AnswerCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string AnswerCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void AnswerCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/AnswerCallResult.cc b/ccc/src/model/AnswerCallResult.cc new file mode 100644 index 000000000..411e7c153 --- /dev/null +++ b/ccc/src/model/AnswerCallResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AnswerCallResult::AnswerCallResult() : + ServiceResult() +{} + +AnswerCallResult::AnswerCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AnswerCallResult::~AnswerCallResult() +{} + +void AnswerCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string AnswerCallResult::getMessage()const +{ + return message_; +} + +int AnswerCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector AnswerCallResult::getParams()const +{ + return params_; +} + +AnswerCallResult::Data AnswerCallResult::getData()const +{ + return data_; +} + +std::string AnswerCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/AssignJobsRequest.cc b/ccc/src/model/AssignJobsRequest.cc deleted file mode 100644 index 2d4c9fc5c..000000000 --- a/ccc/src/model/AssignJobsRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -AssignJobsRequest::~AssignJobsRequest() -{} - -std::string AssignJobsRequest::getGroupId()const -{ - return groupId_; -} - -void AssignJobsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::vector AssignJobsRequest::getJobsJson()const -{ - return jobsJson_; -} - -void AssignJobsRequest::setJobsJson(const std::vector& jobsJson) -{ - jobsJson_ = jobsJson; - for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) { - setParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1)); - } -} - -std::vector AssignJobsRequest::getCallingNumber()const -{ - return callingNumber_; -} - -void AssignJobsRequest::setCallingNumber(const std::vector& callingNumber) -{ - callingNumber_ = callingNumber; - for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) { - setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); - } -} - -std::string AssignJobsRequest::getInstanceId()const -{ - return instanceId_; -} - -void AssignJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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); -} - diff --git a/ccc/src/model/AssignJobsResult.cc b/ccc/src/model/AssignJobsResult.cc deleted file mode 100644 index 97072f89f..000000000 --- a/ccc/src/model/AssignJobsResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 2c3fdfafa..000000000 --- a/ccc/src/model/AssignUsersRequest.cc +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -AssignUsersRequest::~AssignUsersRequest() -{} - -std::vector AssignUsersRequest::getRoleId()const -{ - return roleId_; -} - -void AssignUsersRequest::setRoleId(const std::vector& roleId) -{ - roleId_ = roleId; - for(int dep1 = 0; dep1!= roleId.size(); dep1++) { - setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); - } -} - -std::string AssignUsersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AssignUsersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::vector AssignUsersRequest::getUserRamId()const -{ - return userRamId_; -} - -void AssignUsersRequest::setUserRamId(const std::vector& userRamId) -{ - userRamId_ = userRamId; - for(int dep1 = 0; dep1!= userRamId.size(); dep1++) { - setParameter("UserRamId."+ std::to_string(dep1), userRamId.at(dep1)); - } -} - -std::vector AssignUsersRequest::getSkillLevel()const -{ - return skillLevel_; -} - -void AssignUsersRequest::setSkillLevel(const std::vector& skillLevel) -{ - skillLevel_ = skillLevel; - for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { - setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); - } -} - -std::string AssignUsersRequest::getInstanceId()const -{ - return instanceId_; -} - -void AssignUsersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector AssignUsersRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void AssignUsersRequest::setSkillGroupId(const std::vector& skillGroupId) -{ - skillGroupId_ = skillGroupId; - for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } -} - diff --git a/ccc/src/model/AssignUsersResult.cc b/ccc/src/model/AssignUsersResult.cc deleted file mode 100644 index eb6c57c0e..000000000 --- a/ccc/src/model/AssignUsersResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/BargeInCallRequest.cc b/ccc/src/model/BargeInCallRequest.cc new file mode 100644 index 000000000..08cde1672 --- /dev/null +++ b/ccc/src/model/BargeInCallRequest.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::BargeInCallRequest; + +BargeInCallRequest::BargeInCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "BargeInCall") +{ + setMethod(HttpRequest::Method::Post); +} + +BargeInCallRequest::~BargeInCallRequest() +{} + +std::string BargeInCallRequest::getUserId()const +{ + return userId_; +} + +void BargeInCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string BargeInCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void BargeInCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string BargeInCallRequest::getBargedUserId()const +{ + return bargedUserId_; +} + +void BargeInCallRequest::setBargedUserId(const std::string& bargedUserId) +{ + bargedUserId_ = bargedUserId; + setParameter("BargedUserId", bargedUserId); +} + +std::string BargeInCallRequest::getJobId()const +{ + return jobId_; +} + +void BargeInCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +int BargeInCallRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void BargeInCallRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); +} + +std::string BargeInCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void BargeInCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/BargeInCallResult.cc b/ccc/src/model/BargeInCallResult.cc new file mode 100644 index 000000000..e666fe0b5 --- /dev/null +++ b/ccc/src/model/BargeInCallResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +BargeInCallResult::BargeInCallResult() : + ServiceResult() +{} + +BargeInCallResult::BargeInCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BargeInCallResult::~BargeInCallResult() +{} + +void BargeInCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string BargeInCallResult::getMessage()const +{ + return message_; +} + +int BargeInCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector BargeInCallResult::getParams()const +{ + return params_; +} + +BargeInCallResult::Data BargeInCallResult::getData()const +{ + return data_; +} + +std::string BargeInCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/BlindTransferRequest.cc b/ccc/src/model/BlindTransferRequest.cc new file mode 100644 index 000000000..4177bcff5 --- /dev/null +++ b/ccc/src/model/BlindTransferRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::BlindTransferRequest; + +BlindTransferRequest::BlindTransferRequest() : + RpcServiceRequest("ccc", "2020-07-01", "BlindTransfer") +{ + setMethod(HttpRequest::Method::Post); +} + +BlindTransferRequest::~BlindTransferRequest() +{} + +std::string BlindTransferRequest::getTransferee()const +{ + return transferee_; +} + +void BlindTransferRequest::setTransferee(const std::string& transferee) +{ + transferee_ = transferee; + setParameter("Transferee", transferee); +} + +std::string BlindTransferRequest::getTransferor()const +{ + return transferor_; +} + +void BlindTransferRequest::setTransferor(const std::string& transferor) +{ + transferor_ = transferor; + setParameter("Transferor", transferor); +} + +std::string BlindTransferRequest::getUserId()const +{ + return userId_; +} + +void BlindTransferRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string BlindTransferRequest::getDeviceId()const +{ + return deviceId_; +} + +void BlindTransferRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +int BlindTransferRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void BlindTransferRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); +} + +std::string BlindTransferRequest::getJobId()const +{ + return jobId_; +} + +void BlindTransferRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string BlindTransferRequest::getInstanceId()const +{ + return instanceId_; +} + +void BlindTransferRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/BlindTransferResult.cc b/ccc/src/model/BlindTransferResult.cc new file mode 100644 index 000000000..7be26e68d --- /dev/null +++ b/ccc/src/model/BlindTransferResult.cc @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +BlindTransferResult::BlindTransferResult() : + ServiceResult() +{} + +BlindTransferResult::BlindTransferResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BlindTransferResult::~BlindTransferResult() +{} + +void BlindTransferResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string BlindTransferResult::getMessage()const +{ + return message_; +} + +int BlindTransferResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector BlindTransferResult::getParams()const +{ + return params_; +} + +BlindTransferResult::Data BlindTransferResult::getData()const +{ + return data_; +} + +std::string BlindTransferResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CallOnlinePrivacyNumberRequest.cc b/ccc/src/model/CallOnlinePrivacyNumberRequest.cc deleted file mode 100644 index 70c65a04d..000000000 --- a/ccc/src/model/CallOnlinePrivacyNumberRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CallOnlinePrivacyNumberRequest; - -CallOnlinePrivacyNumberRequest::CallOnlinePrivacyNumberRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CallOnlinePrivacyNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -CallOnlinePrivacyNumberRequest::~CallOnlinePrivacyNumberRequest() -{} - -std::string CallOnlinePrivacyNumberRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CallOnlinePrivacyNumberRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CallOnlinePrivacyNumberRequest::getTelA()const -{ - return telA_; -} - -void CallOnlinePrivacyNumberRequest::setTelA(const std::string& telA) -{ - telA_ = telA; - setParameter("TelA", telA); -} - -std::string CallOnlinePrivacyNumberRequest::getTelB()const -{ - return telB_; -} - -void CallOnlinePrivacyNumberRequest::setTelB(const std::string& telB) -{ - telB_ = telB; - setParameter("TelB", telB); -} - -std::string CallOnlinePrivacyNumberRequest::getInstanceId()const -{ - return instanceId_; -} - -void CallOnlinePrivacyNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/CallOnlinePrivacyNumberResult.cc b/ccc/src/model/CallOnlinePrivacyNumberResult.cc deleted file mode 100644 index b73d77cd8..000000000 --- a/ccc/src/model/CallOnlinePrivacyNumberResult.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult() : - ServiceResult() -{} - -CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CallOnlinePrivacyNumberResult::~CallOnlinePrivacyNumberResult() -{} - -void CallOnlinePrivacyNumberResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["StatusCode"].isNull()) - data_.statusCode = dataNode["StatusCode"].asString(); - if(!dataNode["DateCreated"].isNull()) - data_.dateCreated = dataNode["DateCreated"].asString(); - if(!dataNode["Represent"].isNull()) - data_.represent = dataNode["Represent"].asString(); - if(!dataNode["TelX"].isNull()) - data_.telX = dataNode["TelX"].asString(); - if(!dataNode["CallId"].isNull()) - data_.callId = dataNode["CallId"].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 CallOnlinePrivacyNumberResult::getMessage()const -{ - return message_; -} - -int CallOnlinePrivacyNumberResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -CallOnlinePrivacyNumberResult::Data CallOnlinePrivacyNumberResult::getData()const -{ - return data_; -} - -std::string CallOnlinePrivacyNumberResult::getCode()const -{ - return code_; -} - -bool CallOnlinePrivacyNumberResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/CancelAttendedTransferRequest.cc b/ccc/src/model/CancelAttendedTransferRequest.cc new file mode 100644 index 000000000..580fded28 --- /dev/null +++ b/ccc/src/model/CancelAttendedTransferRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::CancelAttendedTransferRequest; + +CancelAttendedTransferRequest::CancelAttendedTransferRequest() : + RpcServiceRequest("ccc", "2020-07-01", "CancelAttendedTransfer") +{ + setMethod(HttpRequest::Method::Post); +} + +CancelAttendedTransferRequest::~CancelAttendedTransferRequest() +{} + +std::string CancelAttendedTransferRequest::getUserId()const +{ + return userId_; +} + +void CancelAttendedTransferRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string CancelAttendedTransferRequest::getDeviceId()const +{ + return deviceId_; +} + +void CancelAttendedTransferRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string CancelAttendedTransferRequest::getJobId()const +{ + return jobId_; +} + +void CancelAttendedTransferRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string CancelAttendedTransferRequest::getInstanceId()const +{ + return instanceId_; +} + +void CancelAttendedTransferRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/CancelAttendedTransferResult.cc b/ccc/src/model/CancelAttendedTransferResult.cc new file mode 100644 index 000000000..9e095b315 --- /dev/null +++ b/ccc/src/model/CancelAttendedTransferResult.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +CancelAttendedTransferResult::CancelAttendedTransferResult() : + ServiceResult() +{} + +CancelAttendedTransferResult::CancelAttendedTransferResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelAttendedTransferResult::~CancelAttendedTransferResult() +{} + +void CancelAttendedTransferResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CancelAttendedTransferResult::getMessage()const +{ + return message_; +} + +int CancelAttendedTransferResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector CancelAttendedTransferResult::getParams()const +{ + return params_; +} + +CancelAttendedTransferResult::Data CancelAttendedTransferResult::getData()const +{ + return data_; +} + +std::string CancelAttendedTransferResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CancelJobsRequest.cc b/ccc/src/model/CancelJobsRequest.cc deleted file mode 100644 index aec738df3..000000000 --- a/ccc/src/model/CancelJobsRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelJobsRequest::~CancelJobsRequest() -{} - -bool CancelJobsRequest::getAll()const -{ - return all_; -} - -void CancelJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); -} - -std::vector CancelJobsRequest::getJobReferenceId()const -{ - return jobReferenceId_; -} - -void CancelJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) -{ - jobReferenceId_ = jobReferenceId; - for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) { - setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1)); - } -} - -std::string CancelJobsRequest::getGroupId()const -{ - return groupId_; -} - -void CancelJobsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::vector CancelJobsRequest::getJobId()const -{ - return jobId_; -} - -void CancelJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } -} - -std::string CancelJobsRequest::getInstanceId()const -{ - return instanceId_; -} - -void CancelJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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 deleted file mode 100644 index 3e006ac90..000000000 --- a/ccc/src/model/CancelJobsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ChangeWorkModeRequest.cc b/ccc/src/model/ChangeWorkModeRequest.cc new file mode 100644 index 000000000..1ea753495 --- /dev/null +++ b/ccc/src/model/ChangeWorkModeRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ChangeWorkModeRequest; + +ChangeWorkModeRequest::ChangeWorkModeRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ChangeWorkMode") +{ + setMethod(HttpRequest::Method::Post); +} + +ChangeWorkModeRequest::~ChangeWorkModeRequest() +{} + +std::string ChangeWorkModeRequest::getWorkMode()const +{ + return workMode_; +} + +void ChangeWorkModeRequest::setWorkMode(const std::string& workMode) +{ + workMode_ = workMode; + setParameter("WorkMode", workMode); +} + +std::string ChangeWorkModeRequest::getUserId()const +{ + return userId_; +} + +void ChangeWorkModeRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ChangeWorkModeRequest::getDeviceId()const +{ + return deviceId_; +} + +void ChangeWorkModeRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string ChangeWorkModeRequest::getInstanceId()const +{ + return instanceId_; +} + +void ChangeWorkModeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/ChangeWorkModeResult.cc b/ccc/src/model/ChangeWorkModeResult.cc new file mode 100644 index 000000000..e52c6119d --- /dev/null +++ b/ccc/src/model/ChangeWorkModeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ChangeWorkModeResult::ChangeWorkModeResult() : + ServiceResult() +{} + +ChangeWorkModeResult::ChangeWorkModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeWorkModeResult::~ChangeWorkModeResult() +{} + +void ChangeWorkModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BreakCode"].isNull()) + data_.breakCode = dataNode["BreakCode"].asString(); + if(!dataNode["DeviceId"].isNull()) + data_.deviceId = dataNode["DeviceId"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["OutboundScenario"].isNull()) + data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true"; + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["UserState"].isNull()) + data_.userState = dataNode["UserState"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = dataNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ChangeWorkModeResult::getMessage()const +{ + return message_; +} + +int ChangeWorkModeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ChangeWorkModeResult::getParams()const +{ + return params_; +} + +ChangeWorkModeResult::Data ChangeWorkModeResult::getData()const +{ + return data_; +} + +std::string ChangeWorkModeResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CheckNumberAvaliableRequest.cc b/ccc/src/model/CheckNumberAvaliableRequest.cc deleted file mode 100644 index 69fac5852..000000000 --- a/ccc/src/model/CheckNumberAvaliableRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CheckNumberAvaliableRequest; - -CheckNumberAvaliableRequest::CheckNumberAvaliableRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CheckNumberAvaliable") -{ - setMethod(HttpRequest::Method::Post); -} - -CheckNumberAvaliableRequest::~CheckNumberAvaliableRequest() -{} - -std::string CheckNumberAvaliableRequest::getCaller()const -{ - return caller_; -} - -void CheckNumberAvaliableRequest::setCaller(const std::string& caller) -{ - caller_ = caller; - setParameter("Caller", caller); -} - -std::string CheckNumberAvaliableRequest::getInstanceId()const -{ - return instanceId_; -} - -void CheckNumberAvaliableRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string CheckNumberAvaliableRequest::getCallee()const -{ - return callee_; -} - -void CheckNumberAvaliableRequest::setCallee(const std::string& callee) -{ - callee_ = callee; - setParameter("Callee", callee); -} - -std::string CheckNumberAvaliableRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CheckNumberAvaliableRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/CheckNumberAvaliableResult.cc b/ccc/src/model/CheckNumberAvaliableResult.cc deleted file mode 100644 index 63cf6a6c2..000000000 --- a/ccc/src/model/CheckNumberAvaliableResult.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CheckNumberAvaliableResult::CheckNumberAvaliableResult() : - ServiceResult() -{} - -CheckNumberAvaliableResult::CheckNumberAvaliableResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CheckNumberAvaliableResult::~CheckNumberAvaliableResult() -{} - -void CheckNumberAvaliableResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto callerAvaliableNode = value["CallerAvaliable"]; - if(!callerAvaliableNode["Avaliable"].isNull()) - callerAvaliable_.avaliable = callerAvaliableNode["Avaliable"].asString() == "true"; - if(!callerAvaliableNode["Reason"].isNull()) - callerAvaliable_.reason = callerAvaliableNode["Reason"].asString(); - auto calleeAvaliableNode = value["CalleeAvaliable"]; - if(!calleeAvaliableNode["Avaliable"].isNull()) - calleeAvaliable_.avaliable = calleeAvaliableNode["Avaliable"].asString() == "true"; - if(!calleeAvaliableNode["Reason"].isNull()) - calleeAvaliable_.reason = calleeAvaliableNode["Reason"].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 CheckNumberAvaliableResult::getMessage()const -{ - return message_; -} - -int CheckNumberAvaliableResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -CheckNumberAvaliableResult::CallerAvaliable CheckNumberAvaliableResult::getCallerAvaliable()const -{ - return callerAvaliable_; -} - -std::string CheckNumberAvaliableResult::getCode()const -{ - return code_; -} - -bool CheckNumberAvaliableResult::getSuccess()const -{ - return success_; -} - -CheckNumberAvaliableResult::CalleeAvaliable CheckNumberAvaliableResult::getCalleeAvaliable()const -{ - return calleeAvaliable_; -} - diff --git a/ccc/src/model/CommitContactFlowVersionModificationRequest.cc b/ccc/src/model/CommitContactFlowVersionModificationRequest.cc deleted file mode 100644 index a361fbbb8..000000000 --- a/ccc/src/model/CommitContactFlowVersionModificationRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CommitContactFlowVersionModificationRequest; - -CommitContactFlowVersionModificationRequest::CommitContactFlowVersionModificationRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CommitContactFlowVersionModification") -{ - setMethod(HttpRequest::Method::Post); -} - -CommitContactFlowVersionModificationRequest::~CommitContactFlowVersionModificationRequest() -{} - -std::string CommitContactFlowVersionModificationRequest::getCanvas()const -{ - return canvas_; -} - -void CommitContactFlowVersionModificationRequest::setCanvas(const std::string& canvas) -{ - canvas_ = canvas; - setBodyParameter("Canvas", canvas); -} - -std::string CommitContactFlowVersionModificationRequest::getContent()const -{ - return content_; -} - -void CommitContactFlowVersionModificationRequest::setContent(const std::string& content) -{ - content_ = content; - setBodyParameter("Content", content); -} - -std::string CommitContactFlowVersionModificationRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CommitContactFlowVersionModificationRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CommitContactFlowVersionModificationRequest::getInstanceId()const -{ - return instanceId_; -} - -void CommitContactFlowVersionModificationRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string CommitContactFlowVersionModificationRequest::getContactFlowVersionId()const -{ - return contactFlowVersionId_; -} - -void CommitContactFlowVersionModificationRequest::setContactFlowVersionId(const std::string& contactFlowVersionId) -{ - contactFlowVersionId_ = contactFlowVersionId; - setParameter("ContactFlowVersionId", contactFlowVersionId); -} - diff --git a/ccc/src/model/CommitContactFlowVersionModificationResult.cc b/ccc/src/model/CommitContactFlowVersionModificationResult.cc deleted file mode 100644 index 64c87016c..000000000 --- a/ccc/src/model/CommitContactFlowVersionModificationResult.cc +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CommitContactFlowVersionModificationResult::CommitContactFlowVersionModificationResult() : - ServiceResult() -{} - -CommitContactFlowVersionModificationResult::CommitContactFlowVersionModificationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CommitContactFlowVersionModificationResult::~CommitContactFlowVersionModificationResult() -{} - -void CommitContactFlowVersionModificationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto contactFlowVersionNode = value["ContactFlowVersion"]; - if(!contactFlowVersionNode["ContactFlowVersionId"].isNull()) - contactFlowVersion_.contactFlowVersionId = contactFlowVersionNode["ContactFlowVersionId"].asString(); - if(!contactFlowVersionNode["Version"].isNull()) - contactFlowVersion_.version = contactFlowVersionNode["Version"].asString(); - if(!contactFlowVersionNode["ContactFlowVersionDescription"].isNull()) - contactFlowVersion_.contactFlowVersionDescription = contactFlowVersionNode["ContactFlowVersionDescription"].asString(); - if(!contactFlowVersionNode["Canvas"].isNull()) - contactFlowVersion_.canvas = contactFlowVersionNode["Canvas"].asString(); - if(!contactFlowVersionNode["Content"].isNull()) - contactFlowVersion_.content = contactFlowVersionNode["Content"].asString(); - if(!contactFlowVersionNode["LastModified"].isNull()) - contactFlowVersion_.lastModified = contactFlowVersionNode["LastModified"].asString(); - if(!contactFlowVersionNode["LastModifiedBy"].isNull()) - contactFlowVersion_.lastModifiedBy = contactFlowVersionNode["LastModifiedBy"].asString(); - if(!contactFlowVersionNode["LockedBy"].isNull()) - contactFlowVersion_.lockedBy = contactFlowVersionNode["LockedBy"].asString(); - if(!contactFlowVersionNode["Status"].isNull()) - contactFlowVersion_.status = contactFlowVersionNode["Status"].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 CommitContactFlowVersionModificationResult::getMessage()const -{ - return message_; -} - -CommitContactFlowVersionModificationResult::ContactFlowVersion CommitContactFlowVersionModificationResult::getContactFlowVersion()const -{ - return contactFlowVersion_; -} - -int CommitContactFlowVersionModificationResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CommitContactFlowVersionModificationResult::getCode()const -{ - return code_; -} - -bool CommitContactFlowVersionModificationResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/CompleteAttendedTransferRequest.cc b/ccc/src/model/CompleteAttendedTransferRequest.cc new file mode 100644 index 000000000..97dda9ec5 --- /dev/null +++ b/ccc/src/model/CompleteAttendedTransferRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::CompleteAttendedTransferRequest; + +CompleteAttendedTransferRequest::CompleteAttendedTransferRequest() : + RpcServiceRequest("ccc", "2020-07-01", "CompleteAttendedTransfer") +{ + setMethod(HttpRequest::Method::Post); +} + +CompleteAttendedTransferRequest::~CompleteAttendedTransferRequest() +{} + +std::string CompleteAttendedTransferRequest::getUserId()const +{ + return userId_; +} + +void CompleteAttendedTransferRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string CompleteAttendedTransferRequest::getDeviceId()const +{ + return deviceId_; +} + +void CompleteAttendedTransferRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string CompleteAttendedTransferRequest::getJobId()const +{ + return jobId_; +} + +void CompleteAttendedTransferRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string CompleteAttendedTransferRequest::getInstanceId()const +{ + return instanceId_; +} + +void CompleteAttendedTransferRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/CompleteAttendedTransferResult.cc b/ccc/src/model/CompleteAttendedTransferResult.cc new file mode 100644 index 000000000..b51423313 --- /dev/null +++ b/ccc/src/model/CompleteAttendedTransferResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +CompleteAttendedTransferResult::CompleteAttendedTransferResult() : + ServiceResult() +{} + +CompleteAttendedTransferResult::CompleteAttendedTransferResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CompleteAttendedTransferResult::~CompleteAttendedTransferResult() +{} + +void CompleteAttendedTransferResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CompleteAttendedTransferResult::getMessage()const +{ + return message_; +} + +int CompleteAttendedTransferResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector CompleteAttendedTransferResult::getParams()const +{ + return params_; +} + +CompleteAttendedTransferResult::Data CompleteAttendedTransferResult::getData()const +{ + return data_; +} + +std::string CompleteAttendedTransferResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CreateBatchJobsRequest.cc b/ccc/src/model/CreateBatchJobsRequest.cc deleted file mode 100644 index a8430042c..000000000 --- a/ccc/src/model/CreateBatchJobsRequest.cc +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBatchJobsRequest::~CreateBatchJobsRequest() -{} - -std::string CreateBatchJobsRequest::getDescription()const -{ - return description_; -} - -void CreateBatchJobsRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string CreateBatchJobsRequest::getJobFilePath()const -{ - return jobFilePath_; -} - -void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath) -{ - jobFilePath_ = jobFilePath; - setParameter("JobFilePath", jobFilePath); -} - -std::vector CreateBatchJobsRequest::getCallingNumber()const -{ - return callingNumber_; -} - -void CreateBatchJobsRequest::setCallingNumber(const std::vector& callingNumber) -{ - callingNumber_ = callingNumber; - for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) { - setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); - } -} - -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", submitted ? "true" : "false"); -} - -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::getScenarioId()const -{ - return scenarioId_; -} - -void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); -} - diff --git a/ccc/src/model/CreateBatchJobsResult.cc b/ccc/src/model/CreateBatchJobsResult.cc deleted file mode 100644 index d1fc98d54..000000000 --- a/ccc/src/model/CreateBatchJobsResult.cc +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - JobGroup::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) - timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["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/CreateCabInstanceRequest.cc b/ccc/src/model/CreateCabInstanceRequest.cc deleted file mode 100644 index 27acfeb00..000000000 --- a/ccc/src/model/CreateCabInstanceRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CreateCabInstanceRequest; - -CreateCabInstanceRequest::CreateCabInstanceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreateCabInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCabInstanceRequest::~CreateCabInstanceRequest() -{} - -int CreateCabInstanceRequest::getMaxConcurrentConversation()const -{ - return maxConcurrentConversation_; -} - -void CreateCabInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) -{ - maxConcurrentConversation_ = maxConcurrentConversation; - setParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation)); -} - -std::string CreateCabInstanceRequest::getInstanceName()const -{ - return instanceName_; -} - -void CreateCabInstanceRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); -} - -std::string CreateCabInstanceRequest::getCallCenterInstanceId()const -{ - return callCenterInstanceId_; -} - -void CreateCabInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId) -{ - callCenterInstanceId_ = callCenterInstanceId; - setParameter("CallCenterInstanceId", callCenterInstanceId); -} - -std::string CreateCabInstanceRequest::getInstanceDescription()const -{ - return instanceDescription_; -} - -void CreateCabInstanceRequest::setInstanceDescription(const std::string& instanceDescription) -{ - instanceDescription_ = instanceDescription; - setParameter("InstanceDescription", instanceDescription); -} - diff --git a/ccc/src/model/CreateCabInstanceResult.cc b/ccc/src/model/CreateCabInstanceResult.cc deleted file mode 100644 index 60d302ba4..000000000 --- a/ccc/src/model/CreateCabInstanceResult.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CreateCabInstanceResult::CreateCabInstanceResult() : - ServiceResult() -{} - -CreateCabInstanceResult::CreateCabInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateCabInstanceResult::~CreateCabInstanceResult() -{} - -void CreateCabInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto instanceNode = value["Instance"]; - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["InstanceName"].isNull()) - instance_.instanceName = instanceNode["InstanceName"].asString(); - if(!instanceNode["InstanceDescription"].isNull()) - instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); - if(!instanceNode["MaxConcurrentConversation"].isNull()) - instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); - if(!instanceNode["Owner"].isNull()) - instance_.owner = instanceNode["Owner"].asString(); - if(!instanceNode["CreationTime"].isNull()) - instance_.creationTime = std::stol(instanceNode["CreationTime"].asString()); - if(!instanceNode["CallCenterInstanceId"].isNull()) - instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].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 CreateCabInstanceResult::getMessage()const -{ - return message_; -} - -CreateCabInstanceResult::Instance CreateCabInstanceResult::getInstance()const -{ - return instance_; -} - -int CreateCabInstanceResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CreateCabInstanceResult::getCode()const -{ - return code_; -} - -bool CreateCabInstanceResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/CreateContactFlowRequest.cc b/ccc/src/model/CreateContactFlowRequest.cc deleted file mode 100644 index b0bd1ed78..000000000 --- a/ccc/src/model/CreateContactFlowRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CreateContactFlowRequest; - -CreateContactFlowRequest::CreateContactFlowRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreateContactFlow") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateContactFlowRequest::~CreateContactFlowRequest() -{} - -std::string CreateContactFlowRequest::getCanvas()const -{ - return canvas_; -} - -void CreateContactFlowRequest::setCanvas(const std::string& canvas) -{ - canvas_ = canvas; - setBodyParameter("Canvas", canvas); -} - -std::string CreateContactFlowRequest::getDescription()const -{ - return description_; -} - -void CreateContactFlowRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string CreateContactFlowRequest::getType()const -{ - return type_; -} - -void CreateContactFlowRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); -} - -std::string CreateContactFlowRequest::getContent()const -{ - return content_; -} - -void CreateContactFlowRequest::setContent(const std::string& content) -{ - content_ = content; - setBodyParameter("Content", content); -} - -std::string CreateContactFlowRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateContactFlowRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CreateContactFlowRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreateContactFlowRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string CreateContactFlowRequest::getName()const -{ - return name_; -} - -void CreateContactFlowRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ccc/src/model/CreateContactFlowResult.cc b/ccc/src/model/CreateContactFlowResult.cc deleted file mode 100644 index 50bc167a5..000000000 --- a/ccc/src/model/CreateContactFlowResult.cc +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CreateContactFlowResult::CreateContactFlowResult() : - ServiceResult() -{} - -CreateContactFlowResult::CreateContactFlowResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateContactFlowResult::~CreateContactFlowResult() -{} - -void CreateContactFlowResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto contactFlowNode = value["ContactFlow"]; - if(!contactFlowNode["ContactFlowId"].isNull()) - contactFlow_.contactFlowId = contactFlowNode["ContactFlowId"].asString(); - if(!contactFlowNode["InstanceId"].isNull()) - contactFlow_.instanceId = contactFlowNode["InstanceId"].asString(); - if(!contactFlowNode["ContactFlowName"].isNull()) - contactFlow_.contactFlowName = contactFlowNode["ContactFlowName"].asString(); - if(!contactFlowNode["ContactFlowDescription"].isNull()) - contactFlow_.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); - if(!contactFlowNode["Type"].isNull()) - contactFlow_.type = contactFlowNode["Type"].asString(); - if(!contactFlowNode["AppliedVersion"].isNull()) - contactFlow_.appliedVersion = contactFlowNode["AppliedVersion"].asString(); - auto allVersionsNode = contactFlowNode["Versions"]["ContactFlowVersion"]; - for (auto contactFlowNodeVersionsContactFlowVersion : allVersionsNode) - { - ContactFlow::ContactFlowVersion contactFlowVersionObject; - if(!contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionId"].isNull()) - contactFlowVersionObject.contactFlowVersionId = contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionId"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["Version"].isNull()) - contactFlowVersionObject.version = contactFlowNodeVersionsContactFlowVersion["Version"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionDescription"].isNull()) - contactFlowVersionObject.contactFlowVersionDescription = contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionDescription"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["Canvas"].isNull()) - contactFlowVersionObject.canvas = contactFlowNodeVersionsContactFlowVersion["Canvas"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["Content"].isNull()) - contactFlowVersionObject.content = contactFlowNodeVersionsContactFlowVersion["Content"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["LastModified"].isNull()) - contactFlowVersionObject.lastModified = contactFlowNodeVersionsContactFlowVersion["LastModified"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["LastModifiedBy"].isNull()) - contactFlowVersionObject.lastModifiedBy = contactFlowNodeVersionsContactFlowVersion["LastModifiedBy"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["LockedBy"].isNull()) - contactFlowVersionObject.lockedBy = contactFlowNodeVersionsContactFlowVersion["LockedBy"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["Status"].isNull()) - contactFlowVersionObject.status = contactFlowNodeVersionsContactFlowVersion["Status"].asString(); - contactFlow_.versions.push_back(contactFlowVersionObject); - } - auto allPhoneNumbersNode = contactFlowNode["PhoneNumbers"]["PhoneNumber"]; - for (auto contactFlowNodePhoneNumbersPhoneNumber : allPhoneNumbersNode) - { - ContactFlow::PhoneNumber phoneNumberObject; - if(!contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumberObject.instanceId = contactFlowNodePhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumberObject.number = contactFlowNodePhoneNumbersPhoneNumber["Number"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["TestOnly"].isNull()) - phoneNumberObject.testOnly = contactFlowNodePhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!contactFlowNodePhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumberObject.remainingTime = std::stoi(contactFlowNodePhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!contactFlowNodePhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - phoneNumberObject.allowOutbound = contactFlowNodePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!contactFlowNodePhoneNumbersPhoneNumber["Usage"].isNull()) - phoneNumberObject.usage = contactFlowNodePhoneNumbersPhoneNumber["Usage"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumberObject.trunks = std::stoi(contactFlowNodePhoneNumbersPhoneNumber["Trunks"].asString()); - contactFlow_.phoneNumbers.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()); - -} - -std::string CreateContactFlowResult::getMessage()const -{ - return message_; -} - -int CreateContactFlowResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -CreateContactFlowResult::ContactFlow CreateContactFlowResult::getContactFlow()const -{ - return contactFlow_; -} - -std::string CreateContactFlowResult::getCode()const -{ - return code_; -} - -bool CreateContactFlowResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/CreateFaultRequest.cc b/ccc/src/model/CreateFaultRequest.cc deleted file mode 100644 index dd810ff10..000000000 --- a/ccc/src/model/CreateFaultRequest.cc +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CreateFaultRequest; - -CreateFaultRequest::CreateFaultRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreateFault") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateFaultRequest::~CreateFaultRequest() -{} - -std::string CreateFaultRequest::getAgentOssFileName()const -{ - return agentOssFileName_; -} - -void CreateFaultRequest::setAgentOssFileName(const std::string& agentOssFileName) -{ - agentOssFileName_ = agentOssFileName; - setParameter("AgentOssFileName", agentOssFileName); -} - -std::string CreateFaultRequest::getDescription()const -{ - return description_; -} - -void CreateFaultRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string CreateFaultRequest::getOperatingSystemVersion()const -{ - return operatingSystemVersion_; -} - -void CreateFaultRequest::setOperatingSystemVersion(const std::string& operatingSystemVersion) -{ - operatingSystemVersion_ = operatingSystemVersion; - setParameter("OperatingSystemVersion", operatingSystemVersion); -} - -long CreateFaultRequest::getStartTime()const -{ - return startTime_; -} - -void CreateFaultRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -std::string CreateFaultRequest::getMicrophoneList()const -{ - return microphoneList_; -} - -void CreateFaultRequest::setMicrophoneList(const std::string& microphoneList) -{ - microphoneList_ = microphoneList; - setParameter("MicrophoneList", microphoneList); -} - -std::string CreateFaultRequest::getClientPort()const -{ - return clientPort_; -} - -void CreateFaultRequest::setClientPort(const std::string& clientPort) -{ - clientPort_ = clientPort; - setParameter("ClientPort", clientPort); -} - -std::string CreateFaultRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateFaultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CreateFaultRequest::getCustomFilePath()const -{ - return customFilePath_; -} - -void CreateFaultRequest::setCustomFilePath(const std::string& customFilePath) -{ - customFilePath_ = customFilePath; - setParameter("CustomFilePath", customFilePath); -} - -std::string CreateFaultRequest::getClientIp()const -{ - return clientIp_; -} - -void CreateFaultRequest::setClientIp(const std::string& clientIp) -{ - clientIp_ = clientIp; - setParameter("ClientIp", clientIp); -} - -std::string CreateFaultRequest::getSpeakerList()const -{ - return speakerList_; -} - -void CreateFaultRequest::setSpeakerList(const std::string& speakerList) -{ - speakerList_ = speakerList; - setParameter("SpeakerList", speakerList); -} - -long CreateFaultRequest::getAgentId()const -{ - return agentId_; -} - -void CreateFaultRequest::setAgentId(long agentId) -{ - agentId_ = agentId; - setParameter("AgentId", std::to_string(agentId)); -} - -long CreateFaultRequest::getEndTime()const -{ - return endTime_; -} - -void CreateFaultRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); -} - -std::string CreateFaultRequest::getSpeakerEquipment()const -{ - return speakerEquipment_; -} - -void CreateFaultRequest::setSpeakerEquipment(const std::string& speakerEquipment) -{ - speakerEquipment_ = speakerEquipment; - setParameter("SpeakerEquipment", speakerEquipment); -} - -std::string CreateFaultRequest::getServicePort()const -{ - return servicePort_; -} - -void CreateFaultRequest::setServicePort(const std::string& servicePort) -{ - servicePort_ = servicePort; - setParameter("ServicePort", servicePort); -} - -std::string CreateFaultRequest::getServiceIp()const -{ - return serviceIp_; -} - -void CreateFaultRequest::setServiceIp(const std::string& serviceIp) -{ - serviceIp_ = serviceIp; - setParameter("ServiceIp", serviceIp); -} - -std::string CreateFaultRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreateFaultRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string CreateFaultRequest::getAgentFilePath()const -{ - return agentFilePath_; -} - -void CreateFaultRequest::setAgentFilePath(const std::string& agentFilePath) -{ - agentFilePath_ = agentFilePath; - setParameter("AgentFilePath", agentFilePath); -} - -std::string CreateFaultRequest::getConnectId()const -{ - return connectId_; -} - -void CreateFaultRequest::setConnectId(const std::string& connectId) -{ - connectId_ = connectId; - setParameter("ConnectId", connectId); -} - -std::string CreateFaultRequest::getCustomOssFileName()const -{ - return customOssFileName_; -} - -void CreateFaultRequest::setCustomOssFileName(const std::string& customOssFileName) -{ - customOssFileName_ = customOssFileName; - setParameter("CustomOssFileName", customOssFileName); -} - -std::string CreateFaultRequest::getMicrophoneEquipment()const -{ - return microphoneEquipment_; -} - -void CreateFaultRequest::setMicrophoneEquipment(const std::string& microphoneEquipment) -{ - microphoneEquipment_ = microphoneEquipment; - setParameter("MicrophoneEquipment", microphoneEquipment); -} - -std::string CreateFaultRequest::getBrowserVersion()const -{ - return browserVersion_; -} - -void CreateFaultRequest::setBrowserVersion(const std::string& browserVersion) -{ - browserVersion_ = browserVersion; - setParameter("BrowserVersion", browserVersion); -} - diff --git a/ccc/src/model/CreateFaultResult.cc b/ccc/src/model/CreateFaultResult.cc deleted file mode 100644 index 940d90ed7..000000000 --- a/ccc/src/model/CreateFaultResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CreateFaultResult::CreateFaultResult() : - ServiceResult() -{} - -CreateFaultResult::CreateFaultResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateFaultResult::~CreateFaultResult() -{} - -void CreateFaultResult::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 CreateFaultResult::getMessage()const -{ - return message_; -} - -int CreateFaultResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CreateFaultResult::getCode()const -{ - return code_; -} - -bool CreateFaultResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/CreateInstanceRequest.cc b/ccc/src/model/CreateInstanceRequest.cc deleted file mode 100644 index a0f2cc354..000000000 --- a/ccc/src/model/CreateInstanceRequest.cc +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CreateInstanceRequest; - -CreateInstanceRequest::CreateInstanceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreateInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateInstanceRequest::~CreateInstanceRequest() -{} - -std::vector CreateInstanceRequest::getPhoneNumbers()const -{ - return phoneNumbers_; -} - -void CreateInstanceRequest::setPhoneNumbers(const std::vector& phoneNumbers) -{ - phoneNumbers_ = phoneNumbers; - for(int dep1 = 0; dep1!= phoneNumbers.size(); dep1++) { - setParameter("PhoneNumbers."+ std::to_string(dep1), phoneNumbers.at(dep1)); - } -} - -std::vector CreateInstanceRequest::getUserObject()const -{ - return userObject_; -} - -void CreateInstanceRequest::setUserObject(const std::vector& userObject) -{ - userObject_ = userObject; - for(int dep1 = 0; dep1!= userObject.size(); dep1++) { - setParameter("UserObject."+ std::to_string(dep1), userObject.at(dep1)); - } -} - -std::string CreateInstanceRequest::getDomainName()const -{ - return domainName_; -} - -void CreateInstanceRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); -} - -std::string CreateInstanceRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void CreateInstanceRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -std::string CreateInstanceRequest::getDescription()const -{ - return description_; -} - -void CreateInstanceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -int CreateInstanceRequest::getStorageMaxDays()const -{ - return storageMaxDays_; -} - -void CreateInstanceRequest::setStorageMaxDays(int storageMaxDays) -{ - storageMaxDays_ = storageMaxDays; - setParameter("StorageMaxDays", std::to_string(storageMaxDays)); -} - -std::vector CreateInstanceRequest::getAdminRamId()const -{ - return adminRamId_; -} - -void CreateInstanceRequest::setAdminRamId(const std::vector& adminRamId) -{ - adminRamId_ = adminRamId; - for(int dep1 = 0; dep1!= adminRamId.size(); dep1++) { - setParameter("AdminRamId."+ std::to_string(dep1), adminRamId.at(dep1)); - } -} - -std::string CreateInstanceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateInstanceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CreateInstanceRequest::getName()const -{ - return name_; -} - -void CreateInstanceRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -int CreateInstanceRequest::getStorageMaxSize()const -{ - return storageMaxSize_; -} - -void CreateInstanceRequest::setStorageMaxSize(int storageMaxSize) -{ - storageMaxSize_ = storageMaxSize; - setParameter("StorageMaxSize", std::to_string(storageMaxSize)); -} - -std::string CreateInstanceRequest::getDirectoryId()const -{ - return directoryId_; -} - -void CreateInstanceRequest::setDirectoryId(const std::string& directoryId) -{ - directoryId_ = directoryId; - setParameter("DirectoryId", directoryId); -} - diff --git a/ccc/src/model/CreateInstanceResult.cc b/ccc/src/model/CreateInstanceResult.cc deleted file mode 100644 index dca0e7180..000000000 --- a/ccc/src/model/CreateInstanceResult.cc +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CreateInstanceResult::CreateInstanceResult() : - ServiceResult() -{} - -CreateInstanceResult::CreateInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateInstanceResult::~CreateInstanceResult() -{} - -void CreateInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto instanceNode = value["Instance"]; - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["InstanceName"].isNull()) - instance_.instanceName = instanceNode["InstanceName"].asString(); - if(!instanceNode["InstanceDescription"].isNull()) - instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); - if(!instanceNode["DomainName"].isNull()) - instance_.domainName = instanceNode["DomainName"].asString(); - if(!instanceNode["ConsoleUrl"].isNull()) - instance_.consoleUrl = instanceNode["ConsoleUrl"].asString(); - if(!instanceNode["StorageBucket"].isNull()) - instance_.storageBucket = instanceNode["StorageBucket"].asString(); - if(!instanceNode["StorageMaxDays"].isNull()) - instance_.storageMaxDays = std::stoi(instanceNode["StorageMaxDays"].asString()); - if(!instanceNode["StorageMaxSize"].isNull()) - instance_.storageMaxSize = std::stoi(instanceNode["StorageMaxSize"].asString()); - if(!instanceNode["MaxOnlineAgents"].isNull()) - instance_.maxOnlineAgents = std::stoi(instanceNode["MaxOnlineAgents"].asString()); - if(!instanceNode["TenantId"].isNull()) - instance_.tenantId = instanceNode["TenantId"].asString(); - if(!instanceNode["Status"].isNull()) - instance_.status = instanceNode["Status"].asString(); - if(!instanceNode["DirectoryId"].isNull()) - instance_.directoryId = instanceNode["DirectoryId"].asString(); - if(!instanceNode["CreatedTime"].isNull()) - instance_.createdTime = std::stol(instanceNode["CreatedTime"].asString()); - if(!instanceNode["Owner"].isNull()) - instance_.owner = instanceNode["Owner"].asString(); - auto allAdminNode = instanceNode["Admin"]["User"]; - for (auto instanceNodeAdminUser : allAdminNode) - { - Instance::User userObject; - if(!instanceNodeAdminUser["UserId"].isNull()) - userObject.userId = instanceNodeAdminUser["UserId"].asString(); - if(!instanceNodeAdminUser["RamId"].isNull()) - userObject.ramId = instanceNodeAdminUser["RamId"].asString(); - if(!instanceNodeAdminUser["InstanceId"].isNull()) - userObject.instanceId = instanceNodeAdminUser["InstanceId"].asString(); - 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(); - instance_.admin.push_back(userObject); - } - auto allPhoneNumbersNode = instanceNode["PhoneNumbers"]["PhoneNumber"]; - for (auto instanceNodePhoneNumbersPhoneNumber : allPhoneNumbersNode) - { - Instance::PhoneNumber phoneNumberObject; - if(!instanceNodePhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = instanceNodePhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumberObject.instanceId = instanceNodePhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumberObject.number = instanceNodePhoneNumbersPhoneNumber["Number"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = instanceNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["TestOnly"].isNull()) - phoneNumberObject.testOnly = instanceNodePhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!instanceNodePhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumberObject.remainingTime = std::stoi(instanceNodePhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!instanceNodePhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - phoneNumberObject.allowOutbound = instanceNodePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!instanceNodePhoneNumbersPhoneNumber["Usage"].isNull()) - phoneNumberObject.usage = instanceNodePhoneNumbersPhoneNumber["Usage"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumberObject.trunks = std::stoi(instanceNodePhoneNumbersPhoneNumber["Trunks"].asString()); - instance_.phoneNumbers.push_back(phoneNumberObject); - } - auto allSuccessPhoneNumbers = instanceNode["SuccessPhoneNumbers"]["SuccessPhoneNumber"]; - for (auto value : allSuccessPhoneNumbers) - instance_.successPhoneNumbers.push_back(value.asString()); - auto allFailPhoneNumbers = instanceNode["FailPhoneNumbers"]["FailPhoneNumber"]; - for (auto value : allFailPhoneNumbers) - instance_.failPhoneNumbers.push_back(value.asString()); - auto allSuccessLoginNames = instanceNode["SuccessLoginNames"]["SuccessLoginName"]; - for (auto value : allSuccessLoginNames) - instance_.successLoginNames.push_back(value.asString()); - auto allFailLoginNames = instanceNode["FailLoginNames"]["FailLoginName"]; - for (auto value : allFailLoginNames) - instance_.failLoginNames.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 CreateInstanceResult::getMessage()const -{ - return message_; -} - -CreateInstanceResult::Instance CreateInstanceResult::getInstance()const -{ - return instance_; -} - -int CreateInstanceResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CreateInstanceResult::getCode()const -{ - return code_; -} - -bool CreateInstanceResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/CreateJobGroupRequest.cc b/ccc/src/model/CreateJobGroupRequest.cc deleted file mode 100644 index b2444c00b..000000000 --- a/ccc/src/model/CreateJobGroupRequest.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateJobGroupRequest::~CreateJobGroupRequest() -{} - -std::string CreateJobGroupRequest::getDescription()const -{ - return description_; -} - -void CreateJobGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::vector CreateJobGroupRequest::getCallingNumber()const -{ - return callingNumber_; -} - -void CreateJobGroupRequest::setCallingNumber(const std::vector& callingNumber) -{ - callingNumber_ = callingNumber; - for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) { - setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); - } -} - -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::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 deleted file mode 100644 index 87dfecc3f..000000000 --- a/ccc/src/model/CreateJobGroupResult.cc +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - JobGroup::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["From"].isNull()) - timeFrameObject.from = strategyNodeWorkingTimeTimeFrame["From"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["To"].isNull()) - timeFrameObject.to = strategyNodeWorkingTimeTimeFrame["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/CreateMediaRequest.cc b/ccc/src/model/CreateMediaRequest.cc deleted file mode 100644 index eaa9e89b1..000000000 --- a/ccc/src/model/CreateMediaRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CreateMediaRequest; - -CreateMediaRequest::CreateMediaRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreateMedia") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMediaRequest::~CreateMediaRequest() -{} - -std::string CreateMediaRequest::getDescription()const -{ - return description_; -} - -void CreateMediaRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string CreateMediaRequest::getOssFilePath()const -{ - return ossFilePath_; -} - -void CreateMediaRequest::setOssFilePath(const std::string& ossFilePath) -{ - ossFilePath_ = ossFilePath; - setParameter("OssFilePath", ossFilePath); -} - -std::string CreateMediaRequest::getUploadResult()const -{ - return uploadResult_; -} - -void CreateMediaRequest::setUploadResult(const std::string& uploadResult) -{ - uploadResult_ = uploadResult; - setParameter("UploadResult", uploadResult); -} - -std::string CreateMediaRequest::getType()const -{ - return type_; -} - -void CreateMediaRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); -} - -std::string CreateMediaRequest::getContent()const -{ - return content_; -} - -void CreateMediaRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); -} - -std::string CreateMediaRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateMediaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CreateMediaRequest::getOssFileName()const -{ - return ossFileName_; -} - -void CreateMediaRequest::setOssFileName(const std::string& ossFileName) -{ - ossFileName_ = ossFileName; - setParameter("OssFileName", ossFileName); -} - -std::string CreateMediaRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreateMediaRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string CreateMediaRequest::getFileName()const -{ - return fileName_; -} - -void CreateMediaRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); -} - -std::string CreateMediaRequest::getName()const -{ - return name_; -} - -void CreateMediaRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ccc/src/model/CreateMediaResult.cc b/ccc/src/model/CreateMediaResult.cc deleted file mode 100644 index 5f6bb1e52..000000000 --- a/ccc/src/model/CreateMediaResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CreateMediaResult::CreateMediaResult() : - ServiceResult() -{} - -CreateMediaResult::CreateMediaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateMediaResult::~CreateMediaResult() -{} - -void CreateMediaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto mediaUploadParamNode = value["MediaUploadParam"]; - if(!mediaUploadParamNode["Id"].isNull()) - mediaUploadParam_.id = mediaUploadParamNode["Id"].asString(); - if(!mediaUploadParamNode["Instance"].isNull()) - mediaUploadParam_.instance = mediaUploadParamNode["Instance"].asString(); - if(!mediaUploadParamNode["Name"].isNull()) - mediaUploadParam_.name = mediaUploadParamNode["Name"].asString(); - if(!mediaUploadParamNode["FileName"].isNull()) - mediaUploadParam_.fileName = mediaUploadParamNode["FileName"].asString(); - if(!mediaUploadParamNode["OssFileName"].isNull()) - mediaUploadParam_.ossFileName = mediaUploadParamNode["OssFileName"].asString(); - if(!mediaUploadParamNode["OssFilePath"].isNull()) - mediaUploadParam_.ossFilePath = mediaUploadParamNode["OssFilePath"].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()); - -} - -CreateMediaResult::MediaUploadParam CreateMediaResult::getMediaUploadParam()const -{ - return mediaUploadParam_; -} - -std::string CreateMediaResult::getMessage()const -{ - return message_; -} - -int CreateMediaResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CreateMediaResult::getCode()const -{ - return code_; -} - -bool CreateMediaResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/CreatePredictiveJobGroupRequest.cc b/ccc/src/model/CreatePredictiveJobGroupRequest.cc deleted file mode 100644 index 9df08c66a..000000000 --- a/ccc/src/model/CreatePredictiveJobGroupRequest.cc +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CreatePredictiveJobGroupRequest; - -CreatePredictiveJobGroupRequest::CreatePredictiveJobGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreatePredictiveJobGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePredictiveJobGroupRequest::~CreatePredictiveJobGroupRequest() -{} - -std::string CreatePredictiveJobGroupRequest::getDescription()const -{ - return description_; -} - -void CreatePredictiveJobGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -bool CreatePredictiveJobGroupRequest::getTimingSchedule()const -{ - return timingSchedule_; -} - -void CreatePredictiveJobGroupRequest::setTimingSchedule(bool timingSchedule) -{ - timingSchedule_ = timingSchedule; - setParameter("TimingSchedule", timingSchedule ? "true" : "false"); -} - -std::vector CreatePredictiveJobGroupRequest::getJobsJson()const -{ - return jobsJson_; -} - -void CreatePredictiveJobGroupRequest::setJobsJson(const std::vector& jobsJson) -{ - jobsJson_ = jobsJson; - for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) { - setBodyParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1)); - } -} - -std::string CreatePredictiveJobGroupRequest::getJobFilePath()const -{ - return jobFilePath_; -} - -void CreatePredictiveJobGroupRequest::setJobFilePath(const std::string& jobFilePath) -{ - jobFilePath_ = jobFilePath; - setParameter("JobFilePath", jobFilePath); -} - -std::string CreatePredictiveJobGroupRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreatePredictiveJobGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -bool CreatePredictiveJobGroupRequest::getIsDraft()const -{ - return isDraft_; -} - -void CreatePredictiveJobGroupRequest::setIsDraft(bool isDraft) -{ - isDraft_ = isDraft; - setParameter("IsDraft", isDraft ? "true" : "false"); -} - -std::string CreatePredictiveJobGroupRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void CreatePredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -std::string CreatePredictiveJobGroupRequest::getStrategyJson()const -{ - return strategyJson_; -} - -void CreatePredictiveJobGroupRequest::setStrategyJson(const std::string& strategyJson) -{ - strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); -} - -std::string CreatePredictiveJobGroupRequest::getName()const -{ - return name_; -} - -void CreatePredictiveJobGroupRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ccc/src/model/CreateScenarioFromTemplateRequest.cc b/ccc/src/model/CreateScenarioFromTemplateRequest.cc deleted file mode 100644 index 2dbab6052..000000000 --- a/ccc/src/model/CreateScenarioFromTemplateRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateScenarioFromTemplateRequest::~CreateScenarioFromTemplateRequest() -{} - -std::string CreateScenarioFromTemplateRequest::getVariables()const -{ - return variables_; -} - -void CreateScenarioFromTemplateRequest::setVariables(const std::string& variables) -{ - variables_ = variables; - setParameter("Variables", variables); -} - -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); -} - -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); -} - diff --git a/ccc/src/model/CreateScenarioFromTemplateResult.cc b/ccc/src/model/CreateScenarioFromTemplateResult.cc deleted file mode 100644 index 3b3d1bd4a..000000000 --- a/ccc/src/model/CreateScenarioFromTemplateResult.cc +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allSurveysNode = scenarioNode["Surveys"]["Survey"]; - for (auto scenarioNodeSurveysSurvey : allSurveysNode) - { - Scenario::Survey surveyObject; - if(!scenarioNodeSurveysSurvey["SurveyId"].isNull()) - surveyObject.surveyId = scenarioNodeSurveysSurvey["SurveyId"].asString(); - if(!scenarioNodeSurveysSurvey["SurveyName"].isNull()) - surveyObject.surveyName = scenarioNodeSurveysSurvey["SurveyName"].asString(); - if(!scenarioNodeSurveysSurvey["SurveyDescription"].isNull()) - surveyObject.surveyDescription = scenarioNodeSurveysSurvey["SurveyDescription"].asString(); - if(!scenarioNodeSurveysSurvey["Role"].isNull()) - surveyObject.role = scenarioNodeSurveysSurvey["Role"].asString(); - if(!scenarioNodeSurveysSurvey["Round"].isNull()) - surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString()); - if(!scenarioNodeSurveysSurvey["BeebotId"].isNull()) - surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString(); - auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"]; - for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode) - { - Scenario::Survey::IntentNode intentsObject; - if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull()) - intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString(); - if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull()) - intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString(); - surveyObject.intents.push_back(intentsObject); - } - scenario_.surveys.push_back(surveyObject); - } - auto allVariablesNode = scenarioNode["Variables"]["KeyValuePair"]; - for (auto scenarioNodeVariablesKeyValuePair : allVariablesNode) - { - Scenario::KeyValuePair keyValuePairObject; - if(!scenarioNodeVariablesKeyValuePair["Key"].isNull()) - keyValuePairObject.key = scenarioNodeVariablesKeyValuePair["Key"].asString(); - if(!scenarioNodeVariablesKeyValuePair["Value"].isNull()) - keyValuePairObject.value = scenarioNodeVariablesKeyValuePair["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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - Scenario::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) - timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["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 deleted file mode 100644 index 529143b45..000000000 --- a/ccc/src/model/CreateScenarioRequest.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateScenarioRequest::~CreateScenarioRequest() -{} - -std::vector CreateScenarioRequest::getSurveysJson()const -{ - return surveysJson_; -} - -void CreateScenarioRequest::setSurveysJson(const std::vector& surveysJson) -{ - surveysJson_ = surveysJson; - for(int dep1 = 0; dep1!= surveysJson.size(); dep1++) { - setParameter("SurveysJson."+ std::to_string(dep1), surveysJson.at(dep1)); - } -} - -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); -} - -std::string CreateScenarioRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreateScenarioRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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); -} - diff --git a/ccc/src/model/CreateScenarioResult.cc b/ccc/src/model/CreateScenarioResult.cc deleted file mode 100644 index b0b90c2b8..000000000 --- a/ccc/src/model/CreateScenarioResult.cc +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allSurveysNode = scenarioNode["Surveys"]["Survey"]; - for (auto scenarioNodeSurveysSurvey : allSurveysNode) - { - Scenario::Survey surveyObject; - if(!scenarioNodeSurveysSurvey["SurveyId"].isNull()) - surveyObject.surveyId = scenarioNodeSurveysSurvey["SurveyId"].asString(); - if(!scenarioNodeSurveysSurvey["SurveyName"].isNull()) - surveyObject.surveyName = scenarioNodeSurveysSurvey["SurveyName"].asString(); - if(!scenarioNodeSurveysSurvey["SurveyDescription"].isNull()) - surveyObject.surveyDescription = scenarioNodeSurveysSurvey["SurveyDescription"].asString(); - if(!scenarioNodeSurveysSurvey["Role"].isNull()) - surveyObject.role = scenarioNodeSurveysSurvey["Role"].asString(); - if(!scenarioNodeSurveysSurvey["Round"].isNull()) - surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString()); - if(!scenarioNodeSurveysSurvey["BeebotId"].isNull()) - surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString(); - auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"]; - for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode) - { - Scenario::Survey::IntentNode intentsObject; - if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull()) - intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString(); - if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull()) - intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString(); - surveyObject.intents.push_back(intentsObject); - } - scenario_.surveys.push_back(surveyObject); - } - auto allVariablesNode = scenarioNode["Variables"]["KeyValuePair"]; - for (auto scenarioNodeVariablesKeyValuePair : allVariablesNode) - { - Scenario::KeyValuePair keyValuePairObject; - if(!scenarioNodeVariablesKeyValuePair["Key"].isNull()) - keyValuePairObject.key = scenarioNodeVariablesKeyValuePair["Key"].asString(); - if(!scenarioNodeVariablesKeyValuePair["Value"].isNull()) - keyValuePairObject.value = scenarioNodeVariablesKeyValuePair["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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - Scenario::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) - timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["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 deleted file mode 100644 index 201d957b6..000000000 --- a/ccc/src/model/CreateSkillGroupRequest.cc +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSkillGroupRequest::~CreateSkillGroupRequest() -{} - -bool CreateSkillGroupRequest::getAllowPrivateOutboundNumber()const -{ - return allowPrivateOutboundNumber_; -} - -void CreateSkillGroupRequest::setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber) -{ - allowPrivateOutboundNumber_ = allowPrivateOutboundNumber; - setParameter("AllowPrivateOutboundNumber", allowPrivateOutboundNumber ? "true" : "false"); -} - -std::string CreateSkillGroupRequest::getDescription()const -{ - return description_; -} - -void CreateSkillGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string CreateSkillGroupRequest::getRoutingStrategy()const -{ - return routingStrategy_; -} - -void CreateSkillGroupRequest::setRoutingStrategy(const std::string& routingStrategy) -{ - routingStrategy_ = routingStrategy; - setParameter("RoutingStrategy", routingStrategy); -} - -std::vector CreateSkillGroupRequest::getUserId()const -{ - return userId_; -} - -void CreateSkillGroupRequest::setUserId(const std::vector& userId) -{ - userId_ = userId; - for(int dep1 = 0; dep1!= userId.size(); dep1++) { - setParameter("UserId."+ std::to_string(dep1), userId.at(dep1)); - } -} - -std::string CreateSkillGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::vector CreateSkillGroupRequest::getSkillLevel()const -{ - return skillLevel_; -} - -void CreateSkillGroupRequest::setSkillLevel(const std::vector& skillLevel) -{ - skillLevel_ = skillLevel; - for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { - setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); - } -} - -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 dep1 = 0; dep1!= outboundPhoneNumberId.size(); dep1++) { - setParameter("OutboundPhoneNumberId."+ std::to_string(dep1), outboundPhoneNumberId.at(dep1)); - } -} - -std::string CreateSkillGroupRequest::getName()const -{ - return name_; -} - -void CreateSkillGroupRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ccc/src/model/CreateSkillGroupResult.cc b/ccc/src/model/CreateSkillGroupResult.cc deleted file mode 100644 index da09f8ea9..000000000 --- a/ccc/src/model/CreateSkillGroupResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index d71bcc0ea..000000000 --- a/ccc/src/model/CreateSurveyRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSurveyRequest::~CreateSurveyRequest() -{} - -std::string CreateSurveyRequest::getRole()const -{ - return role_; -} - -void CreateSurveyRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); -} - -std::string CreateSurveyRequest::getDescription()const -{ - return description_; -} - -void CreateSurveyRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string CreateSurveyRequest::getSpeechOptimizationParam()const -{ - return speechOptimizationParam_; -} - -void CreateSurveyRequest::setSpeechOptimizationParam(const std::string& speechOptimizationParam) -{ - speechOptimizationParam_ = speechOptimizationParam; - setParameter("SpeechOptimizationParam", speechOptimizationParam); -} - -std::string CreateSurveyRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreateSurveyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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::getCorpora()const -{ - return corpora_; -} - -void CreateSurveyRequest::setCorpora(const std::string& corpora) -{ - corpora_ = corpora; - setParameter("Corpora", corpora); -} - -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 deleted file mode 100644 index 47b290d7a..000000000 --- a/ccc/src/model/CreateSurveyResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 99ce3a5e5..000000000 --- a/ccc/src/model/CreateUserRequest.cc +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateUserRequest::~CreateUserRequest() -{} - -std::string CreateUserRequest::getPrivateOutboundNumberId()const -{ - return privateOutboundNumberId_; -} - -void CreateUserRequest::setPrivateOutboundNumberId(const std::string& privateOutboundNumberId) -{ - privateOutboundNumberId_ = privateOutboundNumberId; - setParameter("PrivateOutboundNumberId", privateOutboundNumberId); -} - -std::string CreateUserRequest::getLoginName()const -{ - return loginName_; -} - -void CreateUserRequest::setLoginName(const std::string& loginName) -{ - loginName_ = loginName; - setParameter("LoginName", loginName); -} - -std::vector CreateUserRequest::getRoleId()const -{ - return roleId_; -} - -void CreateUserRequest::setRoleId(const std::vector& roleId) -{ - roleId_ = roleId; - for(int dep1 = 0; dep1!= roleId.size(); dep1++) { - setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); - } -} - -std::string CreateUserRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::vector CreateUserRequest::getSkillLevel()const -{ - return skillLevel_; -} - -void CreateUserRequest::setSkillLevel(const std::vector& skillLevel) -{ - skillLevel_ = skillLevel; - for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { - setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); - } -} - -std::string CreateUserRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreateUserRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string CreateUserRequest::getPhone()const -{ - return phone_; -} - -void CreateUserRequest::setPhone(const std::string& phone) -{ - phone_ = phone; - setParameter("Phone", phone); -} - -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 dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } -} - -std::string CreateUserRequest::getEmail()const -{ - return email_; -} - -void CreateUserRequest::setEmail(const std::string& email) -{ - email_ = email; - setParameter("Email", email); -} - diff --git a/ccc/src/model/CreateUserResult.cc b/ccc/src/model/CreateUserResult.cc deleted file mode 100644 index e6eecea31..000000000 --- a/ccc/src/model/CreateUserResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/CreateVoiceAppraiseRequest.cc b/ccc/src/model/CreateVoiceAppraiseRequest.cc deleted file mode 100644 index 1105f11b9..000000000 --- a/ccc/src/model/CreateVoiceAppraiseRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::CreateVoiceAppraiseRequest; - -CreateVoiceAppraiseRequest::CreateVoiceAppraiseRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreateVoiceAppraise") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVoiceAppraiseRequest::~CreateVoiceAppraiseRequest() -{} - -bool CreateVoiceAppraiseRequest::getIsAppraise()const -{ - return isAppraise_; -} - -void CreateVoiceAppraiseRequest::setIsAppraise(bool isAppraise) -{ - isAppraise_ = isAppraise; - setParameter("IsAppraise", isAppraise ? "true" : "false"); -} - -std::string CreateVoiceAppraiseRequest::getContent()const -{ - return content_; -} - -void CreateVoiceAppraiseRequest::setContent(const std::string& content) -{ - content_ = content; - setBodyParameter("Content", content); -} - -std::string CreateVoiceAppraiseRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateVoiceAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CreateVoiceAppraiseRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreateVoiceAppraiseRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string CreateVoiceAppraiseRequest::getContactFlowVersionId()const -{ - return contactFlowVersionId_; -} - -void CreateVoiceAppraiseRequest::setContactFlowVersionId(const std::string& contactFlowVersionId) -{ - contactFlowVersionId_ = contactFlowVersionId; - setParameter("ContactFlowVersionId", contactFlowVersionId); -} - diff --git a/ccc/src/model/CreateVoiceAppraiseResult.cc b/ccc/src/model/CreateVoiceAppraiseResult.cc deleted file mode 100644 index bae2fce9f..000000000 --- a/ccc/src/model/CreateVoiceAppraiseResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -CreateVoiceAppraiseResult::CreateVoiceAppraiseResult() : - ServiceResult() -{} - -CreateVoiceAppraiseResult::CreateVoiceAppraiseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateVoiceAppraiseResult::~CreateVoiceAppraiseResult() -{} - -void CreateVoiceAppraiseResult::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 CreateVoiceAppraiseResult::getMessage()const -{ - return message_; -} - -int CreateVoiceAppraiseResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CreateVoiceAppraiseResult::getCode()const -{ - return code_; -} - -bool CreateVoiceAppraiseResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/DeleteInstanceRequest.cc b/ccc/src/model/DeleteInstanceRequest.cc deleted file mode 100644 index abd5b0e59..000000000 --- a/ccc/src/model/DeleteInstanceRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::DeleteInstanceRequest; - -DeleteInstanceRequest::DeleteInstanceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DeleteInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteInstanceRequest::~DeleteInstanceRequest() -{} - -std::string DeleteInstanceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteInstanceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DeleteInstanceRequest::getInstanceId()const -{ - return instanceId_; -} - -void DeleteInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/DeleteJobGroupResult.cc b/ccc/src/model/DeleteJobGroupResult.cc deleted file mode 100644 index a458973a5..000000000 --- a/ccc/src/model/DeleteJobGroupResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/DeleteMediaRequest.cc b/ccc/src/model/DeleteMediaRequest.cc deleted file mode 100644 index 19d6df55c..000000000 --- a/ccc/src/model/DeleteMediaRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::DeleteMediaRequest; - -DeleteMediaRequest::DeleteMediaRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DeleteMedia") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMediaRequest::~DeleteMediaRequest() -{} - -std::string DeleteMediaRequest::getInstanceId()const -{ - return instanceId_; -} - -void DeleteMediaRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string DeleteMediaRequest::getName()const -{ - return name_; -} - -void DeleteMediaRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string DeleteMediaRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteMediaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/DeleteMediaResult.cc b/ccc/src/model/DeleteMediaResult.cc deleted file mode 100644 index 8a74de5e0..000000000 --- a/ccc/src/model/DeleteMediaResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -DeleteMediaResult::DeleteMediaResult() : - ServiceResult() -{} - -DeleteMediaResult::DeleteMediaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteMediaResult::~DeleteMediaResult() -{} - -void DeleteMediaResult::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 DeleteMediaResult::getMessage()const -{ - return message_; -} - -int DeleteMediaResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DeleteMediaResult::getCode()const -{ - return code_; -} - -bool DeleteMediaResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/DeletePhoneTagsRequest.cc b/ccc/src/model/DeletePhoneTagsRequest.cc deleted file mode 100644 index a6ab84458..000000000 --- a/ccc/src/model/DeletePhoneTagsRequest.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::DeletePhoneTagsRequest; - -DeletePhoneTagsRequest::DeletePhoneTagsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DeletePhoneTags") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletePhoneTagsRequest::~DeletePhoneTagsRequest() -{} - -std::string DeletePhoneTagsRequest::getInstanceId()const -{ - return instanceId_; -} - -void DeletePhoneTagsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector DeletePhoneTagsRequest::getPhoneNumberList()const -{ - return phoneNumberList_; -} - -void DeletePhoneTagsRequest::setPhoneNumberList(const std::vector& phoneNumberList) -{ - phoneNumberList_ = phoneNumberList; - for(int dep1 = 0; dep1!= phoneNumberList.size(); dep1++) { - setParameter("PhoneNumberList."+ std::to_string(dep1), phoneNumberList.at(dep1)); - } -} - -std::string DeletePhoneTagsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeletePhoneTagsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/DeletePhoneTagsResult.cc b/ccc/src/model/DeletePhoneTagsResult.cc deleted file mode 100644 index d25beefa4..000000000 --- a/ccc/src/model/DeletePhoneTagsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -DeletePhoneTagsResult::DeletePhoneTagsResult() : - ServiceResult() -{} - -DeletePhoneTagsResult::DeletePhoneTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeletePhoneTagsResult::~DeletePhoneTagsResult() -{} - -void DeletePhoneTagsResult::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 DeletePhoneTagsResult::getMessage()const -{ - return message_; -} - -int DeletePhoneTagsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DeletePhoneTagsResult::getCode()const -{ - return code_; -} - -bool DeletePhoneTagsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/DeleteSkillGroupRequest.cc b/ccc/src/model/DeleteSkillGroupRequest.cc deleted file mode 100644 index 2de2e78af..000000000 --- a/ccc/src/model/DeleteSkillGroupRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::CCC::Model::DeleteSkillGroupRequest; - -DeleteSkillGroupRequest::DeleteSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DeleteSkillGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSkillGroupRequest::~DeleteSkillGroupRequest() -{} - -std::string DeleteSkillGroupRequest::getInstanceId()const -{ - return instanceId_; -} - -void DeleteSkillGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string DeleteSkillGroupRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -std::string DeleteSkillGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/DeleteSurveyRequest.cc b/ccc/src/model/DeleteSurveyRequest.cc deleted file mode 100644 index 9f35965c1..000000000 --- a/ccc/src/model/DeleteSurveyRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index ea7f4bc4e..000000000 --- a/ccc/src/model/DeleteSurveyResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/DialExRequest.cc b/ccc/src/model/DialExRequest.cc deleted file mode 100644 index 82fde9c9b..000000000 --- a/ccc/src/model/DialExRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::DialExRequest; - -DialExRequest::DialExRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DialEx") -{ - setMethod(HttpRequest::Method::Post); -} - -DialExRequest::~DialExRequest() -{} - -std::string DialExRequest::getCallee()const -{ - return callee_; -} - -void DialExRequest::setCallee(const std::string& callee) -{ - callee_ = callee; - setParameter("Callee", callee); -} - -std::string DialExRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DialExRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DialExRequest::getRoutPoint()const -{ - return routPoint_; -} - -void DialExRequest::setRoutPoint(const std::string& routPoint) -{ - routPoint_ = routPoint; - setParameter("RoutPoint", routPoint); -} - -std::string DialExRequest::getCaller()const -{ - return caller_; -} - -void DialExRequest::setCaller(const std::string& caller) -{ - caller_ = caller; - setParameter("Caller", caller); -} - -std::string DialExRequest::getInstanceId()const -{ - return instanceId_; -} - -void DialExRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string DialExRequest::getProvider()const -{ - return provider_; -} - -void DialExRequest::setProvider(const std::string& provider) -{ - provider_ = provider; - setParameter("Provider", provider); -} - -int DialExRequest::getAnswerMode()const -{ - return answerMode_; -} - -void DialExRequest::setAnswerMode(int answerMode) -{ - answerMode_ = answerMode; - setParameter("AnswerMode", std::to_string(answerMode)); -} - diff --git a/ccc/src/model/DialExResult.cc b/ccc/src/model/DialExResult.cc deleted file mode 100644 index 9785acb2b..000000000 --- a/ccc/src/model/DialExResult.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -DialExResult::DialExResult() : - ServiceResult() -{} - -DialExResult::DialExResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DialExResult::~DialExResult() -{} - -void DialExResult::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 DialExResult::getStatusDesc()const -{ - return statusDesc_; -} - -std::string DialExResult::getTaskId()const -{ - return taskId_; -} - -std::string DialExResult::getMessage()const -{ - return message_; -} - -int DialExResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DialExResult::getCode()const -{ - return code_; -} - -std::string DialExResult::getStatusCode()const -{ - return statusCode_; -} - -bool DialExResult::getSuccess()const -{ - return success_; -} - -std::string DialExResult::getTimeStamp()const -{ - return timeStamp_; -} - diff --git a/ccc/src/model/DialogueRequest.cc b/ccc/src/model/DialogueRequest.cc deleted file mode 100644 index e01b4637b..000000000 --- a/ccc/src/model/DialogueRequest.cc +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -DialogueRequest::~DialogueRequest() -{} - -std::string DialogueRequest::getCallId()const -{ - return callId_; -} - -void DialogueRequest::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); -} - -std::string DialogueRequest::getCalledNumber()const -{ - return calledNumber_; -} - -void DialogueRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); -} - -long DialogueRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; -} - -void DialogueRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); -} - -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); -} - -std::string DialogueRequest::getActionParams()const -{ - return actionParams_; -} - -void DialogueRequest::setActionParams(const std::string& actionParams) -{ - actionParams_ = actionParams; - setParameter("ActionParams", actionParams); -} - -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::getActionKey()const -{ - return actionKey_; -} - -void DialogueRequest::setActionKey(const std::string& actionKey) -{ - actionKey_ = actionKey; - setParameter("ActionKey", actionKey); -} - diff --git a/ccc/src/model/DialogueResult.cc b/ccc/src/model/DialogueResult.cc deleted file mode 100644 index 6260b2959..000000000 --- a/ccc/src/model/DialogueResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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(!feedbackNode["Interruptible"].isNull()) - feedback_.interruptible = feedbackNode["Interruptible"].asString() == "true"; - 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/DisableTrunkProvidersRequest.cc b/ccc/src/model/DisableTrunkProvidersRequest.cc deleted file mode 100644 index 479111632..000000000 --- a/ccc/src/model/DisableTrunkProvidersRequest.cc +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::DisableTrunkProvidersRequest; - -DisableTrunkProvidersRequest::DisableTrunkProvidersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DisableTrunkProviders") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableTrunkProvidersRequest::~DisableTrunkProvidersRequest() -{} - -std::vector DisableTrunkProvidersRequest::getProviderName()const -{ - return providerName_; -} - -void DisableTrunkProvidersRequest::setProviderName(const std::vector& providerName) -{ - providerName_ = providerName; - for(int dep1 = 0; dep1!= providerName.size(); dep1++) { - setParameter("ProviderName."+ std::to_string(dep1), providerName.at(dep1)); - } -} - -std::string DisableTrunkProvidersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DisableTrunkProvidersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/DisableTrunkProvidersResult.cc b/ccc/src/model/DisableTrunkProvidersResult.cc deleted file mode 100644 index 8953e710a..000000000 --- a/ccc/src/model/DisableTrunkProvidersResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -DisableTrunkProvidersResult::DisableTrunkProvidersResult() : - ServiceResult() -{} - -DisableTrunkProvidersResult::DisableTrunkProvidersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DisableTrunkProvidersResult::~DisableTrunkProvidersResult() -{} - -void DisableTrunkProvidersResult::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 DisableTrunkProvidersResult::getMessage()const -{ - return message_; -} - -int DisableTrunkProvidersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DisableTrunkProvidersResult::getCode()const -{ - return code_; -} - -bool DisableTrunkProvidersResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/DownloadAllTypeRecordingRequest.cc b/ccc/src/model/DownloadAllTypeRecordingRequest.cc deleted file mode 100644 index b5f97787d..000000000 --- a/ccc/src/model/DownloadAllTypeRecordingRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::DownloadAllTypeRecordingRequest; - -DownloadAllTypeRecordingRequest::DownloadAllTypeRecordingRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DownloadAllTypeRecording") -{ - setMethod(HttpRequest::Method::Post); -} - -DownloadAllTypeRecordingRequest::~DownloadAllTypeRecordingRequest() -{} - -std::string DownloadAllTypeRecordingRequest::getContactId()const -{ - return contactId_; -} - -void DownloadAllTypeRecordingRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -std::string DownloadAllTypeRecordingRequest::getChannel()const -{ - return channel_; -} - -void DownloadAllTypeRecordingRequest::setChannel(const std::string& channel) -{ - channel_ = channel; - setParameter("Channel", channel); -} - -std::string DownloadAllTypeRecordingRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DownloadAllTypeRecordingRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DownloadAllTypeRecordingRequest::getInstanceId()const -{ - return instanceId_; -} - -void DownloadAllTypeRecordingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/DownloadAllTypeRecordingResult.cc b/ccc/src/model/DownloadAllTypeRecordingResult.cc deleted file mode 100644 index 19b2e8a1e..000000000 --- a/ccc/src/model/DownloadAllTypeRecordingResult.cc +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -DownloadAllTypeRecordingResult::DownloadAllTypeRecordingResult() : - ServiceResult() -{} - -DownloadAllTypeRecordingResult::DownloadAllTypeRecordingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DownloadAllTypeRecordingResult::~DownloadAllTypeRecordingResult() -{} - -void DownloadAllTypeRecordingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allMediaDownloadParamListNode = value["MediaDownloadParamList"]["MediaDownloadParam"]; - for (auto valueMediaDownloadParamListMediaDownloadParam : allMediaDownloadParamListNode) - { - MediaDownloadParam mediaDownloadParamListObject; - if(!valueMediaDownloadParamListMediaDownloadParam["SignatureUrl"].isNull()) - mediaDownloadParamListObject.signatureUrl = valueMediaDownloadParamListMediaDownloadParam["SignatureUrl"].asString(); - if(!valueMediaDownloadParamListMediaDownloadParam["FileName"].isNull()) - mediaDownloadParamListObject.fileName = valueMediaDownloadParamListMediaDownloadParam["FileName"].asString(); - mediaDownloadParamList_.push_back(mediaDownloadParamListObject); - } - 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 DownloadAllTypeRecordingResult::getMessage()const -{ - return message_; -} - -int DownloadAllTypeRecordingResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector DownloadAllTypeRecordingResult::getMediaDownloadParamList()const -{ - return mediaDownloadParamList_; -} - -std::string DownloadAllTypeRecordingResult::getCode()const -{ - return code_; -} - -bool DownloadAllTypeRecordingResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/DownloadCabRecordingRequest.cc b/ccc/src/model/DownloadCabRecordingRequest.cc deleted file mode 100644 index 32f5b3930..000000000 --- a/ccc/src/model/DownloadCabRecordingRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::DownloadCabRecordingRequest; - -DownloadCabRecordingRequest::DownloadCabRecordingRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DownloadCabRecording") -{ - setMethod(HttpRequest::Method::Post); -} - -DownloadCabRecordingRequest::~DownloadCabRecordingRequest() -{} - -std::string DownloadCabRecordingRequest::getInstanceId()const -{ - return instanceId_; -} - -void DownloadCabRecordingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string DownloadCabRecordingRequest::getTaskId()const -{ - return taskId_; -} - -void DownloadCabRecordingRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); -} - diff --git a/ccc/src/model/DownloadCabRecordingResult.cc b/ccc/src/model/DownloadCabRecordingResult.cc deleted file mode 100644 index 0f85c0f67..000000000 --- a/ccc/src/model/DownloadCabRecordingResult.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -DownloadCabRecordingResult::DownloadCabRecordingResult() : - ServiceResult() -{} - -DownloadCabRecordingResult::DownloadCabRecordingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DownloadCabRecordingResult::~DownloadCabRecordingResult() -{} - -void DownloadCabRecordingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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()); - -} - -DownloadCabRecordingResult::MediaDownloadParam DownloadCabRecordingResult::getMediaDownloadParam()const -{ - return mediaDownloadParam_; -} - -std::string DownloadCabRecordingResult::getMessage()const -{ - return message_; -} - -int DownloadCabRecordingResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DownloadCabRecordingResult::getCode()const -{ - return code_; -} - -bool DownloadCabRecordingResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc b/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc deleted file mode 100644 index 8b4052c2f..000000000 --- a/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 939dc55fb..000000000 --- a/ccc/src/model/DownloadOriginalStatisticsReportResult.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/DownloadRecordingRequest.cc b/ccc/src/model/DownloadRecordingRequest.cc deleted file mode 100644 index cc79c2373..000000000 --- a/ccc/src/model/DownloadRecordingRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::DownloadRecordingRequest; - -DownloadRecordingRequest::DownloadRecordingRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DownloadRecording") -{ - setMethod(HttpRequest::Method::Post); -} - -DownloadRecordingRequest::~DownloadRecordingRequest() -{} - -std::string DownloadRecordingRequest::getChannel()const -{ - return channel_; -} - -void DownloadRecordingRequest::setChannel(const std::string& channel) -{ - channel_ = channel; - setParameter("Channel", channel); -} - -std::string DownloadRecordingRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DownloadRecordingRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DownloadRecordingRequest::getInstanceId()const -{ - return instanceId_; -} - -void DownloadRecordingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string DownloadRecordingRequest::getFileName()const -{ - return fileName_; -} - -void DownloadRecordingRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); -} - diff --git a/ccc/src/model/DownloadRecordingResult.cc b/ccc/src/model/DownloadRecordingResult.cc deleted file mode 100644 index c0e6cb992..000000000 --- a/ccc/src/model/DownloadRecordingResult.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -DownloadRecordingResult::DownloadRecordingResult() : - ServiceResult() -{} - -DownloadRecordingResult::DownloadRecordingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DownloadRecordingResult::~DownloadRecordingResult() -{} - -void DownloadRecordingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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()); - -} - -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 deleted file mode 100644 index d07dd5a3a..000000000 --- a/ccc/src/model/DownloadUnreachableContactsRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 18229238c..000000000 --- a/ccc/src/model/DownloadUnreachableContactsResult.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/FindUsersRequest.cc b/ccc/src/model/FindUsersRequest.cc deleted file mode 100644 index dd6398224..000000000 --- a/ccc/src/model/FindUsersRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::FindUsersRequest; - -FindUsersRequest::FindUsersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "FindUsers") -{ - setMethod(HttpRequest::Method::Post); -} - -FindUsersRequest::~FindUsersRequest() -{} - -std::string FindUsersRequest::getCriteria()const -{ - return criteria_; -} - -void FindUsersRequest::setCriteria(const std::string& criteria) -{ - criteria_ = criteria; - setParameter("Criteria", criteria); -} - -int FindUsersRequest::getPageNumber()const -{ - return pageNumber_; -} - -void FindUsersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string FindUsersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void FindUsersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string FindUsersRequest::getInstanceId()const -{ - return instanceId_; -} - -void FindUsersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int FindUsersRequest::getPageSize()const -{ - return pageSize_; -} - -void FindUsersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/FindUsersResult.cc b/ccc/src/model/FindUsersResult.cc deleted file mode 100644 index c73ce844d..000000000 --- a/ccc/src/model/FindUsersResult.cc +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -FindUsersResult::FindUsersResult() : - ServiceResult() -{} - -FindUsersResult::FindUsersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FindUsersResult::~FindUsersResult() -{} - -void FindUsersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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 allListNode = usersNode["List"]["User"]; - for (auto usersNodeListUser : allListNode) - { - Users::User userObject; - if(!usersNodeListUser["UserId"].isNull()) - userObject.userId = usersNodeListUser["UserId"].asString(); - if(!usersNodeListUser["RamId"].isNull()) - userObject.ramId = usersNodeListUser["RamId"].asString(); - if(!usersNodeListUser["InstanceId"].isNull()) - userObject.instanceId = usersNodeListUser["InstanceId"].asString(); - if(!usersNodeListUser["PrivateOutboundNumberId"].isNull()) - userObject.privateOutboundNumberId = usersNodeListUser["PrivateOutboundNumberId"].asString(); - auto allRolesNode = usersNodeListUser["Roles"]["Role"]; - for (auto usersNodeListUserRolesRole : allRolesNode) - { - Users::User::Role rolesObject; - if(!usersNodeListUserRolesRole["RoleId"].isNull()) - rolesObject.roleId = usersNodeListUserRolesRole["RoleId"].asString(); - if(!usersNodeListUserRolesRole["InstanceId"].isNull()) - rolesObject.instanceId = usersNodeListUserRolesRole["InstanceId"].asString(); - if(!usersNodeListUserRolesRole["RoleName"].isNull()) - rolesObject.roleName = usersNodeListUserRolesRole["RoleName"].asString(); - if(!usersNodeListUserRolesRole["RoleDescription"].isNull()) - rolesObject.roleDescription = usersNodeListUserRolesRole["RoleDescription"].asString(); - userObject.roles.push_back(rolesObject); - } - auto allSkillLevelsNode = usersNodeListUser["SkillLevels"]["SkillLevel"]; - for (auto usersNodeListUserSkillLevelsSkillLevel : allSkillLevelsNode) - { - Users::User::SkillLevel skillLevelsObject; - if(!usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].isNull()) - skillLevelsObject.skillLevelId = usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].asString(); - if(!usersNodeListUserSkillLevelsSkillLevel["Level"].isNull()) - skillLevelsObject.level = std::stoi(usersNodeListUserSkillLevelsSkillLevel["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 FindUsersResult::getMessage()const -{ - return message_; -} - -int FindUsersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -FindUsersResult::Users FindUsersResult::getUsers()const -{ - return users_; -} - -std::string FindUsersResult::getCode()const -{ - return code_; -} - -bool FindUsersResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GenerateAgentStatisticReportRequest.cc b/ccc/src/model/GenerateAgentStatisticReportRequest.cc deleted file mode 100644 index d161d17bf..000000000 --- a/ccc/src/model/GenerateAgentStatisticReportRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateAgentStatisticReportRequest::~GenerateAgentStatisticReportRequest() -{} - -std::string GenerateAgentStatisticReportRequest::getAgentId()const -{ - return agentId_; -} - -void GenerateAgentStatisticReportRequest::setAgentId(const std::string& agentId) -{ - agentId_ = agentId; - setParameter("AgentId", agentId); -} - -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); -} - -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)); -} - diff --git a/ccc/src/model/GenerateAgentStatisticReportResult.cc b/ccc/src/model/GenerateAgentStatisticReportResult.cc deleted file mode 100644 index e6543c8d5..000000000 --- a/ccc/src/model/GenerateAgentStatisticReportResult.cc +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = dataListNode["List"]["GenerateAgentStatistic"]; - for (auto dataListNodeListGenerateAgentStatistic : allListNode) - { - DataList::GenerateAgentStatistic generateAgentStatisticObject; - if(!dataListNodeListGenerateAgentStatistic["AgentId"].isNull()) - generateAgentStatisticObject.agentId = dataListNodeListGenerateAgentStatistic["AgentId"].asString(); - if(!dataListNodeListGenerateAgentStatistic["LoginName"].isNull()) - generateAgentStatisticObject.loginName = dataListNodeListGenerateAgentStatistic["LoginName"].asString(); - if(!dataListNodeListGenerateAgentStatistic["AgentName"].isNull()) - generateAgentStatisticObject.agentName = dataListNodeListGenerateAgentStatistic["AgentName"].asString(); - if(!dataListNodeListGenerateAgentStatistic["SkillGroupIds"].isNull()) - generateAgentStatisticObject.skillGroupIds = dataListNodeListGenerateAgentStatistic["SkillGroupIds"].asString(); - if(!dataListNodeListGenerateAgentStatistic["SkillGroupNames"].isNull()) - generateAgentStatisticObject.skillGroupNames = dataListNodeListGenerateAgentStatistic["SkillGroupNames"].asString(); - if(!dataListNodeListGenerateAgentStatistic["InstanceId"].isNull()) - generateAgentStatisticObject.instanceId = dataListNodeListGenerateAgentStatistic["InstanceId"].asString(); - if(!dataListNodeListGenerateAgentStatistic["RecordDate"].isNull()) - generateAgentStatisticObject.recordDate = dataListNodeListGenerateAgentStatistic["RecordDate"].asString(); - if(!dataListNodeListGenerateAgentStatistic["TotalLoggedInTime"].isNull()) - generateAgentStatisticObject.totalLoggedInTime = std::stol(dataListNodeListGenerateAgentStatistic["TotalLoggedInTime"].asString()); - if(!dataListNodeListGenerateAgentStatistic["TotalBreakTime"].isNull()) - generateAgentStatisticObject.totalBreakTime = std::stol(dataListNodeListGenerateAgentStatistic["TotalBreakTime"].asString()); - if(!dataListNodeListGenerateAgentStatistic["OccupancyRate"].isNull()) - generateAgentStatisticObject.occupancyRate = std::stof(dataListNodeListGenerateAgentStatistic["OccupancyRate"].asString()); - if(!dataListNodeListGenerateAgentStatistic["TotalReadyTime"].isNull()) - generateAgentStatisticObject.totalReadyTime = std::stol(dataListNodeListGenerateAgentStatistic["TotalReadyTime"].asString()); - if(!dataListNodeListGenerateAgentStatistic["MaxReadyTime"].isNull()) - generateAgentStatisticObject.maxReadyTime = std::stol(dataListNodeListGenerateAgentStatistic["MaxReadyTime"].asString()); - if(!dataListNodeListGenerateAgentStatistic["AverageReadyTime"].isNull()) - generateAgentStatisticObject.averageReadyTime = std::stol(dataListNodeListGenerateAgentStatistic["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 deleted file mode 100644 index 61854da84..000000000 --- a/ccc/src/model/GetAgentDataRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAgentDataRequest::~GetAgentDataRequest() -{} - -std::string GetAgentDataRequest::getStartDay()const -{ - return startDay_; -} - -void GetAgentDataRequest::setStartDay(const std::string& startDay) -{ - startDay_ = startDay; - setParameter("StartDay", startDay); -} - -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); -} - -std::string GetAgentDataRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetAgentDataRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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)); -} - diff --git a/ccc/src/model/GetAgentDataResult.cc b/ccc/src/model/GetAgentDataResult.cc deleted file mode 100644 index 0dfd24124..000000000 --- a/ccc/src/model/GetAgentDataResult.cc +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = dataListNode["List"]["GenerateAgentStatistic"]; - for (auto dataListNodeListGenerateAgentStatistic : allListNode) - { - DataList::GenerateAgentStatistic generateAgentStatisticObject; - if(!dataListNodeListGenerateAgentStatistic["AgentId"].isNull()) - generateAgentStatisticObject.agentId = dataListNodeListGenerateAgentStatistic["AgentId"].asString(); - if(!dataListNodeListGenerateAgentStatistic["LoginName"].isNull()) - generateAgentStatisticObject.loginName = dataListNodeListGenerateAgentStatistic["LoginName"].asString(); - if(!dataListNodeListGenerateAgentStatistic["AgentName"].isNull()) - generateAgentStatisticObject.agentName = dataListNodeListGenerateAgentStatistic["AgentName"].asString(); - if(!dataListNodeListGenerateAgentStatistic["SkillGroupIds"].isNull()) - generateAgentStatisticObject.skillGroupIds = dataListNodeListGenerateAgentStatistic["SkillGroupIds"].asString(); - if(!dataListNodeListGenerateAgentStatistic["SkillGroupNames"].isNull()) - generateAgentStatisticObject.skillGroupNames = dataListNodeListGenerateAgentStatistic["SkillGroupNames"].asString(); - if(!dataListNodeListGenerateAgentStatistic["InstanceId"].isNull()) - generateAgentStatisticObject.instanceId = dataListNodeListGenerateAgentStatistic["InstanceId"].asString(); - if(!dataListNodeListGenerateAgentStatistic["RecordDate"].isNull()) - generateAgentStatisticObject.recordDate = dataListNodeListGenerateAgentStatistic["RecordDate"].asString(); - if(!dataListNodeListGenerateAgentStatistic["TotalLoggedInTime"].isNull()) - generateAgentStatisticObject.totalLoggedInTime = std::stol(dataListNodeListGenerateAgentStatistic["TotalLoggedInTime"].asString()); - if(!dataListNodeListGenerateAgentStatistic["TotalBreakTime"].isNull()) - generateAgentStatisticObject.totalBreakTime = std::stol(dataListNodeListGenerateAgentStatistic["TotalBreakTime"].asString()); - if(!dataListNodeListGenerateAgentStatistic["OccupancyRate"].isNull()) - generateAgentStatisticObject.occupancyRate = std::stof(dataListNodeListGenerateAgentStatistic["OccupancyRate"].asString()); - if(!dataListNodeListGenerateAgentStatistic["TotalReadyTime"].isNull()) - generateAgentStatisticObject.totalReadyTime = std::stol(dataListNodeListGenerateAgentStatistic["TotalReadyTime"].asString()); - if(!dataListNodeListGenerateAgentStatistic["MaxReadyTime"].isNull()) - generateAgentStatisticObject.maxReadyTime = std::stol(dataListNodeListGenerateAgentStatistic["MaxReadyTime"].asString()); - if(!dataListNodeListGenerateAgentStatistic["AverageReadyTime"].isNull()) - generateAgentStatisticObject.averageReadyTime = std::stol(dataListNodeListGenerateAgentStatistic["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/GetCallMeasureSummaryReportRequest.cc b/ccc/src/model/GetCallMeasureSummaryReportRequest.cc deleted file mode 100644 index c676068f4..000000000 --- a/ccc/src/model/GetCallMeasureSummaryReportRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetCallMeasureSummaryReportRequest; - -GetCallMeasureSummaryReportRequest::GetCallMeasureSummaryReportRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetCallMeasureSummaryReport") -{ - setMethod(HttpRequest::Method::Post); -} - -GetCallMeasureSummaryReportRequest::~GetCallMeasureSummaryReportRequest() -{} - -std::string GetCallMeasureSummaryReportRequest::getIntervalType()const -{ - return intervalType_; -} - -void GetCallMeasureSummaryReportRequest::setIntervalType(const std::string& intervalType) -{ - intervalType_ = intervalType; - setParameter("IntervalType", intervalType); -} - -int GetCallMeasureSummaryReportRequest::getYear()const -{ - return year_; -} - -void GetCallMeasureSummaryReportRequest::setYear(int year) -{ - year_ = year; - setParameter("Year", std::to_string(year)); -} - -int GetCallMeasureSummaryReportRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GetCallMeasureSummaryReportRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string GetCallMeasureSummaryReportRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetCallMeasureSummaryReportRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int GetCallMeasureSummaryReportRequest::getMonth()const -{ - return month_; -} - -void GetCallMeasureSummaryReportRequest::setMonth(int month) -{ - month_ = month; - setParameter("Month", std::to_string(month)); -} - -int GetCallMeasureSummaryReportRequest::getPageSize()const -{ - return pageSize_; -} - -void GetCallMeasureSummaryReportRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -int GetCallMeasureSummaryReportRequest::getDay()const -{ - return day_; -} - -void GetCallMeasureSummaryReportRequest::setDay(int day) -{ - day_ = day; - setParameter("Day", std::to_string(day)); -} - diff --git a/ccc/src/model/GetCallMeasureSummaryReportResult.cc b/ccc/src/model/GetCallMeasureSummaryReportResult.cc deleted file mode 100644 index 5d8a46c0c..000000000 --- a/ccc/src/model/GetCallMeasureSummaryReportResult.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetCallMeasureSummaryReportResult::GetCallMeasureSummaryReportResult() : - ServiceResult() -{} - -GetCallMeasureSummaryReportResult::GetCallMeasureSummaryReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCallMeasureSummaryReportResult::~GetCallMeasureSummaryReportResult() -{} - -void GetCallMeasureSummaryReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto summaryReportNode = value["SummaryReport"]; - if(!summaryReportNode["Year"].isNull()) - summaryReport_.year = std::stoi(summaryReportNode["Year"].asString()); - if(!summaryReportNode["Month"].isNull()) - summaryReport_.month = std::stoi(summaryReportNode["Month"].asString()); - if(!summaryReportNode["Day"].isNull()) - summaryReport_.day = std::stoi(summaryReportNode["Day"].asString()); - if(!summaryReportNode["InboundCount"].isNull()) - summaryReport_.inboundCount = std::stol(summaryReportNode["InboundCount"].asString()); - if(!summaryReportNode["OutboundCount"].isNull()) - summaryReport_.outboundCount = std::stol(summaryReportNode["OutboundCount"].asString()); - if(!summaryReportNode["OutboundDurationByMinute"].isNull()) - summaryReport_.outboundDurationByMinute = std::stol(summaryReportNode["OutboundDurationByMinute"].asString()); - if(!summaryReportNode["InboundDurationByMinute"].isNull()) - summaryReport_.inboundDurationByMinute = std::stol(summaryReportNode["InboundDurationByMinute"].asString()); - auto numberReportsNode = value["NumberReports"]; - if(!numberReportsNode["TotalCount"].isNull()) - numberReports_.totalCount = std::stoi(numberReportsNode["TotalCount"].asString()); - if(!numberReportsNode["PageNumber"].isNull()) - numberReports_.pageNumber = std::stoi(numberReportsNode["PageNumber"].asString()); - if(!numberReportsNode["PageSize"].isNull()) - numberReports_.pageSize = std::stoi(numberReportsNode["PageSize"].asString()); - auto allListNode = numberReportsNode["List"]["NumberReport"]; - for (auto numberReportsNodeListNumberReport : allListNode) - { - NumberReports::NumberReport numberReportObject; - if(!numberReportsNodeListNumberReport["Number"].isNull()) - numberReportObject.number = numberReportsNodeListNumberReport["Number"].asString(); - if(!numberReportsNodeListNumberReport["Year"].isNull()) - numberReportObject.year = std::stoi(numberReportsNodeListNumberReport["Year"].asString()); - if(!numberReportsNodeListNumberReport["Month"].isNull()) - numberReportObject.month = std::stoi(numberReportsNodeListNumberReport["Month"].asString()); - if(!numberReportsNodeListNumberReport["Day"].isNull()) - numberReportObject.day = std::stoi(numberReportsNodeListNumberReport["Day"].asString()); - if(!numberReportsNodeListNumberReport["InboundCount"].isNull()) - numberReportObject.inboundCount = std::stol(numberReportsNodeListNumberReport["InboundCount"].asString()); - if(!numberReportsNodeListNumberReport["OutboundCount"].isNull()) - numberReportObject.outboundCount = std::stol(numberReportsNodeListNumberReport["OutboundCount"].asString()); - if(!numberReportsNodeListNumberReport["OutboundDurationByMinute"].isNull()) - numberReportObject.outboundDurationByMinute = std::stol(numberReportsNodeListNumberReport["OutboundDurationByMinute"].asString()); - if(!numberReportsNodeListNumberReport["InboundDurationByMinute"].isNull()) - numberReportObject.inboundDurationByMinute = std::stol(numberReportsNodeListNumberReport["InboundDurationByMinute"].asString()); - numberReports_.list.push_back(numberReportObject); - } - 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()); - -} - -GetCallMeasureSummaryReportResult::NumberReports GetCallMeasureSummaryReportResult::getNumberReports()const -{ - return numberReports_; -} - -GetCallMeasureSummaryReportResult::SummaryReport GetCallMeasureSummaryReportResult::getSummaryReport()const -{ - return summaryReport_; -} - -std::string GetCallMeasureSummaryReportResult::getMessage()const -{ - return message_; -} - -int GetCallMeasureSummaryReportResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetCallMeasureSummaryReportResult::getCode()const -{ - return code_; -} - -bool GetCallMeasureSummaryReportResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetConfigRequest.cc b/ccc/src/model/GetConfigRequest.cc deleted file mode 100644 index 5742fbbca..000000000 --- a/ccc/src/model/GetConfigRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetConfigRequest; - -GetConfigRequest::GetConfigRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -GetConfigRequest::~GetConfigRequest() -{} - -std::string GetConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetConfigRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetConfigRequest::getName()const -{ - return name_; -} - -void GetConfigRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string GetConfigRequest::getObjectType()const -{ - return objectType_; -} - -void GetConfigRequest::setObjectType(const std::string& objectType) -{ - objectType_ = objectType; - setParameter("ObjectType", objectType); -} - -std::string GetConfigRequest::getObjectId()const -{ - return objectId_; -} - -void GetConfigRequest::setObjectId(const std::string& objectId) -{ - objectId_ = objectId; - setParameter("ObjectId", objectId); -} - diff --git a/ccc/src/model/GetConfigResult.cc b/ccc/src/model/GetConfigResult.cc deleted file mode 100644 index 3b587123c..000000000 --- a/ccc/src/model/GetConfigResult.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetConfigResult::GetConfigResult() : - ServiceResult() -{} - -GetConfigResult::GetConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetConfigResult::~GetConfigResult() -{} - -void GetConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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_; -} - -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 deleted file mode 100644 index 1b8175153..000000000 --- a/ccc/src/model/GetConversationDetailByContactIdRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -GetConversationDetailByContactIdRequest::~GetConversationDetailByContactIdRequest() -{} - -std::string GetConversationDetailByContactIdRequest::getContactId()const -{ - return contactId_; -} - -void GetConversationDetailByContactIdRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -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); -} - -std::string GetConversationDetailByContactIdRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetConversationDetailByContactIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int GetConversationDetailByContactIdRequest::getPageSize()const -{ - return pageSize_; -} - -void GetConversationDetailByContactIdRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/GetConversationDetailByContactIdResult.cc b/ccc/src/model/GetConversationDetailByContactIdResult.cc deleted file mode 100644 index e104dfb6a..000000000 --- a/ccc/src/model/GetConversationDetailByContactIdResult.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = dataListNode["List"]["QualityCheckPhrase"]; - for (auto dataListNodeListQualityCheckPhrase : allListNode) - { - DataList::QualityCheckPhrase qualityCheckPhraseObject; - if(!dataListNodeListQualityCheckPhrase["Identity"].isNull()) - qualityCheckPhraseObject.identity = dataListNodeListQualityCheckPhrase["Identity"].asString(); - if(!dataListNodeListQualityCheckPhrase["Role"].isNull()) - qualityCheckPhraseObject.role = dataListNodeListQualityCheckPhrase["Role"].asString(); - if(!dataListNodeListQualityCheckPhrase["Words"].isNull()) - qualityCheckPhraseObject.words = dataListNodeListQualityCheckPhrase["Words"].asString(); - if(!dataListNodeListQualityCheckPhrase["Begin"].isNull()) - qualityCheckPhraseObject.begin = std::stol(dataListNodeListQualityCheckPhrase["Begin"].asString()); - if(!dataListNodeListQualityCheckPhrase["End"].isNull()) - qualityCheckPhraseObject.end = std::stol(dataListNodeListQualityCheckPhrase["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 deleted file mode 100644 index a9b7901ca..000000000 --- a/ccc/src/model/GetConversationListRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 96cd893e7..000000000 --- a/ccc/src/model/GetConversationListResult.cc +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allConversationsNode = value["Conversations"]["ConversationDetail"]; - for (auto valueConversationsConversationDetail : allConversationsNode) - { - ConversationDetail conversationsObject; - if(!valueConversationsConversationDetail["Timestamp"].isNull()) - conversationsObject.timestamp = std::stol(valueConversationsConversationDetail["Timestamp"].asString()); - if(!valueConversationsConversationDetail["Speaker"].isNull()) - conversationsObject.speaker = valueConversationsConversationDetail["Speaker"].asString(); - if(!valueConversationsConversationDetail["Script"].isNull()) - conversationsObject.script = valueConversationsConversationDetail["Script"].asString(); - auto allSummaryNode = valueConversationsConversationDetail["Summary"]["SummaryItem"]; - for (auto valueConversationsConversationDetailSummarySummaryItem : allSummaryNode) - { - ConversationDetail::SummaryItem summaryObject; - if(!valueConversationsConversationDetailSummarySummaryItem["Category"].isNull()) - summaryObject.category = valueConversationsConversationDetailSummarySummaryItem["Category"].asString(); - if(!valueConversationsConversationDetailSummarySummaryItem["SummaryName"].isNull()) - summaryObject.summaryName = valueConversationsConversationDetailSummarySummaryItem["SummaryName"].asString(); - if(!valueConversationsConversationDetailSummarySummaryItem["Content"].isNull()) - summaryObject.content = valueConversationsConversationDetailSummarySummaryItem["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/GetInstanceRequest.cc b/ccc/src/model/GetInstanceRequest.cc deleted file mode 100644 index f0e2049b6..000000000 --- a/ccc/src/model/GetInstanceRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetInstanceRequest; - -GetInstanceRequest::GetInstanceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceRequest::~GetInstanceRequest() -{} - -std::string GetInstanceRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetInstanceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetInstanceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/GetInstanceResult.cc b/ccc/src/model/GetInstanceResult.cc deleted file mode 100644 index 161ca2bae..000000000 --- a/ccc/src/model/GetInstanceResult.cc +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetInstanceResult::GetInstanceResult() : - ServiceResult() -{} - -GetInstanceResult::GetInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetInstanceResult::~GetInstanceResult() -{} - -void GetInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto instanceNode = value["Instance"]; - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["InstanceName"].isNull()) - instance_.instanceName = instanceNode["InstanceName"].asString(); - if(!instanceNode["InstanceDescription"].isNull()) - instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); - if(!instanceNode["DomainName"].isNull()) - instance_.domainName = instanceNode["DomainName"].asString(); - if(!instanceNode["ConsoleUrl"].isNull()) - instance_.consoleUrl = instanceNode["ConsoleUrl"].asString(); - if(!instanceNode["StorageBucket"].isNull()) - instance_.storageBucket = instanceNode["StorageBucket"].asString(); - if(!instanceNode["StorageMaxDays"].isNull()) - instance_.storageMaxDays = std::stoi(instanceNode["StorageMaxDays"].asString()); - if(!instanceNode["StorageMaxSize"].isNull()) - instance_.storageMaxSize = std::stoi(instanceNode["StorageMaxSize"].asString()); - if(!instanceNode["MaxOnlineAgents"].isNull()) - instance_.maxOnlineAgents = std::stoi(instanceNode["MaxOnlineAgents"].asString()); - if(!instanceNode["TenantId"].isNull()) - instance_.tenantId = instanceNode["TenantId"].asString(); - if(!instanceNode["DirectoryId"].isNull()) - instance_.directoryId = instanceNode["DirectoryId"].asString(); - if(!instanceNode["Status"].isNull()) - instance_.status = instanceNode["Status"].asString(); - if(!instanceNode["CreatedTime"].isNull()) - instance_.createdTime = std::stol(instanceNode["CreatedTime"].asString()); - if(!instanceNode["Owner"].isNull()) - instance_.owner = instanceNode["Owner"].asString(); - auto allAdminNode = instanceNode["Admin"]["User"]; - for (auto instanceNodeAdminUser : allAdminNode) - { - Instance::User userObject; - if(!instanceNodeAdminUser["UserId"].isNull()) - userObject.userId = instanceNodeAdminUser["UserId"].asString(); - if(!instanceNodeAdminUser["RamId"].isNull()) - userObject.ramId = instanceNodeAdminUser["RamId"].asString(); - if(!instanceNodeAdminUser["InstanceId"].isNull()) - userObject.instanceId = instanceNodeAdminUser["InstanceId"].asString(); - 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(); - instance_.admin.push_back(userObject); - } - auto allPhoneNumbersNode = instanceNode["PhoneNumbers"]["PhoneNumber"]; - for (auto instanceNodePhoneNumbersPhoneNumber : allPhoneNumbersNode) - { - Instance::PhoneNumber phoneNumberObject; - if(!instanceNodePhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = instanceNodePhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumberObject.instanceId = instanceNodePhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumberObject.number = instanceNodePhoneNumbersPhoneNumber["Number"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = instanceNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["TestOnly"].isNull()) - phoneNumberObject.testOnly = instanceNodePhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!instanceNodePhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumberObject.remainingTime = std::stoi(instanceNodePhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!instanceNodePhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - phoneNumberObject.allowOutbound = instanceNodePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!instanceNodePhoneNumbersPhoneNumber["Usage"].isNull()) - phoneNumberObject.usage = instanceNodePhoneNumbersPhoneNumber["Usage"].asString(); - if(!instanceNodePhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumberObject.trunks = std::stoi(instanceNodePhoneNumbersPhoneNumber["Trunks"].asString()); - instance_.phoneNumbers.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()); - -} - -std::string GetInstanceResult::getMessage()const -{ - return message_; -} - -GetInstanceResult::Instance GetInstanceResult::getInstance()const -{ - return instance_; -} - -int GetInstanceResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetInstanceResult::getCode()const -{ - return code_; -} - -bool GetInstanceResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetInstanceStateRequest.cc b/ccc/src/model/GetInstanceStateRequest.cc deleted file mode 100644 index 9e6ec2353..000000000 --- a/ccc/src/model/GetInstanceStateRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetInstanceStateRequest; - -GetInstanceStateRequest::GetInstanceStateRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetInstanceState") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceStateRequest::~GetInstanceStateRequest() -{} - -std::string GetInstanceStateRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetInstanceStateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetInstanceStateRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetInstanceStateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/GetInstanceStateResult.cc b/ccc/src/model/GetInstanceStateResult.cc deleted file mode 100644 index 35f1367c8..000000000 --- a/ccc/src/model/GetInstanceStateResult.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetInstanceStateResult::GetInstanceStateResult() : - ServiceResult() -{} - -GetInstanceStateResult::GetInstanceStateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetInstanceStateResult::~GetInstanceStateResult() -{} - -void GetInstanceStateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto realTimeInstanceStateNode = value["RealTimeInstanceState"]; - auto allAgentStateDistributionsNode = realTimeInstanceStateNode["AgentStateDistributions"]["AgentStateCount"]; - for (auto realTimeInstanceStateNodeAgentStateDistributionsAgentStateCount : allAgentStateDistributionsNode) - { - RealTimeInstanceState::AgentStateCount agentStateCountObject; - if(!realTimeInstanceStateNodeAgentStateDistributionsAgentStateCount["State"].isNull()) - agentStateCountObject.state = realTimeInstanceStateNodeAgentStateDistributionsAgentStateCount["State"].asString(); - if(!realTimeInstanceStateNodeAgentStateDistributionsAgentStateCount["Count"].isNull()) - agentStateCountObject.count = std::stol(realTimeInstanceStateNodeAgentStateDistributionsAgentStateCount["Count"].asString()); - realTimeInstanceState_.agentStateDistributions.push_back(agentStateCountObject); - } - 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 GetInstanceStateResult::getMessage()const -{ - return message_; -} - -int GetInstanceStateResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetInstanceStateResult::getCode()const -{ - return code_; -} - -GetInstanceStateResult::RealTimeInstanceState GetInstanceStateResult::getRealTimeInstanceState()const -{ - return realTimeInstanceState_; -} - -bool GetInstanceStateResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetInstanceSummaryReportByIntervalRequest.cc b/ccc/src/model/GetInstanceSummaryReportByIntervalRequest.cc deleted file mode 100644 index ec2065aea..000000000 --- a/ccc/src/model/GetInstanceSummaryReportByIntervalRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetInstanceSummaryReportByIntervalRequest; - -GetInstanceSummaryReportByIntervalRequest::GetInstanceSummaryReportByIntervalRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetInstanceSummaryReportByInterval") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceSummaryReportByIntervalRequest::~GetInstanceSummaryReportByIntervalRequest() -{} - -std::string GetInstanceSummaryReportByIntervalRequest::getEndTime()const -{ - return endTime_; -} - -void GetInstanceSummaryReportByIntervalRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -std::string GetInstanceSummaryReportByIntervalRequest::getStartTime()const -{ - return startTime_; -} - -void GetInstanceSummaryReportByIntervalRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -int GetInstanceSummaryReportByIntervalRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GetInstanceSummaryReportByIntervalRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string GetInstanceSummaryReportByIntervalRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetInstanceSummaryReportByIntervalRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetInstanceSummaryReportByIntervalRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetInstanceSummaryReportByIntervalRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int GetInstanceSummaryReportByIntervalRequest::getPageSize()const -{ - return pageSize_; -} - -void GetInstanceSummaryReportByIntervalRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string GetInstanceSummaryReportByIntervalRequest::getInterval()const -{ - return interval_; -} - -void GetInstanceSummaryReportByIntervalRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc b/ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc deleted file mode 100644 index f4c5072c3..000000000 --- a/ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetInstanceSummaryReportByIntervalResult::GetInstanceSummaryReportByIntervalResult() : - ServiceResult() -{} - -GetInstanceSummaryReportByIntervalResult::GetInstanceSummaryReportByIntervalResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetInstanceSummaryReportByIntervalResult::~GetInstanceSummaryReportByIntervalResult() -{} - -void GetInstanceSummaryReportByIntervalResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto instanceTimeIntervalReportNode = value["InstanceTimeIntervalReport"]; - if(!instanceTimeIntervalReportNode["InstanceId"].isNull()) - instanceTimeIntervalReport_.instanceId = instanceTimeIntervalReportNode["InstanceId"].asString(); - auto allIntervalListNode = instanceTimeIntervalReportNode["IntervalList"]["InstanceSummaryReport"]; - for (auto instanceTimeIntervalReportNodeIntervalListInstanceSummaryReport : allIntervalListNode) - { - InstanceTimeIntervalReport::InstanceSummaryReport instanceSummaryReportObject; - if(!instanceTimeIntervalReportNodeIntervalListInstanceSummaryReport["Timestamp"].isNull()) - instanceSummaryReportObject.timestamp = instanceTimeIntervalReportNodeIntervalListInstanceSummaryReport["Timestamp"].asString(); - if(!instanceTimeIntervalReportNodeIntervalListInstanceSummaryReport["InstanceId"].isNull()) - instanceSummaryReportObject.instanceId = instanceTimeIntervalReportNodeIntervalListInstanceSummaryReport["InstanceId"].asString(); - auto overallNode = value["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - instanceSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - instanceSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - instanceSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - instanceSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - instanceSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - instanceSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - instanceSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - instanceSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - instanceSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - instanceSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - instanceSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - instanceSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - instanceSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - instanceSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - auto inboundNode = value["Inbound"]; - if(!inboundNode["CallsIncomingLine"].isNull()) - instanceSummaryReportObject.inbound.callsIncomingLine = std::stol(inboundNode["CallsIncomingLine"].asString()); - if(!inboundNode["CallsIncomingIVR"].isNull()) - instanceSummaryReportObject.inbound.callsIncomingIVR = std::stol(inboundNode["CallsIncomingIVR"].asString()); - if(!inboundNode["CallsAbandonedInIVR"].isNull()) - instanceSummaryReportObject.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); - if(!inboundNode["CallsIncomingQueue"].isNull()) - instanceSummaryReportObject.inbound.callsIncomingQueue = std::stol(inboundNode["CallsIncomingQueue"].asString()); - if(!inboundNode["CallsAbandonedInQueue"].isNull()) - instanceSummaryReportObject.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); - if(!inboundNode["CallsOffered"].isNull()) - instanceSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - instanceSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - instanceSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - instanceSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - instanceSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - instanceSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - instanceSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - instanceSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - instanceSummaryReportObject.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); - if(!inboundNode["AverageTalkTime"].isNull()) - instanceSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - instanceSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - instanceSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - instanceSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - instanceSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - if(!inboundNode["TotalWaitTime"].isNull()) - instanceSummaryReportObject.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); - if(!inboundNode["MaxWaitTime"].isNull()) - instanceSummaryReportObject.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); - if(!inboundNode["AverageWaitTime"].isNull()) - instanceSummaryReportObject.inbound.averageWaitTime = std::stol(inboundNode["AverageWaitTime"].asString()); - auto outboundNode = value["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - instanceSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - instanceSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - instanceSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - instanceSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - instanceSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - instanceSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - instanceSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - instanceSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - instanceSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - instanceSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - instanceSummaryReportObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); - if(!outboundNode["AverageWorkTime"].isNull()) - instanceSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - instanceSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); - instanceTimeIntervalReport_.intervalList.push_back(instanceSummaryReportObject); - } - 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()); - -} - -GetInstanceSummaryReportByIntervalResult::InstanceTimeIntervalReport GetInstanceSummaryReportByIntervalResult::getInstanceTimeIntervalReport()const -{ - return instanceTimeIntervalReport_; -} - -std::string GetInstanceSummaryReportByIntervalResult::getMessage()const -{ - return message_; -} - -int GetInstanceSummaryReportByIntervalResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetInstanceSummaryReportByIntervalResult::getCode()const -{ - return code_; -} - -bool GetInstanceSummaryReportByIntervalResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetInstanceSummaryReportRequest.cc b/ccc/src/model/GetInstanceSummaryReportRequest.cc deleted file mode 100644 index 4de1de188..000000000 --- a/ccc/src/model/GetInstanceSummaryReportRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetInstanceSummaryReportRequest; - -GetInstanceSummaryReportRequest::GetInstanceSummaryReportRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetInstanceSummaryReport") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceSummaryReportRequest::~GetInstanceSummaryReportRequest() -{} - -std::string GetInstanceSummaryReportRequest::getEndTime()const -{ - return endTime_; -} - -void GetInstanceSummaryReportRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -std::string GetInstanceSummaryReportRequest::getStartTime()const -{ - return startTime_; -} - -void GetInstanceSummaryReportRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -int GetInstanceSummaryReportRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GetInstanceSummaryReportRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string GetInstanceSummaryReportRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetInstanceSummaryReportRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetInstanceSummaryReportRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetInstanceSummaryReportRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int GetInstanceSummaryReportRequest::getPageSize()const -{ - return pageSize_; -} - -void GetInstanceSummaryReportRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/GetInstanceSummaryReportResult.cc b/ccc/src/model/GetInstanceSummaryReportResult.cc deleted file mode 100644 index b7be69f5b..000000000 --- a/ccc/src/model/GetInstanceSummaryReportResult.cc +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetInstanceSummaryReportResult::GetInstanceSummaryReportResult() : - ServiceResult() -{} - -GetInstanceSummaryReportResult::GetInstanceSummaryReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetInstanceSummaryReportResult::~GetInstanceSummaryReportResult() -{} - -void GetInstanceSummaryReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto instanceSummaryReportNode = value["InstanceSummaryReport"]; - if(!instanceSummaryReportNode["InstanceId"].isNull()) - instanceSummaryReport_.instanceId = instanceSummaryReportNode["InstanceId"].asString(); - auto overallNode = instanceSummaryReportNode["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - instanceSummaryReport_.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - instanceSummaryReport_.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - instanceSummaryReport_.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - instanceSummaryReport_.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - instanceSummaryReport_.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - instanceSummaryReport_.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - instanceSummaryReport_.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - instanceSummaryReport_.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - instanceSummaryReport_.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - instanceSummaryReport_.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - instanceSummaryReport_.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - instanceSummaryReport_.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - instanceSummaryReport_.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - instanceSummaryReport_.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReport_.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReport_.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - auto inboundNode = instanceSummaryReportNode["Inbound"]; - if(!inboundNode["CallsIncomingLine"].isNull()) - instanceSummaryReport_.inbound.callsIncomingLine = std::stol(inboundNode["CallsIncomingLine"].asString()); - if(!inboundNode["CallsIncomingIVR"].isNull()) - instanceSummaryReport_.inbound.callsIncomingIVR = std::stol(inboundNode["CallsIncomingIVR"].asString()); - if(!inboundNode["CallsAbandonedInIVR"].isNull()) - instanceSummaryReport_.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); - if(!inboundNode["CallsIncomingQueue"].isNull()) - instanceSummaryReport_.inbound.callsIncomingQueue = std::stol(inboundNode["CallsIncomingQueue"].asString()); - if(!inboundNode["CallsAbandonedInQueue"].isNull()) - instanceSummaryReport_.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); - if(!inboundNode["CallsOffered"].isNull()) - instanceSummaryReport_.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - instanceSummaryReport_.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - instanceSummaryReport_.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - instanceSummaryReport_.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - instanceSummaryReport_.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - instanceSummaryReport_.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - instanceSummaryReport_.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - instanceSummaryReport_.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - instanceSummaryReport_.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); - if(!inboundNode["AverageTalkTime"].isNull()) - instanceSummaryReport_.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - instanceSummaryReport_.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - instanceSummaryReport_.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - instanceSummaryReport_.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - instanceSummaryReport_.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReport_.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReport_.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - if(!inboundNode["TotalWaitTime"].isNull()) - instanceSummaryReport_.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); - if(!inboundNode["MaxWaitTime"].isNull()) - instanceSummaryReport_.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); - if(!inboundNode["AverageWaitTime"].isNull()) - instanceSummaryReport_.inbound.averageWaitTime = std::stol(inboundNode["AverageWaitTime"].asString()); - auto outboundNode = instanceSummaryReportNode["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - instanceSummaryReport_.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - instanceSummaryReport_.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - instanceSummaryReport_.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - instanceSummaryReport_.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - instanceSummaryReport_.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - instanceSummaryReport_.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - instanceSummaryReport_.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - instanceSummaryReport_.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - instanceSummaryReport_.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - instanceSummaryReport_.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - instanceSummaryReport_.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); - if(!outboundNode["AverageWorkTime"].isNull()) - instanceSummaryReport_.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - instanceSummaryReport_.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReport_.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReport_.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].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 GetInstanceSummaryReportResult::getMessage()const -{ - return message_; -} - -int GetInstanceSummaryReportResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -GetInstanceSummaryReportResult::InstanceSummaryReport GetInstanceSummaryReportResult::getInstanceSummaryReport()const -{ - return instanceSummaryReport_; -} - -std::string GetInstanceSummaryReportResult::getCode()const -{ - return code_; -} - -bool GetInstanceSummaryReportResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.cc b/ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.cc deleted file mode 100644 index f927088a2..000000000 --- a/ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetInstanceSummaryReportSinceMidnightRequest; - -GetInstanceSummaryReportSinceMidnightRequest::GetInstanceSummaryReportSinceMidnightRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetInstanceSummaryReportSinceMidnight") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceSummaryReportSinceMidnightRequest::~GetInstanceSummaryReportSinceMidnightRequest() -{} - -int GetInstanceSummaryReportSinceMidnightRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GetInstanceSummaryReportSinceMidnightRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string GetInstanceSummaryReportSinceMidnightRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetInstanceSummaryReportSinceMidnightRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetInstanceSummaryReportSinceMidnightRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetInstanceSummaryReportSinceMidnightRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int GetInstanceSummaryReportSinceMidnightRequest::getPageSize()const -{ - return pageSize_; -} - -void GetInstanceSummaryReportSinceMidnightRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc b/ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc deleted file mode 100644 index cc9d5a8bb..000000000 --- a/ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetInstanceSummaryReportSinceMidnightResult::GetInstanceSummaryReportSinceMidnightResult() : - ServiceResult() -{} - -GetInstanceSummaryReportSinceMidnightResult::GetInstanceSummaryReportSinceMidnightResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetInstanceSummaryReportSinceMidnightResult::~GetInstanceSummaryReportSinceMidnightResult() -{} - -void GetInstanceSummaryReportSinceMidnightResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto instanceSummaryReportNode = value["InstanceSummaryReport"]; - if(!instanceSummaryReportNode["Timestamp"].isNull()) - instanceSummaryReport_.timestamp = instanceSummaryReportNode["Timestamp"].asString(); - if(!instanceSummaryReportNode["InstanceId"].isNull()) - instanceSummaryReport_.instanceId = instanceSummaryReportNode["InstanceId"].asString(); - auto overallNode = instanceSummaryReportNode["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - instanceSummaryReport_.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - instanceSummaryReport_.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - instanceSummaryReport_.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - instanceSummaryReport_.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - instanceSummaryReport_.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - instanceSummaryReport_.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - instanceSummaryReport_.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - instanceSummaryReport_.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - instanceSummaryReport_.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - instanceSummaryReport_.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - instanceSummaryReport_.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - instanceSummaryReport_.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - instanceSummaryReport_.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - instanceSummaryReport_.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReport_.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReport_.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - auto inboundNode = instanceSummaryReportNode["Inbound"]; - if(!inboundNode["CallsIncomingLine"].isNull()) - instanceSummaryReport_.inbound.callsIncomingLine = std::stol(inboundNode["CallsIncomingLine"].asString()); - if(!inboundNode["CallsIncomingIVR"].isNull()) - instanceSummaryReport_.inbound.callsIncomingIVR = std::stol(inboundNode["CallsIncomingIVR"].asString()); - if(!inboundNode["CallsAbandonedInIVR"].isNull()) - instanceSummaryReport_.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); - if(!inboundNode["CallsIncomingQueue"].isNull()) - instanceSummaryReport_.inbound.callsIncomingQueue = std::stol(inboundNode["CallsIncomingQueue"].asString()); - if(!inboundNode["CallsAbandonedInQueue"].isNull()) - instanceSummaryReport_.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); - if(!inboundNode["CallsOffered"].isNull()) - instanceSummaryReport_.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - instanceSummaryReport_.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - instanceSummaryReport_.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - instanceSummaryReport_.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - instanceSummaryReport_.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - instanceSummaryReport_.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - instanceSummaryReport_.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - instanceSummaryReport_.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - instanceSummaryReport_.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); - if(!inboundNode["AverageTalkTime"].isNull()) - instanceSummaryReport_.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - instanceSummaryReport_.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - instanceSummaryReport_.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - instanceSummaryReport_.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - instanceSummaryReport_.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReport_.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReport_.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - if(!inboundNode["TotalWaitTime"].isNull()) - instanceSummaryReport_.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); - if(!inboundNode["MaxWaitTime"].isNull()) - instanceSummaryReport_.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); - if(!inboundNode["AverageWaitTime"].isNull()) - instanceSummaryReport_.inbound.averageWaitTime = std::stol(inboundNode["AverageWaitTime"].asString()); - auto outboundNode = instanceSummaryReportNode["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - instanceSummaryReport_.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - instanceSummaryReport_.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - instanceSummaryReport_.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - instanceSummaryReport_.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - instanceSummaryReport_.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - instanceSummaryReport_.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - instanceSummaryReport_.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - instanceSummaryReport_.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - instanceSummaryReport_.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - instanceSummaryReport_.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - instanceSummaryReport_.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); - if(!outboundNode["AverageWorkTime"].isNull()) - instanceSummaryReport_.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - instanceSummaryReport_.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - instanceSummaryReport_.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - instanceSummaryReport_.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].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 GetInstanceSummaryReportSinceMidnightResult::getMessage()const -{ - return message_; -} - -int GetInstanceSummaryReportSinceMidnightResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -GetInstanceSummaryReportSinceMidnightResult::InstanceSummaryReport GetInstanceSummaryReportSinceMidnightResult::getInstanceSummaryReport()const -{ - return instanceSummaryReport_; -} - -std::string GetInstanceSummaryReportSinceMidnightResult::getCode()const -{ - return code_; -} - -bool GetInstanceSummaryReportSinceMidnightResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetJobDataUploadParamsResult.cc b/ccc/src/model/GetJobDataUploadParamsResult.cc deleted file mode 100644 index a0edec9dc..000000000 --- a/ccc/src/model/GetJobDataUploadParamsResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetJobFileUploadUrlRequest.cc b/ccc/src/model/GetJobFileUploadUrlRequest.cc deleted file mode 100644 index 5afe9bf77..000000000 --- a/ccc/src/model/GetJobFileUploadUrlRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetJobFileUploadUrlRequest; - -GetJobFileUploadUrlRequest::GetJobFileUploadUrlRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetJobFileUploadUrl") -{ - setMethod(HttpRequest::Method::Post); -} - -GetJobFileUploadUrlRequest::~GetJobFileUploadUrlRequest() -{} - -std::string GetJobFileUploadUrlRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetJobFileUploadUrlRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetJobFileUploadUrlRequest::getFileName()const -{ - return fileName_; -} - -void GetJobFileUploadUrlRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); -} - diff --git a/ccc/src/model/GetJobFileUploadUrlResult.cc b/ccc/src/model/GetJobFileUploadUrlResult.cc deleted file mode 100644 index 9ea8a0d67..000000000 --- a/ccc/src/model/GetJobFileUploadUrlResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetJobFileUploadUrlResult::GetJobFileUploadUrlResult() : - ServiceResult() -{} - -GetJobFileUploadUrlResult::GetJobFileUploadUrlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetJobFileUploadUrlResult::~GetJobFileUploadUrlResult() -{} - -void GetJobFileUploadUrlResult::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["FilePath"].isNull()) - filePath_ = value["FilePath"].asString(); - if(!value["UploadUrl"].isNull()) - uploadUrl_ = value["UploadUrl"].asString(); - -} - -std::string GetJobFileUploadUrlResult::getFilePath()const -{ - return filePath_; -} - -std::string GetJobFileUploadUrlResult::getUploadUrl()const -{ - return uploadUrl_; -} - -std::string GetJobFileUploadUrlResult::getMessage()const -{ - return message_; -} - -int GetJobFileUploadUrlResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetJobFileUploadUrlResult::getCode()const -{ - return code_; -} - -bool GetJobFileUploadUrlResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetJobGroupRequest.cc b/ccc/src/model/GetJobGroupRequest.cc deleted file mode 100644 index b0dd25fad..000000000 --- a/ccc/src/model/GetJobGroupRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 7d47761bb..000000000 --- a/ccc/src/model/GetJobGroupResult.cc +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - JobGroup::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) - timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["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 allCategoriesNode = progressNode["Categories"]["KeyValuePair"]; - for (auto progressNodeCategoriesKeyValuePair : allCategoriesNode) - { - JobGroup::Progress::KeyValuePair keyValuePairObject; - if(!progressNodeCategoriesKeyValuePair["Key"].isNull()) - keyValuePairObject.key = progressNodeCategoriesKeyValuePair["Key"].asString(); - if(!progressNodeCategoriesKeyValuePair["Value"].isNull()) - keyValuePairObject.value = progressNodeCategoriesKeyValuePair["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 deleted file mode 100644 index 1c24179ed..000000000 --- a/ccc/src/model/GetJobListRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -GetJobListRequest::~GetJobListRequest() -{} - -int GetJobListRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GetJobListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -bool GetJobListRequest::getQueryAll()const -{ - return queryAll_; -} - -void GetJobListRequest::setQueryAll(bool queryAll) -{ - queryAll_ = queryAll; - setParameter("QueryAll", queryAll ? "true" : "false"); -} - -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::getStatus()const -{ - return status_; -} - -void GetJobListRequest::setStatus(int status) -{ - status_ = status; - setParameter("Status", std::to_string(status)); -} - diff --git a/ccc/src/model/GetJobListResult.cc b/ccc/src/model/GetJobListResult.cc deleted file mode 100644 index 6050c3799..000000000 --- a/ccc/src/model/GetJobListResult.cc +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = jobsNode["List"]["Job"]; - for (auto jobsNodeListJob : allListNode) - { - Jobs::Job jobObject; - if(!jobsNodeListJob["JobId"].isNull()) - jobObject.jobId = jobsNodeListJob["JobId"].asString(); - if(!jobsNodeListJob["GroupId"].isNull()) - jobObject.groupId = jobsNodeListJob["GroupId"].asString(); - if(!jobsNodeListJob["ScenarioId"].isNull()) - jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString(); - if(!jobsNodeListJob["StrategyId"].isNull()) - jobObject.strategyId = jobsNodeListJob["StrategyId"].asString(); - if(!jobsNodeListJob["Priority"].isNull()) - jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString()); - if(!jobsNodeListJob["SystemPriority"].isNull()) - jobObject.systemPriority = std::stoi(jobsNodeListJob["SystemPriority"].asString()); - if(!jobsNodeListJob["Status"].isNull()) - jobObject.status = jobsNodeListJob["Status"].asString(); - if(!jobsNodeListJob["ReferenceId"].isNull()) - jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString(); - if(!jobsNodeListJob["FailureReason"].isNull()) - jobObject.failureReason = jobsNodeListJob["FailureReason"].asString(); - auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"]; - for (auto jobsNodeListJobContactsContact : allContactsNode) - { - Jobs::Job::Contact contactsObject; - if(!jobsNodeListJobContactsContact["ContactId"].isNull()) - contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString(); - if(!jobsNodeListJobContactsContact["ContactName"].isNull()) - contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString(); - if(!jobsNodeListJobContactsContact["Honorific"].isNull()) - contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString(); - if(!jobsNodeListJobContactsContact["Role"].isNull()) - contactsObject.role = jobsNodeListJobContactsContact["Role"].asString(); - if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull()) - contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString(); - if(!jobsNodeListJobContactsContact["State"].isNull()) - contactsObject.state = jobsNodeListJobContactsContact["State"].asString(); - if(!jobsNodeListJobContactsContact["ReferenceId"].isNull()) - contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString(); - if(!jobsNodeListJobContactsContact["JobId"].isNull()) - contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString(); - jobObject.contacts.push_back(contactsObject); - } - auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"]; - for (auto jobsNodeListJobExtrasKeyValuePair : allExtrasNode) - { - Jobs::Job::KeyValuePair extrasObject; - if(!jobsNodeListJobExtrasKeyValuePair["Key"].isNull()) - extrasObject.key = jobsNodeListJobExtrasKeyValuePair["Key"].asString(); - if(!jobsNodeListJobExtrasKeyValuePair["Value"].isNull()) - extrasObject.value = jobsNodeListJobExtrasKeyValuePair["Value"].asString(); - jobObject.extras.push_back(extrasObject); - } - auto allSummaryNode = jobsNodeListJob["Summary"]["SummaryItem"]; - for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode) - { - Jobs::Job::SummaryItem summaryObject; - if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull()) - summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["GroupId"].isNull()) - summaryObject.groupId = jobsNodeListJobSummarySummaryItem["GroupId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull()) - summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull()) - summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull()) - summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["Category"].isNull()) - summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString(); - if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull()) - summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString(); - if(!jobsNodeListJobSummarySummaryItem["Content"].isNull()) - summaryObject.content = jobsNodeListJobSummarySummaryItem["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/GetJobResult.cc b/ccc/src/model/GetJobResult.cc deleted file mode 100644 index a02668007..000000000 --- a/ccc/src/model/GetJobResult.cc +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allContactsNode = jobNode["Contacts"]["Contact"]; - for (auto jobNodeContactsContact : allContactsNode) - { - Job::Contact contactObject; - if(!jobNodeContactsContact["ContactId"].isNull()) - contactObject.contactId = jobNodeContactsContact["ContactId"].asString(); - if(!jobNodeContactsContact["ContactName"].isNull()) - contactObject.contactName = jobNodeContactsContact["ContactName"].asString(); - if(!jobNodeContactsContact["Honorific"].isNull()) - contactObject.honorific = jobNodeContactsContact["Honorific"].asString(); - if(!jobNodeContactsContact["Role"].isNull()) - contactObject.role = jobNodeContactsContact["Role"].asString(); - if(!jobNodeContactsContact["PhoneNumber"].isNull()) - contactObject.phoneNumber = jobNodeContactsContact["PhoneNumber"].asString(); - if(!jobNodeContactsContact["State"].isNull()) - contactObject.state = jobNodeContactsContact["State"].asString(); - if(!jobNodeContactsContact["ReferenceId"].isNull()) - contactObject.referenceId = jobNodeContactsContact["ReferenceId"].asString(); - job_.contacts.push_back(contactObject); - } - auto allExtrasNode = jobNode["Extras"]["KeyValuePair"]; - for (auto jobNodeExtrasKeyValuePair : allExtrasNode) - { - Job::KeyValuePair keyValuePairObject; - if(!jobNodeExtrasKeyValuePair["Key"].isNull()) - keyValuePairObject.key = jobNodeExtrasKeyValuePair["Key"].asString(); - if(!jobNodeExtrasKeyValuePair["Value"].isNull()) - keyValuePairObject.value = jobNodeExtrasKeyValuePair["Value"].asString(); - job_.extras.push_back(keyValuePairObject); - } - auto allTasksNode = jobNode["Tasks"]["Task"]; - for (auto jobNodeTasksTask : allTasksNode) - { - Job::Task taskObject; - if(!jobNodeTasksTask["TaskId"].isNull()) - taskObject.taskId = jobNodeTasksTask["TaskId"].asString(); - if(!jobNodeTasksTask["JobId"].isNull()) - taskObject.jobId = jobNodeTasksTask["JobId"].asString(); - if(!jobNodeTasksTask["ScenarioId"].isNull()) - taskObject.scenarioId = jobNodeTasksTask["ScenarioId"].asString(); - if(!jobNodeTasksTask["ChatbotId"].isNull()) - taskObject.chatbotId = jobNodeTasksTask["ChatbotId"].asString(); - if(!jobNodeTasksTask["PlanedTime"].isNull()) - taskObject.planedTime = std::stol(jobNodeTasksTask["PlanedTime"].asString()); - if(!jobNodeTasksTask["ActualTime"].isNull()) - taskObject.actualTime = std::stol(jobNodeTasksTask["ActualTime"].asString()); - if(!jobNodeTasksTask["CallingNumber"].isNull()) - taskObject.callingNumber = jobNodeTasksTask["CallingNumber"].asString(); - if(!jobNodeTasksTask["CalledNumber"].isNull()) - taskObject.calledNumber = jobNodeTasksTask["CalledNumber"].asString(); - if(!jobNodeTasksTask["CallId"].isNull()) - taskObject.callId = jobNodeTasksTask["CallId"].asString(); - if(!jobNodeTasksTask["Status"].isNull()) - taskObject.status = jobNodeTasksTask["Status"].asString(); - if(!jobNodeTasksTask["Brief"].isNull()) - taskObject.brief = jobNodeTasksTask["Brief"].asString(); - if(!jobNodeTasksTask["Duration"].isNull()) - taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString()); - auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"]; - for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode) - { - Job::Task::ConversationDetail conversationObject; - if(!jobNodeTasksTaskConversationConversationDetail["Timestamp"].isNull()) - conversationObject.timestamp = std::stol(jobNodeTasksTaskConversationConversationDetail["Timestamp"].asString()); - if(!jobNodeTasksTaskConversationConversationDetail["Speaker"].isNull()) - conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString(); - if(!jobNodeTasksTaskConversationConversationDetail["Script"].isNull()) - conversationObject.script = jobNodeTasksTaskConversationConversationDetail["Script"].asString(); - auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"]; - for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node) - { - Job::Task::ConversationDetail::SummaryItem summary1Object; - if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull()) - summary1Object.category = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString(); - if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull()) - summary1Object.summaryName = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString(); - if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull()) - summary1Object.content = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["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 allSummaryNode = jobNode["Summary"]["SummaryItem"]; - for (auto jobNodeSummarySummaryItem : allSummaryNode) - { - Job::SummaryItem3 summaryItem3Object; - if(!jobNodeSummarySummaryItem["Category"].isNull()) - summaryItem3Object.category = jobNodeSummarySummaryItem["Category"].asString(); - if(!jobNodeSummarySummaryItem["SummaryName"].isNull()) - summaryItem3Object.summaryName = jobNodeSummarySummaryItem["SummaryName"].asString(); - if(!jobNodeSummarySummaryItem["Content"].isNull()) - summaryItem3Object.content = jobNodeSummarySummaryItem["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 deleted file mode 100644 index 1a16541d0..000000000 --- a/ccc/src/model/GetJobStatusByCallIdRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index d8296b8f7..000000000 --- a/ccc/src/model/GetJobStatusByCallIdResult.cc +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allContactsNode = jobNode["Contacts"]["Contact"]; - for (auto jobNodeContactsContact : allContactsNode) - { - Job::Contact contactObject; - if(!jobNodeContactsContact["ContactId"].isNull()) - contactObject.contactId = jobNodeContactsContact["ContactId"].asString(); - if(!jobNodeContactsContact["ContactName"].isNull()) - contactObject.contactName = jobNodeContactsContact["ContactName"].asString(); - if(!jobNodeContactsContact["Honorific"].isNull()) - contactObject.honorific = jobNodeContactsContact["Honorific"].asString(); - if(!jobNodeContactsContact["Role"].isNull()) - contactObject.role = jobNodeContactsContact["Role"].asString(); - if(!jobNodeContactsContact["PhoneNumber"].isNull()) - contactObject.phoneNumber = jobNodeContactsContact["PhoneNumber"].asString(); - if(!jobNodeContactsContact["State"].isNull()) - contactObject.state = jobNodeContactsContact["State"].asString(); - if(!jobNodeContactsContact["ReferenceId"].isNull()) - contactObject.referenceId = jobNodeContactsContact["ReferenceId"].asString(); - if(!jobNodeContactsContact["JobId"].isNull()) - contactObject.jobId = jobNodeContactsContact["JobId"].asString(); - job_.contacts.push_back(contactObject); - } - auto allExtrasNode = jobNode["Extras"]["KeyValuePair"]; - for (auto jobNodeExtrasKeyValuePair : allExtrasNode) - { - Job::KeyValuePair keyValuePairObject; - if(!jobNodeExtrasKeyValuePair["Key"].isNull()) - keyValuePairObject.key = jobNodeExtrasKeyValuePair["Key"].asString(); - if(!jobNodeExtrasKeyValuePair["Value"].isNull()) - keyValuePairObject.value = jobNodeExtrasKeyValuePair["Value"].asString(); - job_.extras.push_back(keyValuePairObject); - } - auto allTasksNode = jobNode["Tasks"]["Task"]; - for (auto jobNodeTasksTask : allTasksNode) - { - Job::Task taskObject; - if(!jobNodeTasksTask["TaskId"].isNull()) - taskObject.taskId = jobNodeTasksTask["TaskId"].asString(); - if(!jobNodeTasksTask["JobId"].isNull()) - taskObject.jobId = jobNodeTasksTask["JobId"].asString(); - if(!jobNodeTasksTask["ScenarioId"].isNull()) - taskObject.scenarioId = jobNodeTasksTask["ScenarioId"].asString(); - if(!jobNodeTasksTask["ChatbotId"].isNull()) - taskObject.chatbotId = jobNodeTasksTask["ChatbotId"].asString(); - if(!jobNodeTasksTask["PlanedTime"].isNull()) - taskObject.planedTime = std::stol(jobNodeTasksTask["PlanedTime"].asString()); - if(!jobNodeTasksTask["ActualTime"].isNull()) - taskObject.actualTime = std::stol(jobNodeTasksTask["ActualTime"].asString()); - if(!jobNodeTasksTask["EndTime"].isNull()) - taskObject.endTime = std::stol(jobNodeTasksTask["EndTime"].asString()); - if(!jobNodeTasksTask["CallingNumber"].isNull()) - taskObject.callingNumber = jobNodeTasksTask["CallingNumber"].asString(); - if(!jobNodeTasksTask["CalledNumber"].isNull()) - taskObject.calledNumber = jobNodeTasksTask["CalledNumber"].asString(); - if(!jobNodeTasksTask["CallId"].isNull()) - taskObject.callId = jobNodeTasksTask["CallId"].asString(); - if(!jobNodeTasksTask["Status"].isNull()) - taskObject.status = jobNodeTasksTask["Status"].asString(); - if(!jobNodeTasksTask["Brief"].isNull()) - taskObject.brief = jobNodeTasksTask["Brief"].asString(); - if(!jobNodeTasksTask["Duration"].isNull()) - taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString()); - auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"]; - for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode) - { - Job::Task::ConversationDetail conversationObject; - if(!jobNodeTasksTaskConversationConversationDetail["ConversationDetailId"].isNull()) - conversationObject.conversationDetailId = jobNodeTasksTaskConversationConversationDetail["ConversationDetailId"].asString(); - if(!jobNodeTasksTaskConversationConversationDetail["TaskId"].isNull()) - conversationObject.taskId = jobNodeTasksTaskConversationConversationDetail["TaskId"].asString(); - if(!jobNodeTasksTaskConversationConversationDetail["Timestamp"].isNull()) - conversationObject.timestamp = std::stol(jobNodeTasksTaskConversationConversationDetail["Timestamp"].asString()); - if(!jobNodeTasksTaskConversationConversationDetail["Speaker"].isNull()) - conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString(); - if(!jobNodeTasksTaskConversationConversationDetail["Script"].isNull()) - conversationObject.script = jobNodeTasksTaskConversationConversationDetail["Script"].asString(); - auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"]; - for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node) - { - Job::Task::ConversationDetail::SummaryItem summary1Object; - if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryId"].isNull()) - summary1Object.summaryId = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryId"].asString(); - if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull()) - summary1Object.category = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString(); - if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull()) - summary1Object.summaryName = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString(); - if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull()) - summary1Object.content = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["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 allSummaryNode = jobNode["Summary"]["SummaryItem"]; - for (auto jobNodeSummarySummaryItem : allSummaryNode) - { - Job::SummaryItem3 summaryItem3Object; - if(!jobNodeSummarySummaryItem["SummaryId"].isNull()) - summaryItem3Object.summaryId = jobNodeSummarySummaryItem["SummaryId"].asString(); - if(!jobNodeSummarySummaryItem["Category"].isNull()) - summaryItem3Object.category = jobNodeSummarySummaryItem["Category"].asString(); - if(!jobNodeSummarySummaryItem["SummaryName"].isNull()) - summaryItem3Object.summaryName = jobNodeSummarySummaryItem["SummaryName"].asString(); - if(!jobNodeSummarySummaryItem["Content"].isNull()) - summaryItem3Object.content = jobNodeSummarySummaryItem["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 deleted file mode 100644 index 1432e0536..000000000 --- a/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 5f5118ea5..000000000 --- a/ccc/src/model/GetJobTemplateDownloadParamsResult.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetScenarioRequest.cc b/ccc/src/model/GetLoginDetailsRequest.cc similarity index 56% rename from ccc/src/model/GetScenarioRequest.cc rename to ccc/src/model/GetLoginDetailsRequest.cc index fc1f56273..2c46478bc 100644 --- a/ccc/src/model/GetScenarioRequest.cc +++ b/ccc/src/model/GetLoginDetailsRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetScenarioRequest; +using AlibabaCloud::CCC::Model::GetLoginDetailsRequest; -GetScenarioRequest::GetScenarioRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetScenario") +GetLoginDetailsRequest::GetLoginDetailsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetLoginDetails") { setMethod(HttpRequest::Method::Post); } -GetScenarioRequest::~GetScenarioRequest() +GetLoginDetailsRequest::~GetLoginDetailsRequest() {} -std::string GetScenarioRequest::getInstanceId()const +std::string GetLoginDetailsRequest::getUserId()const +{ + return userId_; +} + +void GetLoginDetailsRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string GetLoginDetailsRequest::getInstanceId()const { return instanceId_; } -void GetScenarioRequest::setInstanceId(const std::string& instanceId) +void GetLoginDetailsRequest::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/GetLoginDetailsResult.cc b/ccc/src/model/GetLoginDetailsResult.cc new file mode 100644 index 000000000..8ee6419b0 --- /dev/null +++ b/ccc/src/model/GetLoginDetailsResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetLoginDetailsResult::GetLoginDetailsResult() : + ServiceResult() +{} + +GetLoginDetailsResult::GetLoginDetailsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLoginDetailsResult::~GetLoginDetailsResult() +{} + +void GetLoginDetailsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["DeviceId"].isNull()) + data_.deviceId = dataNode["DeviceId"].asString(); + if(!dataNode["DisplayName"].isNull()) + data_.displayName = dataNode["DisplayName"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["Signature"].isNull()) + data_.signature = dataNode["Signature"].asString(); + if(!dataNode["SipServerUrl"].isNull()) + data_.sipServerUrl = dataNode["SipServerUrl"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["UserKey"].isNull()) + data_.userKey = dataNode["UserKey"].asString(); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetLoginDetailsResult::getMessage()const +{ + return message_; +} + +int GetLoginDetailsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetLoginDetailsResult::getParams()const +{ + return params_; +} + +GetLoginDetailsResult::Data GetLoginDetailsResult::getData()const +{ + return data_; +} + +std::string GetLoginDetailsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListContactFlowsRequest.cc b/ccc/src/model/GetMonoRecordingRequest.cc similarity index 54% rename from ccc/src/model/ListContactFlowsRequest.cc rename to ccc/src/model/GetMonoRecordingRequest.cc index 5dcc3c1c6..acc727b09 100644 --- a/ccc/src/model/ListContactFlowsRequest.cc +++ b/ccc/src/model/GetMonoRecordingRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListContactFlowsRequest; +using AlibabaCloud::CCC::Model::GetMonoRecordingRequest; -ListContactFlowsRequest::ListContactFlowsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListContactFlows") +GetMonoRecordingRequest::GetMonoRecordingRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetMonoRecording") { setMethod(HttpRequest::Method::Post); } -ListContactFlowsRequest::~ListContactFlowsRequest() +GetMonoRecordingRequest::~GetMonoRecordingRequest() {} -std::string ListContactFlowsRequest::getInstanceId()const +std::string GetMonoRecordingRequest::getContactId()const +{ + return contactId_; +} + +void GetMonoRecordingRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setParameter("ContactId", contactId); +} + +std::string GetMonoRecordingRequest::getInstanceId()const { return instanceId_; } -void ListContactFlowsRequest::setInstanceId(const std::string& instanceId) +void GetMonoRecordingRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -std::string ListContactFlowsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListContactFlowsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/DeleteSkillGroupResult.cc b/ccc/src/model/GetMonoRecordingResult.cc similarity index 63% rename from ccc/src/model/DeleteSkillGroupResult.cc rename to ccc/src/model/GetMonoRecordingResult.cc index a441d9766..b5438ecee 100644 --- a/ccc/src/model/DeleteSkillGroupResult.cc +++ b/ccc/src/model/GetMonoRecordingResult.cc @@ -14,59 +14,62 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -DeleteSkillGroupResult::DeleteSkillGroupResult() : +GetMonoRecordingResult::GetMonoRecordingResult() : ServiceResult() {} -DeleteSkillGroupResult::DeleteSkillGroupResult(const std::string &payload) : +GetMonoRecordingResult::GetMonoRecordingResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteSkillGroupResult::~DeleteSkillGroupResult() +GetMonoRecordingResult::~GetMonoRecordingResult() {} -void DeleteSkillGroupResult::parse(const std::string &payload) +void GetMonoRecordingResult::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"; + auto dataNode = value["Data"]; + if(!dataNode["FileName"].isNull()) + data_.fileName = dataNode["FileName"].asString(); + if(!dataNode["FileUrl"].isNull()) + data_.fileUrl = dataNode["FileUrl"].asString(); 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["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string DeleteSkillGroupResult::getMessage()const +std::string GetMonoRecordingResult::getMessage()const { return message_; } -int DeleteSkillGroupResult::getHttpStatusCode()const +int GetMonoRecordingResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string DeleteSkillGroupResult::getCode()const +GetMonoRecordingResult::Data GetMonoRecordingResult::getData()const +{ + return data_; +} + +std::string GetMonoRecordingResult::getCode()const { return code_; } -bool DeleteSkillGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetJobDataUploadParamsRequest.cc b/ccc/src/model/GetMultiChannelRecordingRequest.cc similarity index 51% rename from ccc/src/model/GetJobDataUploadParamsRequest.cc rename to ccc/src/model/GetMultiChannelRecordingRequest.cc index ccad43257..f1a6d615a 100644 --- a/ccc/src/model/GetJobDataUploadParamsRequest.cc +++ b/ccc/src/model/GetMultiChannelRecordingRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetJobDataUploadParamsRequest; +using AlibabaCloud::CCC::Model::GetMultiChannelRecordingRequest; -GetJobDataUploadParamsRequest::GetJobDataUploadParamsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetJobDataUploadParams") +GetMultiChannelRecordingRequest::GetMultiChannelRecordingRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetMultiChannelRecording") { setMethod(HttpRequest::Method::Post); } -GetJobDataUploadParamsRequest::~GetJobDataUploadParamsRequest() +GetMultiChannelRecordingRequest::~GetMultiChannelRecordingRequest() {} -std::string GetJobDataUploadParamsRequest::getInstanceId()const +std::string GetMultiChannelRecordingRequest::getContactId()const +{ + return contactId_; +} + +void GetMultiChannelRecordingRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setParameter("ContactId", contactId); +} + +std::string GetMultiChannelRecordingRequest::getInstanceId()const { return instanceId_; } -void GetJobDataUploadParamsRequest::setInstanceId(const std::string& instanceId) +void GetMultiChannelRecordingRequest::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/CreatePredictiveJobGroupResult.cc b/ccc/src/model/GetMultiChannelRecordingResult.cc similarity index 60% rename from ccc/src/model/CreatePredictiveJobGroupResult.cc rename to ccc/src/model/GetMultiChannelRecordingResult.cc index 50bf3069c..afb8e73be 100644 --- a/ccc/src/model/CreatePredictiveJobGroupResult.cc +++ b/ccc/src/model/GetMultiChannelRecordingResult.cc @@ -14,66 +14,62 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult() : +GetMultiChannelRecordingResult::GetMultiChannelRecordingResult() : ServiceResult() {} -CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult(const std::string &payload) : +GetMultiChannelRecordingResult::GetMultiChannelRecordingResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreatePredictiveJobGroupResult::~CreatePredictiveJobGroupResult() +GetMultiChannelRecordingResult::~GetMultiChannelRecordingResult() {} -void CreatePredictiveJobGroupResult::parse(const std::string &payload) +void GetMultiChannelRecordingResult::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"; + auto dataNode = value["Data"]; + if(!dataNode["FileName"].isNull()) + data_.fileName = dataNode["FileName"].asString(); + if(!dataNode["FileUrl"].isNull()) + data_.fileUrl = dataNode["FileUrl"].asString(); 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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string CreatePredictiveJobGroupResult::getJobGroupId()const -{ - return jobGroupId_; -} - -std::string CreatePredictiveJobGroupResult::getMessage()const +std::string GetMultiChannelRecordingResult::getMessage()const { return message_; } -int CreatePredictiveJobGroupResult::getHttpStatusCode()const +int GetMultiChannelRecordingResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string CreatePredictiveJobGroupResult::getCode()const +GetMultiChannelRecordingResult::Data GetMultiChannelRecordingResult::getData()const +{ + return data_; +} + +std::string GetMultiChannelRecordingResult::getCode()const { return code_; } -bool CreatePredictiveJobGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/DeleteJobGroupRequest.cc b/ccc/src/model/GetNumberLocationRequest.cc similarity index 55% rename from ccc/src/model/DeleteJobGroupRequest.cc rename to ccc/src/model/GetNumberLocationRequest.cc index 1cedab2ad..40e44b13e 100644 --- a/ccc/src/model/DeleteJobGroupRequest.cc +++ b/ccc/src/model/GetNumberLocationRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::DeleteJobGroupRequest; +using AlibabaCloud::CCC::Model::GetNumberLocationRequest; -DeleteJobGroupRequest::DeleteJobGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DeleteJobGroup") +GetNumberLocationRequest::GetNumberLocationRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetNumberLocation") { setMethod(HttpRequest::Method::Post); } -DeleteJobGroupRequest::~DeleteJobGroupRequest() +GetNumberLocationRequest::~GetNumberLocationRequest() {} -std::string DeleteJobGroupRequest::getInstanceId()const +std::string GetNumberLocationRequest::getNumber()const +{ + return number_; +} + +void GetNumberLocationRequest::setNumber(const std::string& number) +{ + number_ = number; + setParameter("Number", number); +} + +std::string GetNumberLocationRequest::getInstanceId()const { return instanceId_; } -void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId) +void GetNumberLocationRequest::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/RemovePhoneNumberResult.cc b/ccc/src/model/GetNumberLocationResult.cc similarity index 60% rename from ccc/src/model/RemovePhoneNumberResult.cc rename to ccc/src/model/GetNumberLocationResult.cc index 5363a6739..61ff2a8d8 100644 --- a/ccc/src/model/RemovePhoneNumberResult.cc +++ b/ccc/src/model/GetNumberLocationResult.cc @@ -14,59 +14,64 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -RemovePhoneNumberResult::RemovePhoneNumberResult() : +GetNumberLocationResult::GetNumberLocationResult() : ServiceResult() {} -RemovePhoneNumberResult::RemovePhoneNumberResult(const std::string &payload) : +GetNumberLocationResult::GetNumberLocationResult(const std::string &payload) : ServiceResult() { parse(payload); } -RemovePhoneNumberResult::~RemovePhoneNumberResult() +GetNumberLocationResult::~GetNumberLocationResult() {} -void RemovePhoneNumberResult::parse(const std::string &payload) +void GetNumberLocationResult::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"; + auto dataNode = value["Data"]; + if(!dataNode["City"].isNull()) + data_.city = dataNode["City"].asString(); + if(!dataNode["Number"].isNull()) + data_.number = dataNode["Number"].asString(); + if(!dataNode["Province"].isNull()) + data_.province = dataNode["Province"].asString(); 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["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string RemovePhoneNumberResult::getMessage()const +std::string GetNumberLocationResult::getMessage()const { return message_; } -int RemovePhoneNumberResult::getHttpStatusCode()const +int GetNumberLocationResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string RemovePhoneNumberResult::getCode()const +GetNumberLocationResult::Data GetNumberLocationResult::getData()const +{ + return data_; +} + +std::string GetNumberLocationResult::getCode()const { return code_; } -bool RemovePhoneNumberResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetNumberRegionInfoRequest.cc b/ccc/src/model/GetNumberRegionInfoRequest.cc deleted file mode 100644 index 60ecd186f..000000000 --- a/ccc/src/model/GetNumberRegionInfoRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 92a4e13c5..000000000 --- a/ccc/src/model/GetNumberRegionInfoResult.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetRecordOssUploadParamRequest.cc b/ccc/src/model/GetRecordOssUploadParamRequest.cc deleted file mode 100644 index d9d396e5f..000000000 --- a/ccc/src/model/GetRecordOssUploadParamRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetRecordOssUploadParamRequest; - -GetRecordOssUploadParamRequest::GetRecordOssUploadParamRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetRecordOssUploadParam") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRecordOssUploadParamRequest::~GetRecordOssUploadParamRequest() -{} - -std::string GetRecordOssUploadParamRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetRecordOssUploadParamRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetRecordOssUploadParamRequest::getFileName()const -{ - return fileName_; -} - -void GetRecordOssUploadParamRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); -} - -std::string GetRecordOssUploadParamRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetRecordOssUploadParamRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/GetRecordOssUploadParamResult.cc b/ccc/src/model/GetRecordOssUploadParamResult.cc deleted file mode 100644 index 353773739..000000000 --- a/ccc/src/model/GetRecordOssUploadParamResult.cc +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetRecordOssUploadParamResult::GetRecordOssUploadParamResult() : - ServiceResult() -{} - -GetRecordOssUploadParamResult::GetRecordOssUploadParamResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetRecordOssUploadParamResult::~GetRecordOssUploadParamResult() -{} - -void GetRecordOssUploadParamResult::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["OssAccessKeyId"].isNull()) - ossAccessKeyId_ = value["OssAccessKeyId"].asString(); - if(!value["Policy"].isNull()) - policy_ = value["Policy"].asString(); - if(!value["Signature"].isNull()) - signature_ = value["Signature"].asString(); - if(!value["Expires"].isNull()) - expires_ = value["Expires"].asString(); - if(!value["Dir"].isNull()) - dir_ = value["Dir"].asString(); - if(!value["Host"].isNull()) - host_ = value["Host"].asString(); - if(!value["OssFileName"].isNull()) - ossFileName_ = value["OssFileName"].asString(); - -} - -std::string GetRecordOssUploadParamResult::getPolicy()const -{ - return policy_; -} - -std::string GetRecordOssUploadParamResult::getMessage()const -{ - return message_; -} - -std::string GetRecordOssUploadParamResult::getSignature()const -{ - return signature_; -} - -int GetRecordOssUploadParamResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetRecordOssUploadParamResult::getOssFileName()const -{ - return ossFileName_; -} - -std::string GetRecordOssUploadParamResult::getHost()const -{ - return host_; -} - -std::string GetRecordOssUploadParamResult::getExpires()const -{ - return expires_; -} - -std::string GetRecordOssUploadParamResult::getDir()const -{ - return dir_; -} - -std::string GetRecordOssUploadParamResult::getCode()const -{ - return code_; -} - -std::string GetRecordOssUploadParamResult::getOssAccessKeyId()const -{ - return ossAccessKeyId_; -} - -bool GetRecordOssUploadParamResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetRoutePointRequest.cc b/ccc/src/model/GetRoutePointRequest.cc deleted file mode 100644 index bc8bf7783..000000000 --- a/ccc/src/model/GetRoutePointRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetRoutePointRequest; - -GetRoutePointRequest::GetRoutePointRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetRoutePoint") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRoutePointRequest::~GetRoutePointRequest() -{} - -std::string GetRoutePointRequest::getContactFlowId()const -{ - return contactFlowId_; -} - -void GetRoutePointRequest::setContactFlowId(const std::string& contactFlowId) -{ - contactFlowId_ = contactFlowId; - setParameter("ContactFlowId", contactFlowId); -} - -std::string GetRoutePointRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetRoutePointRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetRoutePointRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetRoutePointRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/GetRoutePointResult.cc b/ccc/src/model/GetRoutePointResult.cc deleted file mode 100644 index 9ac645c48..000000000 --- a/ccc/src/model/GetRoutePointResult.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetRoutePointResult::GetRoutePointResult() : - ServiceResult() -{} - -GetRoutePointResult::GetRoutePointResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetRoutePointResult::~GetRoutePointResult() -{} - -void GetRoutePointResult::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["RoutePoint"].isNull()) - routePoint_ = value["RoutePoint"].asString(); - -} - -std::string GetRoutePointResult::getStatusDesc()const -{ - return statusDesc_; -} - -std::string GetRoutePointResult::getMessage()const -{ - return message_; -} - -std::string GetRoutePointResult::getRoutePoint()const -{ - return routePoint_; -} - -int GetRoutePointResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetRoutePointResult::getCode()const -{ - return code_; -} - -std::string GetRoutePointResult::getStatusCode()const -{ - return statusCode_; -} - -bool GetRoutePointResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetScenarioResult.cc b/ccc/src/model/GetScenarioResult.cc deleted file mode 100644 index 6cf23e948..000000000 --- a/ccc/src/model/GetScenarioResult.cc +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allSurveysNode = scenarioNode["Surveys"]["Survey"]; - for (auto scenarioNodeSurveysSurvey : allSurveysNode) - { - Scenario::Survey surveyObject; - if(!scenarioNodeSurveysSurvey["Id"].isNull()) - surveyObject.id = scenarioNodeSurveysSurvey["Id"].asString(); - if(!scenarioNodeSurveysSurvey["Name"].isNull()) - surveyObject.name = scenarioNodeSurveysSurvey["Name"].asString(); - if(!scenarioNodeSurveysSurvey["Description"].isNull()) - surveyObject.description = scenarioNodeSurveysSurvey["Description"].asString(); - if(!scenarioNodeSurveysSurvey["Role"].isNull()) - surveyObject.role = scenarioNodeSurveysSurvey["Role"].asString(); - if(!scenarioNodeSurveysSurvey["Round"].isNull()) - surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString()); - if(!scenarioNodeSurveysSurvey["BeebotId"].isNull()) - surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString(); - auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"]; - for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode) - { - Scenario::Survey::IntentNode intentsObject; - if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull()) - intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString(); - if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull()) - intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString(); - surveyObject.intents.push_back(intentsObject); - } - scenario_.surveys.push_back(surveyObject); - } - auto allVariablesNode = scenarioNode["Variables"]["KeyValuePair"]; - for (auto scenarioNodeVariablesKeyValuePair : allVariablesNode) - { - Scenario::KeyValuePair keyValuePairObject; - if(!scenarioNodeVariablesKeyValuePair["Key"].isNull()) - keyValuePairObject.key = scenarioNodeVariablesKeyValuePair["Key"].asString(); - if(!scenarioNodeVariablesKeyValuePair["Value"].isNull()) - keyValuePairObject.value = scenarioNodeVariablesKeyValuePair["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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - Scenario::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) - timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["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/GetServiceExtensionsRequest.cc b/ccc/src/model/GetServiceExtensionsRequest.cc deleted file mode 100644 index 0d6416a71..000000000 --- a/ccc/src/model/GetServiceExtensionsRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetServiceExtensionsRequest; - -GetServiceExtensionsRequest::GetServiceExtensionsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetServiceExtensions") -{ - setMethod(HttpRequest::Method::Post); -} - -GetServiceExtensionsRequest::~GetServiceExtensionsRequest() -{} - -std::string GetServiceExtensionsRequest::getServiceType()const -{ - return serviceType_; -} - -void GetServiceExtensionsRequest::setServiceType(const std::string& serviceType) -{ - serviceType_ = serviceType; - setParameter("ServiceType", serviceType); -} - -std::string GetServiceExtensionsRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetServiceExtensionsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetServiceExtensionsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetServiceExtensionsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/GetServiceExtensionsResult.cc b/ccc/src/model/GetServiceExtensionsResult.cc deleted file mode 100644 index 64834b4a2..000000000 --- a/ccc/src/model/GetServiceExtensionsResult.cc +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetServiceExtensionsResult::GetServiceExtensionsResult() : - ServiceResult() -{} - -GetServiceExtensionsResult::GetServiceExtensionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetServiceExtensionsResult::~GetServiceExtensionsResult() -{} - -void GetServiceExtensionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allServiceExtensionsNode = value["ServiceExtensions"]["ServiceExtension"]; - for (auto valueServiceExtensionsServiceExtension : allServiceExtensionsNode) - { - ServiceExtension serviceExtensionsObject; - if(!valueServiceExtensionsServiceExtension["Name"].isNull()) - serviceExtensionsObject.name = valueServiceExtensionsServiceExtension["Name"].asString(); - if(!valueServiceExtensionsServiceExtension["Number"].isNull()) - serviceExtensionsObject.number = valueServiceExtensionsServiceExtension["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_; -} - diff --git a/ccc/src/model/GetSmsConfigRequest.cc b/ccc/src/model/GetSmsConfigRequest.cc deleted file mode 100644 index 462dba77c..000000000 --- a/ccc/src/model/GetSmsConfigRequest.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetSmsConfigRequest; - -GetSmsConfigRequest::GetSmsConfigRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetSmsConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSmsConfigRequest::~GetSmsConfigRequest() -{} - -std::string GetSmsConfigRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetSmsConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector GetSmsConfigRequest::getScenario()const -{ - return scenario_; -} - -void GetSmsConfigRequest::setScenario(const std::vector& scenario) -{ - scenario_ = scenario; - for(int dep1 = 0; dep1!= scenario.size(); dep1++) { - setParameter("Scenario."+ std::to_string(dep1), std::to_string(scenario.at(dep1))); - } -} - -std::string GetSmsConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetSmsConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/GetSmsConfigResult.cc b/ccc/src/model/GetSmsConfigResult.cc deleted file mode 100644 index 2b539f377..000000000 --- a/ccc/src/model/GetSmsConfigResult.cc +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetSmsConfigResult::GetSmsConfigResult() : - ServiceResult() -{} - -GetSmsConfigResult::GetSmsConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetSmsConfigResult::~GetSmsConfigResult() -{} - -void GetSmsConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSmsConfigsNode = value["SmsConfigs"]["SmsConfig"]; - for (auto valueSmsConfigsSmsConfig : allSmsConfigsNode) - { - SmsConfig smsConfigsObject; - if(!valueSmsConfigsSmsConfig["Id"].isNull()) - smsConfigsObject.id = std::stol(valueSmsConfigsSmsConfig["Id"].asString()); - if(!valueSmsConfigsSmsConfig["Instance"].isNull()) - smsConfigsObject.instance = valueSmsConfigsSmsConfig["Instance"].asString(); - if(!valueSmsConfigsSmsConfig["SignName"].isNull()) - smsConfigsObject.signName = valueSmsConfigsSmsConfig["SignName"].asString(); - if(!valueSmsConfigsSmsConfig["TemplateCode"].isNull()) - smsConfigsObject.templateCode = valueSmsConfigsSmsConfig["TemplateCode"].asString(); - if(!valueSmsConfigsSmsConfig["Scenario"].isNull()) - smsConfigsObject.scenario = std::stoi(valueSmsConfigsSmsConfig["Scenario"].asString()); - if(!valueSmsConfigsSmsConfig["Name"].isNull()) - smsConfigsObject.name = valueSmsConfigsSmsConfig["Name"].asString(); - if(!valueSmsConfigsSmsConfig["Description"].isNull()) - smsConfigsObject.description = valueSmsConfigsSmsConfig["Description"].asString(); - if(!valueSmsConfigsSmsConfig["Extra"].isNull()) - smsConfigsObject.extra = valueSmsConfigsSmsConfig["Extra"].asString(); - if(!valueSmsConfigsSmsConfig["GmtCreate"].isNull()) - smsConfigsObject.gmtCreate = valueSmsConfigsSmsConfig["GmtCreate"].asString(); - if(!valueSmsConfigsSmsConfig["GmtModified"].isNull()) - smsConfigsObject.gmtModified = valueSmsConfigsSmsConfig["GmtModified"].asString(); - smsConfigs_.push_back(smsConfigsObject); - } - 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 GetSmsConfigResult::getMessage()const -{ - return message_; -} - -int GetSmsConfigResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector GetSmsConfigResult::getSmsConfigs()const -{ - return smsConfigs_; -} - -std::string GetSmsConfigResult::getCode()const -{ - return code_; -} - -bool GetSmsConfigResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetSurveyRequest.cc b/ccc/src/model/GetSurveyRequest.cc deleted file mode 100644 index 78a9cf5e9..000000000 --- a/ccc/src/model/GetSurveyRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 6890f0d0c..000000000 --- a/ccc/src/model/GetSurveyResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/GetTURNCredentialsRequest.cc b/ccc/src/model/GetTURNCredentialsRequest.cc deleted file mode 100644 index 89f3e4ccc..000000000 --- a/ccc/src/model/GetTURNCredentialsRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetTURNCredentialsRequest; - -GetTURNCredentialsRequest::GetTURNCredentialsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetTURNCredentials") -{ - setMethod(HttpRequest::Method::Post); -} - -GetTURNCredentialsRequest::~GetTURNCredentialsRequest() -{} - -std::string GetTURNCredentialsRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetTURNCredentialsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetTURNCredentialsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetTURNCredentialsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetTURNCredentialsRequest::getUserName()const -{ - return userName_; -} - -void GetTURNCredentialsRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - diff --git a/ccc/src/model/GetTURNServerListRequest.cc b/ccc/src/model/GetTURNServerListRequest.cc deleted file mode 100644 index 563dacbc0..000000000 --- a/ccc/src/model/GetTURNServerListRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetTURNServerListRequest; - -GetTURNServerListRequest::GetTURNServerListRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetTURNServerList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetTURNServerListRequest::~GetTURNServerListRequest() -{} - -std::string GetTURNServerListRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetTURNServerListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetTURNServerListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetTURNServerListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/GetTURNServerListResult.cc b/ccc/src/model/GetTURNServerListResult.cc deleted file mode 100644 index 3cd7d96ff..000000000 --- a/ccc/src/model/GetTURNServerListResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetTURNServerListResult::GetTURNServerListResult() : - ServiceResult() -{} - -GetTURNServerListResult::GetTURNServerListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetTURNServerListResult::~GetTURNServerListResult() -{} - -void GetTURNServerListResult::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["TurnServerListConfig"].isNull()) - turnServerListConfig_ = value["TurnServerListConfig"].asString(); - -} - -std::string GetTURNServerListResult::getMessage()const -{ - return message_; -} - -int GetTURNServerListResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetTURNServerListResult::getCode()const -{ - return code_; -} - -std::string GetTURNServerListResult::getTurnServerListConfig()const -{ - return turnServerListConfig_; -} - -bool GetTURNServerListResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetTaskListResult.cc b/ccc/src/model/GetTaskListResult.cc deleted file mode 100644 index 1007d0e3f..000000000 --- a/ccc/src/model/GetTaskListResult.cc +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allTasksNode = value["Tasks"]["Task"]; - for (auto valueTasksTask : allTasksNode) - { - Task tasksObject; - if(!valueTasksTask["TaskId"].isNull()) - tasksObject.taskId = valueTasksTask["TaskId"].asString(); - if(!valueTasksTask["JobId"].isNull()) - tasksObject.jobId = valueTasksTask["JobId"].asString(); - if(!valueTasksTask["ScenarioId"].isNull()) - tasksObject.scenarioId = valueTasksTask["ScenarioId"].asString(); - if(!valueTasksTask["ChatbotId"].isNull()) - tasksObject.chatbotId = valueTasksTask["ChatbotId"].asString(); - if(!valueTasksTask["PlanedTime"].isNull()) - tasksObject.planedTime = std::stol(valueTasksTask["PlanedTime"].asString()); - if(!valueTasksTask["ActualTime"].isNull()) - tasksObject.actualTime = std::stol(valueTasksTask["ActualTime"].asString()); - if(!valueTasksTask["CallingNumber"].isNull()) - tasksObject.callingNumber = valueTasksTask["CallingNumber"].asString(); - if(!valueTasksTask["CalledNumber"].isNull()) - tasksObject.calledNumber = valueTasksTask["CalledNumber"].asString(); - if(!valueTasksTask["CallId"].isNull()) - tasksObject.callId = valueTasksTask["CallId"].asString(); - if(!valueTasksTask["Status"].isNull()) - tasksObject.status = valueTasksTask["Status"].asString(); - if(!valueTasksTask["Brief"].isNull()) - tasksObject.brief = valueTasksTask["Brief"].asString(); - if(!valueTasksTask["Duration"].isNull()) - tasksObject.duration = std::stoi(valueTasksTask["Duration"].asString()); - auto allConversationNode = valueTasksTask["Conversation"]["ConversationDetail"]; - for (auto valueTasksTaskConversationConversationDetail : allConversationNode) - { - Task::ConversationDetail conversationObject; - if(!valueTasksTaskConversationConversationDetail["Timestamp"].isNull()) - conversationObject.timestamp = std::stol(valueTasksTaskConversationConversationDetail["Timestamp"].asString()); - if(!valueTasksTaskConversationConversationDetail["Speaker"].isNull()) - conversationObject.speaker = valueTasksTaskConversationConversationDetail["Speaker"].asString(); - if(!valueTasksTaskConversationConversationDetail["Script"].isNull()) - conversationObject.script = valueTasksTaskConversationConversationDetail["Script"].asString(); - auto allSummaryNode = valueTasksTaskConversationConversationDetail["Summary"]["SummaryItem"]; - for (auto valueTasksTaskConversationConversationDetailSummarySummaryItem : allSummaryNode) - { - Task::ConversationDetail::SummaryItem summaryObject; - if(!valueTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull()) - summaryObject.category = valueTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString(); - if(!valueTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull()) - summaryObject.summaryName = valueTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString(); - if(!valueTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull()) - summaryObject.content = valueTasksTaskConversationConversationDetailSummarySummaryItem["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/GetUserRequest.cc b/ccc/src/model/GetTurnCredentialsRequest.cc similarity index 55% rename from ccc/src/model/GetUserRequest.cc rename to ccc/src/model/GetTurnCredentialsRequest.cc index d6a4dd972..fc15d1b39 100644 --- a/ccc/src/model/GetUserRequest.cc +++ b/ccc/src/model/GetTurnCredentialsRequest.cc @@ -14,49 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetUserRequest; +using AlibabaCloud::CCC::Model::GetTurnCredentialsRequest; -GetUserRequest::GetUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetUser") +GetTurnCredentialsRequest::GetTurnCredentialsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetTurnCredentials") { setMethod(HttpRequest::Method::Post); } -GetUserRequest::~GetUserRequest() +GetTurnCredentialsRequest::~GetTurnCredentialsRequest() {} -std::string GetUserRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetUserRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetUserRequest::getUserId()const +std::string GetTurnCredentialsRequest::getUserId()const { return userId_; } -void GetUserRequest::setUserId(const std::string& userId) +void GetTurnCredentialsRequest::setUserId(const std::string& userId) { userId_ = userId; setParameter("UserId", userId); } -std::string GetUserRequest::getAccessKeyId()const +std::string GetTurnCredentialsRequest::getInstanceId()const { - return accessKeyId_; + return instanceId_; } -void GetUserRequest::setAccessKeyId(const std::string& accessKeyId) +void GetTurnCredentialsRequest::setInstanceId(const std::string& instanceId) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); } diff --git a/ccc/src/model/GetTURNCredentialsResult.cc b/ccc/src/model/GetTurnCredentialsResult.cc similarity index 56% rename from ccc/src/model/GetTURNCredentialsResult.cc rename to ccc/src/model/GetTurnCredentialsResult.cc index 0d5500e9b..5d32a6250 100644 --- a/ccc/src/model/GetTURNCredentialsResult.cc +++ b/ccc/src/model/GetTurnCredentialsResult.cc @@ -14,73 +14,70 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -GetTURNCredentialsResult::GetTURNCredentialsResult() : +GetTurnCredentialsResult::GetTurnCredentialsResult() : ServiceResult() {} -GetTURNCredentialsResult::GetTURNCredentialsResult(const std::string &payload) : +GetTurnCredentialsResult::GetTurnCredentialsResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetTURNCredentialsResult::~GetTURNCredentialsResult() +GetTurnCredentialsResult::~GetTurnCredentialsResult() {} -void GetTURNCredentialsResult::parse(const std::string &payload) +void GetTurnCredentialsResult::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"; + auto dataNode = value["Data"]; + if(!dataNode["Password"].isNull()) + data_.password = dataNode["Password"].asString(); + if(!dataNode["UserName"].isNull()) + data_.userName = dataNode["UserName"].asString(); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Username"].isNull()) - username_ = value["Username"].asString(); - if(!value["Password"].isNull()) - password_ = value["Password"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string GetTURNCredentialsResult::getMessage()const +std::string GetTurnCredentialsResult::getMessage()const { return message_; } -std::string GetTURNCredentialsResult::getUsername()const -{ - return username_; -} - -int GetTURNCredentialsResult::getHttpStatusCode()const +int GetTurnCredentialsResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string GetTURNCredentialsResult::getCode()const +std::vector GetTurnCredentialsResult::getParams()const +{ + return params_; +} + +GetTurnCredentialsResult::Data GetTurnCredentialsResult::getData()const +{ + return data_; +} + +std::string GetTurnCredentialsResult::getCode()const { return code_; } -bool GetTURNCredentialsResult::getSuccess()const -{ - return success_; -} - -std::string GetTURNCredentialsResult::getPassword()const -{ - return password_; -} - diff --git a/ccc/src/model/ListScenariosRequest.cc b/ccc/src/model/GetTurnServerListRequest.cc similarity index 64% rename from ccc/src/model/ListScenariosRequest.cc rename to ccc/src/model/GetTurnServerListRequest.cc index d1ffd311e..ca67d9618 100644 --- a/ccc/src/model/ListScenariosRequest.cc +++ b/ccc/src/model/GetTurnServerListRequest.cc @@ -14,25 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListScenariosRequest; +using AlibabaCloud::CCC::Model::GetTurnServerListRequest; -ListScenariosRequest::ListScenariosRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListScenarios") +GetTurnServerListRequest::GetTurnServerListRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetTurnServerList") { setMethod(HttpRequest::Method::Post); } -ListScenariosRequest::~ListScenariosRequest() +GetTurnServerListRequest::~GetTurnServerListRequest() {} -std::string ListScenariosRequest::getInstanceId()const +std::string GetTurnServerListRequest::getInstanceId()const { return instanceId_; } -void ListScenariosRequest::setInstanceId(const std::string& instanceId) +void GetTurnServerListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/ModifyAgentDeviceResult.cc b/ccc/src/model/GetTurnServerListResult.cc similarity index 61% rename from ccc/src/model/ModifyAgentDeviceResult.cc rename to ccc/src/model/GetTurnServerListResult.cc index 85f9db3ff..56ee7e29b 100644 --- a/ccc/src/model/ModifyAgentDeviceResult.cc +++ b/ccc/src/model/GetTurnServerListResult.cc @@ -14,59 +14,67 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ModifyAgentDeviceResult::ModifyAgentDeviceResult() : +GetTurnServerListResult::GetTurnServerListResult() : ServiceResult() {} -ModifyAgentDeviceResult::ModifyAgentDeviceResult(const std::string &payload) : +GetTurnServerListResult::GetTurnServerListResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyAgentDeviceResult::~ModifyAgentDeviceResult() +GetTurnServerListResult::~GetTurnServerListResult() {} -void ModifyAgentDeviceResult::parse(const std::string &payload) +void GetTurnServerListResult::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"; + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string ModifyAgentDeviceResult::getMessage()const +std::string GetTurnServerListResult::getMessage()const { return message_; } -int ModifyAgentDeviceResult::getHttpStatusCode()const +int GetTurnServerListResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string ModifyAgentDeviceResult::getCode()const +std::vector GetTurnServerListResult::getParams()const +{ + return params_; +} + +std::string GetTurnServerListResult::getData()const +{ + return data_; +} + +std::string GetTurnServerListResult::getCode()const { return code_; } -bool ModifyAgentDeviceResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetUserByExtensionRequest.cc b/ccc/src/model/GetUserByExtensionRequest.cc deleted file mode 100644 index 1983d7e0a..000000000 --- a/ccc/src/model/GetUserByExtensionRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::GetUserByExtensionRequest; - -GetUserByExtensionRequest::GetUserByExtensionRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetUserByExtension") -{ - setMethod(HttpRequest::Method::Post); -} - -GetUserByExtensionRequest::~GetUserByExtensionRequest() -{} - -std::string GetUserByExtensionRequest::getExtension()const -{ - return extension_; -} - -void GetUserByExtensionRequest::setExtension(const std::string& extension) -{ - extension_ = extension; - setParameter("Extension", extension); -} - -std::string GetUserByExtensionRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetUserByExtensionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/GetUserByExtensionResult.cc b/ccc/src/model/GetUserByExtensionResult.cc deleted file mode 100644 index 0da63669c..000000000 --- a/ccc/src/model/GetUserByExtensionResult.cc +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetUserByExtensionResult::GetUserByExtensionResult() : - ServiceResult() -{} - -GetUserByExtensionResult::GetUserByExtensionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetUserByExtensionResult::~GetUserByExtensionResult() -{} - -void GetUserByExtensionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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 allRolesNode = userNode["Roles"]["Role"]; - for (auto userNodeRolesRole : allRolesNode) - { - User::Role roleObject; - if(!userNodeRolesRole["RoleId"].isNull()) - roleObject.roleId = userNodeRolesRole["RoleId"].asString(); - if(!userNodeRolesRole["InstanceId"].isNull()) - roleObject.instanceId = userNodeRolesRole["InstanceId"].asString(); - if(!userNodeRolesRole["RoleName"].isNull()) - roleObject.roleName = userNodeRolesRole["RoleName"].asString(); - if(!userNodeRolesRole["RoleDescription"].isNull()) - roleObject.roleDescription = userNodeRolesRole["RoleDescription"].asString(); - user_.roles.push_back(roleObject); - } - auto allSkillLevelsNode = userNode["SkillLevels"]["SkillLevel"]; - for (auto userNodeSkillLevelsSkillLevel : allSkillLevelsNode) - { - User::SkillLevel skillLevelObject; - if(!userNodeSkillLevelsSkillLevel["SkillLevelId"].isNull()) - skillLevelObject.skillLevelId = userNodeSkillLevelsSkillLevel["SkillLevelId"].asString(); - if(!userNodeSkillLevelsSkillLevel["Level"].isNull()) - skillLevelObject.level = std::stoi(userNodeSkillLevelsSkillLevel["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(!detailNode["Extension"].isNull()) - user_.detail.extension = detailNode["Extension"].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()); - -} - -GetUserByExtensionResult::User GetUserByExtensionResult::getUser()const -{ - return user_; -} - -std::string GetUserByExtensionResult::getMessage()const -{ - return message_; -} - -int GetUserByExtensionResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetUserByExtensionResult::getCode()const -{ - return code_; -} - -bool GetUserByExtensionResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetUserResult.cc b/ccc/src/model/GetUserResult.cc deleted file mode 100644 index b085d8f63..000000000 --- a/ccc/src/model/GetUserResult.cc +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -GetUserResult::GetUserResult() : - ServiceResult() -{} - -GetUserResult::GetUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetUserResult::~GetUserResult() -{} - -void GetUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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 allRolesNode = userNode["Roles"]["Role"]; - for (auto userNodeRolesRole : allRolesNode) - { - User::Role roleObject; - if(!userNodeRolesRole["RoleId"].isNull()) - roleObject.roleId = userNodeRolesRole["RoleId"].asString(); - if(!userNodeRolesRole["InstanceId"].isNull()) - roleObject.instanceId = userNodeRolesRole["InstanceId"].asString(); - if(!userNodeRolesRole["RoleName"].isNull()) - roleObject.roleName = userNodeRolesRole["RoleName"].asString(); - if(!userNodeRolesRole["RoleDescription"].isNull()) - roleObject.roleDescription = userNodeRolesRole["RoleDescription"].asString(); - user_.roles.push_back(roleObject); - } - auto allSkillLevelsNode = userNode["SkillLevels"]["SkillLevel"]; - for (auto userNodeSkillLevelsSkillLevel : allSkillLevelsNode) - { - User::SkillLevel skillLevelObject; - if(!userNodeSkillLevelsSkillLevel["SkillLevelId"].isNull()) - skillLevelObject.skillLevelId = userNodeSkillLevelsSkillLevel["SkillLevelId"].asString(); - if(!userNodeSkillLevelsSkillLevel["Level"].isNull()) - skillLevelObject.level = std::stoi(userNodeSkillLevelsSkillLevel["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()); - -} - -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/HoldCallRequest.cc b/ccc/src/model/HoldCallRequest.cc new file mode 100644 index 000000000..421c3daa2 --- /dev/null +++ b/ccc/src/model/HoldCallRequest.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::HoldCallRequest; + +HoldCallRequest::HoldCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "HoldCall") +{ + setMethod(HttpRequest::Method::Post); +} + +HoldCallRequest::~HoldCallRequest() +{} + +std::string HoldCallRequest::getUserId()const +{ + return userId_; +} + +void HoldCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string HoldCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void HoldCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string HoldCallRequest::getJobId()const +{ + return jobId_; +} + +void HoldCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string HoldCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void HoldCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string HoldCallRequest::getMusic()const +{ + return music_; +} + +void HoldCallRequest::setMusic(const std::string& music) +{ + music_ = music; + setParameter("Music", music); +} + +std::string HoldCallRequest::getChannelId()const +{ + return channelId_; +} + +void HoldCallRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/ccc/src/model/HoldCallResult.cc b/ccc/src/model/HoldCallResult.cc new file mode 100644 index 000000000..1cb9d82b5 --- /dev/null +++ b/ccc/src/model/HoldCallResult.cc @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +HoldCallResult::HoldCallResult() : + ServiceResult() +{} + +HoldCallResult::HoldCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +HoldCallResult::~HoldCallResult() +{} + +void HoldCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string HoldCallResult::getMessage()const +{ + return message_; +} + +int HoldCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector HoldCallResult::getParams()const +{ + return params_; +} + +HoldCallResult::Data HoldCallResult::getData()const +{ + return data_; +} + +std::string HoldCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/InflightTaskTimeoutRequest.cc b/ccc/src/model/InflightTaskTimeoutRequest.cc deleted file mode 100644 index 6da2a0ff9..000000000 --- a/ccc/src/model/InflightTaskTimeoutRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::InflightTaskTimeoutRequest; - -InflightTaskTimeoutRequest::InflightTaskTimeoutRequest() : - RpcServiceRequest("ccc", "2017-07-05", "InflightTaskTimeout") -{ - setMethod(HttpRequest::Method::Post); -} - -InflightTaskTimeoutRequest::~InflightTaskTimeoutRequest() -{} - -std::string InflightTaskTimeoutRequest::getInstanceId()const -{ - return instanceId_; -} - -void InflightTaskTimeoutRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -long InflightTaskTimeoutRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; -} - -void InflightTaskTimeoutRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); -} - -std::string InflightTaskTimeoutRequest::getTaskId()const -{ - return taskId_; -} - -void InflightTaskTimeoutRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); -} - diff --git a/ccc/src/model/InflightTaskTimeoutResult.cc b/ccc/src/model/InflightTaskTimeoutResult.cc deleted file mode 100644 index 48b75e5ba..000000000 --- a/ccc/src/model/InflightTaskTimeoutResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -InflightTaskTimeoutResult::InflightTaskTimeoutResult() : - ServiceResult() -{} - -InflightTaskTimeoutResult::InflightTaskTimeoutResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -InflightTaskTimeoutResult::~InflightTaskTimeoutResult() -{} - -void InflightTaskTimeoutResult::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 InflightTaskTimeoutResult::getMessage()const -{ - return message_; -} - -int InflightTaskTimeoutResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string InflightTaskTimeoutResult::getCode()const -{ - return code_; -} - -bool InflightTaskTimeoutResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/InitiateAttendedTransferRequest.cc b/ccc/src/model/InitiateAttendedTransferRequest.cc new file mode 100644 index 000000000..7d0e4f0d4 --- /dev/null +++ b/ccc/src/model/InitiateAttendedTransferRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::InitiateAttendedTransferRequest; + +InitiateAttendedTransferRequest::InitiateAttendedTransferRequest() : + RpcServiceRequest("ccc", "2020-07-01", "InitiateAttendedTransfer") +{ + setMethod(HttpRequest::Method::Post); +} + +InitiateAttendedTransferRequest::~InitiateAttendedTransferRequest() +{} + +std::string InitiateAttendedTransferRequest::getTransferee()const +{ + return transferee_; +} + +void InitiateAttendedTransferRequest::setTransferee(const std::string& transferee) +{ + transferee_ = transferee; + setParameter("Transferee", transferee); +} + +std::string InitiateAttendedTransferRequest::getTransferor()const +{ + return transferor_; +} + +void InitiateAttendedTransferRequest::setTransferor(const std::string& transferor) +{ + transferor_ = transferor; + setParameter("Transferor", transferor); +} + +std::string InitiateAttendedTransferRequest::getUserId()const +{ + return userId_; +} + +void InitiateAttendedTransferRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string InitiateAttendedTransferRequest::getDeviceId()const +{ + return deviceId_; +} + +void InitiateAttendedTransferRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +int InitiateAttendedTransferRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void InitiateAttendedTransferRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); +} + +std::string InitiateAttendedTransferRequest::getJobId()const +{ + return jobId_; +} + +void InitiateAttendedTransferRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string InitiateAttendedTransferRequest::getInstanceId()const +{ + return instanceId_; +} + +void InitiateAttendedTransferRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/InitiateAttendedTransferResult.cc b/ccc/src/model/InitiateAttendedTransferResult.cc new file mode 100644 index 000000000..5850cd930 --- /dev/null +++ b/ccc/src/model/InitiateAttendedTransferResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +InitiateAttendedTransferResult::InitiateAttendedTransferResult() : + ServiceResult() +{} + +InitiateAttendedTransferResult::InitiateAttendedTransferResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InitiateAttendedTransferResult::~InitiateAttendedTransferResult() +{} + +void InitiateAttendedTransferResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string InitiateAttendedTransferResult::getMessage()const +{ + return message_; +} + +int InitiateAttendedTransferResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector InitiateAttendedTransferResult::getParams()const +{ + return params_; +} + +InitiateAttendedTransferResult::Data InitiateAttendedTransferResult::getData()const +{ + return data_; +} + +std::string InitiateAttendedTransferResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/InterceptCallRequest.cc b/ccc/src/model/InterceptCallRequest.cc new file mode 100644 index 000000000..b830822fc --- /dev/null +++ b/ccc/src/model/InterceptCallRequest.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::InterceptCallRequest; + +InterceptCallRequest::InterceptCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "InterceptCall") +{ + setMethod(HttpRequest::Method::Post); +} + +InterceptCallRequest::~InterceptCallRequest() +{} + +std::string InterceptCallRequest::getInterceptedUserId()const +{ + return interceptedUserId_; +} + +void InterceptCallRequest::setInterceptedUserId(const std::string& interceptedUserId) +{ + interceptedUserId_ = interceptedUserId; + setParameter("InterceptedUserId", interceptedUserId); +} + +std::string InterceptCallRequest::getUserId()const +{ + return userId_; +} + +void InterceptCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string InterceptCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void InterceptCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string InterceptCallRequest::getJobId()const +{ + return jobId_; +} + +void InterceptCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +int InterceptCallRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void InterceptCallRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); +} + +std::string InterceptCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void InterceptCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/InterceptCallResult.cc b/ccc/src/model/InterceptCallResult.cc new file mode 100644 index 000000000..c4efb70b6 --- /dev/null +++ b/ccc/src/model/InterceptCallResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +InterceptCallResult::InterceptCallResult() : + ServiceResult() +{} + +InterceptCallResult::InterceptCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InterceptCallResult::~InterceptCallResult() +{} + +void InterceptCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string InterceptCallResult::getMessage()const +{ + return message_; +} + +int InterceptCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector InterceptCallResult::getParams()const +{ + return params_; +} + +InterceptCallResult::Data InterceptCallResult::getData()const +{ + return data_; +} + +std::string InterceptCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/LaunchAppraiseRequest.cc b/ccc/src/model/LaunchAppraiseRequest.cc deleted file mode 100644 index ecd10f5f1..000000000 --- a/ccc/src/model/LaunchAppraiseRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index bd0cf575e..000000000 --- a/ccc/src/model/LaunchAppraiseResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/LaunchAuthenticationRequest.cc b/ccc/src/model/LaunchAuthenticationRequest.cc new file mode 100644 index 000000000..b20a95064 --- /dev/null +++ b/ccc/src/model/LaunchAuthenticationRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::LaunchAuthenticationRequest; + +LaunchAuthenticationRequest::LaunchAuthenticationRequest() : + RpcServiceRequest("ccc", "2020-07-01", "LaunchAuthentication") +{ + setMethod(HttpRequest::Method::Post); +} + +LaunchAuthenticationRequest::~LaunchAuthenticationRequest() +{} + +std::string LaunchAuthenticationRequest::getContactFlowId()const +{ + return contactFlowId_; +} + +void LaunchAuthenticationRequest::setContactFlowId(const std::string& contactFlowId) +{ + contactFlowId_ = contactFlowId; + setParameter("ContactFlowId", contactFlowId); +} + +std::string LaunchAuthenticationRequest::getUserId()const +{ + return userId_; +} + +void LaunchAuthenticationRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string LaunchAuthenticationRequest::getDeviceId()const +{ + return deviceId_; +} + +void LaunchAuthenticationRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string LaunchAuthenticationRequest::getJobId()const +{ + return jobId_; +} + +void LaunchAuthenticationRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string LaunchAuthenticationRequest::getInstanceId()const +{ + return instanceId_; +} + +void LaunchAuthenticationRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/LaunchAuthenticationResult.cc b/ccc/src/model/LaunchAuthenticationResult.cc new file mode 100644 index 000000000..892844879 --- /dev/null +++ b/ccc/src/model/LaunchAuthenticationResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +LaunchAuthenticationResult::LaunchAuthenticationResult() : + ServiceResult() +{} + +LaunchAuthenticationResult::LaunchAuthenticationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LaunchAuthenticationResult::~LaunchAuthenticationResult() +{} + +void LaunchAuthenticationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string LaunchAuthenticationResult::getMessage()const +{ + return message_; +} + +int LaunchAuthenticationResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector LaunchAuthenticationResult::getParams()const +{ + return params_; +} + +LaunchAuthenticationResult::Data LaunchAuthenticationResult::getData()const +{ + return data_; +} + +std::string LaunchAuthenticationResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/LaunchShortMessageAppraiseRequest.cc b/ccc/src/model/LaunchShortMessageAppraiseRequest.cc deleted file mode 100644 index 8228381c2..000000000 --- a/ccc/src/model/LaunchShortMessageAppraiseRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::LaunchShortMessageAppraiseRequest; - -LaunchShortMessageAppraiseRequest::LaunchShortMessageAppraiseRequest() : - RpcServiceRequest("ccc", "2017-07-05", "LaunchShortMessageAppraise") -{ - setMethod(HttpRequest::Method::Post); -} - -LaunchShortMessageAppraiseRequest::~LaunchShortMessageAppraiseRequest() -{} - -int LaunchShortMessageAppraiseRequest::getContactType()const -{ - return contactType_; -} - -void LaunchShortMessageAppraiseRequest::setContactType(int contactType) -{ - contactType_ = contactType; - setParameter("ContactType", std::to_string(contactType)); -} - -std::string LaunchShortMessageAppraiseRequest::getPhoneNumbers()const -{ - return phoneNumbers_; -} - -void LaunchShortMessageAppraiseRequest::setPhoneNumbers(const std::string& phoneNumbers) -{ - phoneNumbers_ = phoneNumbers; - setParameter("PhoneNumbers", phoneNumbers); -} - -std::string LaunchShortMessageAppraiseRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void LaunchShortMessageAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string LaunchShortMessageAppraiseRequest::getAcid()const -{ - return acid_; -} - -void LaunchShortMessageAppraiseRequest::setAcid(const std::string& acid) -{ - acid_ = acid; - setParameter("Acid", acid); -} - -std::string LaunchShortMessageAppraiseRequest::getInstanceId()const -{ - return instanceId_; -} - -void LaunchShortMessageAppraiseRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string LaunchShortMessageAppraiseRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void LaunchShortMessageAppraiseRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - diff --git a/ccc/src/model/LaunchShortMessageAppraiseResult.cc b/ccc/src/model/LaunchShortMessageAppraiseResult.cc deleted file mode 100644 index 8d4cc192d..000000000 --- a/ccc/src/model/LaunchShortMessageAppraiseResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -LaunchShortMessageAppraiseResult::LaunchShortMessageAppraiseResult() : - ServiceResult() -{} - -LaunchShortMessageAppraiseResult::LaunchShortMessageAppraiseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -LaunchShortMessageAppraiseResult::~LaunchShortMessageAppraiseResult() -{} - -void LaunchShortMessageAppraiseResult::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 LaunchShortMessageAppraiseResult::getMessage()const -{ - return message_; -} - -int LaunchShortMessageAppraiseResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string LaunchShortMessageAppraiseResult::getCode()const -{ - return code_; -} - -bool LaunchShortMessageAppraiseResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/LaunchSurveyRequest.cc b/ccc/src/model/LaunchSurveyRequest.cc new file mode 100644 index 000000000..2d7a46942 --- /dev/null +++ b/ccc/src/model/LaunchSurveyRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::LaunchSurveyRequest; + +LaunchSurveyRequest::LaunchSurveyRequest() : + RpcServiceRequest("ccc", "2020-07-01", "LaunchSurvey") +{ + setMethod(HttpRequest::Method::Post); +} + +LaunchSurveyRequest::~LaunchSurveyRequest() +{} + +std::string LaunchSurveyRequest::getContactFlowId()const +{ + return contactFlowId_; +} + +void LaunchSurveyRequest::setContactFlowId(const std::string& contactFlowId) +{ + contactFlowId_ = contactFlowId; + setParameter("ContactFlowId", contactFlowId); +} + +std::string LaunchSurveyRequest::getUserId()const +{ + return userId_; +} + +void LaunchSurveyRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string LaunchSurveyRequest::getDeviceId()const +{ + return deviceId_; +} + +void LaunchSurveyRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string LaunchSurveyRequest::getJobId()const +{ + return jobId_; +} + +void LaunchSurveyRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string LaunchSurveyRequest::getInstanceId()const +{ + return instanceId_; +} + +void LaunchSurveyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/LaunchSurveyResult.cc b/ccc/src/model/LaunchSurveyResult.cc new file mode 100644 index 000000000..a05722193 --- /dev/null +++ b/ccc/src/model/LaunchSurveyResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +LaunchSurveyResult::LaunchSurveyResult() : + ServiceResult() +{} + +LaunchSurveyResult::LaunchSurveyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LaunchSurveyResult::~LaunchSurveyResult() +{} + +void LaunchSurveyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string LaunchSurveyResult::getMessage()const +{ + return message_; +} + +int LaunchSurveyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector LaunchSurveyResult::getParams()const +{ + return params_; +} + +LaunchSurveyResult::Data LaunchSurveyResult::getData()const +{ + return data_; +} + +std::string LaunchSurveyResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListAgentDevicesRequest.cc b/ccc/src/model/ListAgentDevicesRequest.cc deleted file mode 100644 index fbd19c10c..000000000 --- a/ccc/src/model/ListAgentDevicesRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListAgentDevicesRequest; - -ListAgentDevicesRequest::ListAgentDevicesRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListAgentDevices") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAgentDevicesRequest::~ListAgentDevicesRequest() -{} - -std::string ListAgentDevicesRequest::getRamIds()const -{ - return ramIds_; -} - -void ListAgentDevicesRequest::setRamIds(const std::string& ramIds) -{ - ramIds_ = ramIds; - setParameter("RamIds", ramIds); -} - -long ListAgentDevicesRequest::getStartTime()const -{ - return startTime_; -} - -void ListAgentDevicesRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -long ListAgentDevicesRequest::getStopTime()const -{ - return stopTime_; -} - -void ListAgentDevicesRequest::setStopTime(long stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); -} - -std::string ListAgentDevicesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListAgentDevicesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListAgentDevicesRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListAgentDevicesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/ListAgentDevicesResult.cc b/ccc/src/model/ListAgentDevicesResult.cc deleted file mode 100644 index 1aebd0b40..000000000 --- a/ccc/src/model/ListAgentDevicesResult.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListAgentDevicesResult::ListAgentDevicesResult() : - ServiceResult() -{} - -ListAgentDevicesResult::ListAgentDevicesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAgentDevicesResult::~ListAgentDevicesResult() -{} - -void ListAgentDevicesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAgentDeviceListNode = value["AgentDeviceList"]["AgentDevice"]; - for (auto valueAgentDeviceListAgentDevice : allAgentDeviceListNode) - { - AgentDevice agentDeviceListObject; - if(!valueAgentDeviceListAgentDevice["InstanceId"].isNull()) - agentDeviceListObject.instanceId = valueAgentDeviceListAgentDevice["InstanceId"].asString(); - if(!valueAgentDeviceListAgentDevice["RamId"].isNull()) - agentDeviceListObject.ramId = std::stol(valueAgentDeviceListAgentDevice["RamId"].asString()); - if(!valueAgentDeviceListAgentDevice["LoginTime"].isNull()) - agentDeviceListObject.loginTime = std::stol(valueAgentDeviceListAgentDevice["LoginTime"].asString()); - if(!valueAgentDeviceListAgentDevice["ClientIp"].isNull()) - agentDeviceListObject.clientIp = valueAgentDeviceListAgentDevice["ClientIp"].asString(); - if(!valueAgentDeviceListAgentDevice["ClientPort"].isNull()) - agentDeviceListObject.clientPort = valueAgentDeviceListAgentDevice["ClientPort"].asString(); - if(!valueAgentDeviceListAgentDevice["BrowserVersion"].isNull()) - agentDeviceListObject.browserVersion = valueAgentDeviceListAgentDevice["BrowserVersion"].asString(); - if(!valueAgentDeviceListAgentDevice["IsLogin"].isNull()) - agentDeviceListObject.isLogin = std::stoi(valueAgentDeviceListAgentDevice["IsLogin"].asString()); - if(!valueAgentDeviceListAgentDevice["Remark"].isNull()) - agentDeviceListObject.remark = valueAgentDeviceListAgentDevice["Remark"].asString(); - agentDeviceList_.push_back(agentDeviceListObject); - } - 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 ListAgentDevicesResult::getMessage()const -{ - return message_; -} - -int ListAgentDevicesResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListAgentDevicesResult::getCode()const -{ - return code_; -} - -std::vector ListAgentDevicesResult::getAgentDeviceList()const -{ - return agentDeviceList_; -} - -bool ListAgentDevicesResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListAgentEventsRequest.cc b/ccc/src/model/ListAgentEventsRequest.cc deleted file mode 100644 index fcec8ba18..000000000 --- a/ccc/src/model/ListAgentEventsRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListAgentEventsRequest; - -ListAgentEventsRequest::ListAgentEventsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListAgentEvents") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAgentEventsRequest::~ListAgentEventsRequest() -{} - -long ListAgentEventsRequest::getStartTime()const -{ - return startTime_; -} - -void ListAgentEventsRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -long ListAgentEventsRequest::getStopTime()const -{ - return stopTime_; -} - -void ListAgentEventsRequest::setStopTime(long stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); -} - -std::vector ListAgentEventsRequest::getRamId()const -{ - return ramId_; -} - -void ListAgentEventsRequest::setRamId(const std::vector& ramId) -{ - ramId_ = ramId; - for(int dep1 = 0; dep1!= ramId.size(); dep1++) { - setParameter("RamId."+ std::to_string(dep1), ramId.at(dep1)); - } -} - -std::string ListAgentEventsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListAgentEventsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListAgentEventsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListAgentEventsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector ListAgentEventsRequest::getEvent()const -{ - return event_; -} - -void ListAgentEventsRequest::setEvent(const std::vector& event) -{ - event_ = event; - for(int dep1 = 0; dep1!= event.size(); dep1++) { - setParameter("Event."+ std::to_string(dep1), event.at(dep1)); - } -} - diff --git a/ccc/src/model/ListAgentEventsResult.cc b/ccc/src/model/ListAgentEventsResult.cc deleted file mode 100644 index 740a208fb..000000000 --- a/ccc/src/model/ListAgentEventsResult.cc +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListAgentEventsResult::ListAgentEventsResult() : - ServiceResult() -{} - -ListAgentEventsResult::ListAgentEventsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAgentEventsResult::~ListAgentEventsResult() -{} - -void ListAgentEventsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAgentEventListNode = value["AgentEventList"]["AgentEvent"]; - for (auto valueAgentEventListAgentEvent : allAgentEventListNode) - { - AgentEvent agentEventListObject; - if(!valueAgentEventListAgentEvent["InstanceId"].isNull()) - agentEventListObject.instanceId = valueAgentEventListAgentEvent["InstanceId"].asString(); - if(!valueAgentEventListAgentEvent["RamId"].isNull()) - agentEventListObject.ramId = std::stol(valueAgentEventListAgentEvent["RamId"].asString()); - if(!valueAgentEventListAgentEvent["LoginName"].isNull()) - agentEventListObject.loginName = valueAgentEventListAgentEvent["LoginName"].asString(); - if(!valueAgentEventListAgentEvent["Event"].isNull()) - agentEventListObject.event = valueAgentEventListAgentEvent["Event"].asString(); - if(!valueAgentEventListAgentEvent["EventTime"].isNull()) - agentEventListObject.eventTime = std::stol(valueAgentEventListAgentEvent["EventTime"].asString()); - auto allSkillGroupIdsNode = valueAgentEventListAgentEvent["SkillGroupIds"]["SkillGroup"]; - for (auto valueAgentEventListAgentEventSkillGroupIdsSkillGroup : allSkillGroupIdsNode) - { - AgentEvent::SkillGroup skillGroupIdsObject; - if(!valueAgentEventListAgentEventSkillGroupIdsSkillGroup["SkillGroupId"].isNull()) - skillGroupIdsObject.skillGroupId = valueAgentEventListAgentEventSkillGroupIdsSkillGroup["SkillGroupId"].asString(); - if(!valueAgentEventListAgentEventSkillGroupIdsSkillGroup["SkillGroupName"].isNull()) - skillGroupIdsObject.skillGroupName = valueAgentEventListAgentEventSkillGroupIdsSkillGroup["SkillGroupName"].asString(); - agentEventListObject.skillGroupIds.push_back(skillGroupIdsObject); - } - agentEventList_.push_back(agentEventListObject); - } - 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 ListAgentEventsResult::getAgentEventList()const -{ - return agentEventList_; -} - -std::string ListAgentEventsResult::getMessage()const -{ - return message_; -} - -int ListAgentEventsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListAgentEventsResult::getCode()const -{ - return code_; -} - -bool ListAgentEventsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListAgentStateLogsRequest.cc b/ccc/src/model/ListAgentStateLogsRequest.cc deleted file mode 100644 index 633199aab..000000000 --- a/ccc/src/model/ListAgentStateLogsRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListAgentStateLogsRequest; - -ListAgentStateLogsRequest::ListAgentStateLogsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListAgentStateLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAgentStateLogsRequest::~ListAgentStateLogsRequest() -{} - -long ListAgentStateLogsRequest::getEndTime()const -{ - return endTime_; -} - -void ListAgentStateLogsRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); -} - -long ListAgentStateLogsRequest::getStartTime()const -{ - return startTime_; -} - -void ListAgentStateLogsRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -long ListAgentStateLogsRequest::getRamId()const -{ - return ramId_; -} - -void ListAgentStateLogsRequest::setRamId(long ramId) -{ - ramId_ = ramId; - setParameter("RamId", std::to_string(ramId)); -} - -int ListAgentStateLogsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListAgentStateLogsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListAgentStateLogsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListAgentStateLogsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListAgentStateLogsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListAgentStateLogsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListAgentStateLogsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListAgentStateLogsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListAgentStateLogsResult.cc b/ccc/src/model/ListAgentStateLogsResult.cc deleted file mode 100644 index d44a8eeb6..000000000 --- a/ccc/src/model/ListAgentStateLogsResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListAgentStateLogsResult::ListAgentStateLogsResult() : - ServiceResult() -{} - -ListAgentStateLogsResult::ListAgentStateLogsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAgentStateLogsResult::~ListAgentStateLogsResult() -{} - -void ListAgentStateLogsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto agentStateLogPageNode = value["AgentStateLogPage"]; - if(!agentStateLogPageNode["TotalCount"].isNull()) - agentStateLogPage_.totalCount = std::stoi(agentStateLogPageNode["TotalCount"].asString()); - if(!agentStateLogPageNode["PageNumber"].isNull()) - agentStateLogPage_.pageNumber = std::stoi(agentStateLogPageNode["PageNumber"].asString()); - if(!agentStateLogPageNode["PageSize"].isNull()) - agentStateLogPage_.pageSize = std::stoi(agentStateLogPageNode["PageSize"].asString()); - auto allListNode = agentStateLogPageNode["List"]["AgentStateLog"]; - for (auto agentStateLogPageNodeListAgentStateLog : allListNode) - { - AgentStateLogPage::AgentStateLog agentStateLogObject; - if(!agentStateLogPageNodeListAgentStateLog["InstanceId"].isNull()) - agentStateLogObject.instanceId = agentStateLogPageNodeListAgentStateLog["InstanceId"].asString(); - if(!agentStateLogPageNodeListAgentStateLog["RamId"].isNull()) - agentStateLogObject.ramId = std::stol(agentStateLogPageNodeListAgentStateLog["RamId"].asString()); - if(!agentStateLogPageNodeListAgentStateLog["State"].isNull()) - agentStateLogObject.state = agentStateLogPageNodeListAgentStateLog["State"].asString(); - if(!agentStateLogPageNodeListAgentStateLog["StateCode"].isNull()) - agentStateLogObject.stateCode = agentStateLogPageNodeListAgentStateLog["StateCode"].asString(); - if(!agentStateLogPageNodeListAgentStateLog["StateTime"].isNull()) - agentStateLogObject.stateTime = std::stol(agentStateLogPageNodeListAgentStateLog["StateTime"].asString()); - if(!agentStateLogPageNodeListAgentStateLog["ContactId"].isNull()) - agentStateLogObject.contactId = agentStateLogPageNodeListAgentStateLog["ContactId"].asString(); - if(!agentStateLogPageNodeListAgentStateLog["ConnectId"].isNull()) - agentStateLogObject.connectId = agentStateLogPageNodeListAgentStateLog["ConnectId"].asString(); - if(!agentStateLogPageNodeListAgentStateLog["SkillGroupIds"].isNull()) - agentStateLogObject.skillGroupIds = agentStateLogPageNodeListAgentStateLog["SkillGroupIds"].asString(); - if(!agentStateLogPageNodeListAgentStateLog["CounterParty"].isNull()) - agentStateLogObject.counterParty = agentStateLogPageNodeListAgentStateLog["CounterParty"].asString(); - agentStateLogPage_.list.push_back(agentStateLogObject); - } - 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 ListAgentStateLogsResult::getMessage()const -{ - return message_; -} - -int ListAgentStateLogsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListAgentStateLogsResult::getCode()const -{ - return code_; -} - -ListAgentStateLogsResult::AgentStateLogPage ListAgentStateLogsResult::getAgentStateLogPage()const -{ - return agentStateLogPage_; -} - -bool ListAgentStateLogsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListAgentStatesRequest.cc b/ccc/src/model/ListAgentStatesRequest.cc deleted file mode 100644 index 68f718880..000000000 --- a/ccc/src/model/ListAgentStatesRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListAgentStatesRequest; - -ListAgentStatesRequest::ListAgentStatesRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListAgentStates") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAgentStatesRequest::~ListAgentStatesRequest() -{} - -std::string ListAgentStatesRequest::getAgentIds()const -{ - return agentIds_; -} - -void ListAgentStatesRequest::setAgentIds(const std::string& agentIds) -{ - agentIds_ = agentIds; - setParameter("AgentIds", agentIds); -} - -int ListAgentStatesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListAgentStatesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListAgentStatesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListAgentStatesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListAgentStatesRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListAgentStatesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListAgentStatesRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ListAgentStatesRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -int ListAgentStatesRequest::getPageSize()const -{ - return pageSize_; -} - -void ListAgentStatesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListAgentStatesRequest::getState()const -{ - return state_; -} - -void ListAgentStatesRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); -} - diff --git a/ccc/src/model/ListAgentStatesResult.cc b/ccc/src/model/ListAgentStatesResult.cc deleted file mode 100644 index ea6639798..000000000 --- a/ccc/src/model/ListAgentStatesResult.cc +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListAgentStatesResult::ListAgentStatesResult() : - ServiceResult() -{} - -ListAgentStatesResult::ListAgentStatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAgentStatesResult::~ListAgentStatesResult() -{} - -void ListAgentStatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["PageNumber"].isNull()) - data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); - if(!dataNode["PageSize"].isNull()) - data_.pageSize = std::stoi(dataNode["PageSize"].asString()); - auto allListNode = dataNode["List"]["RealTimeAgentState"]; - for (auto dataNodeListRealTimeAgentState : allListNode) - { - Data::RealTimeAgentState realTimeAgentStateObject; - if(!dataNodeListRealTimeAgentState["InstanceId"].isNull()) - realTimeAgentStateObject.instanceId = dataNodeListRealTimeAgentState["InstanceId"].asString(); - if(!dataNodeListRealTimeAgentState["AgentId"].isNull()) - realTimeAgentStateObject.agentId = dataNodeListRealTimeAgentState["AgentId"].asString(); - if(!dataNodeListRealTimeAgentState["LoginName"].isNull()) - realTimeAgentStateObject.loginName = dataNodeListRealTimeAgentState["LoginName"].asString(); - if(!dataNodeListRealTimeAgentState["AgentName"].isNull()) - realTimeAgentStateObject.agentName = dataNodeListRealTimeAgentState["AgentName"].asString(); - if(!dataNodeListRealTimeAgentState["State"].isNull()) - realTimeAgentStateObject.state = dataNodeListRealTimeAgentState["State"].asString(); - if(!dataNodeListRealTimeAgentState["Dn"].isNull()) - realTimeAgentStateObject.dn = dataNodeListRealTimeAgentState["Dn"].asString(); - if(!dataNodeListRealTimeAgentState["StateDuration"].isNull()) - realTimeAgentStateObject.stateDuration = dataNodeListRealTimeAgentState["StateDuration"].asString(); - data_.list.push_back(realTimeAgentStateObject); - } - 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 ListAgentStatesResult::getMessage()const -{ - return message_; -} - -int ListAgentStatesResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -ListAgentStatesResult::Data ListAgentStatesResult::getData()const -{ - return data_; -} - -std::string ListAgentStatesResult::getCode()const -{ - return code_; -} - -bool ListAgentStatesResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListAgentSummaryReportsByIntervalRequest.cc b/ccc/src/model/ListAgentSummaryReportsByIntervalRequest.cc deleted file mode 100644 index c5e2151ad..000000000 --- a/ccc/src/model/ListAgentSummaryReportsByIntervalRequest.cc +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListAgentSummaryReportsByIntervalRequest; - -ListAgentSummaryReportsByIntervalRequest::ListAgentSummaryReportsByIntervalRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListAgentSummaryReportsByInterval") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAgentSummaryReportsByIntervalRequest::~ListAgentSummaryReportsByIntervalRequest() -{} - -std::string ListAgentSummaryReportsByIntervalRequest::getAgentIds()const -{ - return agentIds_; -} - -void ListAgentSummaryReportsByIntervalRequest::setAgentIds(const std::string& agentIds) -{ - agentIds_ = agentIds; - setParameter("AgentIds", agentIds); -} - -std::string ListAgentSummaryReportsByIntervalRequest::getEndTime()const -{ - return endTime_; -} - -void ListAgentSummaryReportsByIntervalRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -std::string ListAgentSummaryReportsByIntervalRequest::getStartTime()const -{ - return startTime_; -} - -void ListAgentSummaryReportsByIntervalRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -int ListAgentSummaryReportsByIntervalRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListAgentSummaryReportsByIntervalRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListAgentSummaryReportsByIntervalRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListAgentSummaryReportsByIntervalRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListAgentSummaryReportsByIntervalRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListAgentSummaryReportsByIntervalRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListAgentSummaryReportsByIntervalRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ListAgentSummaryReportsByIntervalRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -int ListAgentSummaryReportsByIntervalRequest::getPageSize()const -{ - return pageSize_; -} - -void ListAgentSummaryReportsByIntervalRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListAgentSummaryReportsByIntervalRequest::getInterval()const -{ - return interval_; -} - -void ListAgentSummaryReportsByIntervalRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc b/ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc deleted file mode 100644 index 156a3109f..000000000 --- a/ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListAgentSummaryReportsByIntervalResult::ListAgentSummaryReportsByIntervalResult() : - ServiceResult() -{} - -ListAgentSummaryReportsByIntervalResult::ListAgentSummaryReportsByIntervalResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAgentSummaryReportsByIntervalResult::~ListAgentSummaryReportsByIntervalResult() -{} - -void ListAgentSummaryReportsByIntervalResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto pagedAgentSummaryReportNode = value["PagedAgentSummaryReport"]; - if(!pagedAgentSummaryReportNode["TotalCount"].isNull()) - pagedAgentSummaryReport_.totalCount = std::stoi(pagedAgentSummaryReportNode["TotalCount"].asString()); - if(!pagedAgentSummaryReportNode["PageNumber"].isNull()) - pagedAgentSummaryReport_.pageNumber = std::stoi(pagedAgentSummaryReportNode["PageNumber"].asString()); - if(!pagedAgentSummaryReportNode["PageSize"].isNull()) - pagedAgentSummaryReport_.pageSize = std::stoi(pagedAgentSummaryReportNode["PageSize"].asString()); - auto allListNode = pagedAgentSummaryReportNode["List"]["AgentTimeIntervalReport"]; - for (auto pagedAgentSummaryReportNodeListAgentTimeIntervalReport : allListNode) - { - PagedAgentSummaryReport::AgentTimeIntervalReport agentTimeIntervalReportObject; - if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReport["AgentId"].isNull()) - agentTimeIntervalReportObject.agentId = pagedAgentSummaryReportNodeListAgentTimeIntervalReport["AgentId"].asString(); - auto allIntervalListNode = pagedAgentSummaryReportNodeListAgentTimeIntervalReport["IntervalList"]["AgentSummaryReport"]; - for (auto pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport : allIntervalListNode) - { - PagedAgentSummaryReport::AgentTimeIntervalReport::AgentSummaryReport intervalListObject; - if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["Timestamp"].isNull()) - intervalListObject.timestamp = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["Timestamp"].asString(); - if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["InstanceId"].isNull()) - intervalListObject.instanceId = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["InstanceId"].asString(); - if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["AgentId"].isNull()) - intervalListObject.agentId = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["AgentId"].asString(); - if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["LoginName"].isNull()) - intervalListObject.loginName = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["LoginName"].asString(); - if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["AgentName"].isNull()) - intervalListObject.agentName = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["AgentName"].asString(); - if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["SkillGroupIds"].isNull()) - intervalListObject.skillGroupIds = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["SkillGroupIds"].asString(); - if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["SkillGroupNames"].isNull()) - intervalListObject.skillGroupNames = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["SkillGroupNames"].asString(); - auto overallNode = value["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - intervalListObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - intervalListObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - intervalListObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - intervalListObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - intervalListObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - intervalListObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - intervalListObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - intervalListObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - intervalListObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - intervalListObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - intervalListObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - intervalListObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - intervalListObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - intervalListObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - intervalListObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - intervalListObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - if(!overallNode["OneTransferCalls"].isNull()) - intervalListObject.overall.oneTransferCalls = std::stol(overallNode["OneTransferCalls"].asString()); - if(!overallNode["FirstLogInTime"].isNull()) - intervalListObject.overall.firstLogInTime = overallNode["FirstLogInTime"].asString(); - if(!overallNode["LastLogOutTime"].isNull()) - intervalListObject.overall.lastLogOutTime = overallNode["LastLogOutTime"].asString(); - auto inboundNode = value["Inbound"]; - if(!inboundNode["CallsOffered"].isNull()) - intervalListObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - intervalListObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - intervalListObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - intervalListObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - intervalListObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - intervalListObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - intervalListObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - intervalListObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - intervalListObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); - if(!inboundNode["AverageTalkTime"].isNull()) - intervalListObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - intervalListObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - intervalListObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - intervalListObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - intervalListObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - intervalListObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - intervalListObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - auto outboundNode = value["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - intervalListObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - intervalListObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - intervalListObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - intervalListObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - intervalListObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - intervalListObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - intervalListObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - intervalListObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - intervalListObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - intervalListObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - intervalListObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); - if(!outboundNode["AverageWorkTime"].isNull()) - intervalListObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - intervalListObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - intervalListObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - intervalListObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); - agentTimeIntervalReportObject.intervalList.push_back(intervalListObject); - } - pagedAgentSummaryReport_.list.push_back(agentTimeIntervalReportObject); - } - 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 ListAgentSummaryReportsByIntervalResult::getMessage()const -{ - return message_; -} - -ListAgentSummaryReportsByIntervalResult::PagedAgentSummaryReport ListAgentSummaryReportsByIntervalResult::getPagedAgentSummaryReport()const -{ - return pagedAgentSummaryReport_; -} - -int ListAgentSummaryReportsByIntervalResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListAgentSummaryReportsByIntervalResult::getCode()const -{ - return code_; -} - -bool ListAgentSummaryReportsByIntervalResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListAgentSummaryReportsRequest.cc b/ccc/src/model/ListAgentSummaryReportsRequest.cc deleted file mode 100644 index 5bc4a8240..000000000 --- a/ccc/src/model/ListAgentSummaryReportsRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListAgentSummaryReportsRequest; - -ListAgentSummaryReportsRequest::ListAgentSummaryReportsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListAgentSummaryReports") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAgentSummaryReportsRequest::~ListAgentSummaryReportsRequest() -{} - -std::string ListAgentSummaryReportsRequest::getAgentIds()const -{ - return agentIds_; -} - -void ListAgentSummaryReportsRequest::setAgentIds(const std::string& agentIds) -{ - agentIds_ = agentIds; - setParameter("AgentIds", agentIds); -} - -std::string ListAgentSummaryReportsRequest::getEndTime()const -{ - return endTime_; -} - -void ListAgentSummaryReportsRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -std::string ListAgentSummaryReportsRequest::getStartTime()const -{ - return startTime_; -} - -void ListAgentSummaryReportsRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -int ListAgentSummaryReportsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListAgentSummaryReportsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListAgentSummaryReportsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListAgentSummaryReportsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListAgentSummaryReportsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListAgentSummaryReportsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListAgentSummaryReportsRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ListAgentSummaryReportsRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -int ListAgentSummaryReportsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListAgentSummaryReportsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListAgentSummaryReportsResult.cc b/ccc/src/model/ListAgentSummaryReportsResult.cc deleted file mode 100644 index c1303928f..000000000 --- a/ccc/src/model/ListAgentSummaryReportsResult.cc +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListAgentSummaryReportsResult::ListAgentSummaryReportsResult() : - ServiceResult() -{} - -ListAgentSummaryReportsResult::ListAgentSummaryReportsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAgentSummaryReportsResult::~ListAgentSummaryReportsResult() -{} - -void ListAgentSummaryReportsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto pagedAgentSummaryReportNode = value["PagedAgentSummaryReport"]; - if(!pagedAgentSummaryReportNode["TotalCount"].isNull()) - pagedAgentSummaryReport_.totalCount = std::stoi(pagedAgentSummaryReportNode["TotalCount"].asString()); - if(!pagedAgentSummaryReportNode["PageNumber"].isNull()) - pagedAgentSummaryReport_.pageNumber = std::stoi(pagedAgentSummaryReportNode["PageNumber"].asString()); - if(!pagedAgentSummaryReportNode["PageSize"].isNull()) - pagedAgentSummaryReport_.pageSize = std::stoi(pagedAgentSummaryReportNode["PageSize"].asString()); - auto allListNode = pagedAgentSummaryReportNode["List"]["AgentSummaryReport"]; - for (auto pagedAgentSummaryReportNodeListAgentSummaryReport : allListNode) - { - PagedAgentSummaryReport::AgentSummaryReport agentSummaryReportObject; - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["InstanceId"].isNull()) - agentSummaryReportObject.instanceId = pagedAgentSummaryReportNodeListAgentSummaryReport["InstanceId"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["AgentId"].isNull()) - agentSummaryReportObject.agentId = pagedAgentSummaryReportNodeListAgentSummaryReport["AgentId"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["LoginName"].isNull()) - agentSummaryReportObject.loginName = pagedAgentSummaryReportNodeListAgentSummaryReport["LoginName"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["AgentName"].isNull()) - agentSummaryReportObject.agentName = pagedAgentSummaryReportNodeListAgentSummaryReport["AgentName"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["SkillGroupIds"].isNull()) - agentSummaryReportObject.skillGroupIds = pagedAgentSummaryReportNodeListAgentSummaryReport["SkillGroupIds"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["SkillGroupNames"].isNull()) - agentSummaryReportObject.skillGroupNames = pagedAgentSummaryReportNodeListAgentSummaryReport["SkillGroupNames"].asString(); - auto overallNode = value["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - agentSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - agentSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - agentSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - agentSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - agentSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - agentSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - agentSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - agentSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - agentSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - agentSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - agentSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - agentSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - agentSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - agentSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - agentSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - agentSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - if(!overallNode["OneTransferCalls"].isNull()) - agentSummaryReportObject.overall.oneTransferCalls = std::stol(overallNode["OneTransferCalls"].asString()); - if(!overallNode["FirstLogInTime"].isNull()) - agentSummaryReportObject.overall.firstLogInTime = overallNode["FirstLogInTime"].asString(); - if(!overallNode["LastLogOutTime"].isNull()) - agentSummaryReportObject.overall.lastLogOutTime = overallNode["LastLogOutTime"].asString(); - auto inboundNode = value["Inbound"]; - if(!inboundNode["CallsOffered"].isNull()) - agentSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - agentSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - agentSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - agentSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - agentSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - agentSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - agentSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - agentSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - agentSummaryReportObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); - if(!inboundNode["AverageTalkTime"].isNull()) - agentSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - agentSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - agentSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - agentSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - agentSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - agentSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - agentSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - auto outboundNode = value["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - agentSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - agentSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - agentSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - agentSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - agentSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - agentSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - agentSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - agentSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - agentSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - agentSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - agentSummaryReportObject.outbound.maxWorkTime = outboundNode["MaxWorkTime"].asString(); - if(!outboundNode["AverageWorkTime"].isNull()) - agentSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - agentSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - agentSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - agentSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); - pagedAgentSummaryReport_.list.push_back(agentSummaryReportObject); - } - 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 ListAgentSummaryReportsResult::getMessage()const -{ - return message_; -} - -ListAgentSummaryReportsResult::PagedAgentSummaryReport ListAgentSummaryReportsResult::getPagedAgentSummaryReport()const -{ - return pagedAgentSummaryReport_; -} - -int ListAgentSummaryReportsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListAgentSummaryReportsResult::getCode()const -{ - return code_; -} - -bool ListAgentSummaryReportsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.cc b/ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.cc deleted file mode 100644 index f8c16ab8c..000000000 --- a/ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListAgentSummaryReportsSinceMidnightRequest; - -ListAgentSummaryReportsSinceMidnightRequest::ListAgentSummaryReportsSinceMidnightRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListAgentSummaryReportsSinceMidnight") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAgentSummaryReportsSinceMidnightRequest::~ListAgentSummaryReportsSinceMidnightRequest() -{} - -std::string ListAgentSummaryReportsSinceMidnightRequest::getAgentIds()const -{ - return agentIds_; -} - -void ListAgentSummaryReportsSinceMidnightRequest::setAgentIds(const std::string& agentIds) -{ - agentIds_ = agentIds; - setParameter("AgentIds", agentIds); -} - -int ListAgentSummaryReportsSinceMidnightRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListAgentSummaryReportsSinceMidnightRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListAgentSummaryReportsSinceMidnightRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListAgentSummaryReportsSinceMidnightRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListAgentSummaryReportsSinceMidnightRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListAgentSummaryReportsSinceMidnightRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListAgentSummaryReportsSinceMidnightRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ListAgentSummaryReportsSinceMidnightRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -int ListAgentSummaryReportsSinceMidnightRequest::getPageSize()const -{ - return pageSize_; -} - -void ListAgentSummaryReportsSinceMidnightRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc b/ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc deleted file mode 100644 index e1e37c74b..000000000 --- a/ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListAgentSummaryReportsSinceMidnightResult::ListAgentSummaryReportsSinceMidnightResult() : - ServiceResult() -{} - -ListAgentSummaryReportsSinceMidnightResult::ListAgentSummaryReportsSinceMidnightResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAgentSummaryReportsSinceMidnightResult::~ListAgentSummaryReportsSinceMidnightResult() -{} - -void ListAgentSummaryReportsSinceMidnightResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto pagedAgentSummaryReportNode = value["PagedAgentSummaryReport"]; - if(!pagedAgentSummaryReportNode["TotalCount"].isNull()) - pagedAgentSummaryReport_.totalCount = std::stoi(pagedAgentSummaryReportNode["TotalCount"].asString()); - if(!pagedAgentSummaryReportNode["PageNumber"].isNull()) - pagedAgentSummaryReport_.pageNumber = std::stoi(pagedAgentSummaryReportNode["PageNumber"].asString()); - if(!pagedAgentSummaryReportNode["PageSize"].isNull()) - pagedAgentSummaryReport_.pageSize = std::stoi(pagedAgentSummaryReportNode["PageSize"].asString()); - auto allListNode = pagedAgentSummaryReportNode["List"]["AgentSummaryReport"]; - for (auto pagedAgentSummaryReportNodeListAgentSummaryReport : allListNode) - { - PagedAgentSummaryReport::AgentSummaryReport agentSummaryReportObject; - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["Timestamp"].isNull()) - agentSummaryReportObject.timestamp = pagedAgentSummaryReportNodeListAgentSummaryReport["Timestamp"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["InstanceId"].isNull()) - agentSummaryReportObject.instanceId = pagedAgentSummaryReportNodeListAgentSummaryReport["InstanceId"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["AgentId"].isNull()) - agentSummaryReportObject.agentId = pagedAgentSummaryReportNodeListAgentSummaryReport["AgentId"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["LoginName"].isNull()) - agentSummaryReportObject.loginName = pagedAgentSummaryReportNodeListAgentSummaryReport["LoginName"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["AgentName"].isNull()) - agentSummaryReportObject.agentName = pagedAgentSummaryReportNodeListAgentSummaryReport["AgentName"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["SkillGroupIds"].isNull()) - agentSummaryReportObject.skillGroupIds = pagedAgentSummaryReportNodeListAgentSummaryReport["SkillGroupIds"].asString(); - if(!pagedAgentSummaryReportNodeListAgentSummaryReport["SkillGroupNames"].isNull()) - agentSummaryReportObject.skillGroupNames = pagedAgentSummaryReportNodeListAgentSummaryReport["SkillGroupNames"].asString(); - auto overallNode = value["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - agentSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - agentSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - agentSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - agentSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - agentSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - agentSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - agentSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - agentSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - agentSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - agentSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - agentSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - agentSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - agentSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - agentSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - agentSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - agentSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - if(!overallNode["OneTransferCalls"].isNull()) - agentSummaryReportObject.overall.oneTransferCalls = std::stol(overallNode["OneTransferCalls"].asString()); - auto inboundNode = value["Inbound"]; - if(!inboundNode["CallsOffered"].isNull()) - agentSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - agentSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - agentSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - agentSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - agentSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - agentSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - agentSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - agentSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - agentSummaryReportObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); - if(!inboundNode["AverageTalkTime"].isNull()) - agentSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - agentSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - agentSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - agentSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - agentSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - agentSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - agentSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - auto outboundNode = value["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - agentSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - agentSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - agentSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - agentSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - agentSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - agentSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - agentSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - agentSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - agentSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - agentSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - agentSummaryReportObject.outbound.maxWorkTime = outboundNode["MaxWorkTime"].asString(); - if(!outboundNode["AverageWorkTime"].isNull()) - agentSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - agentSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - agentSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - agentSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); - pagedAgentSummaryReport_.list.push_back(agentSummaryReportObject); - } - 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 ListAgentSummaryReportsSinceMidnightResult::getMessage()const -{ - return message_; -} - -ListAgentSummaryReportsSinceMidnightResult::PagedAgentSummaryReport ListAgentSummaryReportsSinceMidnightResult::getPagedAgentSummaryReport()const -{ - return pagedAgentSummaryReport_; -} - -int ListAgentSummaryReportsSinceMidnightResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListAgentSummaryReportsSinceMidnightResult::getCode()const -{ - return code_; -} - -bool ListAgentSummaryReportsSinceMidnightResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc b/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc deleted file mode 100644 index fb792ab01..000000000 --- a/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ListBasicStatisticsReportSubItemsRequest::~ListBasicStatisticsReportSubItemsRequest() -{} - -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)); -} - -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)); -} - diff --git a/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc b/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc deleted file mode 100644 index cff1397b7..000000000 --- a/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = subItemsNode["List"]["BasicStatisticsReportSubItem"]; - for (auto subItemsNodeListBasicStatisticsReportSubItem : allListNode) - { - SubItems::BasicStatisticsReportSubItem basicStatisticsReportSubItemObject; - if(!subItemsNodeListBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].isNull()) - basicStatisticsReportSubItemObject.basicStatisticsReportSubItemName = subItemsNodeListBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].asString(); - if(!subItemsNodeListBasicStatisticsReportSubItem["Value"].isNull()) - basicStatisticsReportSubItemObject.value = subItemsNodeListBasicStatisticsReportSubItem["Value"].asString(); - if(!subItemsNodeListBasicStatisticsReportSubItem["Count"].isNull()) - basicStatisticsReportSubItemObject.count = std::stoi(subItemsNodeListBasicStatisticsReportSubItem["Count"].asString()); - if(!subItemsNodeListBasicStatisticsReportSubItem["Percentage"].isNull()) - basicStatisticsReportSubItemObject.percentage = std::stoi(subItemsNodeListBasicStatisticsReportSubItem["Percentage"].asString()); - auto allRowNode = subItemsNodeListBasicStatisticsReportSubItem["Row"]["KeyValuePair"]; - for (auto subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair : allRowNode) - { - SubItems::BasicStatisticsReportSubItem::KeyValuePair rowObject; - if(!subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair["Key"].isNull()) - rowObject.key = subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair["Key"].asString(); - if(!subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair["Value"].isNull()) - rowObject.value = subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair["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/ListUsersRequest.cc b/ccc/src/model/ListBriefSkillGroupsRequest.cc similarity index 50% rename from ccc/src/model/ListUsersRequest.cc rename to ccc/src/model/ListBriefSkillGroupsRequest.cc index eaf999a01..51292e702 100644 --- a/ccc/src/model/ListUsersRequest.cc +++ b/ccc/src/model/ListBriefSkillGroupsRequest.cc @@ -14,58 +14,58 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListUsersRequest; +using AlibabaCloud::CCC::Model::ListBriefSkillGroupsRequest; -ListUsersRequest::ListUsersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListUsers") +ListBriefSkillGroupsRequest::ListBriefSkillGroupsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListBriefSkillGroups") { setMethod(HttpRequest::Method::Post); } -ListUsersRequest::~ListUsersRequest() +ListBriefSkillGroupsRequest::~ListBriefSkillGroupsRequest() {} -int ListUsersRequest::getPageNumber()const +int ListBriefSkillGroupsRequest::getPageNumber()const { return pageNumber_; } -void ListUsersRequest::setPageNumber(int pageNumber) +void ListBriefSkillGroupsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListUsersRequest::getAccessKeyId()const +std::string ListBriefSkillGroupsRequest::getSearchPattern()const { - return accessKeyId_; + return searchPattern_; } -void ListUsersRequest::setAccessKeyId(const std::string& accessKeyId) +void ListBriefSkillGroupsRequest::setSearchPattern(const std::string& searchPattern) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); } -std::string ListUsersRequest::getInstanceId()const +std::string ListBriefSkillGroupsRequest::getInstanceId()const { return instanceId_; } -void ListUsersRequest::setInstanceId(const std::string& instanceId) +void ListBriefSkillGroupsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -int ListUsersRequest::getPageSize()const +int ListBriefSkillGroupsRequest::getPageSize()const { return pageSize_; } -void ListUsersRequest::setPageSize(int pageSize) +void ListBriefSkillGroupsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter("PageSize", std::to_string(pageSize)); diff --git a/ccc/src/model/ListBriefSkillGroupsResult.cc b/ccc/src/model/ListBriefSkillGroupsResult.cc new file mode 100644 index 000000000..79f7e4a2a --- /dev/null +++ b/ccc/src/model/ListBriefSkillGroupsResult.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 +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListBriefSkillGroupsResult::ListBriefSkillGroupsResult() : + ServiceResult() +{} + +ListBriefSkillGroupsResult::ListBriefSkillGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBriefSkillGroupsResult::~ListBriefSkillGroupsResult() +{} + +void ListBriefSkillGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["SkillGroup"]; + for (auto dataNodeListSkillGroup : allListNode) + { + Data::SkillGroup skillGroupObject; + if(!dataNodeListSkillGroup["Description"].isNull()) + skillGroupObject.description = dataNodeListSkillGroup["Description"].asString(); + if(!dataNodeListSkillGroup["DisplayName"].isNull()) + skillGroupObject.displayName = dataNodeListSkillGroup["DisplayName"].asString(); + if(!dataNodeListSkillGroup["InstanceId"].isNull()) + skillGroupObject.instanceId = dataNodeListSkillGroup["InstanceId"].asString(); + if(!dataNodeListSkillGroup["PhoneNumberCount"].isNull()) + skillGroupObject.phoneNumberCount = std::stoi(dataNodeListSkillGroup["PhoneNumberCount"].asString()); + if(!dataNodeListSkillGroup["SkillGroupId"].isNull()) + skillGroupObject.skillGroupId = dataNodeListSkillGroup["SkillGroupId"].asString(); + if(!dataNodeListSkillGroup["SkillGroupName"].isNull()) + skillGroupObject.skillGroupName = dataNodeListSkillGroup["SkillGroupName"].asString(); + if(!dataNodeListSkillGroup["UserCount"].isNull()) + skillGroupObject.userCount = std::stoi(dataNodeListSkillGroup["UserCount"].asString()); + data_.list.push_back(skillGroupObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListBriefSkillGroupsResult::getMessage()const +{ + return message_; +} + +int ListBriefSkillGroupsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListBriefSkillGroupsResult::Data ListBriefSkillGroupsResult::getData()const +{ + return data_; +} + +std::string ListBriefSkillGroupsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListCallDetailRecordsRequest.cc b/ccc/src/model/ListCallDetailRecordsRequest.cc index d8b904162..d0dddbe41 100644 --- a/ccc/src/model/ListCallDetailRecordsRequest.cc +++ b/ccc/src/model/ListCallDetailRecordsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ListCallDetailRecordsRequest; ListCallDetailRecordsRequest::ListCallDetailRecordsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListCallDetailRecords") + RpcServiceRequest("ccc", "2020-07-01", "ListCallDetailRecords") { setMethod(HttpRequest::Method::Post); } @@ -27,17 +27,6 @@ ListCallDetailRecordsRequest::ListCallDetailRecordsRequest() : ListCallDetailRecordsRequest::~ListCallDetailRecordsRequest() {} -std::string ListCallDetailRecordsRequest::getContactType()const -{ - return contactType_; -} - -void ListCallDetailRecordsRequest::setContactType(const std::string& contactType) -{ - contactType_ = contactType; - setParameter("ContactType", contactType); -} - std::string ListCallDetailRecordsRequest::getContactId()const { return contactId_; @@ -49,37 +38,15 @@ void ListCallDetailRecordsRequest::setContactId(const std::string& contactId) setParameter("ContactId", contactId); } -std::string ListCallDetailRecordsRequest::getCriteria()const +std::string ListCallDetailRecordsRequest::getOrderByField()const { - return criteria_; + return orderByField_; } -void ListCallDetailRecordsRequest::setCriteria(const std::string& criteria) +void ListCallDetailRecordsRequest::setOrderByField(const std::string& orderByField) { - criteria_ = criteria; - setParameter("Criteria", criteria); -} - -std::string ListCallDetailRecordsRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void ListCallDetailRecordsRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -std::string ListCallDetailRecordsRequest::getOrderBy()const -{ - return orderBy_; -} - -void ListCallDetailRecordsRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setParameter("OrderBy", orderBy); + orderByField_ = orderByField; + setParameter("OrderByField", orderByField); } long ListCallDetailRecordsRequest::getStartTime()const @@ -93,17 +60,6 @@ void ListCallDetailRecordsRequest::setStartTime(long startTime) setParameter("StartTime", std::to_string(startTime)); } -long ListCallDetailRecordsRequest::getStopTime()const -{ - return stopTime_; -} - -void ListCallDetailRecordsRequest::setStopTime(long stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); -} - int ListCallDetailRecordsRequest::getPageNumber()const { return pageNumber_; @@ -115,37 +71,15 @@ void ListCallDetailRecordsRequest::setPageNumber(int pageNumber) setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListCallDetailRecordsRequest::getAccessKeyId()const +std::string ListCallDetailRecordsRequest::getCalledNumber()const { - return accessKeyId_; + return calledNumber_; } -void ListCallDetailRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +void ListCallDetailRecordsRequest::setCalledNumber(const std::string& calledNumber) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListCallDetailRecordsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListCallDetailRecordsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListCallDetailRecordsRequest::getContactDisposition()const -{ - return contactDisposition_; -} - -void ListCallDetailRecordsRequest::setContactDisposition(const std::string& contactDisposition) -{ - contactDisposition_ = contactDisposition; - setParameter("ContactDisposition", contactDisposition); + calledNumber_ = calledNumber; + setParameter("CalledNumber", calledNumber); } int ListCallDetailRecordsRequest::getPageSize()const @@ -159,6 +93,17 @@ void ListCallDetailRecordsRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +std::string ListCallDetailRecordsRequest::getSortOrder()const +{ + return sortOrder_; +} + +void ListCallDetailRecordsRequest::setSortOrder(const std::string& sortOrder) +{ + sortOrder_ = sortOrder; + setParameter("SortOrder", sortOrder); +} + bool ListCallDetailRecordsRequest::getWithRecording()const { return withRecording_; @@ -170,3 +115,80 @@ void ListCallDetailRecordsRequest::setWithRecording(bool withRecording) setParameter("WithRecording", withRecording ? "true" : "false"); } +std::string ListCallDetailRecordsRequest::getAgentId()const +{ + return agentId_; +} + +void ListCallDetailRecordsRequest::setAgentId(const std::string& agentId) +{ + agentId_ = agentId; + setParameter("AgentId", agentId); +} + +std::string ListCallDetailRecordsRequest::getContactType()const +{ + return contactType_; +} + +void ListCallDetailRecordsRequest::setContactType(const std::string& contactType) +{ + contactType_ = contactType; + setParameter("ContactType", contactType); +} + +long ListCallDetailRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void ListCallDetailRecordsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +std::string ListCallDetailRecordsRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void ListCallDetailRecordsRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setParameter("CallingNumber", callingNumber); +} + +std::string ListCallDetailRecordsRequest::getContactDisposition()const +{ + return contactDisposition_; +} + +void ListCallDetailRecordsRequest::setContactDisposition(const std::string& contactDisposition) +{ + contactDisposition_ = contactDisposition; + setParameter("ContactDisposition", contactDisposition); +} + +std::string ListCallDetailRecordsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListCallDetailRecordsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListCallDetailRecordsRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListCallDetailRecordsRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + diff --git a/ccc/src/model/ListCallDetailRecordsResult.cc b/ccc/src/model/ListCallDetailRecordsResult.cc index 68260d322..60733a867 100644 --- a/ccc/src/model/ListCallDetailRecordsResult.cc +++ b/ccc/src/model/ListCallDetailRecordsResult.cc @@ -39,91 +39,51 @@ void ListCallDetailRecordsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].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 allListNode = callDetailRecordsNode["List"]["CallDetailRecord"]; - for (auto callDetailRecordsNodeListCallDetailRecord : allListNode) + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["CallDetailRecord"]; + for (auto dataNodeListCallDetailRecord : allListNode) { - CallDetailRecords::CallDetailRecord callDetailRecordObject; - if(!callDetailRecordsNodeListCallDetailRecord["ContactId"].isNull()) - callDetailRecordObject.contactId = callDetailRecordsNodeListCallDetailRecord["ContactId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["StartTime"].isNull()) - callDetailRecordObject.startTime = std::stol(callDetailRecordsNodeListCallDetailRecord["StartTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecord["Duration"].isNull()) - callDetailRecordObject.duration = std::stoi(callDetailRecordsNodeListCallDetailRecord["Duration"].asString()); - if(!callDetailRecordsNodeListCallDetailRecord["Satisfaction"].isNull()) - callDetailRecordObject.satisfaction = std::stoi(callDetailRecordsNodeListCallDetailRecord["Satisfaction"].asString()); - if(!callDetailRecordsNodeListCallDetailRecord["SatisfactionDesc"].isNull()) - callDetailRecordObject.satisfactionDesc = callDetailRecordsNodeListCallDetailRecord["SatisfactionDesc"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["Feedback"].isNull()) - callDetailRecordObject.feedback = callDetailRecordsNodeListCallDetailRecord["Feedback"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["ContactType"].isNull()) - callDetailRecordObject.contactType = callDetailRecordsNodeListCallDetailRecord["ContactType"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["ContactDisposition"].isNull()) - callDetailRecordObject.contactDisposition = callDetailRecordsNodeListCallDetailRecord["ContactDisposition"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["CallingNumber"].isNull()) - callDetailRecordObject.callingNumber = callDetailRecordsNodeListCallDetailRecord["CallingNumber"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["CalledNumber"].isNull()) - callDetailRecordObject.calledNumber = callDetailRecordsNodeListCallDetailRecord["CalledNumber"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["AgentNames"].isNull()) - callDetailRecordObject.agentNames = callDetailRecordsNodeListCallDetailRecord["AgentNames"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["SkillGroupNames"].isNull()) - callDetailRecordObject.skillGroupNames = callDetailRecordsNodeListCallDetailRecord["SkillGroupNames"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["InstanceId"].isNull()) - callDetailRecordObject.instanceId = callDetailRecordsNodeListCallDetailRecord["InstanceId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["SkillGroupIdList"].isNull()) - callDetailRecordObject.skillGroupIdList = callDetailRecordsNodeListCallDetailRecord["SkillGroupIdList"].asString(); - auto allAgentsNode = callDetailRecordsNodeListCallDetailRecord["Agents"]["CallDetailAgent"]; - for (auto callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent : allAgentsNode) - { - CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject; - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentId"].isNull()) - agentsObject.agentId = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Satisfaction"].isNull()) - agentsObject.satisfaction = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Satisfaction"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Feedback"].isNull()) - agentsObject.feedback = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Feedback"].asString(); - callDetailRecordObject.agents.push_back(agentsObject); - } - auto allRecordingsNode = callDetailRecordsNodeListCallDetailRecord["Recordings"]["Recording"]; - for (auto callDetailRecordsNodeListCallDetailRecordRecordingsRecording : allRecordingsNode) - { - CallDetailRecords::CallDetailRecord::Recording recordingsObject; - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactId"].isNull()) - recordingsObject.contactId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentId"].isNull()) - recordingsObject.agentId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentName"].isNull()) - recordingsObject.agentName = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentName"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["StartTime"].isNull()) - recordingsObject.startTime = std::stol(callDetailRecordsNodeListCallDetailRecordRecordingsRecording["StartTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Duration"].isNull()) - recordingsObject.duration = std::stoi(callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Duration"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileName"].isNull()) - recordingsObject.fileName = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileName"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileDescription"].isNull()) - recordingsObject.fileDescription = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileDescription"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["QualityCheckTid"].isNull()) - recordingsObject.qualityCheckTid = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["QualityCheckTid"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["QualityCheckTaskId"].isNull()) - recordingsObject.qualityCheckTaskId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["QualityCheckTaskId"].asString(); - callDetailRecordObject.recordings.push_back(recordingsObject); - } - callDetailRecords_.list.push_back(callDetailRecordObject); + Data::CallDetailRecord callDetailRecordObject; + if(!dataNodeListCallDetailRecord["AgentIds"].isNull()) + callDetailRecordObject.agentIds = dataNodeListCallDetailRecord["AgentIds"].asString(); + if(!dataNodeListCallDetailRecord["AgentNames"].isNull()) + callDetailRecordObject.agentNames = dataNodeListCallDetailRecord["AgentNames"].asString(); + if(!dataNodeListCallDetailRecord["CallDuration"].isNull()) + callDetailRecordObject.callDuration = dataNodeListCallDetailRecord["CallDuration"].asString(); + if(!dataNodeListCallDetailRecord["CalledNumber"].isNull()) + callDetailRecordObject.calledNumber = dataNodeListCallDetailRecord["CalledNumber"].asString(); + if(!dataNodeListCallDetailRecord["CallingNumber"].isNull()) + callDetailRecordObject.callingNumber = dataNodeListCallDetailRecord["CallingNumber"].asString(); + if(!dataNodeListCallDetailRecord["ContactDisposition"].isNull()) + callDetailRecordObject.contactDisposition = dataNodeListCallDetailRecord["ContactDisposition"].asString(); + if(!dataNodeListCallDetailRecord["ContactId"].isNull()) + callDetailRecordObject.contactId = dataNodeListCallDetailRecord["ContactId"].asString(); + if(!dataNodeListCallDetailRecord["ContactType"].isNull()) + callDetailRecordObject.contactType = dataNodeListCallDetailRecord["ContactType"].asString(); + if(!dataNodeListCallDetailRecord["EstablishedTime"].isNull()) + callDetailRecordObject.establishedTime = std::stol(dataNodeListCallDetailRecord["EstablishedTime"].asString()); + if(!dataNodeListCallDetailRecord["InstanceId"].isNull()) + callDetailRecordObject.instanceId = dataNodeListCallDetailRecord["InstanceId"].asString(); + if(!dataNodeListCallDetailRecord["SkillGroupIds"].isNull()) + callDetailRecordObject.skillGroupIds = dataNodeListCallDetailRecord["SkillGroupIds"].asString(); + if(!dataNodeListCallDetailRecord["SkillGroupNames"].isNull()) + callDetailRecordObject.skillGroupNames = dataNodeListCallDetailRecord["SkillGroupNames"].asString(); + if(!dataNodeListCallDetailRecord["StartTime"].isNull()) + callDetailRecordObject.startTime = std::stol(dataNodeListCallDetailRecord["StartTime"].asString()); + data_.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()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } @@ -132,23 +92,18 @@ std::string ListCallDetailRecordsResult::getMessage()const return message_; } -ListCallDetailRecordsResult::CallDetailRecords ListCallDetailRecordsResult::getCallDetailRecords()const -{ - return callDetailRecords_; -} - int ListCallDetailRecordsResult::getHttpStatusCode()const { return httpStatusCode_; } +ListCallDetailRecordsResult::Data ListCallDetailRecordsResult::getData()const +{ + return data_; +} + std::string ListCallDetailRecordsResult::getCode()const { return code_; } -bool ListCallDetailRecordsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListCallEventDetailByContactIdRequest.cc b/ccc/src/model/ListCallEventDetailByContactIdRequest.cc deleted file mode 100644 index bcbadf5b4..000000000 --- a/ccc/src/model/ListCallEventDetailByContactIdRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListCallEventDetailByContactIdRequest; - -ListCallEventDetailByContactIdRequest::ListCallEventDetailByContactIdRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListCallEventDetailByContactId") -{ - setMethod(HttpRequest::Method::Post); -} - -ListCallEventDetailByContactIdRequest::~ListCallEventDetailByContactIdRequest() -{} - -std::string ListCallEventDetailByContactIdRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListCallEventDetailByContactIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListCallEventDetailByContactIdRequest::getContactId()const -{ - return contactId_; -} - -void ListCallEventDetailByContactIdRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -std::string ListCallEventDetailByContactIdRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListCallEventDetailByContactIdRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListCallEventDetailByContactIdResult.cc b/ccc/src/model/ListCallEventDetailByContactIdResult.cc deleted file mode 100644 index c06ac4161..000000000 --- a/ccc/src/model/ListCallEventDetailByContactIdResult.cc +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListCallEventDetailByContactIdResult::ListCallEventDetailByContactIdResult() : - ServiceResult() -{} - -ListCallEventDetailByContactIdResult::ListCallEventDetailByContactIdResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListCallEventDetailByContactIdResult::~ListCallEventDetailByContactIdResult() -{} - -void ListCallEventDetailByContactIdResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["Caller"].isNull()) - data_.caller = dataNode["Caller"].asString(); - if(!dataNode["Callee"].isNull()) - data_.callee = dataNode["Callee"].asString(); - if(!dataNode["CallType"].isNull()) - data_.callType = dataNode["CallType"].asString(); - if(!dataNode["StartTime"].isNull()) - data_.startTime = dataNode["StartTime"].asString(); - if(!dataNode["PrivacyNumber"].isNull()) - data_.privacyNumber = dataNode["PrivacyNumber"].asString(); - if(!dataNode["ReleaseAgent"].isNull()) - data_.releaseAgent = dataNode["ReleaseAgent"].asString(); - if(!dataNode["ReleaseReason"].isNull()) - data_.releaseReason = dataNode["ReleaseReason"].asString(); - auto allEventsNode = dataNode["Events"]["CallEventDetail"]; - for (auto dataNodeEventsCallEventDetail : allEventsNode) - { - Data::CallEventDetail callEventDetailObject; - if(!dataNodeEventsCallEventDetail["TimeStamp"].isNull()) - callEventDetailObject.timeStamp = dataNodeEventsCallEventDetail["TimeStamp"].asString(); - if(!dataNodeEventsCallEventDetail["Event"].isNull()) - callEventDetailObject.event = dataNodeEventsCallEventDetail["Event"].asString(); - if(!dataNodeEventsCallEventDetail["AgentName"].isNull()) - callEventDetailObject.agentName = dataNodeEventsCallEventDetail["AgentName"].asString(); - if(!dataNodeEventsCallEventDetail["Status"].isNull()) - callEventDetailObject.status = dataNodeEventsCallEventDetail["Status"].asString(); - if(!dataNodeEventsCallEventDetail["CallMode"].isNull()) - callEventDetailObject.callMode = dataNodeEventsCallEventDetail["CallMode"].asString(); - if(!dataNodeEventsCallEventDetail["Duration"].isNull()) - callEventDetailObject.duration = std::stoi(dataNodeEventsCallEventDetail["Duration"].asString()); - auto detailDataNode = value["DetailData"]; - if(!detailDataNode["EventType"].isNull()) - callEventDetailObject.detailData.eventType = detailDataNode["EventType"].asString(); - if(!detailDataNode["Helper"].isNull()) - callEventDetailObject.detailData.helper = detailDataNode["Helper"].asString(); - if(!detailDataNode["SatisfactionalResearch"].isNull()) - callEventDetailObject.detailData.satisfactionalResearch = detailDataNode["SatisfactionalResearch"].asString(); - if(!detailDataNode["SkillGroup"].isNull()) - callEventDetailObject.detailData.skillGroup = detailDataNode["SkillGroup"].asString(); - if(!detailDataNode["HangUper"].isNull()) - callEventDetailObject.detailData.hangUper = detailDataNode["HangUper"].asString(); - data_.events.push_back(callEventDetailObject); - } - 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 ListCallEventDetailByContactIdResult::getMessage()const -{ - return message_; -} - -int ListCallEventDetailByContactIdResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -ListCallEventDetailByContactIdResult::Data ListCallEventDetailByContactIdResult::getData()const -{ - return data_; -} - -std::string ListCallEventDetailByContactIdResult::getCode()const -{ - return code_; -} - -bool ListCallEventDetailByContactIdResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListCallMeasureSummaryReportsRequest.cc b/ccc/src/model/ListCallMeasureSummaryReportsRequest.cc deleted file mode 100644 index eba2bcde5..000000000 --- a/ccc/src/model/ListCallMeasureSummaryReportsRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListCallMeasureSummaryReportsRequest; - -ListCallMeasureSummaryReportsRequest::ListCallMeasureSummaryReportsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListCallMeasureSummaryReports") -{ - setMethod(HttpRequest::Method::Post); -} - -ListCallMeasureSummaryReportsRequest::~ListCallMeasureSummaryReportsRequest() -{} - -std::string ListCallMeasureSummaryReportsRequest::getIntervalType()const -{ - return intervalType_; -} - -void ListCallMeasureSummaryReportsRequest::setIntervalType(const std::string& intervalType) -{ - intervalType_ = intervalType; - setParameter("IntervalType", intervalType); -} - -std::string ListCallMeasureSummaryReportsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListCallMeasureSummaryReportsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListCallMeasureSummaryReportsResult.cc b/ccc/src/model/ListCallMeasureSummaryReportsResult.cc deleted file mode 100644 index 944c7c158..000000000 --- a/ccc/src/model/ListCallMeasureSummaryReportsResult.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListCallMeasureSummaryReportsResult::ListCallMeasureSummaryReportsResult() : - ServiceResult() -{} - -ListCallMeasureSummaryReportsResult::ListCallMeasureSummaryReportsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListCallMeasureSummaryReportsResult::~ListCallMeasureSummaryReportsResult() -{} - -void ListCallMeasureSummaryReportsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allCallMeasureSummaryReportListNode = value["CallMeasureSummaryReportList"]["CallMeasureSummaryReport"]; - for (auto valueCallMeasureSummaryReportListCallMeasureSummaryReport : allCallMeasureSummaryReportListNode) - { - CallMeasureSummaryReport callMeasureSummaryReportListObject; - if(!valueCallMeasureSummaryReportListCallMeasureSummaryReport["Year"].isNull()) - callMeasureSummaryReportListObject.year = valueCallMeasureSummaryReportListCallMeasureSummaryReport["Year"].asString(); - if(!valueCallMeasureSummaryReportListCallMeasureSummaryReport["Month"].isNull()) - callMeasureSummaryReportListObject.month = valueCallMeasureSummaryReportListCallMeasureSummaryReport["Month"].asString(); - if(!valueCallMeasureSummaryReportListCallMeasureSummaryReport["Day"].isNull()) - callMeasureSummaryReportListObject.day = valueCallMeasureSummaryReportListCallMeasureSummaryReport["Day"].asString(); - if(!valueCallMeasureSummaryReportListCallMeasureSummaryReport["InboundCount"].isNull()) - callMeasureSummaryReportListObject.inboundCount = std::stol(valueCallMeasureSummaryReportListCallMeasureSummaryReport["InboundCount"].asString()); - if(!valueCallMeasureSummaryReportListCallMeasureSummaryReport["OutboundCount"].isNull()) - callMeasureSummaryReportListObject.outboundCount = std::stol(valueCallMeasureSummaryReportListCallMeasureSummaryReport["OutboundCount"].asString()); - if(!valueCallMeasureSummaryReportListCallMeasureSummaryReport["OutboundDurationByMinute"].isNull()) - callMeasureSummaryReportListObject.outboundDurationByMinute = std::stol(valueCallMeasureSummaryReportListCallMeasureSummaryReport["OutboundDurationByMinute"].asString()); - if(!valueCallMeasureSummaryReportListCallMeasureSummaryReport["InboundDurationByMinute"].isNull()) - callMeasureSummaryReportListObject.inboundDurationByMinute = std::stol(valueCallMeasureSummaryReportListCallMeasureSummaryReport["InboundDurationByMinute"].asString()); - callMeasureSummaryReportList_.push_back(callMeasureSummaryReportListObject); - } - 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 ListCallMeasureSummaryReportsResult::getCallMeasureSummaryReportList()const -{ - return callMeasureSummaryReportList_; -} - -std::string ListCallMeasureSummaryReportsResult::getMessage()const -{ - return message_; -} - -int ListCallMeasureSummaryReportsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListCallMeasureSummaryReportsResult::getCode()const -{ - return code_; -} - -bool ListCallMeasureSummaryReportsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListConfigItemsRequest.cc b/ccc/src/model/ListConfigItemsRequest.cc new file mode 100644 index 000000000..c06edad90 --- /dev/null +++ b/ccc/src/model/ListConfigItemsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ListConfigItemsRequest; + +ListConfigItemsRequest::ListConfigItemsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListConfigItems") +{ + setMethod(HttpRequest::Method::Post); +} + +ListConfigItemsRequest::~ListConfigItemsRequest() +{} + +std::string ListConfigItemsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListConfigItemsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListConfigItemsRequest::getObjectType()const +{ + return objectType_; +} + +void ListConfigItemsRequest::setObjectType(const std::string& objectType) +{ + objectType_ = objectType; + setParameter("ObjectType", objectType); +} + +std::string ListConfigItemsRequest::getObjectId()const +{ + return objectId_; +} + +void ListConfigItemsRequest::setObjectId(const std::string& objectId) +{ + objectId_ = objectId; + setParameter("ObjectId", objectId); +} + diff --git a/ccc/src/model/ListConfigItemsResult.cc b/ccc/src/model/ListConfigItemsResult.cc new file mode 100644 index 000000000..b07f946e1 --- /dev/null +++ b/ccc/src/model/ListConfigItemsResult.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 +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListConfigItemsResult::ListConfigItemsResult() : + ServiceResult() +{} + +ListConfigItemsResult::ListConfigItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListConfigItemsResult::~ListConfigItemsResult() +{} + +void ListConfigItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ConfigItem"]; + for (auto valueDataConfigItem : allDataNode) + { + ConfigItem dataObject; + if(!valueDataConfigItem["InstanceId"].isNull()) + dataObject.instanceId = valueDataConfigItem["InstanceId"].asString(); + if(!valueDataConfigItem["Name"].isNull()) + dataObject.name = valueDataConfigItem["Name"].asString(); + if(!valueDataConfigItem["ObjectId"].isNull()) + dataObject.objectId = valueDataConfigItem["ObjectId"].asString(); + if(!valueDataConfigItem["ObjectType"].isNull()) + dataObject.objectType = valueDataConfigItem["ObjectType"].asString(); + if(!valueDataConfigItem["Value"].isNull()) + dataObject.value = valueDataConfigItem["Value"].asString(); + data_.push_back(dataObject); + } + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListConfigItemsResult::getMessage()const +{ + return message_; +} + +int ListConfigItemsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListConfigItemsResult::getParams()const +{ + return params_; +} + +std::vector ListConfigItemsResult::getData()const +{ + return data_; +} + +std::string ListConfigItemsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListConfigRequest.cc b/ccc/src/model/ListConfigRequest.cc deleted file mode 100644 index e8dd22fbf..000000000 --- a/ccc/src/model/ListConfigRequest.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 dep1 = 0; dep1!= configItem.size(); dep1++) { - setParameter("ConfigItem."+ std::to_string(dep1), configItem.at(dep1)); - } -} - -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 deleted file mode 100644 index 29fa0448d..000000000 --- a/ccc/src/model/ListConfigResult.cc +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allConfigItemsNode = value["ConfigItems"]["ConfigItem"]; - for (auto valueConfigItemsConfigItem : allConfigItemsNode) - { - ConfigItem configItemsObject; - if(!valueConfigItemsConfigItem["Name"].isNull()) - configItemsObject.name = valueConfigItemsConfigItem["Name"].asString(); - if(!valueConfigItemsConfigItem["Value"].isNull()) - configItemsObject.value = valueConfigItemsConfigItem["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 deleted file mode 100644 index 259a20f4f..000000000 --- a/ccc/src/model/ListContactFlowsResult.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -ListContactFlowsResult::ListContactFlowsResult() : - ServiceResult() -{} - -ListContactFlowsResult::ListContactFlowsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListContactFlowsResult::~ListContactFlowsResult() -{} - -void ListContactFlowsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allContactFlowsNode = value["ContactFlows"]["ContactFlow"]; - for (auto valueContactFlowsContactFlow : allContactFlowsNode) - { - ContactFlow contactFlowsObject; - if(!valueContactFlowsContactFlow["ContactFlowId"].isNull()) - contactFlowsObject.contactFlowId = valueContactFlowsContactFlow["ContactFlowId"].asString(); - if(!valueContactFlowsContactFlow["InstanceId"].isNull()) - contactFlowsObject.instanceId = valueContactFlowsContactFlow["InstanceId"].asString(); - if(!valueContactFlowsContactFlow["ContactFlowName"].isNull()) - contactFlowsObject.contactFlowName = valueContactFlowsContactFlow["ContactFlowName"].asString(); - if(!valueContactFlowsContactFlow["ContactFlowDescription"].isNull()) - contactFlowsObject.contactFlowDescription = valueContactFlowsContactFlow["ContactFlowDescription"].asString(); - if(!valueContactFlowsContactFlow["Type"].isNull()) - contactFlowsObject.type = valueContactFlowsContactFlow["Type"].asString(); - if(!valueContactFlowsContactFlow["AppliedVersion"].isNull()) - contactFlowsObject.appliedVersion = valueContactFlowsContactFlow["AppliedVersion"].asString(); - auto allVersionsNode = valueContactFlowsContactFlow["Versions"]["ContactFlowVersion"]; - for (auto valueContactFlowsContactFlowVersionsContactFlowVersion : allVersionsNode) - { - ContactFlow::ContactFlowVersion versionsObject; - if(!valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionId"].isNull()) - versionsObject.contactFlowVersionId = valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionId"].asString(); - if(!valueContactFlowsContactFlowVersionsContactFlowVersion["Version"].isNull()) - versionsObject.version = valueContactFlowsContactFlowVersionsContactFlowVersion["Version"].asString(); - if(!valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionDescription"].isNull()) - versionsObject.contactFlowVersionDescription = valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionDescription"].asString(); - if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LastModified"].isNull()) - versionsObject.lastModified = valueContactFlowsContactFlowVersionsContactFlowVersion["LastModified"].asString(); - if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LastModifiedBy"].isNull()) - versionsObject.lastModifiedBy = valueContactFlowsContactFlowVersionsContactFlowVersion["LastModifiedBy"].asString(); - if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LockedBy"].isNull()) - versionsObject.lockedBy = valueContactFlowsContactFlowVersionsContactFlowVersion["LockedBy"].asString(); - if(!valueContactFlowsContactFlowVersionsContactFlowVersion["Status"].isNull()) - versionsObject.status = valueContactFlowsContactFlowVersionsContactFlowVersion["Status"].asString(); - contactFlowsObject.versions.push_back(versionsObject); - } - auto allPhoneNumbersNode = valueContactFlowsContactFlow["PhoneNumbers"]["PhoneNumber"]; - for (auto valueContactFlowsContactFlowPhoneNumbersPhoneNumber : allPhoneNumbersNode) - { - ContactFlow::PhoneNumber phoneNumbersObject; - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumbersObject.phoneNumberId = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumbersObject.instanceId = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumbersObject.number = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Number"].asString(); - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumbersObject.phoneNumberDescription = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["TestOnly"].isNull()) - phoneNumbersObject.testOnly = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumbersObject.remainingTime = std::stoi(valueContactFlowsContactFlowPhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - phoneNumbersObject.allowOutbound = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Usage"].isNull()) - phoneNumbersObject.usage = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Usage"].asString(); - if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumbersObject.trunks = std::stoi(valueContactFlowsContactFlowPhoneNumbersPhoneNumber["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_; -} - diff --git a/ccc/src/model/GetTaskListRequest.cc b/ccc/src/model/ListDevicesRequest.cc similarity index 58% rename from ccc/src/model/GetTaskListRequest.cc rename to ccc/src/model/ListDevicesRequest.cc index 40a19f21f..ed2b91818 100644 --- a/ccc/src/model/GetTaskListRequest.cc +++ b/ccc/src/model/ListDevicesRequest.cc @@ -14,36 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetTaskListRequest; +using AlibabaCloud::CCC::Model::ListDevicesRequest; -GetTaskListRequest::GetTaskListRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetTaskList") +ListDevicesRequest::ListDevicesRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListDevices") { setMethod(HttpRequest::Method::Post); } -GetTaskListRequest::~GetTaskListRequest() +ListDevicesRequest::~ListDevicesRequest() {} -std::string GetTaskListRequest::getJobId()const +std::string ListDevicesRequest::getUserId()const { - return jobId_; + return userId_; } -void GetTaskListRequest::setJobId(const std::string& jobId) +void ListDevicesRequest::setUserId(const std::string& userId) { - jobId_ = jobId; - setParameter("JobId", jobId); + userId_ = userId; + setParameter("UserId", userId); } -std::string GetTaskListRequest::getInstanceId()const +std::string ListDevicesRequest::getInstanceId()const { return instanceId_; } -void GetTaskListRequest::setInstanceId(const std::string& instanceId) +void ListDevicesRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/ListDevicesResult.cc b/ccc/src/model/ListDevicesResult.cc new file mode 100644 index 000000000..41226415f --- /dev/null +++ b/ccc/src/model/ListDevicesResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListDevicesResult::ListDevicesResult() : + ServiceResult() +{} + +ListDevicesResult::ListDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDevicesResult::~ListDevicesResult() +{} + +void ListDevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Device"]; + for (auto valueDataDevice : allDataNode) + { + Device dataObject; + if(!valueDataDevice["CallId"].isNull()) + dataObject.callId = valueDataDevice["CallId"].asString(); + if(!valueDataDevice["Contact"].isNull()) + dataObject.contact = valueDataDevice["Contact"].asString(); + if(!valueDataDevice["DeviceId"].isNull()) + dataObject.deviceId = valueDataDevice["DeviceId"].asString(); + if(!valueDataDevice["Expires"].isNull()) + dataObject.expires = std::stol(valueDataDevice["Expires"].asString()); + if(!valueDataDevice["Extension"].isNull()) + dataObject.extension = valueDataDevice["Extension"].asString(); + if(!valueDataDevice["InstanceId"].isNull()) + dataObject.instanceId = valueDataDevice["InstanceId"].asString(); + if(!valueDataDevice["UserId"].isNull()) + dataObject.userId = valueDataDevice["UserId"].asString(); + data_.push_back(dataObject); + } + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListDevicesResult::getMessage()const +{ + return message_; +} + +int ListDevicesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListDevicesResult::getParams()const +{ + return params_; +} + +std::vector ListDevicesResult::getData()const +{ + return data_; +} + +std::string ListDevicesResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListHistoricalAgentReportRequest.cc b/ccc/src/model/ListHistoricalAgentReportRequest.cc new file mode 100644 index 000000000..18ee6d7df --- /dev/null +++ b/ccc/src/model/ListHistoricalAgentReportRequest.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::ListHistoricalAgentReportRequest; + +ListHistoricalAgentReportRequest::ListHistoricalAgentReportRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListHistoricalAgentReport") +{ + setMethod(HttpRequest::Method::Post); +} + +ListHistoricalAgentReportRequest::~ListHistoricalAgentReportRequest() +{} + +long ListHistoricalAgentReportRequest::getStartTime()const +{ + return startTime_; +} + +void ListHistoricalAgentReportRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +long ListHistoricalAgentReportRequest::getStopTime()const +{ + return stopTime_; +} + +void ListHistoricalAgentReportRequest::setStopTime(long stopTime) +{ + stopTime_ = stopTime; + setParameter("StopTime", std::to_string(stopTime)); +} + +int ListHistoricalAgentReportRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListHistoricalAgentReportRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListHistoricalAgentReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListHistoricalAgentReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListHistoricalAgentReportRequest::getAgentIdList()const +{ + return agentIdList_; +} + +void ListHistoricalAgentReportRequest::setAgentIdList(const std::string& agentIdList) +{ + agentIdList_ = agentIdList; + setBodyParameter("AgentIdList", agentIdList); +} + +int ListHistoricalAgentReportRequest::getPageSize()const +{ + return pageSize_; +} + +void ListHistoricalAgentReportRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListHistoricalAgentReportResult.cc b/ccc/src/model/ListHistoricalAgentReportResult.cc new file mode 100644 index 000000000..ba4b5a1d6 --- /dev/null +++ b/ccc/src/model/ListHistoricalAgentReportResult.cc @@ -0,0 +1,200 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListHistoricalAgentReportResult::ListHistoricalAgentReportResult() : + ServiceResult() +{} + +ListHistoricalAgentReportResult::ListHistoricalAgentReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListHistoricalAgentReportResult::~ListHistoricalAgentReportResult() +{} + +void ListHistoricalAgentReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["Items"]; + for (auto dataNodeListItems : allListNode) + { + Data::Items itemsObject; + if(!dataNodeListItems["AgentId"].isNull()) + itemsObject.agentId = dataNodeListItems["AgentId"].asString(); + if(!dataNodeListItems["AgentName"].isNull()) + itemsObject.agentName = dataNodeListItems["AgentName"].asString(); + auto inboundNode = value["Inbound"]; + if(!inboundNode["AverageRingTime"].isNull()) + itemsObject.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + itemsObject.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + itemsObject.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["CallsConsulted"].isNull()) + itemsObject.inbound.callsConsulted = std::stol(inboundNode["CallsConsulted"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + itemsObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["CallsHold"].isNull()) + itemsObject.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + itemsObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsTransfered"].isNull()) + itemsObject.inbound.callsTransfered = std::stol(inboundNode["CallsTransfered"].asString()); + if(!inboundNode["HandleRate"].isNull()) + itemsObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + itemsObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + itemsObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + itemsObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + itemsObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + itemsObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + itemsObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + itemsObject.inbound.serviceLevel20 = std::stol(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalHoldTime"].isNull()) + itemsObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + itemsObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + itemsObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + itemsObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["AnswerRate"].isNull()) + itemsObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + itemsObject.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + itemsObject.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + itemsObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + itemsObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["CallsDialed"].isNull()) + itemsObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + itemsObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + itemsObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + itemsObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + itemsObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + itemsObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + itemsObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + itemsObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["TotalHoldTime"].isNull()) + itemsObject.outbound.totalHoldTime = std::stol(outboundNode["TotalHoldTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + itemsObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + itemsObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + auto overallNode = value["Overall"]; + if(!overallNode["AverageBreakTime"].isNull()) + itemsObject.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + itemsObject.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + itemsObject.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + itemsObject.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString()); + if(!overallNode["MaxBreakTime"].isNull()) + itemsObject.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + itemsObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + itemsObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + itemsObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + itemsObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + itemsObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + itemsObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + itemsObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + itemsObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["TotalCalls"].isNull()) + itemsObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalHoldTime"].isNull()) + itemsObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + itemsObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + itemsObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + itemsObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + itemsObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + data_.list.push_back(itemsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListHistoricalAgentReportResult::getMessage()const +{ + return message_; +} + +int ListHistoricalAgentReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListHistoricalAgentReportResult::Data ListHistoricalAgentReportResult::getData()const +{ + return data_; +} + +std::string ListHistoricalAgentReportResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListInstancesOfUserRequest.cc b/ccc/src/model/ListInstancesOfUserRequest.cc deleted file mode 100644 index 7b5a8c079..000000000 --- a/ccc/src/model/ListInstancesOfUserRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::CCC::Model::ListInstancesOfUserRequest; - -ListInstancesOfUserRequest::ListInstancesOfUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListInstancesOfUser") -{ - setMethod(HttpRequest::Method::Post); -} - -ListInstancesOfUserRequest::~ListInstancesOfUserRequest() -{} - -std::string ListInstancesOfUserRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListInstancesOfUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListInstancesOfUserResult.cc b/ccc/src/model/ListInstancesOfUserResult.cc deleted file mode 100644 index 8ea209999..000000000 --- a/ccc/src/model/ListInstancesOfUserResult.cc +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -ListInstancesOfUserResult::ListInstancesOfUserResult() : - ServiceResult() -{} - -ListInstancesOfUserResult::ListInstancesOfUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListInstancesOfUserResult::~ListInstancesOfUserResult() -{} - -void ListInstancesOfUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allInstancesNode = value["Instances"]["CallCenterInstance"]; - for (auto valueInstancesCallCenterInstance : allInstancesNode) - { - CallCenterInstance instancesObject; - if(!valueInstancesCallCenterInstance["InstanceId"].isNull()) - instancesObject.instanceId = valueInstancesCallCenterInstance["InstanceId"].asString(); - if(!valueInstancesCallCenterInstance["InstanceName"].isNull()) - instancesObject.instanceName = valueInstancesCallCenterInstance["InstanceName"].asString(); - if(!valueInstancesCallCenterInstance["InstanceDescription"].isNull()) - instancesObject.instanceDescription = valueInstancesCallCenterInstance["InstanceDescription"].asString(); - if(!valueInstancesCallCenterInstance["DomainName"].isNull()) - instancesObject.domainName = valueInstancesCallCenterInstance["DomainName"].asString(); - if(!valueInstancesCallCenterInstance["ConsoleUrl"].isNull()) - instancesObject.consoleUrl = valueInstancesCallCenterInstance["ConsoleUrl"].asString(); - if(!valueInstancesCallCenterInstance["StorageBucket"].isNull()) - instancesObject.storageBucket = valueInstancesCallCenterInstance["StorageBucket"].asString(); - if(!valueInstancesCallCenterInstance["StorageMaxDays"].isNull()) - instancesObject.storageMaxDays = std::stoi(valueInstancesCallCenterInstance["StorageMaxDays"].asString()); - if(!valueInstancesCallCenterInstance["StorageMaxSize"].isNull()) - instancesObject.storageMaxSize = std::stoi(valueInstancesCallCenterInstance["StorageMaxSize"].asString()); - if(!valueInstancesCallCenterInstance["MaxOnlineAgents"].isNull()) - instancesObject.maxOnlineAgents = std::stoi(valueInstancesCallCenterInstance["MaxOnlineAgents"].asString()); - if(!valueInstancesCallCenterInstance["TenantId"].isNull()) - instancesObject.tenantId = valueInstancesCallCenterInstance["TenantId"].asString(); - if(!valueInstancesCallCenterInstance["DirectoryId"].isNull()) - instancesObject.directoryId = valueInstancesCallCenterInstance["DirectoryId"].asString(); - if(!valueInstancesCallCenterInstance["Status"].isNull()) - instancesObject.status = valueInstancesCallCenterInstance["Status"].asString(); - if(!valueInstancesCallCenterInstance["CreatedTime"].isNull()) - instancesObject.createdTime = std::stol(valueInstancesCallCenterInstance["CreatedTime"].asString()); - if(!valueInstancesCallCenterInstance["Owner"].isNull()) - instancesObject.owner = valueInstancesCallCenterInstance["Owner"].asString(); - auto allAdminNode = valueInstancesCallCenterInstance["Admin"]["User"]; - for (auto valueInstancesCallCenterInstanceAdminUser : allAdminNode) - { - CallCenterInstance::User adminObject; - if(!valueInstancesCallCenterInstanceAdminUser["UserId"].isNull()) - adminObject.userId = valueInstancesCallCenterInstanceAdminUser["UserId"].asString(); - if(!valueInstancesCallCenterInstanceAdminUser["RamId"].isNull()) - adminObject.ramId = valueInstancesCallCenterInstanceAdminUser["RamId"].asString(); - if(!valueInstancesCallCenterInstanceAdminUser["InstanceId"].isNull()) - adminObject.instanceId = valueInstancesCallCenterInstanceAdminUser["InstanceId"].asString(); - auto detailNode = value["Detail"]; - if(!detailNode["LoginName"].isNull()) - adminObject.detail.loginName = detailNode["LoginName"].asString(); - if(!detailNode["DisplayName"].isNull()) - adminObject.detail.displayName = detailNode["DisplayName"].asString(); - if(!detailNode["Phone"].isNull()) - adminObject.detail.phone = detailNode["Phone"].asString(); - if(!detailNode["Email"].isNull()) - adminObject.detail.email = detailNode["Email"].asString(); - if(!detailNode["Department"].isNull()) - adminObject.detail.department = detailNode["Department"].asString(); - instancesObject.admin.push_back(adminObject); - } - auto allPhoneNumbersNode = valueInstancesCallCenterInstance["PhoneNumbers"]["PhoneNumber"]; - for (auto valueInstancesCallCenterInstancePhoneNumbersPhoneNumber : allPhoneNumbersNode) - { - CallCenterInstance::PhoneNumber phoneNumbersObject; - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumbersObject.phoneNumberId = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumbersObject.instanceId = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumbersObject.number = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Number"].asString(); - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumbersObject.phoneNumberDescription = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["TestOnly"].isNull()) - phoneNumbersObject.testOnly = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumbersObject.remainingTime = std::stoi(valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - phoneNumbersObject.allowOutbound = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Usage"].isNull()) - phoneNumbersObject.usage = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Usage"].asString(); - if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumbersObject.trunks = std::stoi(valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Trunks"].asString()); - instancesObject.phoneNumbers.push_back(phoneNumbersObject); - } - instances_.push_back(instancesObject); - } - 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 ListInstancesOfUserResult::getInstances()const -{ - return instances_; -} - -std::string ListInstancesOfUserResult::getMessage()const -{ - return message_; -} - -int ListInstancesOfUserResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListInstancesOfUserResult::getCode()const -{ - return code_; -} - -bool ListInstancesOfUserResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListIvrTrackingDetailRequest.cc b/ccc/src/model/ListIvrTrackingDetailRequest.cc deleted file mode 100644 index b79002b98..000000000 --- a/ccc/src/model/ListIvrTrackingDetailRequest.cc +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListIvrTrackingDetailRequest; - -ListIvrTrackingDetailRequest::ListIvrTrackingDetailRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListIvrTrackingDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -ListIvrTrackingDetailRequest::~ListIvrTrackingDetailRequest() -{} - -std::string ListIvrTrackingDetailRequest::getContactId()const -{ - return contactId_; -} - -void ListIvrTrackingDetailRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -long ListIvrTrackingDetailRequest::getStartTime()const -{ - return startTime_; -} - -void ListIvrTrackingDetailRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -long ListIvrTrackingDetailRequest::getStopTime()const -{ - return stopTime_; -} - -void ListIvrTrackingDetailRequest::setStopTime(long stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); -} - -int ListIvrTrackingDetailRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListIvrTrackingDetailRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListIvrTrackingDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListIvrTrackingDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListIvrTrackingDetailRequest::getCallingNumber()const -{ - return callingNumber_; -} - -void ListIvrTrackingDetailRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); -} - -std::string ListIvrTrackingDetailRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListIvrTrackingDetailRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListIvrTrackingDetailRequest::getCalledNumber()const -{ - return calledNumber_; -} - -void ListIvrTrackingDetailRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); -} - -int ListIvrTrackingDetailRequest::getPageSize()const -{ - return pageSize_; -} - -void ListIvrTrackingDetailRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListIvrTrackingDetailResult.cc b/ccc/src/model/ListIvrTrackingDetailResult.cc deleted file mode 100644 index 2cc4accc7..000000000 --- a/ccc/src/model/ListIvrTrackingDetailResult.cc +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListIvrTrackingDetailResult::ListIvrTrackingDetailResult() : - ServiceResult() -{} - -ListIvrTrackingDetailResult::ListIvrTrackingDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListIvrTrackingDetailResult::~ListIvrTrackingDetailResult() -{} - -void ListIvrTrackingDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto ivrTrackingDetailsNode = value["IvrTrackingDetails"]; - if(!ivrTrackingDetailsNode["TotalCount"].isNull()) - ivrTrackingDetails_.totalCount = std::stoi(ivrTrackingDetailsNode["TotalCount"].asString()); - if(!ivrTrackingDetailsNode["PageNumber"].isNull()) - ivrTrackingDetails_.pageNumber = std::stoi(ivrTrackingDetailsNode["PageNumber"].asString()); - if(!ivrTrackingDetailsNode["PageSize"].isNull()) - ivrTrackingDetails_.pageSize = std::stoi(ivrTrackingDetailsNode["PageSize"].asString()); - auto allListNode = ivrTrackingDetailsNode["List"]["IvrTrackingDetail"]; - for (auto ivrTrackingDetailsNodeListIvrTrackingDetail : allListNode) - { - IvrTrackingDetails::IvrTrackingDetail ivrTrackingDetailObject; - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["FlowName"].isNull()) - ivrTrackingDetailObject.flowName = ivrTrackingDetailsNodeListIvrTrackingDetail["FlowName"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["NodeName"].isNull()) - ivrTrackingDetailObject.nodeName = ivrTrackingDetailsNodeListIvrTrackingDetail["NodeName"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["NodeType"].isNull()) - ivrTrackingDetailObject.nodeType = ivrTrackingDetailsNodeListIvrTrackingDetail["NodeType"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["ContactId"].isNull()) - ivrTrackingDetailObject.contactId = ivrTrackingDetailsNodeListIvrTrackingDetail["ContactId"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["CallingNumber"].isNull()) - ivrTrackingDetailObject.callingNumber = ivrTrackingDetailsNodeListIvrTrackingDetail["CallingNumber"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["CalledNumber"].isNull()) - ivrTrackingDetailObject.calledNumber = ivrTrackingDetailsNodeListIvrTrackingDetail["CalledNumber"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["StartTime"].isNull()) - ivrTrackingDetailObject.startTime = std::stol(ivrTrackingDetailsNodeListIvrTrackingDetail["StartTime"].asString()); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["StopTime"].isNull()) - ivrTrackingDetailObject.stopTime = std::stol(ivrTrackingDetailsNodeListIvrTrackingDetail["StopTime"].asString()); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["Status"].isNull()) - ivrTrackingDetailObject.status = ivrTrackingDetailsNodeListIvrTrackingDetail["Status"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["InputData"].isNull()) - ivrTrackingDetailObject.inputData = ivrTrackingDetailsNodeListIvrTrackingDetail["InputData"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["OutputData"].isNull()) - ivrTrackingDetailObject.outputData = ivrTrackingDetailsNodeListIvrTrackingDetail["OutputData"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["Description"].isNull()) - ivrTrackingDetailObject.description = ivrTrackingDetailsNodeListIvrTrackingDetail["Description"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["DeviceID"].isNull()) - ivrTrackingDetailObject.deviceID = ivrTrackingDetailsNodeListIvrTrackingDetail["DeviceID"].asString(); - if(!ivrTrackingDetailsNodeListIvrTrackingDetail["TenantId"].isNull()) - ivrTrackingDetailObject.tenantId = ivrTrackingDetailsNodeListIvrTrackingDetail["TenantId"].asString(); - ivrTrackingDetails_.list.push_back(ivrTrackingDetailObject); - } - 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 ListIvrTrackingDetailResult::getMessage()const -{ - return message_; -} - -ListIvrTrackingDetailResult::IvrTrackingDetails ListIvrTrackingDetailResult::getIvrTrackingDetails()const -{ - return ivrTrackingDetails_; -} - -int ListIvrTrackingDetailResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListIvrTrackingDetailResult::getCode()const -{ - return code_; -} - -bool ListIvrTrackingDetailResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListJobGroupsResult.cc b/ccc/src/model/ListJobGroupsResult.cc deleted file mode 100644 index d5fac3b40..000000000 --- a/ccc/src/model/ListJobGroupsResult.cc +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = jobGroupsNode["List"]["JobGroup"]; - for (auto jobGroupsNodeListJobGroup : allListNode) - { - JobGroups::JobGroup jobGroupObject; - if(!jobGroupsNodeListJobGroup["Id"].isNull()) - jobGroupObject.id = jobGroupsNodeListJobGroup["Id"].asString(); - if(!jobGroupsNodeListJobGroup["Name"].isNull()) - jobGroupObject.name = jobGroupsNodeListJobGroup["Name"].asString(); - if(!jobGroupsNodeListJobGroup["Description"].isNull()) - jobGroupObject.description = jobGroupsNodeListJobGroup["Description"].asString(); - if(!jobGroupsNodeListJobGroup["ScenarioId"].isNull()) - jobGroupObject.scenarioId = jobGroupsNodeListJobGroup["ScenarioId"].asString(); - if(!jobGroupsNodeListJobGroup["JobFilePath"].isNull()) - jobGroupObject.jobFilePath = jobGroupsNodeListJobGroup["JobFilePath"].asString(); - if(!jobGroupsNodeListJobGroup["CreationTime"].isNull()) - jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - JobGroups::JobGroup::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) - timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["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 allCategoriesNode = progressNode["Categories"]["KeyValuePair"]; - for (auto progressNodeCategoriesKeyValuePair : allCategoriesNode) - { - JobGroups::JobGroup::Progress::KeyValuePair keyValuePairObject; - if(!progressNodeCategoriesKeyValuePair["Key"].isNull()) - keyValuePairObject.key = progressNodeCategoriesKeyValuePair["Key"].asString(); - if(!progressNodeCategoriesKeyValuePair["Value"].isNull()) - keyValuePairObject.value = progressNodeCategoriesKeyValuePair["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 deleted file mode 100644 index 87aa8ee20..000000000 --- a/ccc/src/model/ListJobStatusRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ListJobStatusRequest::~ListJobStatusRequest() -{} - -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); -} - -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)); -} - -int ListJobStatusRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListJobStatusRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -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); -} - -int ListJobStatusRequest::getPageSize()const -{ - return pageSize_; -} - -void ListJobStatusRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListJobStatusRequest::getScenarioId()const -{ - return scenarioId_; -} - -void ListJobStatusRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); -} - diff --git a/ccc/src/model/ListJobStatusResult.cc b/ccc/src/model/ListJobStatusResult.cc deleted file mode 100644 index 5c1d979a1..000000000 --- a/ccc/src/model/ListJobStatusResult.cc +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = jobsNode["List"]["Job"]; - for (auto jobsNodeListJob : allListNode) - { - Jobs::Job jobObject; - if(!jobsNodeListJob["JobId"].isNull()) - jobObject.jobId = jobsNodeListJob["JobId"].asString(); - if(!jobsNodeListJob["GroupId"].isNull()) - jobObject.groupId = jobsNodeListJob["GroupId"].asString(); - if(!jobsNodeListJob["ScenarioId"].isNull()) - jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString(); - if(!jobsNodeListJob["StrategyId"].isNull()) - jobObject.strategyId = jobsNodeListJob["StrategyId"].asString(); - if(!jobsNodeListJob["Priority"].isNull()) - jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString()); - if(!jobsNodeListJob["Status"].isNull()) - jobObject.status = jobsNodeListJob["Status"].asString(); - if(!jobsNodeListJob["ReferenceId"].isNull()) - jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString(); - if(!jobsNodeListJob["FailureReason"].isNull()) - jobObject.failureReason = jobsNodeListJob["FailureReason"].asString(); - auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"]; - for (auto jobsNodeListJobContactsContact : allContactsNode) - { - Jobs::Job::Contact contactsObject; - if(!jobsNodeListJobContactsContact["ContactId"].isNull()) - contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString(); - if(!jobsNodeListJobContactsContact["ContactName"].isNull()) - contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString(); - if(!jobsNodeListJobContactsContact["Honorific"].isNull()) - contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString(); - if(!jobsNodeListJobContactsContact["Role"].isNull()) - contactsObject.role = jobsNodeListJobContactsContact["Role"].asString(); - if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull()) - contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString(); - if(!jobsNodeListJobContactsContact["State"].isNull()) - contactsObject.state = jobsNodeListJobContactsContact["State"].asString(); - if(!jobsNodeListJobContactsContact["ReferenceId"].isNull()) - contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString(); - if(!jobsNodeListJobContactsContact["JobId"].isNull()) - contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString(); - jobObject.contacts.push_back(contactsObject); - } - auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"]; - for (auto jobsNodeListJobExtrasKeyValuePair : allExtrasNode) - { - Jobs::Job::KeyValuePair extrasObject; - if(!jobsNodeListJobExtrasKeyValuePair["Key"].isNull()) - extrasObject.key = jobsNodeListJobExtrasKeyValuePair["Key"].asString(); - if(!jobsNodeListJobExtrasKeyValuePair["Value"].isNull()) - extrasObject.value = jobsNodeListJobExtrasKeyValuePair["Value"].asString(); - jobObject.extras.push_back(extrasObject); - } - auto allTasksNode = jobsNodeListJob["Tasks"]["Task"]; - for (auto jobsNodeListJobTasksTask : allTasksNode) - { - Jobs::Job::Task tasksObject; - if(!jobsNodeListJobTasksTask["TaskId"].isNull()) - tasksObject.taskId = jobsNodeListJobTasksTask["TaskId"].asString(); - if(!jobsNodeListJobTasksTask["JobId"].isNull()) - tasksObject.jobId = jobsNodeListJobTasksTask["JobId"].asString(); - if(!jobsNodeListJobTasksTask["ScenarioId"].isNull()) - tasksObject.scenarioId = jobsNodeListJobTasksTask["ScenarioId"].asString(); - if(!jobsNodeListJobTasksTask["ChatbotId"].isNull()) - tasksObject.chatbotId = jobsNodeListJobTasksTask["ChatbotId"].asString(); - if(!jobsNodeListJobTasksTask["PlanedTime"].isNull()) - tasksObject.planedTime = std::stol(jobsNodeListJobTasksTask["PlanedTime"].asString()); - if(!jobsNodeListJobTasksTask["ActualTime"].isNull()) - tasksObject.actualTime = std::stol(jobsNodeListJobTasksTask["ActualTime"].asString()); - if(!jobsNodeListJobTasksTask["CallingNumber"].isNull()) - tasksObject.callingNumber = jobsNodeListJobTasksTask["CallingNumber"].asString(); - if(!jobsNodeListJobTasksTask["CalledNumber"].isNull()) - tasksObject.calledNumber = jobsNodeListJobTasksTask["CalledNumber"].asString(); - if(!jobsNodeListJobTasksTask["CallId"].isNull()) - tasksObject.callId = jobsNodeListJobTasksTask["CallId"].asString(); - if(!jobsNodeListJobTasksTask["Status"].isNull()) - tasksObject.status = jobsNodeListJobTasksTask["Status"].asString(); - if(!jobsNodeListJobTasksTask["Brief"].isNull()) - tasksObject.brief = jobsNodeListJobTasksTask["Brief"].asString(); - if(!jobsNodeListJobTasksTask["Duration"].isNull()) - tasksObject.duration = std::stoi(jobsNodeListJobTasksTask["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 allSummaryNode = jobsNodeListJob["Summary"]["SummaryItem"]; - for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode) - { - Jobs::Job::SummaryItem summaryObject; - if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull()) - summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["GroupId"].isNull()) - summaryObject.groupId = jobsNodeListJobSummarySummaryItem["GroupId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull()) - summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull()) - summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull()) - summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["Category"].isNull()) - summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString(); - if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull()) - summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString(); - if(!jobsNodeListJobSummarySummaryItem["Content"].isNull()) - summaryObject.content = jobsNodeListJobSummarySummaryItem["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 deleted file mode 100644 index 2fbc7cccb..000000000 --- a/ccc/src/model/ListJobsByGroupRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ListJobsByGroupRequest::~ListJobsByGroupRequest() -{} - -std::string ListJobsByGroupRequest::getJobStatus()const -{ - return jobStatus_; -} - -void ListJobsByGroupRequest::setJobStatus(const std::string& jobStatus) -{ - jobStatus_ = jobStatus; - setParameter("JobStatus", jobStatus); -} - -int ListJobsByGroupRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListJobsByGroupRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -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::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)); -} - diff --git a/ccc/src/model/ListJobsByGroupResult.cc b/ccc/src/model/ListJobsByGroupResult.cc deleted file mode 100644 index 18f2aee45..000000000 --- a/ccc/src/model/ListJobsByGroupResult.cc +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = jobsNode["List"]["Job"]; - for (auto jobsNodeListJob : allListNode) - { - Jobs::Job jobObject; - if(!jobsNodeListJob["JobId"].isNull()) - jobObject.jobId = jobsNodeListJob["JobId"].asString(); - if(!jobsNodeListJob["GroupId"].isNull()) - jobObject.groupId = jobsNodeListJob["GroupId"].asString(); - if(!jobsNodeListJob["ScenarioId"].isNull()) - jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString(); - if(!jobsNodeListJob["StrategyId"].isNull()) - jobObject.strategyId = jobsNodeListJob["StrategyId"].asString(); - if(!jobsNodeListJob["Priority"].isNull()) - jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString()); - if(!jobsNodeListJob["SystemPriority"].isNull()) - jobObject.systemPriority = std::stoi(jobsNodeListJob["SystemPriority"].asString()); - if(!jobsNodeListJob["Status"].isNull()) - jobObject.status = jobsNodeListJob["Status"].asString(); - if(!jobsNodeListJob["ReferenceId"].isNull()) - jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString(); - if(!jobsNodeListJob["FailureReason"].isNull()) - jobObject.failureReason = jobsNodeListJob["FailureReason"].asString(); - auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"]; - for (auto jobsNodeListJobContactsContact : allContactsNode) - { - Jobs::Job::Contact contactsObject; - if(!jobsNodeListJobContactsContact["ContactId"].isNull()) - contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString(); - if(!jobsNodeListJobContactsContact["ContactName"].isNull()) - contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString(); - if(!jobsNodeListJobContactsContact["Honorific"].isNull()) - contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString(); - if(!jobsNodeListJobContactsContact["Role"].isNull()) - contactsObject.role = jobsNodeListJobContactsContact["Role"].asString(); - if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull()) - contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString(); - if(!jobsNodeListJobContactsContact["State"].isNull()) - contactsObject.state = jobsNodeListJobContactsContact["State"].asString(); - if(!jobsNodeListJobContactsContact["ReferenceId"].isNull()) - contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString(); - if(!jobsNodeListJobContactsContact["JobId"].isNull()) - contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString(); - jobObject.contacts.push_back(contactsObject); - } - auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"]; - for (auto jobsNodeListJobExtrasKeyValuePair : allExtrasNode) - { - Jobs::Job::KeyValuePair extrasObject; - if(!jobsNodeListJobExtrasKeyValuePair["Key"].isNull()) - extrasObject.key = jobsNodeListJobExtrasKeyValuePair["Key"].asString(); - if(!jobsNodeListJobExtrasKeyValuePair["Value"].isNull()) - extrasObject.value = jobsNodeListJobExtrasKeyValuePair["Value"].asString(); - jobObject.extras.push_back(extrasObject); - } - auto allSummaryNode = jobsNodeListJob["Summary"]["SummaryItem"]; - for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode) - { - Jobs::Job::SummaryItem summaryObject; - if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull()) - summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["GroupId"].isNull()) - summaryObject.groupId = jobsNodeListJobSummarySummaryItem["GroupId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull()) - summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull()) - summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull()) - summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["Category"].isNull()) - summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString(); - if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull()) - summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString(); - if(!jobsNodeListJobSummarySummaryItem["Content"].isNull()) - summaryObject.content = jobsNodeListJobSummarySummaryItem["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/ListMediasRequest.cc b/ccc/src/model/ListMediasRequest.cc deleted file mode 100644 index 319076418..000000000 --- a/ccc/src/model/ListMediasRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListMediasRequest; - -ListMediasRequest::ListMediasRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListMedias") -{ - setMethod(HttpRequest::Method::Post); -} - -ListMediasRequest::~ListMediasRequest() -{} - -int ListMediasRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListMediasRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListMediasRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListMediasRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListMediasRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListMediasRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListMediasRequest::getPageSize()const -{ - return pageSize_; -} - -void ListMediasRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListMediasRequest::getNamePrefix()const -{ - return namePrefix_; -} - -void ListMediasRequest::setNamePrefix(const std::string& namePrefix) -{ - namePrefix_ = namePrefix; - setParameter("NamePrefix", namePrefix); -} - diff --git a/ccc/src/model/ListMediasResult.cc b/ccc/src/model/ListMediasResult.cc deleted file mode 100644 index e92862810..000000000 --- a/ccc/src/model/ListMediasResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListMediasResult::ListMediasResult() : - ServiceResult() -{} - -ListMediasResult::ListMediasResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListMediasResult::~ListMediasResult() -{} - -void ListMediasResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto mediasNode = value["Medias"]; - if(!mediasNode["TotalCount"].isNull()) - medias_.totalCount = std::stoi(mediasNode["TotalCount"].asString()); - if(!mediasNode["PageNumber"].isNull()) - medias_.pageNumber = std::stoi(mediasNode["PageNumber"].asString()); - if(!mediasNode["PageSize"].isNull()) - medias_.pageSize = std::stoi(mediasNode["PageSize"].asString()); - auto allListNode = mediasNode["List"]["Media"]; - for (auto mediasNodeListMedia : allListNode) - { - Medias::Media mediaObject; - if(!mediasNodeListMedia["Instance"].isNull()) - mediaObject.instance = mediasNodeListMedia["Instance"].asString(); - if(!mediasNodeListMedia["Name"].isNull()) - mediaObject.name = mediasNodeListMedia["Name"].asString(); - if(!mediasNodeListMedia["Description"].isNull()) - mediaObject.description = mediasNodeListMedia["Description"].asString(); - if(!mediasNodeListMedia["Type"].isNull()) - mediaObject.type = mediasNodeListMedia["Type"].asString(); - if(!mediasNodeListMedia["Content"].isNull()) - mediaObject.content = mediasNodeListMedia["Content"].asString(); - if(!mediasNodeListMedia["FilePath"].isNull()) - mediaObject.filePath = mediasNodeListMedia["FilePath"].asString(); - if(!mediasNodeListMedia["FileName"].isNull()) - mediaObject.fileName = mediasNodeListMedia["FileName"].asString(); - if(!mediasNodeListMedia["OssFileName"].isNull()) - mediaObject.ossFileName = mediasNodeListMedia["OssFileName"].asString(); - if(!mediasNodeListMedia["Status"].isNull()) - mediaObject.status = mediasNodeListMedia["Status"].asString(); - medias_.list.push_back(mediaObject); - } - 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 ListMediasResult::getMessage()const -{ - return message_; -} - -int ListMediasResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -ListMediasResult::Medias ListMediasResult::getMedias()const -{ - return medias_; -} - -std::string ListMediasResult::getCode()const -{ - return code_; -} - -bool ListMediasResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListOutboundNumbersOfUserRequest.cc b/ccc/src/model/ListOutboundNumbersOfUserRequest.cc new file mode 100644 index 000000000..93d24dc7f --- /dev/null +++ b/ccc/src/model/ListOutboundNumbersOfUserRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ListOutboundNumbersOfUserRequest; + +ListOutboundNumbersOfUserRequest::ListOutboundNumbersOfUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListOutboundNumbersOfUser") +{ + setMethod(HttpRequest::Method::Post); +} + +ListOutboundNumbersOfUserRequest::~ListOutboundNumbersOfUserRequest() +{} + +std::string ListOutboundNumbersOfUserRequest::getUserId()const +{ + return userId_; +} + +void ListOutboundNumbersOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +int ListOutboundNumbersOfUserRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListOutboundNumbersOfUserRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListOutboundNumbersOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListOutboundNumbersOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListOutboundNumbersOfUserRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void ListOutboundNumbersOfUserRequest::setSkillGroupIdList(const std::string& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + setParameter("SkillGroupIdList", skillGroupIdList); +} + +int ListOutboundNumbersOfUserRequest::getPageSize()const +{ + return pageSize_; +} + +void ListOutboundNumbersOfUserRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListOutboundNumbersOfUserResult.cc b/ccc/src/model/ListOutboundNumbersOfUserResult.cc new file mode 100644 index 000000000..3be76ee01 --- /dev/null +++ b/ccc/src/model/ListOutboundNumbersOfUserResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListOutboundNumbersOfUserResult::ListOutboundNumbersOfUserResult() : + ServiceResult() +{} + +ListOutboundNumbersOfUserResult::ListOutboundNumbersOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOutboundNumbersOfUserResult::~ListOutboundNumbersOfUserResult() +{} + +void ListOutboundNumbersOfUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["PhoneNumber"]; + for (auto dataNodeListPhoneNumber : allListNode) + { + Data::PhoneNumber phoneNumberObject; + if(!dataNodeListPhoneNumber["City"].isNull()) + phoneNumberObject.city = dataNodeListPhoneNumber["City"].asString(); + if(!dataNodeListPhoneNumber["Number"].isNull()) + phoneNumberObject.number = dataNodeListPhoneNumber["Number"].asString(); + if(!dataNodeListPhoneNumber["Province"].isNull()) + phoneNumberObject.province = dataNodeListPhoneNumber["Province"].asString(); + data_.list.push_back(phoneNumberObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListOutboundNumbersOfUserResult::getMessage()const +{ + return message_; +} + +int ListOutboundNumbersOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListOutboundNumbersOfUserResult::Data ListOutboundNumbersOfUserResult::getData()const +{ + return data_; +} + +std::string ListOutboundNumbersOfUserResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListOutboundPhoneNumberOfUserRequest.cc b/ccc/src/model/ListOutboundPhoneNumberOfUserRequest.cc deleted file mode 100644 index 9a046e4b6..000000000 --- a/ccc/src/model/ListOutboundPhoneNumberOfUserRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListOutboundPhoneNumberOfUserRequest; - -ListOutboundPhoneNumberOfUserRequest::ListOutboundPhoneNumberOfUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListOutboundPhoneNumberOfUser") -{ - setMethod(HttpRequest::Method::Post); -} - -ListOutboundPhoneNumberOfUserRequest::~ListOutboundPhoneNumberOfUserRequest() -{} - -std::string ListOutboundPhoneNumberOfUserRequest::getUserId()const -{ - return userId_; -} - -void ListOutboundPhoneNumberOfUserRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - -int ListOutboundPhoneNumberOfUserRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListOutboundPhoneNumberOfUserRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListOutboundPhoneNumberOfUserRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListOutboundPhoneNumberOfUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListOutboundPhoneNumberOfUserRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListOutboundPhoneNumberOfUserRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListOutboundPhoneNumberOfUserRequest::getPageSize()const -{ - return pageSize_; -} - -void ListOutboundPhoneNumberOfUserRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListOutboundPhoneNumberOfUserResult.cc b/ccc/src/model/ListOutboundPhoneNumberOfUserResult.cc deleted file mode 100644 index a82befe1a..000000000 --- a/ccc/src/model/ListOutboundPhoneNumberOfUserResult.cc +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListOutboundPhoneNumberOfUserResult::ListOutboundPhoneNumberOfUserResult() : - ServiceResult() -{} - -ListOutboundPhoneNumberOfUserResult::ListOutboundPhoneNumberOfUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListOutboundPhoneNumberOfUserResult::~ListOutboundPhoneNumberOfUserResult() -{} - -void ListOutboundPhoneNumberOfUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allOutboundPhoneNumbersNode = value["OutboundPhoneNumbers"]["PhoneNumber"]; - for (auto valueOutboundPhoneNumbersPhoneNumber : allOutboundPhoneNumbersNode) - { - PhoneNumber outboundPhoneNumbersObject; - if(!valueOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - outboundPhoneNumbersObject.phoneNumberId = valueOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!valueOutboundPhoneNumbersPhoneNumber["InstanceId"].isNull()) - outboundPhoneNumbersObject.instanceId = valueOutboundPhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!valueOutboundPhoneNumbersPhoneNumber["Number"].isNull()) - outboundPhoneNumbersObject.number = valueOutboundPhoneNumbersPhoneNumber["Number"].asString(); - if(!valueOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - outboundPhoneNumbersObject.phoneNumberDescription = valueOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!valueOutboundPhoneNumbersPhoneNumber["TestOnly"].isNull()) - outboundPhoneNumbersObject.testOnly = valueOutboundPhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!valueOutboundPhoneNumbersPhoneNumber["RemainingTime"].isNull()) - outboundPhoneNumbersObject.remainingTime = std::stoi(valueOutboundPhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!valueOutboundPhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - outboundPhoneNumbersObject.allowOutbound = valueOutboundPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!valueOutboundPhoneNumbersPhoneNumber["Usage"].isNull()) - outboundPhoneNumbersObject.usage = valueOutboundPhoneNumbersPhoneNumber["Usage"].asString(); - if(!valueOutboundPhoneNumbersPhoneNumber["Trunks"].isNull()) - outboundPhoneNumbersObject.trunks = std::stoi(valueOutboundPhoneNumbersPhoneNumber["Trunks"].asString()); - if(!valueOutboundPhoneNumbersPhoneNumber["City"].isNull()) - outboundPhoneNumbersObject.city = valueOutboundPhoneNumbersPhoneNumber["City"].asString(); - if(!valueOutboundPhoneNumbersPhoneNumber["Province"].isNull()) - outboundPhoneNumbersObject.province = valueOutboundPhoneNumbersPhoneNumber["Province"].asString(); - if(!valueOutboundPhoneNumbersPhoneNumber["PrivateFlag"].isNull()) - outboundPhoneNumbersObject.privateFlag = valueOutboundPhoneNumbersPhoneNumber["PrivateFlag"].asString() == "true"; - if(!valueOutboundPhoneNumbersPhoneNumber["SipTelX"].isNull()) - outboundPhoneNumbersObject.sipTelX = valueOutboundPhoneNumbersPhoneNumber["SipTelX"].asString(); - auto privacyNumberNode = value["PrivacyNumber"]; - if(!privacyNumberNode["PoolId"].isNull()) - outboundPhoneNumbersObject.privacyNumber.poolId = privacyNumberNode["PoolId"].asString(); - if(!privacyNumberNode["Type"].isNull()) - outboundPhoneNumbersObject.privacyNumber.type = privacyNumberNode["Type"].asString(); - if(!privacyNumberNode["TelX"].isNull()) - outboundPhoneNumbersObject.privacyNumber.telX = privacyNumberNode["TelX"].asString(); - if(!privacyNumberNode["PoolName"].isNull()) - outboundPhoneNumbersObject.privacyNumber.poolName = privacyNumberNode["PoolName"].asString(); - if(!privacyNumberNode["PhoneNumber"].isNull()) - outboundPhoneNumbersObject.privacyNumber.phoneNumber = privacyNumberNode["PhoneNumber"].asString(); - if(!privacyNumberNode["Extra"].isNull()) - outboundPhoneNumbersObject.privacyNumber.extra = privacyNumberNode["Extra"].asString(); - if(!privacyNumberNode["BizId"].isNull()) - outboundPhoneNumbersObject.privacyNumber.bizId = privacyNumberNode["BizId"].asString(); - if(!privacyNumberNode["SubId"].isNull()) - outboundPhoneNumbersObject.privacyNumber.subId = privacyNumberNode["SubId"].asString(); - if(!privacyNumberNode["RegionNameCity"].isNull()) - outboundPhoneNumbersObject.privacyNumber.regionNameCity = privacyNumberNode["RegionNameCity"].asString(); - outboundPhoneNumbers_.push_back(outboundPhoneNumbersObject); - } - auto allNumberList = value["NumberList"]["Number"]; - for (const auto &item : allNumberList) - numberList_.push_back(item.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 ListOutboundPhoneNumberOfUserResult::getMessage()const -{ - return message_; -} - -int ListOutboundPhoneNumberOfUserResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListOutboundPhoneNumberOfUserResult::getNumberList()const -{ - return numberList_; -} - -std::vector ListOutboundPhoneNumberOfUserResult::getOutboundPhoneNumbers()const -{ - return outboundPhoneNumbers_; -} - -std::string ListOutboundPhoneNumberOfUserResult::getCode()const -{ - return code_; -} - -bool ListOutboundPhoneNumberOfUserResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListPhoneNumbersRequest.cc b/ccc/src/model/ListPhoneNumbersRequest.cc deleted file mode 100644 index a7a9f5f7c..000000000 --- a/ccc/src/model/ListPhoneNumbersRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListPhoneNumbersRequest; - -ListPhoneNumbersRequest::ListPhoneNumbersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListPhoneNumbers") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPhoneNumbersRequest::~ListPhoneNumbersRequest() -{} - -bool ListPhoneNumbersRequest::getOutboundOnly()const -{ - return outboundOnly_; -} - -void ListPhoneNumbersRequest::setOutboundOnly(bool outboundOnly) -{ - outboundOnly_ = outboundOnly; - setParameter("OutboundOnly", outboundOnly ? "true" : "false"); -} - -std::string ListPhoneNumbersRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListPhoneNumbersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListPhoneNumbersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListPhoneNumbersResult.cc b/ccc/src/model/ListPhoneNumbersResult.cc deleted file mode 100644 index 5c9775a47..000000000 --- a/ccc/src/model/ListPhoneNumbersResult.cc +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListPhoneNumbersResult::ListPhoneNumbersResult() : - ServiceResult() -{} - -ListPhoneNumbersResult::ListPhoneNumbersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListPhoneNumbersResult::~ListPhoneNumbersResult() -{} - -void ListPhoneNumbersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPhoneNumbersNode = value["PhoneNumbers"]["PhoneNumber"]; - for (auto valuePhoneNumbersPhoneNumber : allPhoneNumbersNode) - { - PhoneNumber phoneNumbersObject; - if(!valuePhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumbersObject.phoneNumberId = valuePhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!valuePhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumbersObject.instanceId = valuePhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!valuePhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumbersObject.number = valuePhoneNumbersPhoneNumber["Number"].asString(); - if(!valuePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumbersObject.phoneNumberDescription = valuePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!valuePhoneNumbersPhoneNumber["TestOnly"].isNull()) - phoneNumbersObject.testOnly = valuePhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!valuePhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumbersObject.remainingTime = std::stoi(valuePhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!valuePhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - phoneNumbersObject.allowOutbound = valuePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!valuePhoneNumbersPhoneNumber["Usage"].isNull()) - phoneNumbersObject.usage = valuePhoneNumbersPhoneNumber["Usage"].asString(); - if(!valuePhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumbersObject.trunks = std::stoi(valuePhoneNumbersPhoneNumber["Trunks"].asString()); - if(!valuePhoneNumbersPhoneNumber["Province"].isNull()) - phoneNumbersObject.province = valuePhoneNumbersPhoneNumber["Province"].asString(); - if(!valuePhoneNumbersPhoneNumber["City"].isNull()) - phoneNumbersObject.city = valuePhoneNumbersPhoneNumber["City"].asString(); - if(!valuePhoneNumbersPhoneNumber["Assignee"].isNull()) - phoneNumbersObject.assignee = valuePhoneNumbersPhoneNumber["Assignee"].asString(); - if(!valuePhoneNumbersPhoneNumber["NumberCommodityStatus"].isNull()) - phoneNumbersObject.numberCommodityStatus = std::stoi(valuePhoneNumbersPhoneNumber["NumberCommodityStatus"].asString()); - if(!valuePhoneNumbersPhoneNumber["SipTelX"].isNull()) - phoneNumbersObject.sipTelX = valuePhoneNumbersPhoneNumber["SipTelX"].asString(); - auto allSkillGroupsNode = valuePhoneNumbersPhoneNumber["SkillGroups"]["SkillGroup"]; - for (auto valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode) - { - PhoneNumber::SkillGroup skillGroupsObject; - if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull()) - skillGroupsObject.skillGroupId = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString(); - if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].isNull()) - skillGroupsObject.skillGroupName = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].asString(); - phoneNumbersObject.skillGroups.push_back(skillGroupsObject); - } - 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(); - auto privacyNumberNode = value["PrivacyNumber"]; - if(!privacyNumberNode["PoolId"].isNull()) - phoneNumbersObject.privacyNumber.poolId = privacyNumberNode["PoolId"].asString(); - if(!privacyNumberNode["Type"].isNull()) - phoneNumbersObject.privacyNumber.type = privacyNumberNode["Type"].asString(); - if(!privacyNumberNode["TelX"].isNull()) - phoneNumbersObject.privacyNumber.telX = privacyNumberNode["TelX"].asString(); - if(!privacyNumberNode["PoolName"].isNull()) - phoneNumbersObject.privacyNumber.poolName = privacyNumberNode["PoolName"].asString(); - if(!privacyNumberNode["PhoneNumber"].isNull()) - phoneNumbersObject.privacyNumber.phoneNumber = privacyNumberNode["PhoneNumber"].asString(); - if(!privacyNumberNode["Extra"].isNull()) - phoneNumbersObject.privacyNumber.extra = privacyNumberNode["Extra"].asString(); - if(!privacyNumberNode["BizId"].isNull()) - phoneNumbersObject.privacyNumber.bizId = privacyNumberNode["BizId"].asString(); - if(!privacyNumberNode["SubId"].isNull()) - phoneNumbersObject.privacyNumber.subId = privacyNumberNode["SubId"].asString(); - if(!privacyNumberNode["RegionNameCity"].isNull()) - phoneNumbersObject.privacyNumber.regionNameCity = privacyNumberNode["RegionNameCity"].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_; -} - diff --git a/ccc/src/model/ListPhoneTagsRequest.cc b/ccc/src/model/ListPhoneTagsRequest.cc deleted file mode 100644 index f1694880a..000000000 --- a/ccc/src/model/ListPhoneTagsRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListPhoneTagsRequest; - -ListPhoneTagsRequest::ListPhoneTagsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListPhoneTags") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPhoneTagsRequest::~ListPhoneTagsRequest() -{} - -std::vector ListPhoneTagsRequest::getNumberGroupIds()const -{ - return numberGroupIds_; -} - -void ListPhoneTagsRequest::setNumberGroupIds(const std::vector& numberGroupIds) -{ - numberGroupIds_ = numberGroupIds; - for(int dep1 = 0; dep1!= numberGroupIds.size(); dep1++) { - setParameter("NumberGroupIds."+ std::to_string(dep1), numberGroupIds.at(dep1)); - } -} - -int ListPhoneTagsRequest::getCurrentPage()const -{ - return currentPage_; -} - -void ListPhoneTagsRequest::setCurrentPage(int currentPage) -{ - currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); -} - -std::string ListPhoneTagsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListPhoneTagsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -bool ListPhoneTagsRequest::getOutboundOnly()const -{ - return outboundOnly_; -} - -void ListPhoneTagsRequest::setOutboundOnly(bool outboundOnly) -{ - outboundOnly_ = outboundOnly; - setParameter("OutboundOnly", outboundOnly ? "true" : "false"); -} - -std::string ListPhoneTagsRequest::getNumber()const -{ - return number_; -} - -void ListPhoneTagsRequest::setNumber(const std::string& number) -{ - number_ = number; - setParameter("Number", number); -} - -std::string ListPhoneTagsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListPhoneTagsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListPhoneTagsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListPhoneTagsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListPhoneTagsResult.cc b/ccc/src/model/ListPhoneTagsResult.cc deleted file mode 100644 index ca7ae5b9b..000000000 --- a/ccc/src/model/ListPhoneTagsResult.cc +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListPhoneTagsResult::ListPhoneTagsResult() : - ServiceResult() -{} - -ListPhoneTagsResult::ListPhoneTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListPhoneTagsResult::~ListPhoneTagsResult() -{} - -void ListPhoneTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto phoneNumbersNode = value["PhoneNumbers"]; - if(!phoneNumbersNode["TotalCount"].isNull()) - phoneNumbers_.totalCount = std::stoi(phoneNumbersNode["TotalCount"].asString()); - if(!phoneNumbersNode["PageNumber"].isNull()) - phoneNumbers_.pageNumber = std::stoi(phoneNumbersNode["PageNumber"].asString()); - if(!phoneNumbersNode["PageSize"].isNull()) - phoneNumbers_.pageSize = std::stoi(phoneNumbersNode["PageSize"].asString()); - auto allListNode = phoneNumbersNode["List"]["PhoneNumber"]; - for (auto phoneNumbersNodeListPhoneNumber : allListNode) - { - PhoneNumbers::PhoneNumber phoneNumberObject; - if(!phoneNumbersNodeListPhoneNumber["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = phoneNumbersNodeListPhoneNumber["PhoneNumberId"].asString(); - if(!phoneNumbersNodeListPhoneNumber["InstanceId"].isNull()) - phoneNumberObject.instanceId = phoneNumbersNodeListPhoneNumber["InstanceId"].asString(); - if(!phoneNumbersNodeListPhoneNumber["Number"].isNull()) - phoneNumberObject.number = phoneNumbersNodeListPhoneNumber["Number"].asString(); - if(!phoneNumbersNodeListPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = phoneNumbersNodeListPhoneNumber["PhoneNumberDescription"].asString(); - if(!phoneNumbersNodeListPhoneNumber["Usage"].isNull()) - phoneNumberObject.usage = phoneNumbersNodeListPhoneNumber["Usage"].asString(); - if(!phoneNumbersNodeListPhoneNumber["Province"].isNull()) - phoneNumberObject.province = phoneNumbersNodeListPhoneNumber["Province"].asString(); - if(!phoneNumbersNodeListPhoneNumber["City"].isNull()) - phoneNumberObject.city = phoneNumbersNodeListPhoneNumber["City"].asString(); - if(!phoneNumbersNodeListPhoneNumber["Type"].isNull()) - phoneNumberObject.type = std::stoi(phoneNumbersNodeListPhoneNumber["Type"].asString()); - if(!phoneNumbersNodeListPhoneNumber["Concurrency"].isNull()) - phoneNumberObject.concurrency = std::stoi(phoneNumbersNodeListPhoneNumber["Concurrency"].asString()); - if(!phoneNumbersNodeListPhoneNumber["ServiceTag"].isNull()) - phoneNumberObject.serviceTag = phoneNumbersNodeListPhoneNumber["ServiceTag"].asString(); - if(!phoneNumbersNodeListPhoneNumber["Provider"].isNull()) - phoneNumberObject.provider = phoneNumbersNodeListPhoneNumber["Provider"].asString(); - if(!phoneNumbersNodeListPhoneNumber["CreateTime"].isNull()) - phoneNumberObject.createTime = std::stol(phoneNumbersNodeListPhoneNumber["CreateTime"].asString()); - if(!phoneNumbersNodeListPhoneNumber["ContactFlowId"].isNull()) - phoneNumberObject.contactFlowId = phoneNumbersNodeListPhoneNumber["ContactFlowId"].asString(); - auto allSkillGroupIdList = value["SkillGroupIdList"]["SkillGroupId"]; - for (auto value : allSkillGroupIdList) - phoneNumberObject.skillGroupIdList.push_back(value.asString()); - phoneNumbers_.list.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()); - -} - -ListPhoneTagsResult::PhoneNumbers ListPhoneTagsResult::getPhoneNumbers()const -{ - return phoneNumbers_; -} - -std::string ListPhoneTagsResult::getMessage()const -{ - return message_; -} - -int ListPhoneTagsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListPhoneTagsResult::getCode()const -{ - return code_; -} - -bool ListPhoneTagsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetJobRequest.cc b/ccc/src/model/ListPrivilegesOfUserRequest.cc similarity index 59% rename from ccc/src/model/GetJobRequest.cc rename to ccc/src/model/ListPrivilegesOfUserRequest.cc index 5a5ce9677..6fcdda764 100644 --- a/ccc/src/model/GetJobRequest.cc +++ b/ccc/src/model/ListPrivilegesOfUserRequest.cc @@ -14,36 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetJobRequest; +using AlibabaCloud::CCC::Model::ListPrivilegesOfUserRequest; -GetJobRequest::GetJobRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetJob") +ListPrivilegesOfUserRequest::ListPrivilegesOfUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListPrivilegesOfUser") { setMethod(HttpRequest::Method::Post); } -GetJobRequest::~GetJobRequest() +ListPrivilegesOfUserRequest::~ListPrivilegesOfUserRequest() {} -std::string GetJobRequest::getJobId()const -{ - return jobId_; -} - -void GetJobRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); -} - -std::string GetJobRequest::getInstanceId()const +std::string ListPrivilegesOfUserRequest::getInstanceId()const { return instanceId_; } -void GetJobRequest::setInstanceId(const std::string& instanceId) +void ListPrivilegesOfUserRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/ResumePredictiveJobsResult.cc b/ccc/src/model/ListPrivilegesOfUserResult.cc similarity index 54% rename from ccc/src/model/ResumePredictiveJobsResult.cc rename to ccc/src/model/ListPrivilegesOfUserResult.cc index 6c20f2962..aaf1fbf23 100644 --- a/ccc/src/model/ResumePredictiveJobsResult.cc +++ b/ccc/src/model/ListPrivilegesOfUserResult.cc @@ -14,59 +14,69 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ResumePredictiveJobsResult::ResumePredictiveJobsResult() : +ListPrivilegesOfUserResult::ListPrivilegesOfUserResult() : ServiceResult() {} -ResumePredictiveJobsResult::ResumePredictiveJobsResult(const std::string &payload) : +ListPrivilegesOfUserResult::ListPrivilegesOfUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -ResumePredictiveJobsResult::~ResumePredictiveJobsResult() +ListPrivilegesOfUserResult::~ListPrivilegesOfUserResult() {} -void ResumePredictiveJobsResult::parse(const std::string &payload) +void ListPrivilegesOfUserResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["InstanceId"].isNull()) + dataObject.instanceId = valueDataDataItem["InstanceId"].asString(); + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["Scope"].isNull()) + dataObject.scope = valueDataDataItem["Scope"].asString(); + data_.push_back(dataObject); + } if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } -std::string ResumePredictiveJobsResult::getMessage()const +std::string ListPrivilegesOfUserResult::getMessage()const { return message_; } -int ResumePredictiveJobsResult::getHttpStatusCode()const +int ListPrivilegesOfUserResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string ResumePredictiveJobsResult::getCode()const +std::vector ListPrivilegesOfUserResult::getData()const +{ + return data_; +} + +std::string ListPrivilegesOfUserResult::getCode()const { return code_; } -bool ResumePredictiveJobsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListRealTimeAgentRequest.cc b/ccc/src/model/ListRealTimeAgentRequest.cc deleted file mode 100644 index 240a92514..000000000 --- a/ccc/src/model/ListRealTimeAgentRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 49206fb15..000000000 --- a/ccc/src/model/ListRealTimeAgentResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allDataNode = value["Data"]["User"]; - for (auto valueDataUser : allDataNode) - { - User dataObject; - if(!valueDataUser["RamId"].isNull()) - dataObject.ramId = valueDataUser["RamId"].asString(); - if(!valueDataUser["DisplayName"].isNull()) - dataObject.displayName = valueDataUser["DisplayName"].asString(); - if(!valueDataUser["Phone"].isNull()) - dataObject.phone = valueDataUser["Phone"].asString(); - if(!valueDataUser["Dn"].isNull()) - dataObject.dn = valueDataUser["Dn"].asString(); - if(!valueDataUser["State"].isNull()) - dataObject.state = valueDataUser["State"].asString(); - if(!valueDataUser["StateDesc"].isNull()) - dataObject.stateDesc = valueDataUser["StateDesc"].asString(); - auto allSkillLevelsNode = valueDataUser["SkillLevels"]["SkillLevel"]; - for (auto valueDataUserSkillLevelsSkillLevel : allSkillLevelsNode) - { - User::SkillLevel skillLevelsObject; - if(!valueDataUserSkillLevelsSkillLevel["SkillLevelId"].isNull()) - skillLevelsObject.skillLevelId = valueDataUserSkillLevelsSkillLevel["SkillLevelId"].asString(); - if(!valueDataUserSkillLevelsSkillLevel["Level"].isNull()) - skillLevelsObject.level = std::stoi(valueDataUserSkillLevelsSkillLevel["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/ListRealtimeAgentStatesRequest.cc b/ccc/src/model/ListRealtimeAgentStatesRequest.cc new file mode 100644 index 000000000..1ef3358c8 --- /dev/null +++ b/ccc/src/model/ListRealtimeAgentStatesRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::ListRealtimeAgentStatesRequest; + +ListRealtimeAgentStatesRequest::ListRealtimeAgentStatesRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListRealtimeAgentStates") +{ + setMethod(HttpRequest::Method::Post); +} + +ListRealtimeAgentStatesRequest::~ListRealtimeAgentStatesRequest() +{} + +int ListRealtimeAgentStatesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListRealtimeAgentStatesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListRealtimeAgentStatesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRealtimeAgentStatesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListRealtimeAgentStatesRequest::getAgentIdList()const +{ + return agentIdList_; +} + +void ListRealtimeAgentStatesRequest::setAgentIdList(const std::string& agentIdList) +{ + agentIdList_ = agentIdList; + setBodyParameter("AgentIdList", agentIdList); +} + +std::string ListRealtimeAgentStatesRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListRealtimeAgentStatesRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string ListRealtimeAgentStatesRequest::getAgentName()const +{ + return agentName_; +} + +void ListRealtimeAgentStatesRequest::setAgentName(const std::string& agentName) +{ + agentName_ = agentName; + setParameter("AgentName", agentName); +} + +int ListRealtimeAgentStatesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListRealtimeAgentStatesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListRealtimeAgentStatesRequest::getStateList()const +{ + return stateList_; +} + +void ListRealtimeAgentStatesRequest::setStateList(const std::string& stateList) +{ + stateList_ = stateList; + setBodyParameter("StateList", stateList); +} + diff --git a/ccc/src/model/ListRealtimeAgentStatesResult.cc b/ccc/src/model/ListRealtimeAgentStatesResult.cc new file mode 100644 index 000000000..38898c358 --- /dev/null +++ b/ccc/src/model/ListRealtimeAgentStatesResult.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; + +ListRealtimeAgentStatesResult::ListRealtimeAgentStatesResult() : + ServiceResult() +{} + +ListRealtimeAgentStatesResult::ListRealtimeAgentStatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRealtimeAgentStatesResult::~ListRealtimeAgentStatesResult() +{} + +void ListRealtimeAgentStatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["AgentState"]; + for (auto dataNodeListAgentState : allListNode) + { + Data::AgentState agentStateObject; + if(!dataNodeListAgentState["AgentId"].isNull()) + agentStateObject.agentId = dataNodeListAgentState["AgentId"].asString(); + if(!dataNodeListAgentState["AgentName"].isNull()) + agentStateObject.agentName = dataNodeListAgentState["AgentName"].asString(); + if(!dataNodeListAgentState["CounterParty"].isNull()) + agentStateObject.counterParty = dataNodeListAgentState["CounterParty"].asString(); + if(!dataNodeListAgentState["Extension"].isNull()) + agentStateObject.extension = dataNodeListAgentState["Extension"].asString(); + if(!dataNodeListAgentState["InstanceId"].isNull()) + agentStateObject.instanceId = dataNodeListAgentState["InstanceId"].asString(); + if(!dataNodeListAgentState["State"].isNull()) + agentStateObject.state = dataNodeListAgentState["State"].asString(); + if(!dataNodeListAgentState["StateCode"].isNull()) + agentStateObject.stateCode = dataNodeListAgentState["StateCode"].asString(); + if(!dataNodeListAgentState["StateTime"].isNull()) + agentStateObject.stateTime = std::stol(dataNodeListAgentState["StateTime"].asString()); + auto allSkillGroupIdList = value["SkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSkillGroupIdList) + agentStateObject.skillGroupIdList.push_back(value.asString()); + data_.list.push_back(agentStateObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListRealtimeAgentStatesResult::getMessage()const +{ + return message_; +} + +int ListRealtimeAgentStatesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListRealtimeAgentStatesResult::Data ListRealtimeAgentStatesResult::getData()const +{ + return data_; +} + +std::string ListRealtimeAgentStatesResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListJobGroupsRequest.cc b/ccc/src/model/ListRecentCallDetailRecordsRequest.cc similarity index 50% rename from ccc/src/model/ListJobGroupsRequest.cc rename to ccc/src/model/ListRecentCallDetailRecordsRequest.cc index e1f9e0be0..8137c2d36 100644 --- a/ccc/src/model/ListJobGroupsRequest.cc +++ b/ccc/src/model/ListRecentCallDetailRecordsRequest.cc @@ -14,69 +14,69 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListJobGroupsRequest; +using AlibabaCloud::CCC::Model::ListRecentCallDetailRecordsRequest; -ListJobGroupsRequest::ListJobGroupsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListJobGroups") +ListRecentCallDetailRecordsRequest::ListRecentCallDetailRecordsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListRecentCallDetailRecords") { setMethod(HttpRequest::Method::Post); } -ListJobGroupsRequest::~ListJobGroupsRequest() +ListRecentCallDetailRecordsRequest::~ListRecentCallDetailRecordsRequest() {} -long ListJobGroupsRequest::getEndTime()const +long ListRecentCallDetailRecordsRequest::getEndTime()const { return endTime_; } -void ListJobGroupsRequest::setEndTime(long endTime) +void ListRecentCallDetailRecordsRequest::setEndTime(long endTime) { endTime_ = endTime; setParameter("EndTime", std::to_string(endTime)); } -long ListJobGroupsRequest::getStartTime()const +long ListRecentCallDetailRecordsRequest::getStartTime()const { return startTime_; } -void ListJobGroupsRequest::setStartTime(long startTime) +void ListRecentCallDetailRecordsRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setBodyParameter("StartTime", std::to_string(startTime)); } -int ListJobGroupsRequest::getPageNumber()const +int ListRecentCallDetailRecordsRequest::getPageNumber()const { return pageNumber_; } -void ListJobGroupsRequest::setPageNumber(int pageNumber) +void ListRecentCallDetailRecordsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListJobGroupsRequest::getInstanceId()const +std::string ListRecentCallDetailRecordsRequest::getInstanceId()const { return instanceId_; } -void ListJobGroupsRequest::setInstanceId(const std::string& instanceId) +void ListRecentCallDetailRecordsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -int ListJobGroupsRequest::getPageSize()const +int ListRecentCallDetailRecordsRequest::getPageSize()const { return pageSize_; } -void ListJobGroupsRequest::setPageSize(int pageSize) +void ListRecentCallDetailRecordsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter("PageSize", std::to_string(pageSize)); diff --git a/ccc/src/model/ListRecentCallDetailRecordsResult.cc b/ccc/src/model/ListRecentCallDetailRecordsResult.cc new file mode 100644 index 000000000..440b91214 --- /dev/null +++ b/ccc/src/model/ListRecentCallDetailRecordsResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListRecentCallDetailRecordsResult::ListRecentCallDetailRecordsResult() : + ServiceResult() +{} + +ListRecentCallDetailRecordsResult::ListRecentCallDetailRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRecentCallDetailRecordsResult::~ListRecentCallDetailRecordsResult() +{} + +void ListRecentCallDetailRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["CallDetailRecord"]; + for (auto dataNodeListCallDetailRecord : allListNode) + { + Data::CallDetailRecord callDetailRecordObject; + if(!dataNodeListCallDetailRecord["AgentIds"].isNull()) + callDetailRecordObject.agentIds = dataNodeListCallDetailRecord["AgentIds"].asString(); + if(!dataNodeListCallDetailRecord["CallDuration"].isNull()) + callDetailRecordObject.callDuration = dataNodeListCallDetailRecord["CallDuration"].asString(); + if(!dataNodeListCallDetailRecord["CalledNumber"].isNull()) + callDetailRecordObject.calledNumber = dataNodeListCallDetailRecord["CalledNumber"].asString(); + if(!dataNodeListCallDetailRecord["CallingNumber"].isNull()) + callDetailRecordObject.callingNumber = dataNodeListCallDetailRecord["CallingNumber"].asString(); + if(!dataNodeListCallDetailRecord["ContactDisposition"].isNull()) + callDetailRecordObject.contactDisposition = dataNodeListCallDetailRecord["ContactDisposition"].asString(); + if(!dataNodeListCallDetailRecord["ContactId"].isNull()) + callDetailRecordObject.contactId = dataNodeListCallDetailRecord["ContactId"].asString(); + if(!dataNodeListCallDetailRecord["ContactType"].isNull()) + callDetailRecordObject.contactType = dataNodeListCallDetailRecord["ContactType"].asString(); + if(!dataNodeListCallDetailRecord["Duration"].isNull()) + callDetailRecordObject.duration = std::stol(dataNodeListCallDetailRecord["Duration"].asString()); + if(!dataNodeListCallDetailRecord["InstanceId"].isNull()) + callDetailRecordObject.instanceId = dataNodeListCallDetailRecord["InstanceId"].asString(); + if(!dataNodeListCallDetailRecord["SkillGroupIds"].isNull()) + callDetailRecordObject.skillGroupIds = dataNodeListCallDetailRecord["SkillGroupIds"].asString(); + if(!dataNodeListCallDetailRecord["StartTime"].isNull()) + callDetailRecordObject.startTime = std::stol(dataNodeListCallDetailRecord["StartTime"].asString()); + data_.list.push_back(callDetailRecordObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListRecentCallDetailRecordsResult::getMessage()const +{ + return message_; +} + +int ListRecentCallDetailRecordsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListRecentCallDetailRecordsResult::Data ListRecentCallDetailRecordsResult::getData()const +{ + return data_; +} + +std::string ListRecentCallDetailRecordsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListRecentCallRecordsRequest.cc b/ccc/src/model/ListRecentCallRecordsRequest.cc deleted file mode 100644 index fa234d5ea..000000000 --- a/ccc/src/model/ListRecentCallRecordsRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListRecentCallRecordsRequest; - -ListRecentCallRecordsRequest::ListRecentCallRecordsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListRecentCallRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRecentCallRecordsRequest::~ListRecentCallRecordsRequest() -{} - -std::string ListRecentCallRecordsRequest::getCriteria()const -{ - return criteria_; -} - -void ListRecentCallRecordsRequest::setCriteria(const std::string& criteria) -{ - criteria_ = criteria; - setParameter("Criteria", criteria); -} - -long ListRecentCallRecordsRequest::getStartTime()const -{ - return startTime_; -} - -void ListRecentCallRecordsRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -long ListRecentCallRecordsRequest::getStopTime()const -{ - return stopTime_; -} - -void ListRecentCallRecordsRequest::setStopTime(long stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); -} - -int ListRecentCallRecordsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListRecentCallRecordsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListRecentCallRecordsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListRecentCallRecordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListRecentCallRecordsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListRecentCallRecordsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListRecentCallRecordsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListRecentCallRecordsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListRecentCallRecordsResult.cc b/ccc/src/model/ListRecentCallRecordsResult.cc deleted file mode 100644 index 097f31937..000000000 --- a/ccc/src/model/ListRecentCallRecordsResult.cc +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListRecentCallRecordsResult::ListRecentCallRecordsResult() : - ServiceResult() -{} - -ListRecentCallRecordsResult::ListRecentCallRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListRecentCallRecordsResult::~ListRecentCallRecordsResult() -{} - -void ListRecentCallRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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 allListNode = callDetailRecordsNode["List"]["CallDetailRecord"]; - for (auto callDetailRecordsNodeListCallDetailRecord : allListNode) - { - CallDetailRecords::CallDetailRecord callDetailRecordObject; - if(!callDetailRecordsNodeListCallDetailRecord["ContactId"].isNull()) - callDetailRecordObject.contactId = callDetailRecordsNodeListCallDetailRecord["ContactId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["StartTime"].isNull()) - callDetailRecordObject.startTime = std::stol(callDetailRecordsNodeListCallDetailRecord["StartTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecord["Duration"].isNull()) - callDetailRecordObject.duration = std::stoi(callDetailRecordsNodeListCallDetailRecord["Duration"].asString()); - if(!callDetailRecordsNodeListCallDetailRecord["Satisfaction"].isNull()) - callDetailRecordObject.satisfaction = std::stoi(callDetailRecordsNodeListCallDetailRecord["Satisfaction"].asString()); - if(!callDetailRecordsNodeListCallDetailRecord["ContactType"].isNull()) - callDetailRecordObject.contactType = callDetailRecordsNodeListCallDetailRecord["ContactType"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["ContactDisposition"].isNull()) - callDetailRecordObject.contactDisposition = callDetailRecordsNodeListCallDetailRecord["ContactDisposition"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["CallingNumber"].isNull()) - callDetailRecordObject.callingNumber = callDetailRecordsNodeListCallDetailRecord["CallingNumber"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["CalledNumber"].isNull()) - callDetailRecordObject.calledNumber = callDetailRecordsNodeListCallDetailRecord["CalledNumber"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["AgentNames"].isNull()) - callDetailRecordObject.agentNames = callDetailRecordsNodeListCallDetailRecord["AgentNames"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["SkillGroupNames"].isNull()) - callDetailRecordObject.skillGroupNames = callDetailRecordsNodeListCallDetailRecord["SkillGroupNames"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["InstanceId"].isNull()) - callDetailRecordObject.instanceId = callDetailRecordsNodeListCallDetailRecord["InstanceId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["ExtraAttr"].isNull()) - callDetailRecordObject.extraAttr = callDetailRecordsNodeListCallDetailRecord["ExtraAttr"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["ExtraAttr"].isNull()) - callDetailRecordObject.extraAttr1 = callDetailRecordsNodeListCallDetailRecord["ExtraAttr"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["SatisfactionDesc"].isNull()) - callDetailRecordObject.satisfactionDesc = callDetailRecordsNodeListCallDetailRecord["SatisfactionDesc"].asString(); - if(!callDetailRecordsNodeListCallDetailRecord["Feedback"].isNull()) - callDetailRecordObject.feedback = callDetailRecordsNodeListCallDetailRecord["Feedback"].asString(); - auto allAgentsNode = callDetailRecordsNodeListCallDetailRecord["Agents"]["CallDetailAgent"]; - for (auto callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent : allAgentsNode) - { - CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject; - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["ContactId"].isNull()) - agentsObject.contactId = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["ContactId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentId"].isNull()) - agentsObject.agentId = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentName"].isNull()) - agentsObject.agentName = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentName"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["SkillGroupName"].isNull()) - agentsObject.skillGroupName = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["SkillGroupName"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["QueueTime"].isNull()) - agentsObject.queueTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["QueueTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["RingTime"].isNull()) - agentsObject.ringTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["RingTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["StartTime"].isNull()) - agentsObject.startTime = std::stol(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["StartTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["TalkTime"].isNull()) - agentsObject.talkTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["TalkTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["HoldTime"].isNull()) - agentsObject.holdTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["HoldTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["WorkTime"].isNull()) - agentsObject.workTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["WorkTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Satisfaction"].isNull()) - agentsObject.satisfaction = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Satisfaction"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Feedback"].isNull()) - agentsObject.feedback = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Feedback"].asString(); - callDetailRecordObject.agents.push_back(agentsObject); - } - auto allRecordingsNode = callDetailRecordsNodeListCallDetailRecord["Recordings"]["Recording"]; - for (auto callDetailRecordsNodeListCallDetailRecordRecordingsRecording : allRecordingsNode) - { - CallDetailRecords::CallDetailRecord::Recording recordingsObject; - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactId"].isNull()) - recordingsObject.contactId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactType"].isNull()) - recordingsObject.contactType = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactType"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentId"].isNull()) - recordingsObject.agentId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentId"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentName"].isNull()) - recordingsObject.agentName = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentName"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["CallingNumber"].isNull()) - recordingsObject.callingNumber = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["CallingNumber"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["CalledNumber"].isNull()) - recordingsObject.calledNumber = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["CalledNumber"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["StartTime"].isNull()) - recordingsObject.startTime = std::stol(callDetailRecordsNodeListCallDetailRecordRecordingsRecording["StartTime"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Duration"].isNull()) - recordingsObject.duration = std::stoi(callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Duration"].asString()); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileName"].isNull()) - recordingsObject.fileName = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileName"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FilePath"].isNull()) - recordingsObject.filePath = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FilePath"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileDescription"].isNull()) - recordingsObject.fileDescription = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileDescription"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Channel"].isNull()) - recordingsObject.channel = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Channel"].asString(); - if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["InstanceId"].isNull()) - recordingsObject.instanceId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["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 ListRecentCallRecordsResult::getMessage()const -{ - return message_; -} - -ListRecentCallRecordsResult::CallDetailRecords ListRecentCallRecordsResult::getCallDetailRecords()const -{ - return callDetailRecords_; -} - -int ListRecentCallRecordsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListRecentCallRecordsResult::getCode()const -{ - return code_; -} - -bool ListRecentCallRecordsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListRecordingOfDualTrackRequest.cc b/ccc/src/model/ListRecordingOfDualTrackRequest.cc deleted file mode 100644 index ba606903b..000000000 --- a/ccc/src/model/ListRecordingOfDualTrackRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListRecordingOfDualTrackRequest; - -ListRecordingOfDualTrackRequest::ListRecordingOfDualTrackRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListRecordingOfDualTrack") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRecordingOfDualTrackRequest::~ListRecordingOfDualTrackRequest() -{} - -std::string ListRecordingOfDualTrackRequest::getAgentId()const -{ - return agentId_; -} - -void ListRecordingOfDualTrackRequest::setAgentId(const std::string& agentId) -{ - agentId_ = agentId; - setParameter("AgentId", agentId); -} - -long ListRecordingOfDualTrackRequest::getStartTime()const -{ - return startTime_; -} - -void ListRecordingOfDualTrackRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -long ListRecordingOfDualTrackRequest::getStopTime()const -{ - return stopTime_; -} - -void ListRecordingOfDualTrackRequest::setStopTime(long stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); -} - -int ListRecordingOfDualTrackRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListRecordingOfDualTrackRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListRecordingOfDualTrackRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListRecordingOfDualTrackRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListRecordingOfDualTrackRequest::getCallingNumber()const -{ - return callingNumber_; -} - -void ListRecordingOfDualTrackRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); -} - -std::string ListRecordingOfDualTrackRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListRecordingOfDualTrackRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListRecordingOfDualTrackRequest::getCalledNumber()const -{ - return calledNumber_; -} - -void ListRecordingOfDualTrackRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); -} - -int ListRecordingOfDualTrackRequest::getPageSize()const -{ - return pageSize_; -} - -void ListRecordingOfDualTrackRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListRecordingOfDualTrackRequest::getConnectId()const -{ - return connectId_; -} - -void ListRecordingOfDualTrackRequest::setConnectId(const std::string& connectId) -{ - connectId_ = connectId; - setParameter("ConnectId", connectId); -} - diff --git a/ccc/src/model/ListRecordingOfDualTrackResult.cc b/ccc/src/model/ListRecordingOfDualTrackResult.cc deleted file mode 100644 index 230733886..000000000 --- a/ccc/src/model/ListRecordingOfDualTrackResult.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListRecordingOfDualTrackResult::ListRecordingOfDualTrackResult() : - ServiceResult() -{} - -ListRecordingOfDualTrackResult::ListRecordingOfDualTrackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListRecordingOfDualTrackResult::~ListRecordingOfDualTrackResult() -{} - -void ListRecordingOfDualTrackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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 allListNode = recordingsNode["List"]["Recording"]; - for (auto recordingsNodeListRecording : allListNode) - { - Recordings::Recording recordingObject; - if(!recordingsNodeListRecording["ContactId"].isNull()) - recordingObject.contactId = recordingsNodeListRecording["ContactId"].asString(); - if(!recordingsNodeListRecording["ContactType"].isNull()) - recordingObject.contactType = recordingsNodeListRecording["ContactType"].asString(); - if(!recordingsNodeListRecording["AgentId"].isNull()) - recordingObject.agentId = recordingsNodeListRecording["AgentId"].asString(); - if(!recordingsNodeListRecording["AgentName"].isNull()) - recordingObject.agentName = recordingsNodeListRecording["AgentName"].asString(); - if(!recordingsNodeListRecording["CallingNumber"].isNull()) - recordingObject.callingNumber = recordingsNodeListRecording["CallingNumber"].asString(); - if(!recordingsNodeListRecording["CalledNumber"].isNull()) - recordingObject.calledNumber = recordingsNodeListRecording["CalledNumber"].asString(); - if(!recordingsNodeListRecording["StartTime"].isNull()) - recordingObject.startTime = std::stol(recordingsNodeListRecording["StartTime"].asString()); - if(!recordingsNodeListRecording["Duration"].isNull()) - recordingObject.duration = std::stoi(recordingsNodeListRecording["Duration"].asString()); - if(!recordingsNodeListRecording["FileName"].isNull()) - recordingObject.fileName = recordingsNodeListRecording["FileName"].asString(); - if(!recordingsNodeListRecording["FilePath"].isNull()) - recordingObject.filePath = recordingsNodeListRecording["FilePath"].asString(); - if(!recordingsNodeListRecording["FileDescription"].isNull()) - recordingObject.fileDescription = recordingsNodeListRecording["FileDescription"].asString(); - if(!recordingsNodeListRecording["Channel"].isNull()) - recordingObject.channel = recordingsNodeListRecording["Channel"].asString(); - if(!recordingsNodeListRecording["InstanceId"].isNull()) - recordingObject.instanceId = recordingsNodeListRecording["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 ListRecordingOfDualTrackResult::getMessage()const -{ - return message_; -} - -int ListRecordingOfDualTrackResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -ListRecordingOfDualTrackResult::Recordings ListRecordingOfDualTrackResult::getRecordings()const -{ - return recordings_; -} - -std::string ListRecordingOfDualTrackResult::getCode()const -{ - return code_; -} - -bool ListRecordingOfDualTrackResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListRecordingsByContactIdRequest.cc b/ccc/src/model/ListRecordingsByContactIdRequest.cc deleted file mode 100644 index dff458bc3..000000000 --- a/ccc/src/model/ListRecordingsByContactIdRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListRecordingsByContactIdRequest; - -ListRecordingsByContactIdRequest::ListRecordingsByContactIdRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListRecordingsByContactId") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRecordingsByContactIdRequest::~ListRecordingsByContactIdRequest() -{} - -std::string ListRecordingsByContactIdRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListRecordingsByContactIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListRecordingsByContactIdRequest::getContactId()const -{ - return contactId_; -} - -void ListRecordingsByContactIdRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -std::string ListRecordingsByContactIdRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListRecordingsByContactIdRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListRecordingsByContactIdResult.cc b/ccc/src/model/ListRecordingsByContactIdResult.cc deleted file mode 100644 index 4d5682390..000000000 --- a/ccc/src/model/ListRecordingsByContactIdResult.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListRecordingsByContactIdResult::ListRecordingsByContactIdResult() : - ServiceResult() -{} - -ListRecordingsByContactIdResult::ListRecordingsByContactIdResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListRecordingsByContactIdResult::~ListRecordingsByContactIdResult() -{} - -void ListRecordingsByContactIdResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allRecordingsNode = value["Recordings"]["Recording"]; - for (auto valueRecordingsRecording : allRecordingsNode) - { - Recording recordingsObject; - if(!valueRecordingsRecording["ContactId"].isNull()) - recordingsObject.contactId = valueRecordingsRecording["ContactId"].asString(); - if(!valueRecordingsRecording["ContactType"].isNull()) - recordingsObject.contactType = valueRecordingsRecording["ContactType"].asString(); - if(!valueRecordingsRecording["AgentId"].isNull()) - recordingsObject.agentId = valueRecordingsRecording["AgentId"].asString(); - if(!valueRecordingsRecording["AgentName"].isNull()) - recordingsObject.agentName = valueRecordingsRecording["AgentName"].asString(); - if(!valueRecordingsRecording["CallingNumber"].isNull()) - recordingsObject.callingNumber = valueRecordingsRecording["CallingNumber"].asString(); - if(!valueRecordingsRecording["CalledNumber"].isNull()) - recordingsObject.calledNumber = valueRecordingsRecording["CalledNumber"].asString(); - if(!valueRecordingsRecording["StartTime"].isNull()) - recordingsObject.startTime = std::stol(valueRecordingsRecording["StartTime"].asString()); - if(!valueRecordingsRecording["Duration"].isNull()) - recordingsObject.duration = std::stoi(valueRecordingsRecording["Duration"].asString()); - if(!valueRecordingsRecording["FileName"].isNull()) - recordingsObject.fileName = valueRecordingsRecording["FileName"].asString(); - if(!valueRecordingsRecording["FilePath"].isNull()) - recordingsObject.filePath = valueRecordingsRecording["FilePath"].asString(); - if(!valueRecordingsRecording["FileDescription"].isNull()) - recordingsObject.fileDescription = valueRecordingsRecording["FileDescription"].asString(); - if(!valueRecordingsRecording["Channel"].isNull()) - recordingsObject.channel = valueRecordingsRecording["Channel"].asString(); - if(!valueRecordingsRecording["InstanceId"].isNull()) - recordingsObject.instanceId = valueRecordingsRecording["InstanceId"].asString(); - if(!valueRecordingsRecording["QualityCheckTid"].isNull()) - recordingsObject.qualityCheckTid = valueRecordingsRecording["QualityCheckTid"].asString(); - if(!valueRecordingsRecording["QualityCheckTaskId"].isNull()) - recordingsObject.qualityCheckTaskId = valueRecordingsRecording["QualityCheckTaskId"].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_; -} - diff --git a/ccc/src/model/ListRecordingsRequest.cc b/ccc/src/model/ListRecordingsRequest.cc deleted file mode 100644 index ddf217eba..000000000 --- a/ccc/src/model/ListRecordingsRequest.cc +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListRecordingsRequest; - -ListRecordingsRequest::ListRecordingsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListRecordings") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRecordingsRequest::~ListRecordingsRequest() -{} - -std::string ListRecordingsRequest::getAgentId()const -{ - return agentId_; -} - -void ListRecordingsRequest::setAgentId(const std::string& agentId) -{ - agentId_ = agentId; - setParameter("AgentId", agentId); -} - -std::string ListRecordingsRequest::getCriteria()const -{ - return criteria_; -} - -void ListRecordingsRequest::setCriteria(const std::string& criteria) -{ - criteria_ = criteria; - setParameter("Criteria", criteria); -} - -std::string ListRecordingsRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void ListRecordingsRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -long ListRecordingsRequest::getStopTime()const -{ - return stopTime_; -} - -void ListRecordingsRequest::setStopTime(long stopTime) -{ - stopTime_ = 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_; -} - -void ListRecordingsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListRecordingsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListRecordingsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListRecordingsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListRecordingsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListRecordingsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListRecordingsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListRecordingsResult.cc b/ccc/src/model/ListRecordingsResult.cc deleted file mode 100644 index a66f47873..000000000 --- a/ccc/src/model/ListRecordingsResult.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListRecordingsResult::ListRecordingsResult() : - ServiceResult() -{} - -ListRecordingsResult::ListRecordingsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListRecordingsResult::~ListRecordingsResult() -{} - -void ListRecordingsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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 allListNode = recordingsNode["List"]["Recording"]; - for (auto recordingsNodeListRecording : allListNode) - { - Recordings::Recording recordingObject; - if(!recordingsNodeListRecording["ContactId"].isNull()) - recordingObject.contactId = recordingsNodeListRecording["ContactId"].asString(); - if(!recordingsNodeListRecording["ContactType"].isNull()) - recordingObject.contactType = recordingsNodeListRecording["ContactType"].asString(); - if(!recordingsNodeListRecording["AgentId"].isNull()) - recordingObject.agentId = recordingsNodeListRecording["AgentId"].asString(); - if(!recordingsNodeListRecording["AgentName"].isNull()) - recordingObject.agentName = recordingsNodeListRecording["AgentName"].asString(); - if(!recordingsNodeListRecording["CallingNumber"].isNull()) - recordingObject.callingNumber = recordingsNodeListRecording["CallingNumber"].asString(); - if(!recordingsNodeListRecording["CalledNumber"].isNull()) - recordingObject.calledNumber = recordingsNodeListRecording["CalledNumber"].asString(); - if(!recordingsNodeListRecording["StartTime"].isNull()) - recordingObject.startTime = std::stol(recordingsNodeListRecording["StartTime"].asString()); - if(!recordingsNodeListRecording["Duration"].isNull()) - recordingObject.duration = std::stoi(recordingsNodeListRecording["Duration"].asString()); - if(!recordingsNodeListRecording["FileName"].isNull()) - recordingObject.fileName = recordingsNodeListRecording["FileName"].asString(); - if(!recordingsNodeListRecording["FilePath"].isNull()) - recordingObject.filePath = recordingsNodeListRecording["FilePath"].asString(); - if(!recordingsNodeListRecording["FileDescription"].isNull()) - recordingObject.fileDescription = recordingsNodeListRecording["FileDescription"].asString(); - if(!recordingsNodeListRecording["Channel"].isNull()) - recordingObject.channel = recordingsNodeListRecording["Channel"].asString(); - if(!recordingsNodeListRecording["InstanceId"].isNull()) - recordingObject.instanceId = recordingsNodeListRecording["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_; -} - -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/ListRolesRequest.cc b/ccc/src/model/ListRolesRequest.cc deleted file mode 100644 index 9ba00fe65..000000000 --- a/ccc/src/model/ListRolesRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListRolesRequest; - -ListRolesRequest::ListRolesRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListRoles") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRolesRequest::~ListRolesRequest() -{} - -std::string ListRolesRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListRolesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListRolesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListRolesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListRolesResult.cc b/ccc/src/model/ListRolesResult.cc deleted file mode 100644 index c06486749..000000000 --- a/ccc/src/model/ListRolesResult.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListRolesResult::ListRolesResult() : - ServiceResult() -{} - -ListRolesResult::ListRolesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListRolesResult::~ListRolesResult() -{} - -void ListRolesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allRolesNode = value["Roles"]["Role"]; - for (auto valueRolesRole : allRolesNode) - { - Role rolesObject; - if(!valueRolesRole["RoleId"].isNull()) - rolesObject.roleId = valueRolesRole["RoleId"].asString(); - if(!valueRolesRole["InstanceId"].isNull()) - rolesObject.instanceId = valueRolesRole["InstanceId"].asString(); - if(!valueRolesRole["RoleName"].isNull()) - rolesObject.roleName = valueRolesRole["RoleName"].asString(); - if(!valueRolesRole["RoleDescription"].isNull()) - rolesObject.roleDescription = valueRolesRole["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_; -} - diff --git a/ccc/src/model/ListScenarioTemplatesRequest.cc b/ccc/src/model/ListScenarioTemplatesRequest.cc deleted file mode 100644 index cff6bafc7..000000000 --- a/ccc/src/model/ListScenarioTemplatesRequest.cc +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ListScenarioTemplatesRequest::~ListScenarioTemplatesRequest() -{} - diff --git a/ccc/src/model/ListScenarioTemplatesResult.cc b/ccc/src/model/ListScenarioTemplatesResult.cc deleted file mode 100644 index c054c3dc1..000000000 --- a/ccc/src/model/ListScenarioTemplatesResult.cc +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allScenarioTemplatesNode = value["ScenarioTemplates"]["Scenario"]; - for (auto valueScenarioTemplatesScenario : allScenarioTemplatesNode) - { - Scenario scenarioTemplatesObject; - if(!valueScenarioTemplatesScenario["Id"].isNull()) - scenarioTemplatesObject.id = valueScenarioTemplatesScenario["Id"].asString(); - if(!valueScenarioTemplatesScenario["Name"].isNull()) - scenarioTemplatesObject.name = valueScenarioTemplatesScenario["Name"].asString(); - if(!valueScenarioTemplatesScenario["Description"].isNull()) - scenarioTemplatesObject.description = valueScenarioTemplatesScenario["Description"].asString(); - if(!valueScenarioTemplatesScenario["Type"].isNull()) - scenarioTemplatesObject.type = valueScenarioTemplatesScenario["Type"].asString(); - if(!valueScenarioTemplatesScenario["IsTemplate"].isNull()) - scenarioTemplatesObject.isTemplate = valueScenarioTemplatesScenario["IsTemplate"].asString() == "true"; - auto allSurveysNode = valueScenarioTemplatesScenario["Surveys"]["Survey"]; - for (auto valueScenarioTemplatesScenarioSurveysSurvey : allSurveysNode) - { - Scenario::Survey surveysObject; - if(!valueScenarioTemplatesScenarioSurveysSurvey["Id"].isNull()) - surveysObject.id = valueScenarioTemplatesScenarioSurveysSurvey["Id"].asString(); - if(!valueScenarioTemplatesScenarioSurveysSurvey["Name"].isNull()) - surveysObject.name = valueScenarioTemplatesScenarioSurveysSurvey["Name"].asString(); - if(!valueScenarioTemplatesScenarioSurveysSurvey["Description"].isNull()) - surveysObject.description = valueScenarioTemplatesScenarioSurveysSurvey["Description"].asString(); - if(!valueScenarioTemplatesScenarioSurveysSurvey["Role"].isNull()) - surveysObject.role = valueScenarioTemplatesScenarioSurveysSurvey["Role"].asString(); - if(!valueScenarioTemplatesScenarioSurveysSurvey["Round"].isNull()) - surveysObject.round = std::stoi(valueScenarioTemplatesScenarioSurveysSurvey["Round"].asString()); - if(!valueScenarioTemplatesScenarioSurveysSurvey["BeebotId"].isNull()) - surveysObject.beebotId = valueScenarioTemplatesScenarioSurveysSurvey["BeebotId"].asString(); - if(!valueScenarioTemplatesScenarioSurveysSurvey["GlobalQuestions"].isNull()) - surveysObject.globalQuestions = valueScenarioTemplatesScenarioSurveysSurvey["GlobalQuestions"].asString(); - auto allIntentsNode = valueScenarioTemplatesScenarioSurveysSurvey["Intents"]["IntentNode"]; - for (auto valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode : allIntentsNode) - { - Scenario::Survey::IntentNode intentsObject; - if(!valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode["NodeId"].isNull()) - intentsObject.nodeId = valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode["NodeId"].asString(); - if(!valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode["IntentId"].isNull()) - intentsObject.intentId = valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode["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 allVariablesNode = valueScenarioTemplatesScenario["Variables"]["KeyValuePair"]; - for (auto valueScenarioTemplatesScenarioVariablesKeyValuePair : allVariablesNode) - { - Scenario::KeyValuePair variablesObject; - if(!valueScenarioTemplatesScenarioVariablesKeyValuePair["Key"].isNull()) - variablesObject.key = valueScenarioTemplatesScenarioVariablesKeyValuePair["Key"].asString(); - if(!valueScenarioTemplatesScenarioVariablesKeyValuePair["Value"].isNull()) - variablesObject.value = valueScenarioTemplatesScenarioVariablesKeyValuePair["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/ListScenariosResult.cc b/ccc/src/model/ListScenariosResult.cc deleted file mode 100644 index 538de6075..000000000 --- a/ccc/src/model/ListScenariosResult.cc +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allScenariosNode = value["Scenarios"]["Scenario"]; - for (auto valueScenariosScenario : allScenariosNode) - { - Scenario scenariosObject; - if(!valueScenariosScenario["Id"].isNull()) - scenariosObject.id = valueScenariosScenario["Id"].asString(); - if(!valueScenariosScenario["Name"].isNull()) - scenariosObject.name = valueScenariosScenario["Name"].asString(); - if(!valueScenariosScenario["Description"].isNull()) - scenariosObject.description = valueScenariosScenario["Description"].asString(); - if(!valueScenariosScenario["Type"].isNull()) - scenariosObject.type = valueScenariosScenario["Type"].asString(); - if(!valueScenariosScenario["IsTemplate"].isNull()) - scenariosObject.isTemplate = valueScenariosScenario["IsTemplate"].asString() == "true"; - auto allSurveysNode = valueScenariosScenario["Surveys"]["Survey"]; - for (auto valueScenariosScenarioSurveysSurvey : allSurveysNode) - { - Scenario::Survey surveysObject; - if(!valueScenariosScenarioSurveysSurvey["Id"].isNull()) - surveysObject.id = valueScenariosScenarioSurveysSurvey["Id"].asString(); - if(!valueScenariosScenarioSurveysSurvey["Name"].isNull()) - surveysObject.name = valueScenariosScenarioSurveysSurvey["Name"].asString(); - if(!valueScenariosScenarioSurveysSurvey["Description"].isNull()) - surveysObject.description = valueScenariosScenarioSurveysSurvey["Description"].asString(); - if(!valueScenariosScenarioSurveysSurvey["Role"].isNull()) - surveysObject.role = valueScenariosScenarioSurveysSurvey["Role"].asString(); - if(!valueScenariosScenarioSurveysSurvey["Round"].isNull()) - surveysObject.round = std::stoi(valueScenariosScenarioSurveysSurvey["Round"].asString()); - if(!valueScenariosScenarioSurveysSurvey["BeebotId"].isNull()) - surveysObject.beebotId = valueScenariosScenarioSurveysSurvey["BeebotId"].asString(); - auto allIntentsNode = valueScenariosScenarioSurveysSurvey["Intents"]["IntentNode"]; - for (auto valueScenariosScenarioSurveysSurveyIntentsIntentNode : allIntentsNode) - { - Scenario::Survey::IntentNode intentsObject; - if(!valueScenariosScenarioSurveysSurveyIntentsIntentNode["NodeId"].isNull()) - intentsObject.nodeId = valueScenariosScenarioSurveysSurveyIntentsIntentNode["NodeId"].asString(); - if(!valueScenariosScenarioSurveysSurveyIntentsIntentNode["IntentId"].isNull()) - intentsObject.intentId = valueScenariosScenarioSurveysSurveyIntentsIntentNode["IntentId"].asString(); - surveysObject.intents.push_back(intentsObject); - } - scenariosObject.surveys.push_back(surveysObject); - } - auto allVariablesNode = valueScenariosScenario["Variables"]["KeyValuePair"]; - for (auto valueScenariosScenarioVariablesKeyValuePair : allVariablesNode) - { - Scenario::KeyValuePair variablesObject; - if(!valueScenariosScenarioVariablesKeyValuePair["Key"].isNull()) - variablesObject.key = valueScenariosScenarioVariablesKeyValuePair["Key"].asString(); - if(!valueScenariosScenarioVariablesKeyValuePair["Value"].isNull()) - variablesObject.value = valueScenariosScenarioVariablesKeyValuePair["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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - Scenario::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) - timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["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/ListSkillGroupStatesRequest.cc b/ccc/src/model/ListSkillGroupStatesRequest.cc deleted file mode 100644 index 425b44fb2..000000000 --- a/ccc/src/model/ListSkillGroupStatesRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListSkillGroupStatesRequest; - -ListSkillGroupStatesRequest::ListSkillGroupStatesRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupStates") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSkillGroupStatesRequest::~ListSkillGroupStatesRequest() -{} - -int ListSkillGroupStatesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListSkillGroupStatesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListSkillGroupStatesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListSkillGroupStatesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListSkillGroupStatesRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListSkillGroupStatesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListSkillGroupStatesRequest::getSkillGroupIds()const -{ - return skillGroupIds_; -} - -void ListSkillGroupStatesRequest::setSkillGroupIds(const std::string& skillGroupIds) -{ - skillGroupIds_ = skillGroupIds; - setParameter("SkillGroupIds", skillGroupIds); -} - -int ListSkillGroupStatesRequest::getPageSize()const -{ - return pageSize_; -} - -void ListSkillGroupStatesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListSkillGroupStatesResult.cc b/ccc/src/model/ListSkillGroupStatesResult.cc deleted file mode 100644 index 297d5e9d5..000000000 --- a/ccc/src/model/ListSkillGroupStatesResult.cc +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListSkillGroupStatesResult::ListSkillGroupStatesResult() : - ServiceResult() -{} - -ListSkillGroupStatesResult::ListSkillGroupStatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSkillGroupStatesResult::~ListSkillGroupStatesResult() -{} - -void ListSkillGroupStatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["PageNumber"].isNull()) - data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); - if(!dataNode["PageSize"].isNull()) - data_.pageSize = std::stoi(dataNode["PageSize"].asString()); - auto allListNode = dataNode["List"]["RealTimeSkillGroupState"]; - for (auto dataNodeListRealTimeSkillGroupState : allListNode) - { - Data::RealTimeSkillGroupState realTimeSkillGroupStateObject; - if(!dataNodeListRealTimeSkillGroupState["InstanceId"].isNull()) - realTimeSkillGroupStateObject.instanceId = dataNodeListRealTimeSkillGroupState["InstanceId"].asString(); - if(!dataNodeListRealTimeSkillGroupState["SkillGroupId"].isNull()) - realTimeSkillGroupStateObject.skillGroupId = dataNodeListRealTimeSkillGroupState["SkillGroupId"].asString(); - if(!dataNodeListRealTimeSkillGroupState["SkillGroupName"].isNull()) - realTimeSkillGroupStateObject.skillGroupName = dataNodeListRealTimeSkillGroupState["SkillGroupName"].asString(); - if(!dataNodeListRealTimeSkillGroupState["WaitingCalls"].isNull()) - realTimeSkillGroupStateObject.waitingCalls = std::stol(dataNodeListRealTimeSkillGroupState["WaitingCalls"].asString()); - if(!dataNodeListRealTimeSkillGroupState["LongestCall"].isNull()) - realTimeSkillGroupStateObject.longestCall = std::stol(dataNodeListRealTimeSkillGroupState["LongestCall"].asString()); - if(!dataNodeListRealTimeSkillGroupState["LoggedInAgents"].isNull()) - realTimeSkillGroupStateObject.loggedInAgents = std::stol(dataNodeListRealTimeSkillGroupState["LoggedInAgents"].asString()); - if(!dataNodeListRealTimeSkillGroupState["ReadyAgents"].isNull()) - realTimeSkillGroupStateObject.readyAgents = std::stol(dataNodeListRealTimeSkillGroupState["ReadyAgents"].asString()); - if(!dataNodeListRealTimeSkillGroupState["BreakingAgents"].isNull()) - realTimeSkillGroupStateObject.breakingAgents = std::stol(dataNodeListRealTimeSkillGroupState["BreakingAgents"].asString()); - if(!dataNodeListRealTimeSkillGroupState["TalkingAgents"].isNull()) - realTimeSkillGroupStateObject.talkingAgents = std::stol(dataNodeListRealTimeSkillGroupState["TalkingAgents"].asString()); - if(!dataNodeListRealTimeSkillGroupState["WorkingAgents"].isNull()) - realTimeSkillGroupStateObject.workingAgents = std::stol(dataNodeListRealTimeSkillGroupState["WorkingAgents"].asString()); - data_.list.push_back(realTimeSkillGroupStateObject); - } - 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 ListSkillGroupStatesResult::getMessage()const -{ - return message_; -} - -int ListSkillGroupStatesResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -ListSkillGroupStatesResult::Data ListSkillGroupStatesResult::getData()const -{ - return data_; -} - -std::string ListSkillGroupStatesResult::getCode()const -{ - return code_; -} - -bool ListSkillGroupStatesResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc b/ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc deleted file mode 100644 index d9c4f02a1..000000000 --- a/ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListSkillGroupSummaryReportsByIntervalRequest; - -ListSkillGroupSummaryReportsByIntervalRequest::ListSkillGroupSummaryReportsByIntervalRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupSummaryReportsByInterval") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSkillGroupSummaryReportsByIntervalRequest::~ListSkillGroupSummaryReportsByIntervalRequest() -{} - -std::string ListSkillGroupSummaryReportsByIntervalRequest::getEndTime()const -{ - return endTime_; -} - -void ListSkillGroupSummaryReportsByIntervalRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -std::string ListSkillGroupSummaryReportsByIntervalRequest::getStartTime()const -{ - return startTime_; -} - -void ListSkillGroupSummaryReportsByIntervalRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -int ListSkillGroupSummaryReportsByIntervalRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListSkillGroupSummaryReportsByIntervalRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListSkillGroupSummaryReportsByIntervalRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListSkillGroupSummaryReportsByIntervalRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListSkillGroupSummaryReportsByIntervalRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListSkillGroupSummaryReportsByIntervalRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListSkillGroupSummaryReportsByIntervalRequest::getSkillGroupIds()const -{ - return skillGroupIds_; -} - -void ListSkillGroupSummaryReportsByIntervalRequest::setSkillGroupIds(const std::string& skillGroupIds) -{ - skillGroupIds_ = skillGroupIds; - setParameter("SkillGroupIds", skillGroupIds); -} - -int ListSkillGroupSummaryReportsByIntervalRequest::getPageSize()const -{ - return pageSize_; -} - -void ListSkillGroupSummaryReportsByIntervalRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListSkillGroupSummaryReportsByIntervalRequest::getInterval()const -{ - return interval_; -} - -void ListSkillGroupSummaryReportsByIntervalRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc b/ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc deleted file mode 100644 index 87db54119..000000000 --- a/ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListSkillGroupSummaryReportsByIntervalResult::ListSkillGroupSummaryReportsByIntervalResult() : - ServiceResult() -{} - -ListSkillGroupSummaryReportsByIntervalResult::ListSkillGroupSummaryReportsByIntervalResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSkillGroupSummaryReportsByIntervalResult::~ListSkillGroupSummaryReportsByIntervalResult() -{} - -void ListSkillGroupSummaryReportsByIntervalResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto pagedSkillGroupSummaryReportNode = value["PagedSkillGroupSummaryReport"]; - if(!pagedSkillGroupSummaryReportNode["TotalCount"].isNull()) - pagedSkillGroupSummaryReport_.totalCount = std::stoi(pagedSkillGroupSummaryReportNode["TotalCount"].asString()); - if(!pagedSkillGroupSummaryReportNode["PageNumber"].isNull()) - pagedSkillGroupSummaryReport_.pageNumber = std::stoi(pagedSkillGroupSummaryReportNode["PageNumber"].asString()); - if(!pagedSkillGroupSummaryReportNode["PageSize"].isNull()) - pagedSkillGroupSummaryReport_.pageSize = std::stoi(pagedSkillGroupSummaryReportNode["PageSize"].asString()); - auto allListNode = pagedSkillGroupSummaryReportNode["List"]["SkillGroupTimeIntervalReport"]; - for (auto pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport : allListNode) - { - PagedSkillGroupSummaryReport::SkillGroupTimeIntervalReport skillGroupTimeIntervalReportObject; - if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport["SkillGroupId"].isNull()) - skillGroupTimeIntervalReportObject.skillGroupId = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport["SkillGroupId"].asString(); - auto allIntervalListNode = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport["IntervalList"]["SkillGroupSummaryReport"]; - for (auto pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport : allIntervalListNode) - { - PagedSkillGroupSummaryReport::SkillGroupTimeIntervalReport::SkillGroupSummaryReport intervalListObject; - if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["Timestamp"].isNull()) - intervalListObject.timestamp = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["Timestamp"].asString(); - if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["InstanceId"].isNull()) - intervalListObject.instanceId = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["InstanceId"].asString(); - if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["SkillGroupId"].isNull()) - intervalListObject.skillGroupId = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["SkillGroupId"].asString(); - if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["SkillGroupName"].isNull()) - intervalListObject.skillGroupName = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["SkillGroupName"].asString(); - auto overallNode = value["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - intervalListObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - intervalListObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - intervalListObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - intervalListObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - intervalListObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - intervalListObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - intervalListObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - intervalListObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - intervalListObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - intervalListObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - intervalListObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - intervalListObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - intervalListObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - intervalListObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - intervalListObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - intervalListObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - auto inboundNode = value["Inbound"]; - if(!inboundNode["CallsOffered"].isNull()) - intervalListObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - intervalListObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - intervalListObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - intervalListObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - intervalListObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - intervalListObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - intervalListObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - intervalListObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - intervalListObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); - if(!inboundNode["AverageTalkTime"].isNull()) - intervalListObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - intervalListObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - intervalListObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - intervalListObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - intervalListObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - intervalListObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - intervalListObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - if(!inboundNode["InComingQueueOfQueueCount"].isNull()) - intervalListObject.inbound.inComingQueueOfQueueCount = std::stol(inboundNode["InComingQueueOfQueueCount"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueCount"].isNull()) - intervalListObject.inbound.answeredByAgentOfQueueCount = std::stol(inboundNode["AnsweredByAgentOfQueueCount"].asString()); - if(!inboundNode["GiveUpByAgentOfQueueCount"].isNull()) - intervalListObject.inbound.giveUpByAgentOfQueueCount = std::stol(inboundNode["GiveUpByAgentOfQueueCount"].asString()); - if(!inboundNode["AbandonedInQueueOfQueueCount"].isNull()) - intervalListObject.inbound.abandonedInQueueOfQueueCount = std::stol(inboundNode["AbandonedInQueueOfQueueCount"].asString()); - if(!inboundNode["OverFlowInQueueOfQueueCount"].isNull()) - intervalListObject.inbound.overFlowInQueueOfQueueCount = std::stol(inboundNode["OverFlowInQueueOfQueueCount"].asString()); - if(!inboundNode["QueueWaitTimeDuration"].isNull()) - intervalListObject.inbound.queueWaitTimeDuration = std::stol(inboundNode["QueueWaitTimeDuration"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].isNull()) - intervalListObject.inbound.answeredByAgentOfQueueWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].asString()); - if(!inboundNode["QueueMaxWaitTimeDuration"].isNull()) - intervalListObject.inbound.queueMaxWaitTimeDuration = std::stol(inboundNode["QueueMaxWaitTimeDuration"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].isNull()) - intervalListObject.inbound.answeredByAgentOfQueueMaxWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].asString()); - auto outboundNode = value["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - intervalListObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - intervalListObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - intervalListObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - intervalListObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - intervalListObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - intervalListObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - intervalListObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - intervalListObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - intervalListObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - intervalListObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - intervalListObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); - if(!outboundNode["AverageWorkTime"].isNull()) - intervalListObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - intervalListObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - intervalListObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - intervalListObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); - skillGroupTimeIntervalReportObject.intervalList.push_back(intervalListObject); - } - pagedSkillGroupSummaryReport_.list.push_back(skillGroupTimeIntervalReportObject); - } - 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()); - -} - -ListSkillGroupSummaryReportsByIntervalResult::PagedSkillGroupSummaryReport ListSkillGroupSummaryReportsByIntervalResult::getPagedSkillGroupSummaryReport()const -{ - return pagedSkillGroupSummaryReport_; -} - -std::string ListSkillGroupSummaryReportsByIntervalResult::getMessage()const -{ - return message_; -} - -int ListSkillGroupSummaryReportsByIntervalResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListSkillGroupSummaryReportsByIntervalResult::getCode()const -{ - return code_; -} - -bool ListSkillGroupSummaryReportsByIntervalResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListSkillGroupSummaryReportsRequest.cc b/ccc/src/model/ListSkillGroupSummaryReportsRequest.cc deleted file mode 100644 index 1acfd2a20..000000000 --- a/ccc/src/model/ListSkillGroupSummaryReportsRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListSkillGroupSummaryReportsRequest; - -ListSkillGroupSummaryReportsRequest::ListSkillGroupSummaryReportsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupSummaryReports") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSkillGroupSummaryReportsRequest::~ListSkillGroupSummaryReportsRequest() -{} - -std::string ListSkillGroupSummaryReportsRequest::getEndTime()const -{ - return endTime_; -} - -void ListSkillGroupSummaryReportsRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -std::string ListSkillGroupSummaryReportsRequest::getStartTime()const -{ - return startTime_; -} - -void ListSkillGroupSummaryReportsRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -int ListSkillGroupSummaryReportsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListSkillGroupSummaryReportsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListSkillGroupSummaryReportsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListSkillGroupSummaryReportsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListSkillGroupSummaryReportsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListSkillGroupSummaryReportsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListSkillGroupSummaryReportsRequest::getSkillGroupIds()const -{ - return skillGroupIds_; -} - -void ListSkillGroupSummaryReportsRequest::setSkillGroupIds(const std::string& skillGroupIds) -{ - skillGroupIds_ = skillGroupIds; - setParameter("SkillGroupIds", skillGroupIds); -} - -int ListSkillGroupSummaryReportsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListSkillGroupSummaryReportsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListSkillGroupSummaryReportsResult.cc b/ccc/src/model/ListSkillGroupSummaryReportsResult.cc deleted file mode 100644 index 9bf53d0ed..000000000 --- a/ccc/src/model/ListSkillGroupSummaryReportsResult.cc +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListSkillGroupSummaryReportsResult::ListSkillGroupSummaryReportsResult() : - ServiceResult() -{} - -ListSkillGroupSummaryReportsResult::ListSkillGroupSummaryReportsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSkillGroupSummaryReportsResult::~ListSkillGroupSummaryReportsResult() -{} - -void ListSkillGroupSummaryReportsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto pagedSkillGroupSummaryReportNode = value["PagedSkillGroupSummaryReport"]; - if(!pagedSkillGroupSummaryReportNode["TotalCount"].isNull()) - pagedSkillGroupSummaryReport_.totalCount = std::stoi(pagedSkillGroupSummaryReportNode["TotalCount"].asString()); - if(!pagedSkillGroupSummaryReportNode["PageNumber"].isNull()) - pagedSkillGroupSummaryReport_.pageNumber = std::stoi(pagedSkillGroupSummaryReportNode["PageNumber"].asString()); - if(!pagedSkillGroupSummaryReportNode["PageSize"].isNull()) - pagedSkillGroupSummaryReport_.pageSize = std::stoi(pagedSkillGroupSummaryReportNode["PageSize"].asString()); - auto allListNode = pagedSkillGroupSummaryReportNode["List"]["SkillGroupSummaryReport"]; - for (auto pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport : allListNode) - { - PagedSkillGroupSummaryReport::SkillGroupSummaryReport skillGroupSummaryReportObject; - if(!pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["InstanceId"].isNull()) - skillGroupSummaryReportObject.instanceId = pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["InstanceId"].asString(); - if(!pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["SkillGroupId"].isNull()) - skillGroupSummaryReportObject.skillGroupId = pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["SkillGroupId"].asString(); - if(!pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["SkillGroupName"].isNull()) - skillGroupSummaryReportObject.skillGroupName = pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["SkillGroupName"].asString(); - auto overallNode = value["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - skillGroupSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - skillGroupSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - skillGroupSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - skillGroupSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - skillGroupSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - skillGroupSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - skillGroupSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - skillGroupSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - skillGroupSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - skillGroupSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - skillGroupSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - skillGroupSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - skillGroupSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - skillGroupSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - skillGroupSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - skillGroupSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - auto inboundNode = value["Inbound"]; - if(!inboundNode["CallsOffered"].isNull()) - skillGroupSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - skillGroupSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - skillGroupSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - skillGroupSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - skillGroupSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - skillGroupSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - skillGroupSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - skillGroupSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - skillGroupSummaryReportObject.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); - if(!inboundNode["AverageTalkTime"].isNull()) - skillGroupSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - skillGroupSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - skillGroupSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - skillGroupSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - skillGroupSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - skillGroupSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - skillGroupSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - if(!inboundNode["InComingQueueOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.inComingQueueOfQueueCount = std::stol(inboundNode["InComingQueueOfQueueCount"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueCount = std::stol(inboundNode["AnsweredByAgentOfQueueCount"].asString()); - if(!inboundNode["GiveUpByAgentOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.giveUpByAgentOfQueueCount = std::stol(inboundNode["GiveUpByAgentOfQueueCount"].asString()); - if(!inboundNode["AbandonedInQueueOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.abandonedInQueueOfQueueCount = std::stol(inboundNode["AbandonedInQueueOfQueueCount"].asString()); - if(!inboundNode["OverFlowInQueueOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.overFlowInQueueOfQueueCount = std::stol(inboundNode["OverFlowInQueueOfQueueCount"].asString()); - if(!inboundNode["QueueWaitTimeDuration"].isNull()) - skillGroupSummaryReportObject.inbound.queueWaitTimeDuration = std::stol(inboundNode["QueueWaitTimeDuration"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].isNull()) - skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].asString()); - if(!inboundNode["QueueMaxWaitTimeDuration"].isNull()) - skillGroupSummaryReportObject.inbound.queueMaxWaitTimeDuration = std::stol(inboundNode["QueueMaxWaitTimeDuration"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].isNull()) - skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueMaxWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].asString()); - auto outboundNode = value["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - skillGroupSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - skillGroupSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - skillGroupSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - skillGroupSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - skillGroupSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - skillGroupSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - skillGroupSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - skillGroupSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - skillGroupSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - skillGroupSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - skillGroupSummaryReportObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); - if(!outboundNode["AverageWorkTime"].isNull()) - skillGroupSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - skillGroupSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - skillGroupSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - skillGroupSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); - pagedSkillGroupSummaryReport_.list.push_back(skillGroupSummaryReportObject); - } - 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()); - -} - -ListSkillGroupSummaryReportsResult::PagedSkillGroupSummaryReport ListSkillGroupSummaryReportsResult::getPagedSkillGroupSummaryReport()const -{ - return pagedSkillGroupSummaryReport_; -} - -std::string ListSkillGroupSummaryReportsResult::getMessage()const -{ - return message_; -} - -int ListSkillGroupSummaryReportsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListSkillGroupSummaryReportsResult::getCode()const -{ - return code_; -} - -bool ListSkillGroupSummaryReportsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc deleted file mode 100644 index 8fa7f6dce..000000000 --- a/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListSkillGroupSummaryReportsSinceMidnightRequest; - -ListSkillGroupSummaryReportsSinceMidnightRequest::ListSkillGroupSummaryReportsSinceMidnightRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupSummaryReportsSinceMidnight") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSkillGroupSummaryReportsSinceMidnightRequest::~ListSkillGroupSummaryReportsSinceMidnightRequest() -{} - -int ListSkillGroupSummaryReportsSinceMidnightRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListSkillGroupSummaryReportsSinceMidnightRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListSkillGroupSummaryReportsSinceMidnightRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListSkillGroupSummaryReportsSinceMidnightRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListSkillGroupSummaryReportsSinceMidnightRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListSkillGroupSummaryReportsSinceMidnightRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListSkillGroupSummaryReportsSinceMidnightRequest::getSkillGroups()const -{ - return skillGroups_; -} - -void ListSkillGroupSummaryReportsSinceMidnightRequest::setSkillGroups(const std::string& skillGroups) -{ - skillGroups_ = skillGroups; - setParameter("SkillGroups", skillGroups); -} - -int ListSkillGroupSummaryReportsSinceMidnightRequest::getPageSize()const -{ - return pageSize_; -} - -void ListSkillGroupSummaryReportsSinceMidnightRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc deleted file mode 100644 index ccdada638..000000000 --- a/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListSkillGroupSummaryReportsSinceMidnightResult::ListSkillGroupSummaryReportsSinceMidnightResult() : - ServiceResult() -{} - -ListSkillGroupSummaryReportsSinceMidnightResult::ListSkillGroupSummaryReportsSinceMidnightResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSkillGroupSummaryReportsSinceMidnightResult::~ListSkillGroupSummaryReportsSinceMidnightResult() -{} - -void ListSkillGroupSummaryReportsSinceMidnightResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto pagedSkillGroupSummaryReportNode = value["PagedSkillGroupSummaryReport"]; - if(!pagedSkillGroupSummaryReportNode["TotalCount"].isNull()) - pagedSkillGroupSummaryReport_.totalCount = std::stoi(pagedSkillGroupSummaryReportNode["TotalCount"].asString()); - if(!pagedSkillGroupSummaryReportNode["PageNumber"].isNull()) - pagedSkillGroupSummaryReport_.pageNumber = std::stoi(pagedSkillGroupSummaryReportNode["PageNumber"].asString()); - if(!pagedSkillGroupSummaryReportNode["PageSize"].isNull()) - pagedSkillGroupSummaryReport_.pageSize = std::stoi(pagedSkillGroupSummaryReportNode["PageSize"].asString()); - auto allListNode = pagedSkillGroupSummaryReportNode["List"]["SkillGroupSummaryReport"]; - for (auto pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport : allListNode) - { - PagedSkillGroupSummaryReport::SkillGroupSummaryReport skillGroupSummaryReportObject; - if(!pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["Timestamp"].isNull()) - skillGroupSummaryReportObject.timestamp = pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["Timestamp"].asString(); - if(!pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["InstanceId"].isNull()) - skillGroupSummaryReportObject.instanceId = pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["InstanceId"].asString(); - if(!pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["SkillGroupId"].isNull()) - skillGroupSummaryReportObject.skillGroupId = pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["SkillGroupId"].asString(); - if(!pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["SkillGroupName"].isNull()) - skillGroupSummaryReportObject.skillGroupName = pagedSkillGroupSummaryReportNodeListSkillGroupSummaryReport["SkillGroupName"].asString(); - auto overallNode = value["Overall"]; - if(!overallNode["TotalCalls"].isNull()) - skillGroupSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - skillGroupSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - skillGroupSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - skillGroupSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - skillGroupSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["MaxReadyTime"].isNull()) - skillGroupSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - skillGroupSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); - if(!overallNode["TotalTalkTime"].isNull()) - skillGroupSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - skillGroupSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - skillGroupSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - skillGroupSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - skillGroupSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - skillGroupSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); - if(!overallNode["SatisfactionIndex"].isNull()) - skillGroupSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); - if(!overallNode["SatisfactionSurveysOffered"].isNull()) - skillGroupSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); - if(!overallNode["SatisfactionSurveysResponded"].isNull()) - skillGroupSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); - auto inboundNode = value["Inbound"]; - if(!inboundNode["CallsOffered"].isNull()) - skillGroupSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - skillGroupSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["HandleRate"].isNull()) - skillGroupSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - skillGroupSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - skillGroupSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["AverageRingTime"].isNull()) - skillGroupSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - skillGroupSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - skillGroupSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - skillGroupSummaryReportObject.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); - if(!inboundNode["AverageTalkTime"].isNull()) - skillGroupSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - skillGroupSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - skillGroupSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["AverageWorkTime"].isNull()) - skillGroupSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - skillGroupSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - skillGroupSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - skillGroupSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - if(!inboundNode["InComingQueueOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.inComingQueueOfQueueCount = std::stol(inboundNode["InComingQueueOfQueueCount"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueCount = std::stol(inboundNode["AnsweredByAgentOfQueueCount"].asString()); - if(!inboundNode["GiveUpByAgentOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.giveUpByAgentOfQueueCount = std::stol(inboundNode["GiveUpByAgentOfQueueCount"].asString()); - if(!inboundNode["AbandonedInQueueOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.abandonedInQueueOfQueueCount = std::stol(inboundNode["AbandonedInQueueOfQueueCount"].asString()); - if(!inboundNode["OverFlowInQueueOfQueueCount"].isNull()) - skillGroupSummaryReportObject.inbound.overFlowInQueueOfQueueCount = std::stol(inboundNode["OverFlowInQueueOfQueueCount"].asString()); - if(!inboundNode["QueueWaitTimeDuration"].isNull()) - skillGroupSummaryReportObject.inbound.queueWaitTimeDuration = std::stol(inboundNode["QueueWaitTimeDuration"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].isNull()) - skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].asString()); - if(!inboundNode["QueueMaxWaitTimeDuration"].isNull()) - skillGroupSummaryReportObject.inbound.queueMaxWaitTimeDuration = std::stol(inboundNode["QueueMaxWaitTimeDuration"].asString()); - if(!inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].isNull()) - skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueMaxWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].asString()); - auto outboundNode = value["Outbound"]; - if(!outboundNode["CallsDialed"].isNull()) - skillGroupSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - skillGroupSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - skillGroupSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["TotalDialingTime"].isNull()) - skillGroupSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - skillGroupSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - skillGroupSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - skillGroupSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - skillGroupSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - skillGroupSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - skillGroupSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - skillGroupSummaryReportObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); - if(!outboundNode["AverageWorkTime"].isNull()) - skillGroupSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - skillGroupSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["SatisfactionSurveysOffered"].isNull()) - skillGroupSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); - if(!outboundNode["SatisfactionSurveysResponded"].isNull()) - skillGroupSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); - pagedSkillGroupSummaryReport_.list.push_back(skillGroupSummaryReportObject); - } - 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()); - -} - -ListSkillGroupSummaryReportsSinceMidnightResult::PagedSkillGroupSummaryReport ListSkillGroupSummaryReportsSinceMidnightResult::getPagedSkillGroupSummaryReport()const -{ - return pagedSkillGroupSummaryReport_; -} - -std::string ListSkillGroupSummaryReportsSinceMidnightResult::getMessage()const -{ - return message_; -} - -int ListSkillGroupSummaryReportsSinceMidnightResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListSkillGroupSummaryReportsSinceMidnightResult::getCode()const -{ - return code_; -} - -bool ListSkillGroupSummaryReportsSinceMidnightResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListSkillGroupsOfUserResult.cc b/ccc/src/model/ListSkillGroupsOfUserResult.cc deleted file mode 100644 index 68ff8abc5..000000000 --- a/ccc/src/model/ListSkillGroupsOfUserResult.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListSkillGroupsOfUserResult::ListSkillGroupsOfUserResult() : - ServiceResult() -{} - -ListSkillGroupsOfUserResult::ListSkillGroupsOfUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSkillGroupsOfUserResult::~ListSkillGroupsOfUserResult() -{} - -void ListSkillGroupsOfUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSkillLevelsNode = value["SkillLevels"]["SkillLevel"]; - for (auto valueSkillLevelsSkillLevel : allSkillLevelsNode) - { - SkillLevel skillLevelsObject; - if(!valueSkillLevelsSkillLevel["SkillLevelId"].isNull()) - skillLevelsObject.skillLevelId = valueSkillLevelsSkillLevel["SkillLevelId"].asString(); - if(!valueSkillLevelsSkillLevel["Level"].isNull()) - skillLevelsObject.level = std::stoi(valueSkillLevelsSkillLevel["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(); - if(!skillNode["RoutingStrategy"].isNull()) - skillLevelsObject.skill.routingStrategy = skillNode["RoutingStrategy"].asString(); - auto allOutboundPhoneNumbersNode = skillNode["OutboundPhoneNumbers"]["PhoneNumber"]; - for (auto skillNodeOutboundPhoneNumbersPhoneNumber : allOutboundPhoneNumbersNode) - { - SkillLevel::Skill::PhoneNumber phoneNumberObject; - if(!skillNodeOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = skillNodeOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!skillNodeOutboundPhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumberObject.instanceId = skillNodeOutboundPhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!skillNodeOutboundPhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumberObject.number = skillNodeOutboundPhoneNumbersPhoneNumber["Number"].asString(); - if(!skillNodeOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = skillNodeOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!skillNodeOutboundPhoneNumbersPhoneNumber["TestOnly"].isNull()) - phoneNumberObject.testOnly = skillNodeOutboundPhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!skillNodeOutboundPhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumberObject.remainingTime = std::stoi(skillNodeOutboundPhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!skillNodeOutboundPhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - phoneNumberObject.allowOutbound = skillNodeOutboundPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!skillNodeOutboundPhoneNumbersPhoneNumber["Usage"].isNull()) - phoneNumberObject.usage = skillNodeOutboundPhoneNumbersPhoneNumber["Usage"].asString(); - if(!skillNodeOutboundPhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumberObject.trunks = std::stoi(skillNodeOutboundPhoneNumbersPhoneNumber["Trunks"].asString()); - if(!skillNodeOutboundPhoneNumbersPhoneNumber["Province"].isNull()) - phoneNumberObject.province = skillNodeOutboundPhoneNumbersPhoneNumber["Province"].asString(); - if(!skillNodeOutboundPhoneNumbersPhoneNumber["City"].isNull()) - phoneNumberObject.city = skillNodeOutboundPhoneNumbersPhoneNumber["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_; -} - diff --git a/ccc/src/model/ListSkillGroupsRequest.cc b/ccc/src/model/ListSkillGroupsRequest.cc deleted file mode 100644 index d949a8dfb..000000000 --- a/ccc/src/model/ListSkillGroupsRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListSkillGroupsRequest; - -ListSkillGroupsRequest::ListSkillGroupsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSkillGroupsRequest::~ListSkillGroupsRequest() -{} - -std::string ListSkillGroupsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListSkillGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListSkillGroupsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListSkillGroupsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListSkillGroupsResult.cc b/ccc/src/model/ListSkillGroupsResult.cc deleted file mode 100644 index 3379b230c..000000000 --- a/ccc/src/model/ListSkillGroupsResult.cc +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListSkillGroupsResult::ListSkillGroupsResult() : - ServiceResult() -{} - -ListSkillGroupsResult::ListSkillGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSkillGroupsResult::~ListSkillGroupsResult() -{} - -void ListSkillGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSkillGroupsNode = value["SkillGroups"]["SkillGroup"]; - for (auto valueSkillGroupsSkillGroup : allSkillGroupsNode) - { - SkillGroup skillGroupsObject; - if(!valueSkillGroupsSkillGroup["SkillGroupId"].isNull()) - skillGroupsObject.skillGroupId = valueSkillGroupsSkillGroup["SkillGroupId"].asString(); - if(!valueSkillGroupsSkillGroup["InstanceId"].isNull()) - skillGroupsObject.instanceId = valueSkillGroupsSkillGroup["InstanceId"].asString(); - if(!valueSkillGroupsSkillGroup["SkillGroupName"].isNull()) - skillGroupsObject.skillGroupName = valueSkillGroupsSkillGroup["SkillGroupName"].asString(); - if(!valueSkillGroupsSkillGroup["AccSkillGroupName"].isNull()) - skillGroupsObject.accSkillGroupName = valueSkillGroupsSkillGroup["AccSkillGroupName"].asString(); - if(!valueSkillGroupsSkillGroup["AccQueueName"].isNull()) - skillGroupsObject.accQueueName = valueSkillGroupsSkillGroup["AccQueueName"].asString(); - if(!valueSkillGroupsSkillGroup["SkillGroupDescription"].isNull()) - skillGroupsObject.skillGroupDescription = valueSkillGroupsSkillGroup["SkillGroupDescription"].asString(); - if(!valueSkillGroupsSkillGroup["RoutingStrategy"].isNull()) - skillGroupsObject.routingStrategy = valueSkillGroupsSkillGroup["RoutingStrategy"].asString(); - if(!valueSkillGroupsSkillGroup["UserCount"].isNull()) - skillGroupsObject.userCount = std::stoi(valueSkillGroupsSkillGroup["UserCount"].asString()); - auto allOutboundPhoneNumbersNode = valueSkillGroupsSkillGroup["OutboundPhoneNumbers"]["PhoneNumber"]; - for (auto valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber : allOutboundPhoneNumbersNode) - { - SkillGroup::PhoneNumber outboundPhoneNumbersObject; - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - outboundPhoneNumbersObject.phoneNumberId = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["InstanceId"].isNull()) - outboundPhoneNumbersObject.instanceId = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Number"].isNull()) - outboundPhoneNumbersObject.number = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Number"].asString(); - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - outboundPhoneNumbersObject.phoneNumberDescription = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["TestOnly"].isNull()) - outboundPhoneNumbersObject.testOnly = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["RemainingTime"].isNull()) - outboundPhoneNumbersObject.remainingTime = std::stoi(valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["AllowOutbound"].isNull()) - outboundPhoneNumbersObject.allowOutbound = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Usage"].isNull()) - outboundPhoneNumbersObject.usage = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Usage"].asString(); - if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Trunks"].isNull()) - outboundPhoneNumbersObject.trunks = std::stoi(valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["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_; -} - diff --git a/ccc/src/model/ListSkillLevelsOfUserRequest.cc b/ccc/src/model/ListSkillLevelsOfUserRequest.cc new file mode 100644 index 000000000..836d4e21e --- /dev/null +++ b/ccc/src/model/ListSkillLevelsOfUserRequest.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::ListSkillLevelsOfUserRequest; + +ListSkillLevelsOfUserRequest::ListSkillLevelsOfUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListSkillLevelsOfUser") +{ + setMethod(HttpRequest::Method::Post); +} + +ListSkillLevelsOfUserRequest::~ListSkillLevelsOfUserRequest() +{} + +std::string ListSkillLevelsOfUserRequest::getUserId()const +{ + return userId_; +} + +void ListSkillLevelsOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +bool ListSkillLevelsOfUserRequest::getIsMember()const +{ + return isMember_; +} + +void ListSkillLevelsOfUserRequest::setIsMember(bool isMember) +{ + isMember_ = isMember; + setParameter("IsMember", isMember ? "true" : "false"); +} + +int ListSkillLevelsOfUserRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSkillLevelsOfUserRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListSkillLevelsOfUserRequest::getSearchPattern()const +{ + return searchPattern_; +} + +void ListSkillLevelsOfUserRequest::setSearchPattern(const std::string& searchPattern) +{ + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); +} + +std::string ListSkillLevelsOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListSkillLevelsOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListSkillLevelsOfUserRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSkillLevelsOfUserRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListSkillLevelsOfUserResult.cc b/ccc/src/model/ListSkillLevelsOfUserResult.cc new file mode 100644 index 000000000..b4ec1fc02 --- /dev/null +++ b/ccc/src/model/ListSkillLevelsOfUserResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListSkillLevelsOfUserResult::ListSkillLevelsOfUserResult() : + ServiceResult() +{} + +ListSkillLevelsOfUserResult::ListSkillLevelsOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSkillLevelsOfUserResult::~ListSkillLevelsOfUserResult() +{} + +void ListSkillLevelsOfUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["UserSkillLevel"]; + for (auto dataNodeListUserSkillLevel : allListNode) + { + Data::UserSkillLevel userSkillLevelObject; + if(!dataNodeListUserSkillLevel["SkillGroupId"].isNull()) + userSkillLevelObject.skillGroupId = dataNodeListUserSkillLevel["SkillGroupId"].asString(); + if(!dataNodeListUserSkillLevel["SkillGroupName"].isNull()) + userSkillLevelObject.skillGroupName = dataNodeListUserSkillLevel["SkillGroupName"].asString(); + if(!dataNodeListUserSkillLevel["SkillLevel"].isNull()) + userSkillLevelObject.skillLevel = dataNodeListUserSkillLevel["SkillLevel"].asString(); + data_.list.push_back(userSkillLevelObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListSkillLevelsOfUserResult::getMessage()const +{ + return message_; +} + +int ListSkillLevelsOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListSkillLevelsOfUserResult::Data ListSkillLevelsOfUserResult::getData()const +{ + return data_; +} + +std::string ListSkillLevelsOfUserResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListSurveysRequest.cc b/ccc/src/model/ListSurveysRequest.cc deleted file mode 100644 index c8a6e0520..000000000 --- a/ccc/src/model/ListSurveysRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 17683f640..000000000 --- a/ccc/src/model/ListSurveysResult.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allSurveysNode = value["Surveys"]["Survey"]; - for (auto valueSurveysSurvey : allSurveysNode) - { - Survey surveysObject; - if(!valueSurveysSurvey["Id"].isNull()) - surveysObject.id = valueSurveysSurvey["Id"].asString(); - if(!valueSurveysSurvey["ScenarioUuid"].isNull()) - surveysObject.scenarioUuid = valueSurveysSurvey["ScenarioUuid"].asString(); - if(!valueSurveysSurvey["Name"].isNull()) - surveysObject.name = valueSurveysSurvey["Name"].asString(); - if(!valueSurveysSurvey["Description"].isNull()) - surveysObject.description = valueSurveysSurvey["Description"].asString(); - if(!valueSurveysSurvey["Role"].isNull()) - surveysObject.role = valueSurveysSurvey["Role"].asString(); - if(!valueSurveysSurvey["Round"].isNull()) - surveysObject.round = std::stoi(valueSurveysSurvey["Round"].asString()); - if(!valueSurveysSurvey["HotWords"].isNull()) - surveysObject.hotWords = valueSurveysSurvey["HotWords"].asString(); - if(!valueSurveysSurvey["SpeechOptimizationParam"].isNull()) - surveysObject.speechOptimizationParam = valueSurveysSurvey["SpeechOptimizationParam"].asString(); - if(!valueSurveysSurvey["GlobalQuestions"].isNull()) - surveysObject.globalQuestions = valueSurveysSurvey["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/ListTransferableSkillGroupsRequest.cc b/ccc/src/model/ListTransferableSkillGroupsRequest.cc deleted file mode 100644 index 68ef96050..000000000 --- a/ccc/src/model/ListTransferableSkillGroupsRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListTransferableSkillGroupsRequest; - -ListTransferableSkillGroupsRequest::ListTransferableSkillGroupsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListTransferableSkillGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTransferableSkillGroupsRequest::~ListTransferableSkillGroupsRequest() -{} - -std::string ListTransferableSkillGroupsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListTransferableSkillGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListTransferableSkillGroupsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListTransferableSkillGroupsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListTransferableSkillGroupsResult.cc b/ccc/src/model/ListTransferableSkillGroupsResult.cc deleted file mode 100644 index 8b1a1f831..000000000 --- a/ccc/src/model/ListTransferableSkillGroupsResult.cc +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListTransferableSkillGroupsResult::ListTransferableSkillGroupsResult() : - ServiceResult() -{} - -ListTransferableSkillGroupsResult::ListTransferableSkillGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTransferableSkillGroupsResult::~ListTransferableSkillGroupsResult() -{} - -void ListTransferableSkillGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSkillGroupsNode = value["SkillGroups"]["SkillGroup"]; - for (auto valueSkillGroupsSkillGroup : allSkillGroupsNode) - { - SkillGroup skillGroupsObject; - if(!valueSkillGroupsSkillGroup["SkillGroupId"].isNull()) - skillGroupsObject.skillGroupId = valueSkillGroupsSkillGroup["SkillGroupId"].asString(); - if(!valueSkillGroupsSkillGroup["InstanceId"].isNull()) - skillGroupsObject.instanceId = valueSkillGroupsSkillGroup["InstanceId"].asString(); - if(!valueSkillGroupsSkillGroup["SkillGroupName"].isNull()) - skillGroupsObject.skillGroupName = valueSkillGroupsSkillGroup["SkillGroupName"].asString(); - if(!valueSkillGroupsSkillGroup["AccSkillGroupName"].isNull()) - skillGroupsObject.accSkillGroupName = valueSkillGroupsSkillGroup["AccSkillGroupName"].asString(); - if(!valueSkillGroupsSkillGroup["AccQueueName"].isNull()) - skillGroupsObject.accQueueName = valueSkillGroupsSkillGroup["AccQueueName"].asString(); - if(!valueSkillGroupsSkillGroup["SkillGroupDescription"].isNull()) - skillGroupsObject.skillGroupDescription = valueSkillGroupsSkillGroup["SkillGroupDescription"].asString(); - if(!valueSkillGroupsSkillGroup["RoutingStrategy"].isNull()) - skillGroupsObject.routingStrategy = valueSkillGroupsSkillGroup["RoutingStrategy"].asString(); - if(!valueSkillGroupsSkillGroup["AllowPrivateOutboundNumber"].isNull()) - skillGroupsObject.allowPrivateOutboundNumber = valueSkillGroupsSkillGroup["AllowPrivateOutboundNumber"].asString() == "true"; - if(!valueSkillGroupsSkillGroup["UserCount"].isNull()) - skillGroupsObject.userCount = std::stoi(valueSkillGroupsSkillGroup["UserCount"].asString()); - 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 ListTransferableSkillGroupsResult::getMessage()const -{ - return message_; -} - -int ListTransferableSkillGroupsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListTransferableSkillGroupsResult::getSkillGroups()const -{ - return skillGroups_; -} - -std::string ListTransferableSkillGroupsResult::getCode()const -{ - return code_; -} - -bool ListTransferableSkillGroupsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListTrunkProvidersRequest.cc b/ccc/src/model/ListTrunkProvidersRequest.cc deleted file mode 100644 index 40ad573a0..000000000 --- a/ccc/src/model/ListTrunkProvidersRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListTrunkProvidersRequest; - -ListTrunkProvidersRequest::ListTrunkProvidersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListTrunkProviders") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTrunkProvidersRequest::~ListTrunkProvidersRequest() -{} - -std::string ListTrunkProvidersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListTrunkProvidersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListTrunkProvidersResult.cc b/ccc/src/model/ListTrunkProvidersResult.cc deleted file mode 100644 index 2ad297122..000000000 --- a/ccc/src/model/ListTrunkProvidersResult.cc +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListTrunkProvidersResult::ListTrunkProvidersResult() : - ServiceResult() -{} - -ListTrunkProvidersResult::ListTrunkProvidersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTrunkProvidersResult::~ListTrunkProvidersResult() -{} - -void ListTrunkProvidersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTrunkProvidersNode = value["TrunkProviders"]["TrunkProvider"]; - for (auto valueTrunkProvidersTrunkProvider : allTrunkProvidersNode) - { - TrunkProvider trunkProvidersObject; - if(!valueTrunkProvidersTrunkProvider["ProviderName"].isNull()) - trunkProvidersObject.providerName = valueTrunkProvidersTrunkProvider["ProviderName"].asString(); - if(!valueTrunkProvidersTrunkProvider["Status"].isNull()) - trunkProvidersObject.status = valueTrunkProvidersTrunkProvider["Status"].asString(); - trunkProviders_.push_back(trunkProvidersObject); - } - 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 ListTrunkProvidersResult::getMessage()const -{ - return message_; -} - -int ListTrunkProvidersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListTrunkProvidersResult::getTrunkProviders()const -{ - return trunkProviders_; -} - -std::string ListTrunkProvidersResult::getCode()const -{ - return code_; -} - -bool ListTrunkProvidersResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListTrunksOfSkillGroupRequest.cc b/ccc/src/model/ListTrunksOfSkillGroupRequest.cc deleted file mode 100644 index fb34b9eaa..000000000 --- a/ccc/src/model/ListTrunksOfSkillGroupRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListTrunksOfSkillGroupRequest; - -ListTrunksOfSkillGroupRequest::ListTrunksOfSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListTrunksOfSkillGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTrunksOfSkillGroupRequest::~ListTrunksOfSkillGroupRequest() -{} - -std::string ListTrunksOfSkillGroupRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListTrunksOfSkillGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListTrunksOfSkillGroupRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ListTrunksOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -std::string ListTrunksOfSkillGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListTrunksOfSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListTrunksOfSkillGroupResult.cc b/ccc/src/model/ListTrunksOfSkillGroupResult.cc deleted file mode 100644 index 0c770baee..000000000 --- a/ccc/src/model/ListTrunksOfSkillGroupResult.cc +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListTrunksOfSkillGroupResult::ListTrunksOfSkillGroupResult() : - ServiceResult() -{} - -ListTrunksOfSkillGroupResult::ListTrunksOfSkillGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTrunksOfSkillGroupResult::~ListTrunksOfSkillGroupResult() -{} - -void ListTrunksOfSkillGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTrunkConfigsNode = value["TrunkConfigs"]["TrunkConfig"]; - for (auto valueTrunkConfigsTrunkConfig : allTrunkConfigsNode) - { - TrunkConfig trunkConfigsObject; - if(!valueTrunkConfigsTrunkConfig["ProviderName"].isNull()) - trunkConfigsObject.providerName = valueTrunkConfigsTrunkConfig["ProviderName"].asString(); - if(!valueTrunkConfigsTrunkConfig["Primary"].isNull()) - trunkConfigsObject.primary = valueTrunkConfigsTrunkConfig["Primary"].asString() == "true"; - trunkConfigs_.push_back(trunkConfigsObject); - } - 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 ListTrunksOfSkillGroupResult::getMessage()const -{ - return message_; -} - -int ListTrunksOfSkillGroupResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListTrunksOfSkillGroupResult::getTrunkConfigs()const -{ - return trunkConfigs_; -} - -std::string ListTrunksOfSkillGroupResult::getCode()const -{ - return code_; -} - -bool ListTrunksOfSkillGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListUnreachableContactsRequest.cc b/ccc/src/model/ListUnreachableContactsRequest.cc deleted file mode 100644 index e2ff38bd5..000000000 --- a/ccc/src/model/ListUnreachableContactsRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUnreachableContactsRequest::~ListUnreachableContactsRequest() -{} - -int ListUnreachableContactsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListUnreachableContactsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -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)); -} - diff --git a/ccc/src/model/ListUnreachableContactsResult.cc b/ccc/src/model/ListUnreachableContactsResult.cc deleted file mode 100644 index 4e9d2251c..000000000 --- a/ccc/src/model/ListUnreachableContactsResult.cc +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allListNode = unreachableContactsNode["List"]["UnreachableContact"]; - for (auto unreachableContactsNodeListUnreachableContact : allListNode) - { - UnreachableContacts::UnreachableContact unreachableContactObject; - if(!unreachableContactsNodeListUnreachableContact["TotalAttempts"].isNull()) - unreachableContactObject.totalAttempts = std::stoi(unreachableContactsNodeListUnreachableContact["TotalAttempts"].asString()); - auto allContactsNode = unreachableContactsNodeListUnreachableContact["Contacts"]["Contact"]; - for (auto unreachableContactsNodeListUnreachableContactContactsContact : allContactsNode) - { - UnreachableContacts::UnreachableContact::Contact contactsObject; - if(!unreachableContactsNodeListUnreachableContactContactsContact["ContactId"].isNull()) - contactsObject.contactId = unreachableContactsNodeListUnreachableContactContactsContact["ContactId"].asString(); - if(!unreachableContactsNodeListUnreachableContactContactsContact["ContactName"].isNull()) - contactsObject.contactName = unreachableContactsNodeListUnreachableContactContactsContact["ContactName"].asString(); - if(!unreachableContactsNodeListUnreachableContactContactsContact["Role"].isNull()) - contactsObject.role = unreachableContactsNodeListUnreachableContactContactsContact["Role"].asString(); - if(!unreachableContactsNodeListUnreachableContactContactsContact["PhoneNumber"].isNull()) - contactsObject.phoneNumber = unreachableContactsNodeListUnreachableContactContactsContact["PhoneNumber"].asString(); - if(!unreachableContactsNodeListUnreachableContactContactsContact["State"].isNull()) - contactsObject.state = unreachableContactsNodeListUnreachableContactContactsContact["State"].asString(); - if(!unreachableContactsNodeListUnreachableContactContactsContact["ReferenceId"].isNull()) - contactsObject.referenceId = unreachableContactsNodeListUnreachableContactContactsContact["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/ListUsersOfSkillGroupRequest.cc b/ccc/src/model/ListUsersOfSkillGroupRequest.cc deleted file mode 100644 index 39099b545..000000000 --- a/ccc/src/model/ListUsersOfSkillGroupRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListUsersOfSkillGroupRequest; - -ListUsersOfSkillGroupRequest::ListUsersOfSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListUsersOfSkillGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUsersOfSkillGroupRequest::~ListUsersOfSkillGroupRequest() -{} - -int ListUsersOfSkillGroupRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListUsersOfSkillGroupRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListUsersOfSkillGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListUsersOfSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListUsersOfSkillGroupRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListUsersOfSkillGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListUsersOfSkillGroupRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ListUsersOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -int ListUsersOfSkillGroupRequest::getPageSize()const -{ - return pageSize_; -} - -void ListUsersOfSkillGroupRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListUsersOfSkillGroupResult.cc b/ccc/src/model/ListUsersOfSkillGroupResult.cc deleted file mode 100644 index 7c1cb9a6d..000000000 --- a/ccc/src/model/ListUsersOfSkillGroupResult.cc +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListUsersOfSkillGroupResult::ListUsersOfSkillGroupResult() : - ServiceResult() -{} - -ListUsersOfSkillGroupResult::ListUsersOfSkillGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListUsersOfSkillGroupResult::~ListUsersOfSkillGroupResult() -{} - -void ListUsersOfSkillGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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 allListNode = usersNode["List"]["User"]; - for (auto usersNodeListUser : allListNode) - { - Users::User userObject; - if(!usersNodeListUser["UserId"].isNull()) - userObject.userId = usersNodeListUser["UserId"].asString(); - if(!usersNodeListUser["RamId"].isNull()) - userObject.ramId = usersNodeListUser["RamId"].asString(); - if(!usersNodeListUser["InstanceId"].isNull()) - userObject.instanceId = usersNodeListUser["InstanceId"].asString(); - auto allRolesNode = usersNodeListUser["Roles"]["Role"]; - for (auto usersNodeListUserRolesRole : allRolesNode) - { - Users::User::Role rolesObject; - if(!usersNodeListUserRolesRole["RoleId"].isNull()) - rolesObject.roleId = usersNodeListUserRolesRole["RoleId"].asString(); - if(!usersNodeListUserRolesRole["InstanceId"].isNull()) - rolesObject.instanceId = usersNodeListUserRolesRole["InstanceId"].asString(); - if(!usersNodeListUserRolesRole["RoleName"].isNull()) - rolesObject.roleName = usersNodeListUserRolesRole["RoleName"].asString(); - if(!usersNodeListUserRolesRole["RoleDescription"].isNull()) - rolesObject.roleDescription = usersNodeListUserRolesRole["RoleDescription"].asString(); - if(!usersNodeListUserRolesRole["UserCount"].isNull()) - rolesObject.userCount = std::stoi(usersNodeListUserRolesRole["UserCount"].asString()); - auto allPrivilegesNode = usersNodeListUserRolesRole["Privileges"]["Privilege"]; - for (auto usersNodeListUserRolesRolePrivilegesPrivilege : allPrivilegesNode) - { - Users::User::Role::Privilege privilegesObject; - if(!usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeId"].isNull()) - privilegesObject.privilegeId = usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeId"].asString(); - if(!usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeName"].isNull()) - privilegesObject.privilegeName = usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeName"].asString(); - if(!usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeDescription"].isNull()) - privilegesObject.privilegeDescription = usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeDescription"].asString(); - rolesObject.privileges.push_back(privilegesObject); - } - userObject.roles.push_back(rolesObject); - } - auto allSkillLevelsNode = usersNodeListUser["SkillLevels"]["SkillLevel"]; - for (auto usersNodeListUserSkillLevelsSkillLevel : allSkillLevelsNode) - { - Users::User::SkillLevel skillLevelsObject; - if(!usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].isNull()) - skillLevelsObject.skillLevelId = usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].asString(); - if(!usersNodeListUserSkillLevelsSkillLevel["Level"].isNull()) - skillLevelsObject.level = std::stoi(usersNodeListUserSkillLevelsSkillLevel["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_; -} - -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 deleted file mode 100644 index 8e8986ca2..000000000 --- a/ccc/src/model/ListUsersResult.cc +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListUsersResult::ListUsersResult() : - ServiceResult() -{} - -ListUsersResult::ListUsersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListUsersResult::~ListUsersResult() -{} - -void ListUsersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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 allListNode = usersNode["List"]["User"]; - for (auto usersNodeListUser : allListNode) - { - Users::User userObject; - if(!usersNodeListUser["UserId"].isNull()) - userObject.userId = usersNodeListUser["UserId"].asString(); - if(!usersNodeListUser["RamId"].isNull()) - userObject.ramId = usersNodeListUser["RamId"].asString(); - if(!usersNodeListUser["InstanceId"].isNull()) - userObject.instanceId = usersNodeListUser["InstanceId"].asString(); - if(!usersNodeListUser["Primary"].isNull()) - userObject.primary = usersNodeListUser["Primary"].asString() == "true"; - if(!usersNodeListUser["PrivateOutboundNumberId"].isNull()) - userObject.privateOutboundNumberId = usersNodeListUser["PrivateOutboundNumberId"].asString(); - auto allRolesNode = usersNodeListUser["Roles"]["Role"]; - for (auto usersNodeListUserRolesRole : allRolesNode) - { - Users::User::Role rolesObject; - if(!usersNodeListUserRolesRole["RoleId"].isNull()) - rolesObject.roleId = usersNodeListUserRolesRole["RoleId"].asString(); - if(!usersNodeListUserRolesRole["InstanceId"].isNull()) - rolesObject.instanceId = usersNodeListUserRolesRole["InstanceId"].asString(); - if(!usersNodeListUserRolesRole["RoleName"].isNull()) - rolesObject.roleName = usersNodeListUserRolesRole["RoleName"].asString(); - if(!usersNodeListUserRolesRole["RoleDescription"].isNull()) - rolesObject.roleDescription = usersNodeListUserRolesRole["RoleDescription"].asString(); - userObject.roles.push_back(rolesObject); - } - auto allSkillLevelsNode = usersNodeListUser["SkillLevels"]["SkillLevel"]; - for (auto usersNodeListUserSkillLevelsSkillLevel : allSkillLevelsNode) - { - Users::User::SkillLevel skillLevelsObject; - if(!usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].isNull()) - skillLevelsObject.skillLevelId = usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].asString(); - if(!usersNodeListUserSkillLevelsSkillLevel["Level"].isNull()) - skillLevelsObject.level = std::stoi(usersNodeListUserSkillLevelsSkillLevel["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_; -} - -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/ListVoiceAppraiseRequest.cc b/ccc/src/model/ListVoiceAppraiseRequest.cc deleted file mode 100644 index bafd2d0dd..000000000 --- a/ccc/src/model/ListVoiceAppraiseRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ListVoiceAppraiseRequest; - -ListVoiceAppraiseRequest::ListVoiceAppraiseRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListVoiceAppraise") -{ - setMethod(HttpRequest::Method::Post); -} - -ListVoiceAppraiseRequest::~ListVoiceAppraiseRequest() -{} - -std::string ListVoiceAppraiseRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListVoiceAppraiseRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListVoiceAppraiseRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListVoiceAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ListVoiceAppraiseResult.cc b/ccc/src/model/ListVoiceAppraiseResult.cc deleted file mode 100644 index 7c9c9f9d8..000000000 --- a/ccc/src/model/ListVoiceAppraiseResult.cc +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ListVoiceAppraiseResult::ListVoiceAppraiseResult() : - ServiceResult() -{} - -ListVoiceAppraiseResult::ListVoiceAppraiseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListVoiceAppraiseResult::~ListVoiceAppraiseResult() -{} - -void ListVoiceAppraiseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto contactFlowNode = value["ContactFlow"]; - if(!contactFlowNode["ContactFlowId"].isNull()) - contactFlow_.contactFlowId = contactFlowNode["ContactFlowId"].asString(); - if(!contactFlowNode["InstanceId"].isNull()) - contactFlow_.instanceId = contactFlowNode["InstanceId"].asString(); - if(!contactFlowNode["ContactFlowName"].isNull()) - contactFlow_.contactFlowName = contactFlowNode["ContactFlowName"].asString(); - if(!contactFlowNode["ContactFlowDescription"].isNull()) - contactFlow_.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); - if(!contactFlowNode["Type"].isNull()) - contactFlow_.type = contactFlowNode["Type"].asString(); - if(!contactFlowNode["AppliedVersion"].isNull()) - contactFlow_.appliedVersion = contactFlowNode["AppliedVersion"].asString(); - auto allVersionsNode = contactFlowNode["Versions"]["ContactFlowVersion"]; - for (auto contactFlowNodeVersionsContactFlowVersion : allVersionsNode) - { - ContactFlow::ContactFlowVersion contactFlowVersionObject; - if(!contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionId"].isNull()) - contactFlowVersionObject.contactFlowVersionId = contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionId"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["Version"].isNull()) - contactFlowVersionObject.version = contactFlowNodeVersionsContactFlowVersion["Version"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionDescription"].isNull()) - contactFlowVersionObject.contactFlowVersionDescription = contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionDescription"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["Content"].isNull()) - contactFlowVersionObject.content = contactFlowNodeVersionsContactFlowVersion["Content"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["LastModified"].isNull()) - contactFlowVersionObject.lastModified = contactFlowNodeVersionsContactFlowVersion["LastModified"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["LastModifiedBy"].isNull()) - contactFlowVersionObject.lastModifiedBy = contactFlowNodeVersionsContactFlowVersion["LastModifiedBy"].asString(); - if(!contactFlowNodeVersionsContactFlowVersion["Status"].isNull()) - contactFlowVersionObject.status = contactFlowNodeVersionsContactFlowVersion["Status"].asString(); - contactFlow_.versions.push_back(contactFlowVersionObject); - } - auto allPhoneNumbersNode = contactFlowNode["PhoneNumbers"]["PhoneNumber"]; - for (auto contactFlowNodePhoneNumbersPhoneNumber : allPhoneNumbersNode) - { - ContactFlow::PhoneNumber phoneNumberObject; - if(!contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) - phoneNumberObject.phoneNumberId = contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberId"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["InstanceId"].isNull()) - phoneNumberObject.instanceId = contactFlowNodePhoneNumbersPhoneNumber["InstanceId"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["Number"].isNull()) - phoneNumberObject.number = contactFlowNodePhoneNumbersPhoneNumber["Number"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) - phoneNumberObject.phoneNumberDescription = contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); - if(!contactFlowNodePhoneNumbersPhoneNumber["RemainingTime"].isNull()) - phoneNumberObject.remainingTime = std::stoi(contactFlowNodePhoneNumbersPhoneNumber["RemainingTime"].asString()); - if(!contactFlowNodePhoneNumbersPhoneNumber["Trunks"].isNull()) - phoneNumberObject.trunks = std::stoi(contactFlowNodePhoneNumbersPhoneNumber["Trunks"].asString()); - contactFlow_.phoneNumbers.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()); - if(!value["Notice"].isNull()) - notice_ = value["Notice"].asString(); - -} - -std::string ListVoiceAppraiseResult::getMessage()const -{ - return message_; -} - -std::string ListVoiceAppraiseResult::getNotice()const -{ - return notice_; -} - -int ListVoiceAppraiseResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -ListVoiceAppraiseResult::ContactFlow ListVoiceAppraiseResult::getContactFlow()const -{ - return contactFlow_; -} - -std::string ListVoiceAppraiseResult::getCode()const -{ - return code_; -} - -bool ListVoiceAppraiseResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/MakeCallRequest.cc b/ccc/src/model/MakeCallRequest.cc new file mode 100644 index 000000000..044cdb187 --- /dev/null +++ b/ccc/src/model/MakeCallRequest.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::MakeCallRequest; + +MakeCallRequest::MakeCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "MakeCall") +{ + setMethod(HttpRequest::Method::Post); +} + +MakeCallRequest::~MakeCallRequest() +{} + +std::string MakeCallRequest::getCallee()const +{ + return callee_; +} + +void MakeCallRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setParameter("Callee", callee); +} + +std::string MakeCallRequest::getUserId()const +{ + return userId_; +} + +void MakeCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string MakeCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void MakeCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +int MakeCallRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void MakeCallRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); +} + +std::string MakeCallRequest::getCaller()const +{ + return caller_; +} + +void MakeCallRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setParameter("Caller", caller); +} + +std::string MakeCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void MakeCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/MakeCallResult.cc b/ccc/src/model/MakeCallResult.cc new file mode 100644 index 000000000..e0a5ebcc3 --- /dev/null +++ b/ccc/src/model/MakeCallResult.cc @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +MakeCallResult::MakeCallResult() : + ServiceResult() +{} + +MakeCallResult::MakeCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MakeCallResult::~MakeCallResult() +{} + +void MakeCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string MakeCallResult::getMessage()const +{ + return message_; +} + +int MakeCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector MakeCallResult::getParams()const +{ + return params_; +} + +MakeCallResult::Data MakeCallResult::getData()const +{ + return data_; +} + +std::string MakeCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ModifyAgentDeviceRequest.cc b/ccc/src/model/ModifyAgentDeviceRequest.cc deleted file mode 100644 index 8143cd6ea..000000000 --- a/ccc/src/model/ModifyAgentDeviceRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ModifyAgentDeviceRequest; - -ModifyAgentDeviceRequest::ModifyAgentDeviceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifyAgentDevice") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAgentDeviceRequest::~ModifyAgentDeviceRequest() -{} - -int ModifyAgentDeviceRequest::getIsLogin()const -{ - return isLogin_; -} - -void ModifyAgentDeviceRequest::setIsLogin(int isLogin) -{ - isLogin_ = isLogin; - setParameter("IsLogin", std::to_string(isLogin)); -} - -std::string ModifyAgentDeviceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyAgentDeviceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -long ModifyAgentDeviceRequest::getAgentDeviceId()const -{ - return agentDeviceId_; -} - -void ModifyAgentDeviceRequest::setAgentDeviceId(long agentDeviceId) -{ - agentDeviceId_ = agentDeviceId; - setParameter("AgentDeviceId", std::to_string(agentDeviceId)); -} - -std::string ModifyAgentDeviceRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifyAgentDeviceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/ModifyCabInstanceRequest.cc b/ccc/src/model/ModifyCabInstanceRequest.cc deleted file mode 100644 index e367343ba..000000000 --- a/ccc/src/model/ModifyCabInstanceRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ModifyCabInstanceRequest; - -ModifyCabInstanceRequest::ModifyCabInstanceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifyCabInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCabInstanceRequest::~ModifyCabInstanceRequest() -{} - -int ModifyCabInstanceRequest::getMaxConcurrentConversation()const -{ - return maxConcurrentConversation_; -} - -void ModifyCabInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) -{ - maxConcurrentConversation_ = maxConcurrentConversation; - setParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation)); -} - -std::string ModifyCabInstanceRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifyCabInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ModifyCabInstanceRequest::getInstanceName()const -{ - return instanceName_; -} - -void ModifyCabInstanceRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); -} - -std::string ModifyCabInstanceRequest::getCallCenterInstanceId()const -{ - return callCenterInstanceId_; -} - -void ModifyCabInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId) -{ - callCenterInstanceId_ = callCenterInstanceId; - setParameter("CallCenterInstanceId", callCenterInstanceId); -} - -std::string ModifyCabInstanceRequest::getInstanceDescription()const -{ - return instanceDescription_; -} - -void ModifyCabInstanceRequest::setInstanceDescription(const std::string& instanceDescription) -{ - instanceDescription_ = instanceDescription; - setParameter("InstanceDescription", instanceDescription); -} - diff --git a/ccc/src/model/ModifyCabInstanceResult.cc b/ccc/src/model/ModifyCabInstanceResult.cc deleted file mode 100644 index 9d5f18df4..000000000 --- a/ccc/src/model/ModifyCabInstanceResult.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ModifyCabInstanceResult::ModifyCabInstanceResult() : - ServiceResult() -{} - -ModifyCabInstanceResult::ModifyCabInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyCabInstanceResult::~ModifyCabInstanceResult() -{} - -void ModifyCabInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto instanceNode = value["Instance"]; - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["InstanceName"].isNull()) - instance_.instanceName = instanceNode["InstanceName"].asString(); - if(!instanceNode["InstanceDescription"].isNull()) - instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); - if(!instanceNode["MaxConcurrentConversation"].isNull()) - instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); - if(!instanceNode["Owner"].isNull()) - instance_.owner = instanceNode["Owner"].asString(); - if(!instanceNode["CreationTime"].isNull()) - instance_.creationTime = std::stol(instanceNode["CreationTime"].asString()); - if(!instanceNode["CallCenterInstanceId"].isNull()) - instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].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 ModifyCabInstanceResult::getMessage()const -{ - return message_; -} - -ModifyCabInstanceResult::Instance ModifyCabInstanceResult::getInstance()const -{ - return instance_; -} - -int ModifyCabInstanceResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyCabInstanceResult::getCode()const -{ - return code_; -} - -bool ModifyCabInstanceResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ModifyPhoneNumberRequest.cc b/ccc/src/model/ModifyPhoneNumberRequest.cc deleted file mode 100644 index ad42929c9..000000000 --- a/ccc/src/model/ModifyPhoneNumberRequest.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::CCC::Model::ModifyPhoneNumberRequest; - -ModifyPhoneNumberRequest::ModifyPhoneNumberRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifyPhoneNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyPhoneNumberRequest::~ModifyPhoneNumberRequest() -{} - -std::string ModifyPhoneNumberRequest::getContactFlowId()const -{ - return contactFlowId_; -} - -void ModifyPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId) -{ - contactFlowId_ = contactFlowId; - setParameter("ContactFlowId", contactFlowId); -} - -std::string ModifyPhoneNumberRequest::getUsage()const -{ - return usage_; -} - -void ModifyPhoneNumberRequest::setUsage(const std::string& usage) -{ - usage_ = usage; - setParameter("Usage", usage); -} - -std::string ModifyPhoneNumberRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ModifyPhoneNumberRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifyPhoneNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ModifyPhoneNumberRequest::getPhoneNumberId()const -{ - return phoneNumberId_; -} - -void ModifyPhoneNumberRequest::setPhoneNumberId(const std::string& phoneNumberId) -{ - phoneNumberId_ = phoneNumberId; - setParameter("PhoneNumberId", phoneNumberId); -} - -std::vector ModifyPhoneNumberRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ModifyPhoneNumberRequest::setSkillGroupId(const std::vector& skillGroupId) -{ - skillGroupId_ = skillGroupId; - for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } -} - diff --git a/ccc/src/model/ModifyPhoneNumberResult.cc b/ccc/src/model/ModifyPhoneNumberResult.cc deleted file mode 100644 index 64f6a9474..000000000 --- a/ccc/src/model/ModifyPhoneNumberResult.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -ModifyPhoneNumberResult::ModifyPhoneNumberResult() : - ServiceResult() -{} - -ModifyPhoneNumberResult::ModifyPhoneNumberResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyPhoneNumberResult::~ModifyPhoneNumberResult() -{} - -void ModifyPhoneNumberResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - 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 allSkillGroupsNode = phoneNumberNode["SkillGroups"]["SkillGroup"]; - for (auto phoneNumberNodeSkillGroupsSkillGroup : allSkillGroupsNode) - { - PhoneNumber::SkillGroup skillGroupObject; - if(!phoneNumberNodeSkillGroupsSkillGroup["SkillGroupId"].isNull()) - skillGroupObject.skillGroupId = phoneNumberNodeSkillGroupsSkillGroup["SkillGroupId"].asString(); - if(!phoneNumberNodeSkillGroupsSkillGroup["SkillGroupName"].isNull()) - skillGroupObject.skillGroupName = phoneNumberNodeSkillGroupsSkillGroup["SkillGroupName"].asString(); - phoneNumber_.skillGroups.push_back(skillGroupObject); - } - 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_; -} - -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/ModifyPhoneTagsRequest.cc b/ccc/src/model/ModifyPhoneTagsRequest.cc deleted file mode 100644 index 6991bbfe0..000000000 --- a/ccc/src/model/ModifyPhoneTagsRequest.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ModifyPhoneTagsRequest; - -ModifyPhoneTagsRequest::ModifyPhoneTagsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifyPhoneTags") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyPhoneTagsRequest::~ModifyPhoneTagsRequest() -{} - -std::string ModifyPhoneTagsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifyPhoneTagsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector ModifyPhoneTagsRequest::getSkillGroupIdList()const -{ - return skillGroupIdList_; -} - -void ModifyPhoneTagsRequest::setSkillGroupIdList(const std::vector& skillGroupIdList) -{ - skillGroupIdList_ = skillGroupIdList; - for(int dep1 = 0; dep1!= skillGroupIdList.size(); dep1++) { - setParameter("SkillGroupIdList."+ std::to_string(dep1), skillGroupIdList.at(dep1)); - } -} - -std::string ModifyPhoneTagsRequest::getServiceTag()const -{ - return serviceTag_; -} - -void ModifyPhoneTagsRequest::setServiceTag(const std::string& serviceTag) -{ - serviceTag_ = serviceTag; - setParameter("ServiceTag", serviceTag); -} - -std::string ModifyPhoneTagsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyPhoneTagsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ModifyPhoneTagsResult.cc b/ccc/src/model/ModifyPhoneTagsResult.cc deleted file mode 100644 index b949e2f13..000000000 --- a/ccc/src/model/ModifyPhoneTagsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ModifyPhoneTagsResult::ModifyPhoneTagsResult() : - ServiceResult() -{} - -ModifyPhoneTagsResult::ModifyPhoneTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyPhoneTagsResult::~ModifyPhoneTagsResult() -{} - -void ModifyPhoneTagsResult::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 ModifyPhoneTagsResult::getMessage()const -{ - return message_; -} - -int ModifyPhoneTagsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyPhoneTagsResult::getCode()const -{ - return code_; -} - -bool ModifyPhoneTagsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc b/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc deleted file mode 100644 index 650cfeeb1..000000000 --- a/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ModifyPrimaryTrunksOfSkillGroupRequest; - -ModifyPrimaryTrunksOfSkillGroupRequest::ModifyPrimaryTrunksOfSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifyPrimaryTrunksOfSkillGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyPrimaryTrunksOfSkillGroupRequest::~ModifyPrimaryTrunksOfSkillGroupRequest() -{} - -std::string ModifyPrimaryTrunksOfSkillGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyPrimaryTrunksOfSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::vector ModifyPrimaryTrunksOfSkillGroupRequest::getPrimaryProviderName()const -{ - return primaryProviderName_; -} - -void ModifyPrimaryTrunksOfSkillGroupRequest::setPrimaryProviderName(const std::vector& primaryProviderName) -{ - primaryProviderName_ = primaryProviderName; - for(int dep1 = 0; dep1!= primaryProviderName.size(); dep1++) { - setParameter("PrimaryProviderName."+ std::to_string(dep1), primaryProviderName.at(dep1)); - } -} - -std::string ModifyPrimaryTrunksOfSkillGroupRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifyPrimaryTrunksOfSkillGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ModifyPrimaryTrunksOfSkillGroupRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ModifyPrimaryTrunksOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - diff --git a/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc b/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc deleted file mode 100644 index bbac8e997..000000000 --- a/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ModifyPrimaryTrunksOfSkillGroupResult::ModifyPrimaryTrunksOfSkillGroupResult() : - ServiceResult() -{} - -ModifyPrimaryTrunksOfSkillGroupResult::ModifyPrimaryTrunksOfSkillGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyPrimaryTrunksOfSkillGroupResult::~ModifyPrimaryTrunksOfSkillGroupResult() -{} - -void ModifyPrimaryTrunksOfSkillGroupResult::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 ModifyPrimaryTrunksOfSkillGroupResult::getMessage()const -{ - return message_; -} - -int ModifyPrimaryTrunksOfSkillGroupResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyPrimaryTrunksOfSkillGroupResult::getCode()const -{ - return code_; -} - -bool ModifyPrimaryTrunksOfSkillGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ModifyPrivacyNumberCallDetailRequest.cc b/ccc/src/model/ModifyPrivacyNumberCallDetailRequest.cc deleted file mode 100644 index 00a845d7a..000000000 --- a/ccc/src/model/ModifyPrivacyNumberCallDetailRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ModifyPrivacyNumberCallDetailRequest; - -ModifyPrivacyNumberCallDetailRequest::ModifyPrivacyNumberCallDetailRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifyPrivacyNumberCallDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyPrivacyNumberCallDetailRequest::~ModifyPrivacyNumberCallDetailRequest() -{} - -std::string ModifyPrivacyNumberCallDetailRequest::getCallId()const -{ - return callId_; -} - -void ModifyPrivacyNumberCallDetailRequest::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); -} - -std::string ModifyPrivacyNumberCallDetailRequest::getContactId()const -{ - return contactId_; -} - -void ModifyPrivacyNumberCallDetailRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -std::string ModifyPrivacyNumberCallDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyPrivacyNumberCallDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ModifyPrivacyNumberCallDetailRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifyPrivacyNumberCallDetailRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc b/ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc deleted file mode 100644 index fb6d3085a..000000000 --- a/ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ModifyPrivacyNumberCallDetailResult::ModifyPrivacyNumberCallDetailResult() : - ServiceResult() -{} - -ModifyPrivacyNumberCallDetailResult::ModifyPrivacyNumberCallDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyPrivacyNumberCallDetailResult::~ModifyPrivacyNumberCallDetailResult() -{} - -void ModifyPrivacyNumberCallDetailResult::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 ModifyPrivacyNumberCallDetailResult::getMessage()const -{ - return message_; -} - -int ModifyPrivacyNumberCallDetailResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyPrivacyNumberCallDetailResult::getCode()const -{ - return code_; -} - -bool ModifyPrivacyNumberCallDetailResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ModifyScenarioRequest.cc b/ccc/src/model/ModifyScenarioRequest.cc deleted file mode 100644 index 49c5796ca..000000000 --- a/ccc/src/model/ModifyScenarioRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyScenarioRequest::~ModifyScenarioRequest() -{} - -std::string ModifyScenarioRequest::getVariables()const -{ - return variables_; -} - -void ModifyScenarioRequest::setVariables(const std::string& variables) -{ - variables_ = variables; - setParameter("Variables", variables); -} - -std::string ModifyScenarioRequest::getDescription()const -{ - return description_; -} - -void ModifyScenarioRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -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::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 deleted file mode 100644 index 7b24b0ce2..000000000 --- a/ccc/src/model/ModifyScenarioResult.cc +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allSurveysNode = scenarioNode["Surveys"]["Survey"]; - for (auto scenarioNodeSurveysSurvey : allSurveysNode) - { - Scenario::Survey surveyObject; - if(!scenarioNodeSurveysSurvey["SurveyId"].isNull()) - surveyObject.surveyId = scenarioNodeSurveysSurvey["SurveyId"].asString(); - if(!scenarioNodeSurveysSurvey["SurveyName"].isNull()) - surveyObject.surveyName = scenarioNodeSurveysSurvey["SurveyName"].asString(); - if(!scenarioNodeSurveysSurvey["SurveyDescription"].isNull()) - surveyObject.surveyDescription = scenarioNodeSurveysSurvey["SurveyDescription"].asString(); - if(!scenarioNodeSurveysSurvey["Role"].isNull()) - surveyObject.role = scenarioNodeSurveysSurvey["Role"].asString(); - if(!scenarioNodeSurveysSurvey["Round"].isNull()) - surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString()); - if(!scenarioNodeSurveysSurvey["BeebotId"].isNull()) - surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString(); - auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"]; - for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode) - { - Scenario::Survey::IntentNode intentsObject; - if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull()) - intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString(); - if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull()) - intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString(); - surveyObject.intents.push_back(intentsObject); - } - scenario_.surveys.push_back(surveyObject); - } - auto allVariablesNode = scenarioNode["Variables"]["KeyValuePair"]; - for (auto scenarioNodeVariablesKeyValuePair : allVariablesNode) - { - Scenario::KeyValuePair keyValuePairObject; - if(!scenarioNodeVariablesKeyValuePair["Key"].isNull()) - keyValuePairObject.key = scenarioNodeVariablesKeyValuePair["Key"].asString(); - if(!scenarioNodeVariablesKeyValuePair["Value"].isNull()) - keyValuePairObject.value = scenarioNodeVariablesKeyValuePair["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 allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; - for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) - { - Scenario::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); - if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) - timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["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/ModifySkillGroupOfUserRequest.cc b/ccc/src/model/ModifySkillGroupOfUserRequest.cc deleted file mode 100644 index aa63f9507..000000000 --- a/ccc/src/model/ModifySkillGroupOfUserRequest.cc +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ModifySkillGroupOfUserRequest; - -ModifySkillGroupOfUserRequest::ModifySkillGroupOfUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifySkillGroupOfUser") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySkillGroupOfUserRequest::~ModifySkillGroupOfUserRequest() -{} - -std::vector ModifySkillGroupOfUserRequest::getRoleId()const -{ - return roleId_; -} - -void ModifySkillGroupOfUserRequest::setRoleId(const std::vector& roleId) -{ - roleId_ = roleId; - for(int dep1 = 0; dep1!= roleId.size(); dep1++) { - setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); - } -} - -std::string ModifySkillGroupOfUserRequest::getUserId()const -{ - return userId_; -} - -void ModifySkillGroupOfUserRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - -std::string ModifySkillGroupOfUserRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifySkillGroupOfUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::vector ModifySkillGroupOfUserRequest::getSkillLevel()const -{ - return skillLevel_; -} - -void ModifySkillGroupOfUserRequest::setSkillLevel(const std::vector& skillLevel) -{ - skillLevel_ = skillLevel; - for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { - setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); - } -} - -std::string ModifySkillGroupOfUserRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifySkillGroupOfUserRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector ModifySkillGroupOfUserRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ModifySkillGroupOfUserRequest::setSkillGroupId(const std::vector& skillGroupId) -{ - skillGroupId_ = skillGroupId; - for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } -} - diff --git a/ccc/src/model/ModifySkillGroupOfUserResult.cc b/ccc/src/model/ModifySkillGroupOfUserResult.cc deleted file mode 100644 index 03ba3fc67..000000000 --- a/ccc/src/model/ModifySkillGroupOfUserResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ModifySkillGroupOfUserResult::ModifySkillGroupOfUserResult() : - ServiceResult() -{} - -ModifySkillGroupOfUserResult::ModifySkillGroupOfUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySkillGroupOfUserResult::~ModifySkillGroupOfUserResult() -{} - -void ModifySkillGroupOfUserResult::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 ModifySkillGroupOfUserResult::getMessage()const -{ - return message_; -} - -int ModifySkillGroupOfUserResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifySkillGroupOfUserResult::getCode()const -{ - return code_; -} - -bool ModifySkillGroupOfUserResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc b/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc deleted file mode 100644 index 978e39b45..000000000 --- a/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ModifySkillGroupOutboundNumbersRequest; - -ModifySkillGroupOutboundNumbersRequest::ModifySkillGroupOutboundNumbersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifySkillGroupOutboundNumbers") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySkillGroupOutboundNumbersRequest::~ModifySkillGroupOutboundNumbersRequest() -{} - -int ModifySkillGroupOutboundNumbersRequest::getOperationType()const -{ - return operationType_; -} - -void ModifySkillGroupOutboundNumbersRequest::setOperationType(int operationType) -{ - operationType_ = operationType; - setParameter("OperationType", std::to_string(operationType)); -} - -std::string ModifySkillGroupOutboundNumbersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifySkillGroupOutboundNumbersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ModifySkillGroupOutboundNumbersRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifySkillGroupOutboundNumbersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector ModifySkillGroupOutboundNumbersRequest::getOutboundPhoneNumberId()const -{ - return outboundPhoneNumberId_; -} - -void ModifySkillGroupOutboundNumbersRequest::setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId) -{ - outboundPhoneNumberId_ = outboundPhoneNumberId; - for(int dep1 = 0; dep1!= outboundPhoneNumberId.size(); dep1++) { - setParameter("OutboundPhoneNumberId."+ std::to_string(dep1), outboundPhoneNumberId.at(dep1)); - } -} - -std::string ModifySkillGroupOutboundNumbersRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ModifySkillGroupOutboundNumbersRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - diff --git a/ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc b/ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc deleted file mode 100644 index c26f1b4d6..000000000 --- a/ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ModifySkillGroupOutboundNumbersResult::ModifySkillGroupOutboundNumbersResult() : - ServiceResult() -{} - -ModifySkillGroupOutboundNumbersResult::ModifySkillGroupOutboundNumbersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySkillGroupOutboundNumbersResult::~ModifySkillGroupOutboundNumbersResult() -{} - -void ModifySkillGroupOutboundNumbersResult::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 ModifySkillGroupOutboundNumbersResult::getMessage()const -{ - return message_; -} - -int ModifySkillGroupOutboundNumbersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifySkillGroupOutboundNumbersResult::getCode()const -{ - return code_; -} - -bool ModifySkillGroupOutboundNumbersResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ModifySkillGroupRequest.cc b/ccc/src/model/ModifySkillGroupRequest.cc deleted file mode 100644 index cd362bd28..000000000 --- a/ccc/src/model/ModifySkillGroupRequest.cc +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySkillGroupRequest::~ModifySkillGroupRequest() -{} - -bool ModifySkillGroupRequest::getAllowPrivateOutboundNumber()const -{ - return allowPrivateOutboundNumber_; -} - -void ModifySkillGroupRequest::setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber) -{ - allowPrivateOutboundNumber_ = allowPrivateOutboundNumber; - setParameter("AllowPrivateOutboundNumber", allowPrivateOutboundNumber ? "true" : "false"); -} - -std::string ModifySkillGroupRequest::getDescription()const -{ - return description_; -} - -void ModifySkillGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string ModifySkillGroupRequest::getRoutingStrategy()const -{ - return routingStrategy_; -} - -void ModifySkillGroupRequest::setRoutingStrategy(const std::string& routingStrategy) -{ - routingStrategy_ = routingStrategy; - setParameter("RoutingStrategy", routingStrategy); -} - -std::vector ModifySkillGroupRequest::getUserId()const -{ - return userId_; -} - -void ModifySkillGroupRequest::setUserId(const std::vector& userId) -{ - userId_ = userId; - for(int dep1 = 0; dep1!= userId.size(); dep1++) { - setParameter("UserId."+ std::to_string(dep1), userId.at(dep1)); - } -} - -std::string ModifySkillGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifySkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::vector ModifySkillGroupRequest::getSkillLevel()const -{ - return skillLevel_; -} - -void ModifySkillGroupRequest::setSkillLevel(const std::vector& skillLevel) -{ - skillLevel_ = skillLevel; - for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { - setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); - } -} - -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 dep1 = 0; dep1!= outboundPhoneNumberId.size(); dep1++) { - setParameter("OutboundPhoneNumberId."+ std::to_string(dep1), outboundPhoneNumberId.at(dep1)); - } -} - -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); -} - diff --git a/ccc/src/model/ModifySkillGroupResult.cc b/ccc/src/model/ModifySkillGroupResult.cc deleted file mode 100644 index 98818bb7b..000000000 --- a/ccc/src/model/ModifySkillGroupResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 580e91313..000000000 --- a/ccc/src/model/ModifySurveyRequest.cc +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySurveyRequest::~ModifySurveyRequest() -{} - -std::string ModifySurveyRequest::getRole()const -{ - return role_; -} - -void ModifySurveyRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); -} - -std::string ModifySurveyRequest::getDescription()const -{ - return description_; -} - -void ModifySurveyRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string ModifySurveyRequest::getFlowJson()const -{ - return flowJson_; -} - -void ModifySurveyRequest::setFlowJson(const std::string& flowJson) -{ - flowJson_ = flowJson; - setParameter("FlowJson", flowJson); -} - -std::string ModifySurveyRequest::getGlobalQuestions()const -{ - return globalQuestions_; -} - -void ModifySurveyRequest::setGlobalQuestions(const std::string& globalQuestions) -{ - globalQuestions_ = globalQuestions; - setParameter("GlobalQuestions", globalQuestions); -} - -std::string ModifySurveyRequest::getCorpora()const -{ - return corpora_; -} - -void ModifySurveyRequest::setCorpora(const std::string& corpora) -{ - corpora_ = corpora; - setParameter("Corpora", corpora); -} - -std::string ModifySurveyRequest::getScenarioId()const -{ - return scenarioId_; -} - -void ModifySurveyRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); -} - -std::string ModifySurveyRequest::getSurveyId()const -{ - return surveyId_; -} - -void ModifySurveyRequest::setSurveyId(const std::string& surveyId) -{ - surveyId_ = surveyId; - setParameter("SurveyId", surveyId); -} - -std::string ModifySurveyRequest::getSpeechOptimizationParam()const -{ - return speechOptimizationParam_; -} - -void ModifySurveyRequest::setSpeechOptimizationParam(const std::string& speechOptimizationParam) -{ - speechOptimizationParam_ = speechOptimizationParam; - setParameter("SpeechOptimizationParam", speechOptimizationParam); -} - -std::string ModifySurveyRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifySurveyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ModifySurveyRequest::getRound()const -{ - return round_; -} - -void ModifySurveyRequest::setRound(int round) -{ - round_ = round; - setParameter("Round", std::to_string(round)); -} - -std::string ModifySurveyRequest::getName()const -{ - return name_; -} - -void ModifySurveyRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -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 deleted file mode 100644 index 57f826298..000000000 --- a/ccc/src/model/ModifySurveyResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 06f9b1cc8..000000000 --- a/ccc/src/model/ModifyUserRequest.cc +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyUserRequest::~ModifyUserRequest() -{} - -std::string ModifyUserRequest::getPrivateOutboundNumberId()const -{ - return privateOutboundNumberId_; -} - -void ModifyUserRequest::setPrivateOutboundNumberId(const std::string& privateOutboundNumberId) -{ - privateOutboundNumberId_ = privateOutboundNumberId; - setParameter("PrivateOutboundNumberId", privateOutboundNumberId); -} - -std::vector ModifyUserRequest::getRoleId()const -{ - return roleId_; -} - -void ModifyUserRequest::setRoleId(const std::vector& roleId) -{ - roleId_ = roleId; - for(int dep1 = 0; dep1!= roleId.size(); dep1++) { - setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); - } -} - -std::string ModifyUserRequest::getUserId()const -{ - return userId_; -} - -void ModifyUserRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - -std::string ModifyUserRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::vector ModifyUserRequest::getSkillLevel()const -{ - return skillLevel_; -} - -void ModifyUserRequest::setSkillLevel(const std::vector& skillLevel) -{ - skillLevel_ = skillLevel; - for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { - setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); - } -} - -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::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 dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } -} - -std::string ModifyUserRequest::getEmail()const -{ - return email_; -} - -void ModifyUserRequest::setEmail(const std::string& email) -{ - email_ = email; - setParameter("Email", email); -} - diff --git a/ccc/src/model/ModifyUserResult.cc b/ccc/src/model/ModifyUserResult.cc deleted file mode 100644 index 5f9ec2710..000000000 --- a/ccc/src/model/ModifyUserResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/MonitorCallRequest.cc b/ccc/src/model/MonitorCallRequest.cc new file mode 100644 index 000000000..fc65f6221 --- /dev/null +++ b/ccc/src/model/MonitorCallRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::MonitorCallRequest; + +MonitorCallRequest::MonitorCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "MonitorCall") +{ + setMethod(HttpRequest::Method::Post); +} + +MonitorCallRequest::~MonitorCallRequest() +{} + +std::string MonitorCallRequest::getUserId()const +{ + return userId_; +} + +void MonitorCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string MonitorCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void MonitorCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +int MonitorCallRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void MonitorCallRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); +} + +std::string MonitorCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void MonitorCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string MonitorCallRequest::getMonitoredUserId()const +{ + return monitoredUserId_; +} + +void MonitorCallRequest::setMonitoredUserId(const std::string& monitoredUserId) +{ + monitoredUserId_ = monitoredUserId; + setParameter("MonitoredUserId", monitoredUserId); +} + diff --git a/ccc/src/model/MonitorCallResult.cc b/ccc/src/model/MonitorCallResult.cc new file mode 100644 index 000000000..a0796a93d --- /dev/null +++ b/ccc/src/model/MonitorCallResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +MonitorCallResult::MonitorCallResult() : + ServiceResult() +{} + +MonitorCallResult::MonitorCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MonitorCallResult::~MonitorCallResult() +{} + +void MonitorCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string MonitorCallResult::getMessage()const +{ + return message_; +} + +int MonitorCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector MonitorCallResult::getParams()const +{ + return params_; +} + +MonitorCallResult::Data MonitorCallResult::getData()const +{ + return data_; +} + +std::string MonitorCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/MuteCallRequest.cc b/ccc/src/model/MuteCallRequest.cc new file mode 100644 index 000000000..ad06395a0 --- /dev/null +++ b/ccc/src/model/MuteCallRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::MuteCallRequest; + +MuteCallRequest::MuteCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "MuteCall") +{ + setMethod(HttpRequest::Method::Post); +} + +MuteCallRequest::~MuteCallRequest() +{} + +std::string MuteCallRequest::getUserId()const +{ + return userId_; +} + +void MuteCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string MuteCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void MuteCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string MuteCallRequest::getJobId()const +{ + return jobId_; +} + +void MuteCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string MuteCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void MuteCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string MuteCallRequest::getChannelId()const +{ + return channelId_; +} + +void MuteCallRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/ccc/src/model/MuteCallResult.cc b/ccc/src/model/MuteCallResult.cc new file mode 100644 index 000000000..95d994570 --- /dev/null +++ b/ccc/src/model/MuteCallResult.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +MuteCallResult::MuteCallResult() : + ServiceResult() +{} + +MuteCallResult::MuteCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MuteCallResult::~MuteCallResult() +{} + +void MuteCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string MuteCallResult::getMessage()const +{ + return message_; +} + +int MuteCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector MuteCallResult::getParams()const +{ + return params_; +} + +MuteCallResult::Data MuteCallResult::getData()const +{ + return data_; +} + +std::string MuteCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/PickGlobalOutboundNumbersRequest.cc b/ccc/src/model/PickGlobalOutboundNumbersRequest.cc deleted file mode 100644 index d48d4bd80..000000000 --- a/ccc/src/model/PickGlobalOutboundNumbersRequest.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::PickGlobalOutboundNumbersRequest; - -PickGlobalOutboundNumbersRequest::PickGlobalOutboundNumbersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "PickGlobalOutboundNumbers") -{ - setMethod(HttpRequest::Method::Post); -} - -PickGlobalOutboundNumbersRequest::~PickGlobalOutboundNumbersRequest() -{} - -bool PickGlobalOutboundNumbersRequest::getIsVirtual()const -{ - return isVirtual_; -} - -void PickGlobalOutboundNumbersRequest::setIsVirtual(bool isVirtual) -{ - isVirtual_ = isVirtual; - setParameter("IsVirtual", isVirtual ? "true" : "false"); -} - -int PickGlobalOutboundNumbersRequest::getCount()const -{ - return count_; -} - -void PickGlobalOutboundNumbersRequest::setCount(int count) -{ - count_ = count; - setParameter("Count", std::to_string(count)); -} - -std::string PickGlobalOutboundNumbersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void PickGlobalOutboundNumbersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string PickGlobalOutboundNumbersRequest::getInstanceId()const -{ - return instanceId_; -} - -void PickGlobalOutboundNumbersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector PickGlobalOutboundNumbersRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void PickGlobalOutboundNumbersRequest::setSkillGroupId(const std::vector& skillGroupId) -{ - skillGroupId_ = skillGroupId; - for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } -} - -std::string PickGlobalOutboundNumbersRequest::getCalleeNumber()const -{ - return calleeNumber_; -} - -void PickGlobalOutboundNumbersRequest::setCalleeNumber(const std::string& calleeNumber) -{ - calleeNumber_ = calleeNumber; - setParameter("CalleeNumber", calleeNumber); -} - diff --git a/ccc/src/model/PickGlobalOutboundNumbersResult.cc b/ccc/src/model/PickGlobalOutboundNumbersResult.cc deleted file mode 100644 index 6094653dc..000000000 --- a/ccc/src/model/PickGlobalOutboundNumbersResult.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -PickGlobalOutboundNumbersResult::PickGlobalOutboundNumbersResult() : - ServiceResult() -{} - -PickGlobalOutboundNumbersResult::PickGlobalOutboundNumbersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PickGlobalOutboundNumbersResult::~PickGlobalOutboundNumbersResult() -{} - -void PickGlobalOutboundNumbersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDialNumberPairsNode = value["DialNumberPairs"]["DialNumberPair"]; - for (auto valueDialNumberPairsDialNumberPair : allDialNumberPairsNode) - { - DialNumberPair dialNumberPairsObject; - auto calleeNode = value["Callee"]; - if(!calleeNode["Number"].isNull()) - dialNumberPairsObject.callee.number = calleeNode["Number"].asString(); - if(!calleeNode["Province"].isNull()) - dialNumberPairsObject.callee.province = calleeNode["Province"].asString(); - if(!calleeNode["City"].isNull()) - dialNumberPairsObject.callee.city = calleeNode["City"].asString(); - auto callerNode = value["Caller"]; - if(!callerNode["Number"].isNull()) - dialNumberPairsObject.caller.number = callerNode["Number"].asString(); - if(!callerNode["Province"].isNull()) - dialNumberPairsObject.caller.province = callerNode["Province"].asString(); - if(!callerNode["City"].isNull()) - dialNumberPairsObject.caller.city = callerNode["City"].asString(); - dialNumberPairs_.push_back(dialNumberPairsObject); - } - 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 PickGlobalOutboundNumbersResult::getMessage()const -{ - return message_; -} - -int PickGlobalOutboundNumbersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string PickGlobalOutboundNumbersResult::getCode()const -{ - return code_; -} - -bool PickGlobalOutboundNumbersResult::getSuccess()const -{ - return success_; -} - -std::vector PickGlobalOutboundNumbersResult::getDialNumberPairs()const -{ - return dialNumberPairs_; -} - diff --git a/ccc/src/model/PickLocalNumberRequest.cc b/ccc/src/model/PickLocalNumberRequest.cc deleted file mode 100644 index 031c4b0b3..000000000 --- a/ccc/src/model/PickLocalNumberRequest.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -PickLocalNumberRequest::~PickLocalNumberRequest() -{} - -std::string PickLocalNumberRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void PickLocalNumberRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -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 dep1 = 0; dep1!= candidateNumber.size(); dep1++) { - setParameter("CandidateNumber."+ std::to_string(dep1), candidateNumber.at(dep1)); - } -} - -std::string PickLocalNumberRequest::getCalleeNumber()const -{ - return calleeNumber_; -} - -void PickLocalNumberRequest::setCalleeNumber(const std::string& calleeNumber) -{ - calleeNumber_ = calleeNumber; - setParameter("CalleeNumber", calleeNumber); -} - diff --git a/ccc/src/model/PickLocalNumberResult.cc b/ccc/src/model/PickLocalNumberResult.cc deleted file mode 100644 index 16ca08c69..000000000 --- a/ccc/src/model/PickLocalNumberResult.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/PickOutboundNumbersRequest.cc b/ccc/src/model/PickOutboundNumbersRequest.cc index 708141d2f..d7f9461e1 100644 --- a/ccc/src/model/PickOutboundNumbersRequest.cc +++ b/ccc/src/model/PickOutboundNumbersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::PickOutboundNumbersRequest; PickOutboundNumbersRequest::PickOutboundNumbersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "PickOutboundNumbers") + RpcServiceRequest("ccc", "2020-07-01", "PickOutboundNumbers") { setMethod(HttpRequest::Method::Post); } @@ -38,17 +38,6 @@ void PickOutboundNumbersRequest::setCount(int count) setParameter("Count", std::to_string(count)); } -std::string PickOutboundNumbersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void PickOutboundNumbersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - std::string PickOutboundNumbersRequest::getInstanceId()const { return instanceId_; @@ -60,27 +49,25 @@ void PickOutboundNumbersRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::vector PickOutboundNumbersRequest::getCandidateNumber()const +std::string PickOutboundNumbersRequest::getSkillGroupIdList()const { - return candidateNumber_; + return skillGroupIdList_; } -void PickOutboundNumbersRequest::setCandidateNumber(const std::vector& candidateNumber) +void PickOutboundNumbersRequest::setSkillGroupIdList(const std::string& skillGroupIdList) { - candidateNumber_ = candidateNumber; - for(int dep1 = 0; dep1!= candidateNumber.size(); dep1++) { - setParameter("CandidateNumber."+ std::to_string(dep1), candidateNumber.at(dep1)); - } + skillGroupIdList_ = skillGroupIdList; + setParameter("SkillGroupIdList", skillGroupIdList); } -std::string PickOutboundNumbersRequest::getCalleeNumber()const +std::string PickOutboundNumbersRequest::getCalledNumber()const { - return calleeNumber_; + return calledNumber_; } -void PickOutboundNumbersRequest::setCalleeNumber(const std::string& calleeNumber) +void PickOutboundNumbersRequest::setCalledNumber(const std::string& calledNumber) { - calleeNumber_ = calleeNumber; - setParameter("CalleeNumber", calleeNumber); + calledNumber_ = calledNumber; + setParameter("CalledNumber", calledNumber); } diff --git a/ccc/src/model/PickOutboundNumbersResult.cc b/ccc/src/model/PickOutboundNumbersResult.cc index a30f79132..2d48d8451 100644 --- a/ccc/src/model/PickOutboundNumbersResult.cc +++ b/ccc/src/model/PickOutboundNumbersResult.cc @@ -39,34 +39,32 @@ void PickOutboundNumbersResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDialNumberPairsNode = value["DialNumberPairs"]["DialNumberPair"]; - for (auto valueDialNumberPairsDialNumberPair : allDialNumberPairsNode) + auto allDataNode = value["Data"]["NumberPair"]; + for (auto valueDataNumberPair : allDataNode) { - DialNumberPair dialNumberPairsObject; + NumberPair dataObject; auto calleeNode = value["Callee"]; - if(!calleeNode["Number"].isNull()) - dialNumberPairsObject.callee.number = calleeNode["Number"].asString(); - if(!calleeNode["Province"].isNull()) - dialNumberPairsObject.callee.province = calleeNode["Province"].asString(); if(!calleeNode["City"].isNull()) - dialNumberPairsObject.callee.city = calleeNode["City"].asString(); + dataObject.callee.city = calleeNode["City"].asString(); + if(!calleeNode["Number"].isNull()) + dataObject.callee.number = calleeNode["Number"].asString(); + if(!calleeNode["Province"].isNull()) + dataObject.callee.province = calleeNode["Province"].asString(); auto callerNode = value["Caller"]; - if(!callerNode["Number"].isNull()) - dialNumberPairsObject.caller.number = callerNode["Number"].asString(); - if(!callerNode["Province"].isNull()) - dialNumberPairsObject.caller.province = callerNode["Province"].asString(); if(!callerNode["City"].isNull()) - dialNumberPairsObject.caller.city = callerNode["City"].asString(); - dialNumberPairs_.push_back(dialNumberPairsObject); + dataObject.caller.city = callerNode["City"].asString(); + if(!callerNode["Number"].isNull()) + dataObject.caller.number = callerNode["Number"].asString(); + if(!callerNode["Province"].isNull()) + dataObject.caller.province = callerNode["Province"].asString(); + 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()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } @@ -80,18 +78,13 @@ int PickOutboundNumbersResult::getHttpStatusCode()const return httpStatusCode_; } +std::vector PickOutboundNumbersResult::getData()const +{ + return data_; +} + std::string PickOutboundNumbersResult::getCode()const { return code_; } -bool PickOutboundNumbersResult::getSuccess()const -{ - return success_; -} - -std::vector PickOutboundNumbersResult::getDialNumberPairs()const -{ - return dialNumberPairs_; -} - diff --git a/ccc/src/model/PollUserStatusRequest.cc b/ccc/src/model/PollUserStatusRequest.cc new file mode 100644 index 000000000..28b973c3c --- /dev/null +++ b/ccc/src/model/PollUserStatusRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::PollUserStatusRequest; + +PollUserStatusRequest::PollUserStatusRequest() : + RpcServiceRequest("ccc", "2020-07-01", "PollUserStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +PollUserStatusRequest::~PollUserStatusRequest() +{} + +std::string PollUserStatusRequest::getUserId()const +{ + return userId_; +} + +void PollUserStatusRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string PollUserStatusRequest::getDeviceId()const +{ + return deviceId_; +} + +void PollUserStatusRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string PollUserStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void PollUserStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/PollUserStatusResult.cc b/ccc/src/model/PollUserStatusResult.cc new file mode 100644 index 000000000..fe52df42a --- /dev/null +++ b/ccc/src/model/PollUserStatusResult.cc @@ -0,0 +1,152 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +PollUserStatusResult::PollUserStatusResult() : + ServiceResult() +{} + +PollUserStatusResult::PollUserStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PollUserStatusResult::~PollUserStatusResult() +{} + +void PollUserStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelVariables"].isNull()) + channelContextObject.channelVariables = callContextNodeChannelContextsChannelContext["ChannelVariables"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PollUserStatusResult::getMessage()const +{ + return message_; +} + +int PollUserStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector PollUserStatusResult::getParams()const +{ + return params_; +} + +PollUserStatusResult::Data PollUserStatusResult::getData()const +{ + return data_; +} + +std::string PollUserStatusResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/PublishContactFlowVersionRequest.cc b/ccc/src/model/PublishContactFlowVersionRequest.cc deleted file mode 100644 index 0b30de313..000000000 --- a/ccc/src/model/PublishContactFlowVersionRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::PublishContactFlowVersionRequest; - -PublishContactFlowVersionRequest::PublishContactFlowVersionRequest() : - RpcServiceRequest("ccc", "2017-07-05", "PublishContactFlowVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -PublishContactFlowVersionRequest::~PublishContactFlowVersionRequest() -{} - -std::string PublishContactFlowVersionRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void PublishContactFlowVersionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string PublishContactFlowVersionRequest::getInstanceId()const -{ - return instanceId_; -} - -void PublishContactFlowVersionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string PublishContactFlowVersionRequest::getContactFlowVersionId()const -{ - return contactFlowVersionId_; -} - -void PublishContactFlowVersionRequest::setContactFlowVersionId(const std::string& contactFlowVersionId) -{ - contactFlowVersionId_ = contactFlowVersionId; - setParameter("ContactFlowVersionId", contactFlowVersionId); -} - -bool PublishContactFlowVersionRequest::getUseTianGong()const -{ - return useTianGong_; -} - -void PublishContactFlowVersionRequest::setUseTianGong(bool useTianGong) -{ - useTianGong_ = useTianGong; - setParameter("UseTianGong", useTianGong ? "true" : "false"); -} - diff --git a/ccc/src/model/PublishContactFlowVersionResult.cc b/ccc/src/model/PublishContactFlowVersionResult.cc deleted file mode 100644 index 6df346c96..000000000 --- a/ccc/src/model/PublishContactFlowVersionResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -PublishContactFlowVersionResult::PublishContactFlowVersionResult() : - ServiceResult() -{} - -PublishContactFlowVersionResult::PublishContactFlowVersionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PublishContactFlowVersionResult::~PublishContactFlowVersionResult() -{} - -void PublishContactFlowVersionResult::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 PublishContactFlowVersionResult::getMessage()const -{ - return message_; -} - -int PublishContactFlowVersionResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string PublishContactFlowVersionResult::getCode()const -{ - return code_; -} - -bool PublishContactFlowVersionResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/PublishPredictiveJobGroupRequest.cc b/ccc/src/model/PublishPredictiveJobGroupRequest.cc deleted file mode 100644 index 3377b38f0..000000000 --- a/ccc/src/model/PublishPredictiveJobGroupRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::PublishPredictiveJobGroupRequest; - -PublishPredictiveJobGroupRequest::PublishPredictiveJobGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "PublishPredictiveJobGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -PublishPredictiveJobGroupRequest::~PublishPredictiveJobGroupRequest() -{} - -std::string PublishPredictiveJobGroupRequest::getInstanceId()const -{ - return instanceId_; -} - -void PublishPredictiveJobGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string PublishPredictiveJobGroupRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void PublishPredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -std::string PublishPredictiveJobGroupRequest::getJobGroupId()const -{ - return jobGroupId_; -} - -void PublishPredictiveJobGroupRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); -} - diff --git a/ccc/src/model/PublishPredictiveJobGroupResult.cc b/ccc/src/model/PublishPredictiveJobGroupResult.cc deleted file mode 100644 index 5badd78a6..000000000 --- a/ccc/src/model/PublishPredictiveJobGroupResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -PublishPredictiveJobGroupResult::PublishPredictiveJobGroupResult() : - ServiceResult() -{} - -PublishPredictiveJobGroupResult::PublishPredictiveJobGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PublishPredictiveJobGroupResult::~PublishPredictiveJobGroupResult() -{} - -void PublishPredictiveJobGroupResult::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 PublishPredictiveJobGroupResult::getMessage()const -{ - return message_; -} - -int PublishPredictiveJobGroupResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string PublishPredictiveJobGroupResult::getCode()const -{ - return code_; -} - -bool PublishPredictiveJobGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/PublishSurveyRequest.cc b/ccc/src/model/PublishSurveyRequest.cc deleted file mode 100644 index b82e740cb..000000000 --- a/ccc/src/model/PublishSurveyRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index 1f09b1440..000000000 --- a/ccc/src/model/PublishSurveyResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ReadyForServiceRequest.cc b/ccc/src/model/ReadyForServiceRequest.cc new file mode 100644 index 000000000..159c0b030 --- /dev/null +++ b/ccc/src/model/ReadyForServiceRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ReadyForServiceRequest; + +ReadyForServiceRequest::ReadyForServiceRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ReadyForService") +{ + setMethod(HttpRequest::Method::Post); +} + +ReadyForServiceRequest::~ReadyForServiceRequest() +{} + +bool ReadyForServiceRequest::getOutboundScenario()const +{ + return outboundScenario_; +} + +void ReadyForServiceRequest::setOutboundScenario(bool outboundScenario) +{ + outboundScenario_ = outboundScenario; + setParameter("OutboundScenario", outboundScenario ? "true" : "false"); +} + +std::string ReadyForServiceRequest::getUserId()const +{ + return userId_; +} + +void ReadyForServiceRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ReadyForServiceRequest::getDeviceId()const +{ + return deviceId_; +} + +void ReadyForServiceRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string ReadyForServiceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ReadyForServiceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/ReadyForServiceResult.cc b/ccc/src/model/ReadyForServiceResult.cc new file mode 100644 index 000000000..6efcd1575 --- /dev/null +++ b/ccc/src/model/ReadyForServiceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ReadyForServiceResult::ReadyForServiceResult() : + ServiceResult() +{} + +ReadyForServiceResult::ReadyForServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReadyForServiceResult::~ReadyForServiceResult() +{} + +void ReadyForServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BreakCode"].isNull()) + data_.breakCode = dataNode["BreakCode"].asString(); + if(!dataNode["DeviceId"].isNull()) + data_.deviceId = dataNode["DeviceId"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["OutboundScenario"].isNull()) + data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true"; + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["UserState"].isNull()) + data_.userState = dataNode["UserState"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = dataNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReadyForServiceResult::getMessage()const +{ + return message_; +} + +int ReadyForServiceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ReadyForServiceResult::getParams()const +{ + return params_; +} + +ReadyForServiceResult::Data ReadyForServiceResult::getData()const +{ + return data_; +} + +std::string ReadyForServiceResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/RefreshTokenRequest.cc b/ccc/src/model/RefreshTokenRequest.cc deleted file mode 100644 index 42d1d8af4..000000000 --- a/ccc/src/model/RefreshTokenRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::RefreshTokenRequest; - -RefreshTokenRequest::RefreshTokenRequest() : - RpcServiceRequest("ccc", "2017-07-05", "RefreshToken") -{ - setMethod(HttpRequest::Method::Post); -} - -RefreshTokenRequest::~RefreshTokenRequest() -{} - -std::string RefreshTokenRequest::getInstanceId()const -{ - return instanceId_; -} - -void RefreshTokenRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string RefreshTokenRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RefreshTokenRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/RefreshTokenResult.cc b/ccc/src/model/RefreshTokenResult.cc deleted file mode 100644 index bb9b7b1a1..000000000 --- a/ccc/src/model/RefreshTokenResult.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -RefreshTokenResult::RefreshTokenResult() : - ServiceResult() -{} - -RefreshTokenResult::RefreshTokenResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RefreshTokenResult::~RefreshTokenResult() -{} - -void RefreshTokenResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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_; -} - -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/RegisterDeviceRequest.cc b/ccc/src/model/RegisterDeviceRequest.cc new file mode 100644 index 000000000..9fb7ad649 --- /dev/null +++ b/ccc/src/model/RegisterDeviceRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::RegisterDeviceRequest; + +RegisterDeviceRequest::RegisterDeviceRequest() : + RpcServiceRequest("ccc", "2020-07-01", "RegisterDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +RegisterDeviceRequest::~RegisterDeviceRequest() +{} + +std::string RegisterDeviceRequest::getUserId()const +{ + return userId_; +} + +void RegisterDeviceRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string RegisterDeviceRequest::getDeviceId()const +{ + return deviceId_; +} + +void RegisterDeviceRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string RegisterDeviceRequest::getPassword()const +{ + return password_; +} + +void RegisterDeviceRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string RegisterDeviceRequest::getInstanceId()const +{ + return instanceId_; +} + +void RegisterDeviceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/DeleteInstanceResult.cc b/ccc/src/model/RegisterDeviceResult.cc similarity index 66% rename from ccc/src/model/DeleteInstanceResult.cc rename to ccc/src/model/RegisterDeviceResult.cc index c348fe364..47adb9030 100644 --- a/ccc/src/model/DeleteInstanceResult.cc +++ b/ccc/src/model/RegisterDeviceResult.cc @@ -14,59 +14,60 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -DeleteInstanceResult::DeleteInstanceResult() : +RegisterDeviceResult::RegisterDeviceResult() : ServiceResult() {} -DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : +RegisterDeviceResult::RegisterDeviceResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteInstanceResult::~DeleteInstanceResult() +RegisterDeviceResult::~RegisterDeviceResult() {} -void DeleteInstanceResult::parse(const std::string &payload) +void RegisterDeviceResult::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"; + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string DeleteInstanceResult::getMessage()const +std::string RegisterDeviceResult::getMessage()const { return message_; } -int DeleteInstanceResult::getHttpStatusCode()const +int RegisterDeviceResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string DeleteInstanceResult::getCode()const +std::vector RegisterDeviceResult::getParams()const +{ + return params_; +} + +std::string RegisterDeviceResult::getCode()const { return code_; } -bool DeleteInstanceResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ReleaseCallRequest.cc b/ccc/src/model/ReleaseCallRequest.cc new file mode 100644 index 000000000..d4b70b075 --- /dev/null +++ b/ccc/src/model/ReleaseCallRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ReleaseCallRequest; + +ReleaseCallRequest::ReleaseCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ReleaseCall") +{ + setMethod(HttpRequest::Method::Post); +} + +ReleaseCallRequest::~ReleaseCallRequest() +{} + +std::string ReleaseCallRequest::getUserId()const +{ + return userId_; +} + +void ReleaseCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ReleaseCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void ReleaseCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string ReleaseCallRequest::getJobId()const +{ + return jobId_; +} + +void ReleaseCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string ReleaseCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void ReleaseCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ReleaseCallRequest::getChannelId()const +{ + return channelId_; +} + +void ReleaseCallRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/ccc/src/model/ReleaseCallResult.cc b/ccc/src/model/ReleaseCallResult.cc new file mode 100644 index 000000000..1e12b62bf --- /dev/null +++ b/ccc/src/model/ReleaseCallResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ReleaseCallResult::ReleaseCallResult() : + ServiceResult() +{} + +ReleaseCallResult::ReleaseCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseCallResult::~ReleaseCallResult() +{} + +void ReleaseCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReleaseCallResult::getMessage()const +{ + return message_; +} + +int ReleaseCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ReleaseCallResult::getParams()const +{ + return params_; +} + +ReleaseCallResult::Data ReleaseCallResult::getData()const +{ + return data_; +} + +std::string ReleaseCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/RemovePhoneNumberRequest.cc b/ccc/src/model/RemovePhoneNumberRequest.cc deleted file mode 100644 index 0ed37353a..000000000 --- a/ccc/src/model/RemovePhoneNumberRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::RemovePhoneNumberRequest; - -RemovePhoneNumberRequest::RemovePhoneNumberRequest() : - RpcServiceRequest("ccc", "2017-07-05", "RemovePhoneNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -RemovePhoneNumberRequest::~RemovePhoneNumberRequest() -{} - -std::string RemovePhoneNumberRequest::getInstanceId()const -{ - return instanceId_; -} - -void RemovePhoneNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string RemovePhoneNumberRequest::getPhoneNumberId()const -{ - return phoneNumberId_; -} - -void RemovePhoneNumberRequest::setPhoneNumberId(const std::string& phoneNumberId) -{ - phoneNumberId_ = phoneNumberId; - setParameter("PhoneNumberId", phoneNumberId); -} - -std::string RemovePhoneNumberRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RemovePhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc b/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc deleted file mode 100644 index b64e6eb9d..000000000 --- a/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::RemoveUsersFromSkillGroupRequest; - -RemoveUsersFromSkillGroupRequest::RemoveUsersFromSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "RemoveUsersFromSkillGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveUsersFromSkillGroupRequest::~RemoveUsersFromSkillGroupRequest() -{} - -std::vector RemoveUsersFromSkillGroupRequest::getUserId()const -{ - return userId_; -} - -void RemoveUsersFromSkillGroupRequest::setUserId(const std::vector& userId) -{ - userId_ = userId; - for(int dep1 = 0; dep1!= userId.size(); dep1++) { - setParameter("UserId."+ std::to_string(dep1), userId.at(dep1)); - } -} - -std::string RemoveUsersFromSkillGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RemoveUsersFromSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string RemoveUsersFromSkillGroupRequest::getInstanceId()const -{ - return instanceId_; -} - -void RemoveUsersFromSkillGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string RemoveUsersFromSkillGroupRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void RemoveUsersFromSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - diff --git a/ccc/src/model/RemoveUsersFromSkillGroupResult.cc b/ccc/src/model/RemoveUsersFromSkillGroupResult.cc deleted file mode 100644 index e647d948d..000000000 --- a/ccc/src/model/RemoveUsersFromSkillGroupResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -RemoveUsersFromSkillGroupResult::RemoveUsersFromSkillGroupResult() : - ServiceResult() -{} - -RemoveUsersFromSkillGroupResult::RemoveUsersFromSkillGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveUsersFromSkillGroupResult::~RemoveUsersFromSkillGroupResult() -{} - -void RemoveUsersFromSkillGroupResult::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 RemoveUsersFromSkillGroupResult::getMessage()const -{ - return message_; -} - -int RemoveUsersFromSkillGroupResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string RemoveUsersFromSkillGroupResult::getCode()const -{ - return code_; -} - -bool RemoveUsersFromSkillGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/RemoveUsersRequest.cc b/ccc/src/model/RemoveUsersRequest.cc deleted file mode 100644 index 16f5b1e80..000000000 --- a/ccc/src/model/RemoveUsersRequest.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 dep1 = 0; dep1!= userId.size(); dep1++) { - setParameter("UserId."+ std::to_string(dep1), userId.at(dep1)); - } -} - -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 deleted file mode 100644 index 5ed3d7aeb..000000000 --- a/ccc/src/model/RemoveUsersResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 1a524346d..000000000 --- a/ccc/src/model/RequestLoginInfoResult.cc +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -RequestLoginInfoResult::RequestLoginInfoResult() : - ServiceResult() -{} - -RequestLoginInfoResult::RequestLoginInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RequestLoginInfoResult::~RequestLoginInfoResult() -{} - -void RequestLoginInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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(); - auto allRolesNode = loginInfoNode["Roles"]["Role"]; - for (auto loginInfoNodeRolesRole : allRolesNode) - { - LoginInfo::Role roleObject; - if(!loginInfoNodeRolesRole["RoleId"].isNull()) - roleObject.roleId = loginInfoNodeRolesRole["RoleId"].asString(); - if(!loginInfoNodeRolesRole["InstanceId"].isNull()) - roleObject.instanceId = loginInfoNodeRolesRole["InstanceId"].asString(); - if(!loginInfoNodeRolesRole["RoleName"].isNull()) - roleObject.roleName = loginInfoNodeRolesRole["RoleName"].asString(); - if(!loginInfoNodeRolesRole["RoleDescription"].isNull()) - roleObject.roleDescription = loginInfoNodeRolesRole["RoleDescription"].asString(); - loginInfo_.roles.push_back(roleObject); - } - 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()); - -} - -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/ResetAgentStateRequest.cc b/ccc/src/model/ResetAgentStateRequest.cc new file mode 100644 index 000000000..854a3559f --- /dev/null +++ b/ccc/src/model/ResetAgentStateRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ResetAgentStateRequest; + +ResetAgentStateRequest::ResetAgentStateRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ResetAgentState") +{ + setMethod(HttpRequest::Method::Post); +} + +ResetAgentStateRequest::~ResetAgentStateRequest() +{} + +std::string ResetAgentStateRequest::getUserId()const +{ + return userId_; +} + +void ResetAgentStateRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ResetAgentStateRequest::getDeviceId()const +{ + return deviceId_; +} + +void ResetAgentStateRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string ResetAgentStateRequest::getInstanceId()const +{ + return instanceId_; +} + +void ResetAgentStateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/ResetAgentStateResult.cc b/ccc/src/model/ResetAgentStateResult.cc new file mode 100644 index 000000000..d075ae2f5 --- /dev/null +++ b/ccc/src/model/ResetAgentStateResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ResetAgentStateResult::ResetAgentStateResult() : + ServiceResult() +{} + +ResetAgentStateResult::ResetAgentStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAgentStateResult::~ResetAgentStateResult() +{} + +void ResetAgentStateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BreakCode"].isNull()) + data_.breakCode = dataNode["BreakCode"].asString(); + if(!dataNode["DeviceId"].isNull()) + data_.deviceId = dataNode["DeviceId"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["OutboundScenario"].isNull()) + data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true"; + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["UserState"].isNull()) + data_.userState = dataNode["UserState"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = dataNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ResetAgentStateResult::getMessage()const +{ + return message_; +} + +int ResetAgentStateResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ResetAgentStateResult::getParams()const +{ + return params_; +} + +ResetAgentStateResult::Data ResetAgentStateResult::getData()const +{ + return data_; +} + +std::string ResetAgentStateResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ResetUserStatusRequest.cc b/ccc/src/model/ResetUserStatusRequest.cc deleted file mode 100644 index b79a1438d..000000000 --- a/ccc/src/model/ResetUserStatusRequest.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ResetUserStatusRequest; - -ResetUserStatusRequest::ResetUserStatusRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ResetUserStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -ResetUserStatusRequest::~ResetUserStatusRequest() -{} - -std::string ResetUserStatusRequest::getInstanceId()const -{ - return instanceId_; -} - -void ResetUserStatusRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::vector ResetUserStatusRequest::getRamIdList()const -{ - return ramIdList_; -} - -void ResetUserStatusRequest::setRamIdList(const std::vector& ramIdList) -{ - ramIdList_ = ramIdList; - for(int dep1 = 0; dep1!= ramIdList.size(); dep1++) { - setParameter("RamIdList."+ std::to_string(dep1), std::to_string(ramIdList.at(dep1))); - } -} - -std::string ResetUserStatusRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ResetUserStatusRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ccc/src/model/ResetUserStatusResult.cc b/ccc/src/model/ResetUserStatusResult.cc deleted file mode 100644 index 8077052ce..000000000 --- a/ccc/src/model/ResetUserStatusResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -ResetUserStatusResult::ResetUserStatusResult() : - ServiceResult() -{} - -ResetUserStatusResult::ResetUserStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetUserStatusResult::~ResetUserStatusResult() -{} - -void ResetUserStatusResult::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 ResetUserStatusResult::getMessage()const -{ - return message_; -} - -int ResetUserStatusResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ResetUserStatusResult::getCode()const -{ - return code_; -} - -bool ResetUserStatusResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ResumeJobsRequest.cc b/ccc/src/model/ResumeJobsRequest.cc deleted file mode 100644 index 20b29904e..000000000 --- a/ccc/src/model/ResumeJobsRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -ResumeJobsRequest::~ResumeJobsRequest() -{} - -bool ResumeJobsRequest::getAll()const -{ - return all_; -} - -void ResumeJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); -} - -std::vector ResumeJobsRequest::getJobReferenceId()const -{ - return jobReferenceId_; -} - -void ResumeJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) -{ - jobReferenceId_ = jobReferenceId; - for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) { - setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1)); - } -} - -std::string ResumeJobsRequest::getGroupId()const -{ - return groupId_; -} - -void ResumeJobsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::vector ResumeJobsRequest::getJobId()const -{ - return jobId_; -} - -void ResumeJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } -} - -std::string ResumeJobsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ResumeJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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 deleted file mode 100644 index aefa918fe..000000000 --- a/ccc/src/model/ResumeJobsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/ResumePredictiveJobsRequest.cc b/ccc/src/model/ResumePredictiveJobsRequest.cc deleted file mode 100644 index 7fe9cba48..000000000 --- a/ccc/src/model/ResumePredictiveJobsRequest.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::ResumePredictiveJobsRequest; - -ResumePredictiveJobsRequest::ResumePredictiveJobsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ResumePredictiveJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -ResumePredictiveJobsRequest::~ResumePredictiveJobsRequest() -{} - -bool ResumePredictiveJobsRequest::getAll()const -{ - return all_; -} - -void ResumePredictiveJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); -} - -std::vector ResumePredictiveJobsRequest::getJobId()const -{ - return jobId_; -} - -void ResumePredictiveJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } -} - -std::string ResumePredictiveJobsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ResumePredictiveJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ResumePredictiveJobsRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void ResumePredictiveJobsRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -std::string ResumePredictiveJobsRequest::getJobGroupId()const -{ - return jobGroupId_; -} - -void ResumePredictiveJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); -} - diff --git a/ccc/src/model/RetrieveCallRequest.cc b/ccc/src/model/RetrieveCallRequest.cc new file mode 100644 index 000000000..619ea786a --- /dev/null +++ b/ccc/src/model/RetrieveCallRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::RetrieveCallRequest; + +RetrieveCallRequest::RetrieveCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "RetrieveCall") +{ + setMethod(HttpRequest::Method::Post); +} + +RetrieveCallRequest::~RetrieveCallRequest() +{} + +std::string RetrieveCallRequest::getUserId()const +{ + return userId_; +} + +void RetrieveCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string RetrieveCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void RetrieveCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string RetrieveCallRequest::getJobId()const +{ + return jobId_; +} + +void RetrieveCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string RetrieveCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void RetrieveCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RetrieveCallRequest::getChannelId()const +{ + return channelId_; +} + +void RetrieveCallRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/ccc/src/model/RetrieveCallResult.cc b/ccc/src/model/RetrieveCallResult.cc new file mode 100644 index 000000000..ff507e58a --- /dev/null +++ b/ccc/src/model/RetrieveCallResult.cc @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +RetrieveCallResult::RetrieveCallResult() : + ServiceResult() +{} + +RetrieveCallResult::RetrieveCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RetrieveCallResult::~RetrieveCallResult() +{} + +void RetrieveCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string RetrieveCallResult::getMessage()const +{ + return message_; +} + +int RetrieveCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector RetrieveCallResult::getParams()const +{ + return params_; +} + +RetrieveCallResult::Data RetrieveCallResult::getData()const +{ + return data_; +} + +std::string RetrieveCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/SaveWebRTCStatsRequest.cc b/ccc/src/model/SaveWebRTCStatsRequest.cc deleted file mode 100644 index 758a6649a..000000000 --- a/ccc/src/model/SaveWebRTCStatsRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::SaveWebRTCStatsRequest; - -SaveWebRTCStatsRequest::SaveWebRTCStatsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "SaveWebRTCStats") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveWebRTCStatsRequest::~SaveWebRTCStatsRequest() -{} - -std::string SaveWebRTCStatsRequest::getCallId()const -{ - return callId_; -} - -void SaveWebRTCStatsRequest::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); -} - -long SaveWebRTCStatsRequest::getRecordTime()const -{ - return recordTime_; -} - -void SaveWebRTCStatsRequest::setRecordTime(long recordTime) -{ - recordTime_ = recordTime; - setParameter("RecordTime", std::to_string(recordTime)); -} - -long SaveWebRTCStatsRequest::getCallStartTime()const -{ - return callStartTime_; -} - -void SaveWebRTCStatsRequest::setCallStartTime(long callStartTime) -{ - callStartTime_ = callStartTime; - setParameter("CallStartTime", std::to_string(callStartTime)); -} - -std::string SaveWebRTCStatsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SaveWebRTCStatsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string SaveWebRTCStatsRequest::getUid()const -{ - return uid_; -} - -void SaveWebRTCStatsRequest::setUid(const std::string& uid) -{ - uid_ = uid; - setParameter("Uid", uid); -} - -std::string SaveWebRTCStatsRequest::getInstanceId()const -{ - return instanceId_; -} - -void SaveWebRTCStatsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string SaveWebRTCStatsRequest::getStats()const -{ - return stats_; -} - -void SaveWebRTCStatsRequest::setStats(const std::string& stats) -{ - stats_ = stats; - setParameter("Stats", stats); -} - -std::string SaveWebRTCStatsRequest::getTenantId()const -{ - return tenantId_; -} - -void SaveWebRTCStatsRequest::setTenantId(const std::string& tenantId) -{ - tenantId_ = tenantId; - setParameter("TenantId", tenantId); -} - -std::string SaveWebRTCStatsRequest::getCalleeNumber()const -{ - return calleeNumber_; -} - -void SaveWebRTCStatsRequest::setCalleeNumber(const std::string& calleeNumber) -{ - calleeNumber_ = calleeNumber; - setParameter("CalleeNumber", calleeNumber); -} - -std::string SaveWebRTCStatsRequest::getCallerNumber()const -{ - return callerNumber_; -} - -void SaveWebRTCStatsRequest::setCallerNumber(const std::string& callerNumber) -{ - callerNumber_ = callerNumber; - setParameter("CallerNumber", callerNumber); -} - diff --git a/ccc/src/model/SaveWebRTCStatsResult.cc b/ccc/src/model/SaveWebRTCStatsResult.cc deleted file mode 100644 index 74eb6ebc7..000000000 --- a/ccc/src/model/SaveWebRTCStatsResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -SaveWebRTCStatsResult::SaveWebRTCStatsResult() : - ServiceResult() -{} - -SaveWebRTCStatsResult::SaveWebRTCStatsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SaveWebRTCStatsResult::~SaveWebRTCStatsResult() -{} - -void SaveWebRTCStatsResult::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["RowCount"].isNull()) - rowCount_ = std::stol(value["RowCount"].asString()); - -} - -std::string SaveWebRTCStatsResult::getMessage()const -{ - return message_; -} - -int SaveWebRTCStatsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -long SaveWebRTCStatsResult::getRowCount()const -{ - return rowCount_; -} - -std::string SaveWebRTCStatsResult::getCode()const -{ - return code_; -} - -bool SaveWebRTCStatsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/SendDtmfSignalingRequest.cc b/ccc/src/model/SendDtmfSignalingRequest.cc new file mode 100644 index 000000000..13a7c6c53 --- /dev/null +++ b/ccc/src/model/SendDtmfSignalingRequest.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::SendDtmfSignalingRequest; + +SendDtmfSignalingRequest::SendDtmfSignalingRequest() : + RpcServiceRequest("ccc", "2020-07-01", "SendDtmfSignaling") +{ + setMethod(HttpRequest::Method::Post); +} + +SendDtmfSignalingRequest::~SendDtmfSignalingRequest() +{} + +std::string SendDtmfSignalingRequest::getDtmf()const +{ + return dtmf_; +} + +void SendDtmfSignalingRequest::setDtmf(const std::string& dtmf) +{ + dtmf_ = dtmf; + setParameter("Dtmf", dtmf); +} + +std::string SendDtmfSignalingRequest::getUserId()const +{ + return userId_; +} + +void SendDtmfSignalingRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string SendDtmfSignalingRequest::getDeviceId()const +{ + return deviceId_; +} + +void SendDtmfSignalingRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string SendDtmfSignalingRequest::getJobId()const +{ + return jobId_; +} + +void SendDtmfSignalingRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string SendDtmfSignalingRequest::getInstanceId()const +{ + return instanceId_; +} + +void SendDtmfSignalingRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string SendDtmfSignalingRequest::getChannelId()const +{ + return channelId_; +} + +void SendDtmfSignalingRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/ccc/src/model/SendDtmfSignalingResult.cc b/ccc/src/model/SendDtmfSignalingResult.cc new file mode 100644 index 000000000..f576d330a --- /dev/null +++ b/ccc/src/model/SendDtmfSignalingResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +SendDtmfSignalingResult::SendDtmfSignalingResult() : + ServiceResult() +{} + +SendDtmfSignalingResult::SendDtmfSignalingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendDtmfSignalingResult::~SendDtmfSignalingResult() +{} + +void SendDtmfSignalingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string SendDtmfSignalingResult::getMessage()const +{ + return message_; +} + +int SendDtmfSignalingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector SendDtmfSignalingResult::getParams()const +{ + return params_; +} + +SendDtmfSignalingResult::Data SendDtmfSignalingResult::getData()const +{ + return data_; +} + +std::string SendDtmfSignalingResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/SendPredefinedShortMessageRequest.cc b/ccc/src/model/SendPredefinedShortMessageRequest.cc deleted file mode 100644 index f3f8c144c..000000000 --- a/ccc/src/model/SendPredefinedShortMessageRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::SendPredefinedShortMessageRequest; - -SendPredefinedShortMessageRequest::SendPredefinedShortMessageRequest() : - RpcServiceRequest("ccc", "2017-07-05", "SendPredefinedShortMessage") -{ - setMethod(HttpRequest::Method::Post); -} - -SendPredefinedShortMessageRequest::~SendPredefinedShortMessageRequest() -{} - -std::string SendPredefinedShortMessageRequest::getPhoneNumbers()const -{ - return phoneNumbers_; -} - -void SendPredefinedShortMessageRequest::setPhoneNumbers(const std::string& phoneNumbers) -{ - phoneNumbers_ = phoneNumbers; - setParameter("PhoneNumbers", phoneNumbers); -} - -std::string SendPredefinedShortMessageRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SendPredefinedShortMessageRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string SendPredefinedShortMessageRequest::getInstanceId()const -{ - return instanceId_; -} - -void SendPredefinedShortMessageRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -long SendPredefinedShortMessageRequest::getConfigId()const -{ - return configId_; -} - -void SendPredefinedShortMessageRequest::setConfigId(long configId) -{ - configId_ = configId; - setParameter("ConfigId", std::to_string(configId)); -} - -std::string SendPredefinedShortMessageRequest::getTemplateParam()const -{ - return templateParam_; -} - -void SendPredefinedShortMessageRequest::setTemplateParam(const std::string& templateParam) -{ - templateParam_ = templateParam; - setParameter("TemplateParam", templateParam); -} - diff --git a/ccc/src/model/SendPredefinedShortMessageResult.cc b/ccc/src/model/SendPredefinedShortMessageResult.cc deleted file mode 100644 index 9e211c6a8..000000000 --- a/ccc/src/model/SendPredefinedShortMessageResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -SendPredefinedShortMessageResult::SendPredefinedShortMessageResult() : - ServiceResult() -{} - -SendPredefinedShortMessageResult::SendPredefinedShortMessageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SendPredefinedShortMessageResult::~SendPredefinedShortMessageResult() -{} - -void SendPredefinedShortMessageResult::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["BizId"].isNull()) - bizId_ = value["BizId"].asString(); - -} - -std::string SendPredefinedShortMessageResult::getMessage()const -{ - return message_; -} - -int SendPredefinedShortMessageResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SendPredefinedShortMessageResult::getCode()const -{ - return code_; -} - -std::string SendPredefinedShortMessageResult::getBizId()const -{ - return bizId_; -} - -bool SendPredefinedShortMessageResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/SignInGroupRequest.cc b/ccc/src/model/SignInGroupRequest.cc new file mode 100644 index 000000000..5a824bd3f --- /dev/null +++ b/ccc/src/model/SignInGroupRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::SignInGroupRequest; + +SignInGroupRequest::SignInGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "SignInGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +SignInGroupRequest::~SignInGroupRequest() +{} + +std::string SignInGroupRequest::getSignedSkillGroupIdList()const +{ + return signedSkillGroupIdList_; +} + +void SignInGroupRequest::setSignedSkillGroupIdList(const std::string& signedSkillGroupIdList) +{ + signedSkillGroupIdList_ = signedSkillGroupIdList; + setParameter("SignedSkillGroupIdList", signedSkillGroupIdList); +} + +std::string SignInGroupRequest::getUserId()const +{ + return userId_; +} + +void SignInGroupRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string SignInGroupRequest::getDeviceId()const +{ + return deviceId_; +} + +void SignInGroupRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string SignInGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void SignInGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/SignInGroupResult.cc b/ccc/src/model/SignInGroupResult.cc new file mode 100644 index 000000000..e6d0b251f --- /dev/null +++ b/ccc/src/model/SignInGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +SignInGroupResult::SignInGroupResult() : + ServiceResult() +{} + +SignInGroupResult::SignInGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SignInGroupResult::~SignInGroupResult() +{} + +void SignInGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BreakCode"].isNull()) + data_.breakCode = dataNode["BreakCode"].asString(); + if(!dataNode["DeviceId"].isNull()) + data_.deviceId = dataNode["DeviceId"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["OutboundScenario"].isNull()) + data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true"; + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["UserState"].isNull()) + data_.userState = dataNode["UserState"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = dataNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string SignInGroupResult::getMessage()const +{ + return message_; +} + +int SignInGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector SignInGroupResult::getParams()const +{ + return params_; +} + +SignInGroupResult::Data SignInGroupResult::getData()const +{ + return data_; +} + +std::string SignInGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/RequestLoginInfoRequest.cc b/ccc/src/model/SignOutGroupRequest.cc similarity index 52% rename from ccc/src/model/RequestLoginInfoRequest.cc rename to ccc/src/model/SignOutGroupRequest.cc index ff991bdeb..6aa7d05c2 100644 --- a/ccc/src/model/RequestLoginInfoRequest.cc +++ b/ccc/src/model/SignOutGroupRequest.cc @@ -14,49 +14,49 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::RequestLoginInfoRequest; +using AlibabaCloud::CCC::Model::SignOutGroupRequest; -RequestLoginInfoRequest::RequestLoginInfoRequest() : - RpcServiceRequest("ccc", "2017-07-05", "RequestLoginInfo") +SignOutGroupRequest::SignOutGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "SignOutGroup") { setMethod(HttpRequest::Method::Post); } -RequestLoginInfoRequest::~RequestLoginInfoRequest() +SignOutGroupRequest::~SignOutGroupRequest() {} -std::string RequestLoginInfoRequest::getInstanceId()const -{ - return instanceId_; -} - -void RequestLoginInfoRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string RequestLoginInfoRequest::getUserId()const +std::string SignOutGroupRequest::getUserId()const { return userId_; } -void RequestLoginInfoRequest::setUserId(const std::string& userId) +void SignOutGroupRequest::setUserId(const std::string& userId) { userId_ = userId; setParameter("UserId", userId); } -std::string RequestLoginInfoRequest::getAccessKeyId()const +std::string SignOutGroupRequest::getDeviceId()const { - return accessKeyId_; + return deviceId_; } -void RequestLoginInfoRequest::setAccessKeyId(const std::string& accessKeyId) +void SignOutGroupRequest::setDeviceId(const std::string& deviceId) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string SignOutGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void SignOutGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); } diff --git a/ccc/src/model/SignOutGroupResult.cc b/ccc/src/model/SignOutGroupResult.cc new file mode 100644 index 000000000..77b766b88 --- /dev/null +++ b/ccc/src/model/SignOutGroupResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +SignOutGroupResult::SignOutGroupResult() : + ServiceResult() +{} + +SignOutGroupResult::SignOutGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SignOutGroupResult::~SignOutGroupResult() +{} + +void SignOutGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BreakCode"].isNull()) + data_.breakCode = dataNode["BreakCode"].asString(); + if(!dataNode["DeviceId"].isNull()) + data_.deviceId = dataNode["DeviceId"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["Heartbeat"].isNull()) + data_.heartbeat = std::stol(dataNode["Heartbeat"].asString()); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["Mobile"].isNull()) + data_.mobile = dataNode["Mobile"].asString(); + if(!dataNode["OutboundScenario"].isNull()) + data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true"; + if(!dataNode["Reserved"].isNull()) + data_.reserved = std::stol(dataNode["Reserved"].asString()); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["UserState"].isNull()) + data_.userState = dataNode["UserState"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = dataNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string SignOutGroupResult::getMessage()const +{ + return message_; +} + +int SignOutGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector SignOutGroupResult::getParams()const +{ + return params_; +} + +SignOutGroupResult::Data SignOutGroupResult::getData()const +{ + return data_; +} + +std::string SignOutGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/StartBack2BackCallRequest.cc b/ccc/src/model/StartBack2BackCallRequest.cc deleted file mode 100644 index b4d203289..000000000 --- a/ccc/src/model/StartBack2BackCallRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -StartBack2BackCallRequest::~StartBack2BackCallRequest() -{} - -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::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StartBack2BackCallRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -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::getWorkflowId()const -{ - return workflowId_; -} - -void StartBack2BackCallRequest::setWorkflowId(const std::string& workflowId) -{ - workflowId_ = workflowId; - setParameter("WorkflowId", workflowId); -} - diff --git a/ccc/src/model/StartBack2BackCallResult.cc b/ccc/src/model/StartBack2BackCallResult.cc deleted file mode 100644 index ea19038f6..000000000 --- a/ccc/src/model/StartBack2BackCallResult.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 deleted file mode 100644 index 76a8b7f75..000000000 --- a/ccc/src/model/StartJobRequest.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -StartJobRequest::~StartJobRequest() -{} - -std::string StartJobRequest::getGroupId()const -{ - return groupId_; -} - -void StartJobRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -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 dep1 = 0; dep1!= callingNumber.size(); dep1++) { - setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); - } -} - -std::string StartJobRequest::getInstanceId()const -{ - return instanceId_; -} - -void StartJobRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -bool StartJobRequest::getSelfHostedCallCenter()const -{ - return selfHostedCallCenter_; -} - -void StartJobRequest::setSelfHostedCallCenter(bool selfHostedCallCenter) -{ - selfHostedCallCenter_ = selfHostedCallCenter; - setParameter("SelfHostedCallCenter", selfHostedCallCenter ? "true" : "false"); -} - -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 deleted file mode 100644 index cc2c0c8c9..000000000 --- a/ccc/src/model/StartJobResult.cc +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 allTaskIdsNode = value["TaskIds"]["KeyValuePair"]; - for (auto valueTaskIdsKeyValuePair : allTaskIdsNode) - { - KeyValuePair taskIdsObject; - if(!valueTaskIdsKeyValuePair["Key"].isNull()) - taskIdsObject.key = valueTaskIdsKeyValuePair["Key"].asString(); - if(!valueTaskIdsKeyValuePair["Value"].isNull()) - taskIdsObject.value = valueTaskIdsKeyValuePair["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 deleted file mode 100644 index c7a12c21d..000000000 --- a/ccc/src/model/SubmitBatchJobsRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -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 deleted file mode 100644 index c5c54a523..000000000 --- a/ccc/src/model/SubmitBatchJobsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/SubmitCabRecordingRequest.cc b/ccc/src/model/SubmitCabRecordingRequest.cc deleted file mode 100644 index 739b05dcf..000000000 --- a/ccc/src/model/SubmitCabRecordingRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::SubmitCabRecordingRequest; - -SubmitCabRecordingRequest::SubmitCabRecordingRequest() : - RpcServiceRequest("ccc", "2017-07-05", "SubmitCabRecording") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitCabRecordingRequest::~SubmitCabRecordingRequest() -{} - -std::string SubmitCabRecordingRequest::getMergedRecording()const -{ - return mergedRecording_; -} - -void SubmitCabRecordingRequest::setMergedRecording(const std::string& mergedRecording) -{ - mergedRecording_ = mergedRecording; - setParameter("MergedRecording", mergedRecording); -} - -std::string SubmitCabRecordingRequest::getResourceRecording()const -{ - return resourceRecording_; -} - -void SubmitCabRecordingRequest::setResourceRecording(const std::string& resourceRecording) -{ - resourceRecording_ = resourceRecording; - setParameter("ResourceRecording", resourceRecording); -} - -std::string SubmitCabRecordingRequest::getInstanceId()const -{ - return instanceId_; -} - -void SubmitCabRecordingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -long SubmitCabRecordingRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; -} - -void SubmitCabRecordingRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); -} - -std::string SubmitCabRecordingRequest::getTaskId()const -{ - return taskId_; -} - -void SubmitCabRecordingRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); -} - diff --git a/ccc/src/model/SubmitCabRecordingResult.cc b/ccc/src/model/SubmitCabRecordingResult.cc deleted file mode 100644 index 8913bb449..000000000 --- a/ccc/src/model/SubmitCabRecordingResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -SubmitCabRecordingResult::SubmitCabRecordingResult() : - ServiceResult() -{} - -SubmitCabRecordingResult::SubmitCabRecordingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SubmitCabRecordingResult::~SubmitCabRecordingResult() -{} - -void SubmitCabRecordingResult::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 SubmitCabRecordingResult::getMessage()const -{ - return message_; -} - -int SubmitCabRecordingResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SubmitCabRecordingResult::getCode()const -{ - return code_; -} - -bool SubmitCabRecordingResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/SuspendJobsRequest.cc b/ccc/src/model/SuspendJobsRequest.cc deleted file mode 100644 index 3f17267de..000000000 --- a/ccc/src/model/SuspendJobsRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -{ - setMethod(HttpRequest::Method::Post); -} - -SuspendJobsRequest::~SuspendJobsRequest() -{} - -bool SuspendJobsRequest::getAll()const -{ - return all_; -} - -void SuspendJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); -} - -std::vector SuspendJobsRequest::getJobReferenceId()const -{ - return jobReferenceId_; -} - -void SuspendJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) -{ - jobReferenceId_ = jobReferenceId; - for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) { - setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1)); - } -} - -std::string SuspendJobsRequest::getGroupId()const -{ - return groupId_; -} - -void SuspendJobsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::vector SuspendJobsRequest::getJobId()const -{ - return jobId_; -} - -void SuspendJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } -} - -std::string SuspendJobsRequest::getInstanceId()const -{ - return instanceId_; -} - -void SuspendJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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 deleted file mode 100644 index 6d99feeea..000000000 --- a/ccc/src/model/SuspendJobsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/SuspendPredictiveJobsRequest.cc b/ccc/src/model/SuspendPredictiveJobsRequest.cc deleted file mode 100644 index 83252eff6..000000000 --- a/ccc/src/model/SuspendPredictiveJobsRequest.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::SuspendPredictiveJobsRequest; - -SuspendPredictiveJobsRequest::SuspendPredictiveJobsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "SuspendPredictiveJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -SuspendPredictiveJobsRequest::~SuspendPredictiveJobsRequest() -{} - -bool SuspendPredictiveJobsRequest::getAll()const -{ - return all_; -} - -void SuspendPredictiveJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); -} - -std::vector SuspendPredictiveJobsRequest::getJobId()const -{ - return jobId_; -} - -void SuspendPredictiveJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } -} - -std::string SuspendPredictiveJobsRequest::getInstanceId()const -{ - return instanceId_; -} - -void SuspendPredictiveJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string SuspendPredictiveJobsRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void SuspendPredictiveJobsRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - -std::string SuspendPredictiveJobsRequest::getJobGroupId()const -{ - return jobGroupId_; -} - -void SuspendPredictiveJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); -} - diff --git a/ccc/src/model/SuspendPredictiveJobsResult.cc b/ccc/src/model/SuspendPredictiveJobsResult.cc deleted file mode 100644 index 7ead3e61f..000000000 --- a/ccc/src/model/SuspendPredictiveJobsResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -SuspendPredictiveJobsResult::SuspendPredictiveJobsResult() : - ServiceResult() -{} - -SuspendPredictiveJobsResult::SuspendPredictiveJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SuspendPredictiveJobsResult::~SuspendPredictiveJobsResult() -{} - -void SuspendPredictiveJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -std::string SuspendPredictiveJobsResult::getMessage()const -{ - return message_; -} - -int SuspendPredictiveJobsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SuspendPredictiveJobsResult::getCode()const -{ - return code_; -} - -bool SuspendPredictiveJobsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListSkillGroupsOfUserRequest.cc b/ccc/src/model/TakeBreakRequest.cc similarity index 50% rename from ccc/src/model/ListSkillGroupsOfUserRequest.cc rename to ccc/src/model/TakeBreakRequest.cc index 14ef41159..ba02e0899 100644 --- a/ccc/src/model/ListSkillGroupsOfUserRequest.cc +++ b/ccc/src/model/TakeBreakRequest.cc @@ -14,49 +14,60 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListSkillGroupsOfUserRequest; +using AlibabaCloud::CCC::Model::TakeBreakRequest; -ListSkillGroupsOfUserRequest::ListSkillGroupsOfUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupsOfUser") +TakeBreakRequest::TakeBreakRequest() : + RpcServiceRequest("ccc", "2020-07-01", "TakeBreak") { setMethod(HttpRequest::Method::Post); } -ListSkillGroupsOfUserRequest::~ListSkillGroupsOfUserRequest() +TakeBreakRequest::~TakeBreakRequest() {} -std::string ListSkillGroupsOfUserRequest::getInstanceId()const +std::string TakeBreakRequest::getCode()const { - return instanceId_; + return code_; } -void ListSkillGroupsOfUserRequest::setInstanceId(const std::string& instanceId) +void TakeBreakRequest::setCode(const std::string& code) { - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + code_ = code; + setParameter("Code", code); } -std::string ListSkillGroupsOfUserRequest::getUserId()const +std::string TakeBreakRequest::getUserId()const { return userId_; } -void ListSkillGroupsOfUserRequest::setUserId(const std::string& userId) +void TakeBreakRequest::setUserId(const std::string& userId) { userId_ = userId; setParameter("UserId", userId); } -std::string ListSkillGroupsOfUserRequest::getAccessKeyId()const +std::string TakeBreakRequest::getDeviceId()const { - return accessKeyId_; + return deviceId_; } -void ListSkillGroupsOfUserRequest::setAccessKeyId(const std::string& accessKeyId) +void TakeBreakRequest::setDeviceId(const std::string& deviceId) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string TakeBreakRequest::getInstanceId()const +{ + return instanceId_; +} + +void TakeBreakRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); } diff --git a/ccc/src/model/TakeBreakResult.cc b/ccc/src/model/TakeBreakResult.cc new file mode 100644 index 000000000..8831b143e --- /dev/null +++ b/ccc/src/model/TakeBreakResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +TakeBreakResult::TakeBreakResult() : + ServiceResult() +{} + +TakeBreakResult::TakeBreakResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TakeBreakResult::~TakeBreakResult() +{} + +void TakeBreakResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BreakCode"].isNull()) + data_.breakCode = dataNode["BreakCode"].asString(); + if(!dataNode["DeviceId"].isNull()) + data_.deviceId = dataNode["DeviceId"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["Heartbeat"].isNull()) + data_.heartbeat = std::stol(dataNode["Heartbeat"].asString()); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["Mobile"].isNull()) + data_.mobile = dataNode["Mobile"].asString(); + if(!dataNode["OutboundScenario"].isNull()) + data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true"; + if(!dataNode["Reserved"].isNull()) + data_.reserved = std::stol(dataNode["Reserved"].asString()); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["UserState"].isNull()) + data_.userState = dataNode["UserState"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = dataNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string TakeBreakResult::getMessage()const +{ + return message_; +} + +int TakeBreakResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector TakeBreakResult::getParams()const +{ + return params_; +} + +TakeBreakResult::Data TakeBreakResult::getData()const +{ + return data_; +} + +std::string TakeBreakResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/TaskPreparingRequest.cc b/ccc/src/model/TaskPreparingRequest.cc deleted file mode 100644 index 00ac916e1..000000000 --- a/ccc/src/model/TaskPreparingRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::TaskPreparingRequest; - -TaskPreparingRequest::TaskPreparingRequest() : - RpcServiceRequest("ccc", "2017-07-05", "TaskPreparing") -{ - setMethod(HttpRequest::Method::Post); -} - -TaskPreparingRequest::~TaskPreparingRequest() -{} - -std::string TaskPreparingRequest::getJobId()const -{ - return jobId_; -} - -void TaskPreparingRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); -} - -std::string TaskPreparingRequest::getInstanceId()const -{ - return instanceId_; -} - -void TaskPreparingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -long TaskPreparingRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; -} - -void TaskPreparingRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); -} - diff --git a/ccc/src/model/TaskPreparingResult.cc b/ccc/src/model/TaskPreparingResult.cc deleted file mode 100644 index 798799315..000000000 --- a/ccc/src/model/TaskPreparingResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -TaskPreparingResult::TaskPreparingResult() : - ServiceResult() -{} - -TaskPreparingResult::TaskPreparingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TaskPreparingResult::~TaskPreparingResult() -{} - -void TaskPreparingResult::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["TaskId"].isNull()) - taskId_ = value["TaskId"].asString(); - -} - -std::string TaskPreparingResult::getTaskId()const -{ - return taskId_; -} - -std::string TaskPreparingResult::getMessage()const -{ - return message_; -} - -int TaskPreparingResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string TaskPreparingResult::getCode()const -{ - return code_; -} - -bool TaskPreparingResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/UnmuteCallRequest.cc b/ccc/src/model/UnmuteCallRequest.cc new file mode 100644 index 000000000..50ab12111 --- /dev/null +++ b/ccc/src/model/UnmuteCallRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::UnmuteCallRequest; + +UnmuteCallRequest::UnmuteCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "UnmuteCall") +{ + setMethod(HttpRequest::Method::Post); +} + +UnmuteCallRequest::~UnmuteCallRequest() +{} + +std::string UnmuteCallRequest::getUserId()const +{ + return userId_; +} + +void UnmuteCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string UnmuteCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void UnmuteCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string UnmuteCallRequest::getJobId()const +{ + return jobId_; +} + +void UnmuteCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string UnmuteCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnmuteCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnmuteCallRequest::getChannelId()const +{ + return channelId_; +} + +void UnmuteCallRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/ccc/src/model/UnmuteCallResult.cc b/ccc/src/model/UnmuteCallResult.cc new file mode 100644 index 000000000..c17ed0f5f --- /dev/null +++ b/ccc/src/model/UnmuteCallResult.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +UnmuteCallResult::UnmuteCallResult() : + ServiceResult() +{} + +UnmuteCallResult::UnmuteCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnmuteCallResult::~UnmuteCallResult() +{} + +void UnmuteCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["Index"].isNull()) + channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UnmuteCallResult::getMessage()const +{ + return message_; +} + +int UnmuteCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector UnmuteCallResult::getParams()const +{ + return params_; +} + +UnmuteCallResult::Data UnmuteCallResult::getData()const +{ + return data_; +} + +std::string UnmuteCallResult::getCode()const +{ + return code_; +} +