diff --git a/CHANGELOG b/CHANGELOG index 20fe77ba6..1f969b430 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-05-24 Version: 1.36.754 +- Export new API for report. + 2021-05-24 Version: 1.36.753 - Support TransformDBClusterPayType. diff --git a/VERSION b/VERSION index eaaaeccf5..62cd2a0f1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.753 \ No newline at end of file +1.36.754 \ No newline at end of file diff --git a/ccc/CMakeLists.txt b/ccc/CMakeLists.txt index 544d1c191..1a0adb4a3 100644 --- a/ccc/CMakeLists.txt +++ b/ccc/CMakeLists.txt @@ -21,629 +21,361 @@ 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/AddNumbersToSkillGroupRequest.h + include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h + include/alibabacloud/ccc/model/AddPersonalNumbersToUserRequest.h + include/alibabacloud/ccc/model/AddPersonalNumbersToUserResult.h + include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h + include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h + include/alibabacloud/ccc/model/AddPhoneNumbersRequest.h + include/alibabacloud/ccc/model/AddPhoneNumbersResult.h + include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h + include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h + include/alibabacloud/ccc/model/AddUsersToSkillGroupRequest.h + include/alibabacloud/ccc/model/AddUsersToSkillGroupResult.h + include/alibabacloud/ccc/model/AnswerCallRequest.h + include/alibabacloud/ccc/model/AnswerCallResult.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/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/CoachCallRequest.h + include/alibabacloud/ccc/model/CoachCallResult.h + include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h + include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h include/alibabacloud/ccc/model/CreateSkillGroupRequest.h include/alibabacloud/ccc/model/CreateSkillGroupResult.h - include/alibabacloud/ccc/model/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/GetContactInfoByOutboundTaskIdRequest.h - include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.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/GetCallDetailRecordRequest.h + include/alibabacloud/ccc/model/GetCallDetailRecordResult.h + include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h + include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h + include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h + include/alibabacloud/ccc/model/GetHistoricalInstanceReportResult.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/GetInstanceTrendingReportRequest.h + include/alibabacloud/ccc/model/GetInstanceTrendingReportResult.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/GetRealtimeInstanceStatesRequest.h + include/alibabacloud/ccc/model/GetRealtimeInstanceStatesResult.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/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/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/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/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/ListConfigItemsRequest.h + include/alibabacloud/ccc/model/ListConfigItemsResult.h include/alibabacloud/ccc/model/ListContactFlowsRequest.h include/alibabacloud/ccc/model/ListContactFlowsResult.h + include/alibabacloud/ccc/model/ListDevicesRequest.h + include/alibabacloud/ccc/model/ListDevicesResult.h + include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h + include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h + include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportRequest.h + include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportResult.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/ListIntervalAgentReportRequest.h + include/alibabacloud/ccc/model/ListIntervalAgentReportResult.h + include/alibabacloud/ccc/model/ListIntervalInstanceReportRequest.h + include/alibabacloud/ccc/model/ListIntervalInstanceReportResult.h + include/alibabacloud/ccc/model/ListIntervalSkillGroupReportRequest.h + include/alibabacloud/ccc/model/ListIntervalSkillGroupReportResult.h + include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h + include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h + include/alibabacloud/ccc/model/ListPersonalNumbersOfUserRequest.h + include/alibabacloud/ccc/model/ListPersonalNumbersOfUserResult.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/ListPhoneNumbersOfSkillGroupRequest.h + include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupResult.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/ListRealtimeSkillGroupStatesRequest.h + include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h + include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h + include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.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/ListSkillLevelsOfUserRequest.h + include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h + include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h + include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.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/MakeCallRequest.h + include/alibabacloud/ccc/model/MakeCallResult.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/ModifySkillLevelsOfUserRequest.h + include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.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/ModifyUserLevelsOfSkillGroupRequest.h + include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h + include/alibabacloud/ccc/model/MonitorCallRequest.h + include/alibabacloud/ccc/model/MonitorCallResult.h + include/alibabacloud/ccc/model/MuteCallRequest.h + 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/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/RemovePersonalNumbersFromUserRequest.h + include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserResult.h + include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsRequest.h + include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsResult.h + include/alibabacloud/ccc/model/RemovePhoneNumbersRequest.h + include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h + include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h + include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h + include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserRequest.h + include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserResult.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/SaveTerminalLogRequest.h - include/alibabacloud/ccc/model/SaveTerminalLogResult.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/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/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/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/AddNumbersToSkillGroupRequest.cc + src/model/AddNumbersToSkillGroupResult.cc + src/model/AddPersonalNumbersToUserRequest.cc + src/model/AddPersonalNumbersToUserResult.cc + src/model/AddPhoneNumberToSkillGroupsRequest.cc + src/model/AddPhoneNumberToSkillGroupsResult.cc + src/model/AddPhoneNumbersRequest.cc + src/model/AddPhoneNumbersResult.cc + src/model/AddSkillGroupsToUserRequest.cc + src/model/AddSkillGroupsToUserResult.cc + src/model/AddUsersToSkillGroupRequest.cc + src/model/AddUsersToSkillGroupResult.cc + src/model/AnswerCallRequest.cc + src/model/AnswerCallResult.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/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/CoachCallRequest.cc + src/model/CoachCallResult.cc + src/model/CompleteAttendedTransferRequest.cc + src/model/CompleteAttendedTransferResult.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/GetContactInfoByOutboundTaskIdRequest.cc - src/model/GetContactInfoByOutboundTaskIdResult.cc - src/model/GetConversationDetailByContactIdRequest.cc - src/model/GetConversationDetailByContactIdResult.cc - src/model/GetConversationListRequest.cc - src/model/GetConversationListResult.cc + src/model/GetCallDetailRecordRequest.cc + src/model/GetCallDetailRecordResult.cc + src/model/GetHistoricalCallerReportRequest.cc + src/model/GetHistoricalCallerReportResult.cc + src/model/GetHistoricalInstanceReportRequest.cc + src/model/GetHistoricalInstanceReportResult.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/GetInstanceTrendingReportRequest.cc + src/model/GetInstanceTrendingReportResult.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/GetRealtimeInstanceStatesRequest.cc + src/model/GetRealtimeInstanceStatesResult.cc + src/model/GetTurnCredentialsRequest.cc + src/model/GetTurnCredentialsResult.cc + src/model/GetTurnServerListRequest.cc + src/model/GetTurnServerListResult.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/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/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/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/ListConfigItemsRequest.cc + src/model/ListConfigItemsResult.cc src/model/ListContactFlowsRequest.cc src/model/ListContactFlowsResult.cc + src/model/ListDevicesRequest.cc + src/model/ListDevicesResult.cc + src/model/ListHistoricalAgentReportRequest.cc + src/model/ListHistoricalAgentReportResult.cc + src/model/ListHistoricalSkillGroupReportRequest.cc + src/model/ListHistoricalSkillGroupReportResult.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/ListIntervalAgentReportRequest.cc + src/model/ListIntervalAgentReportResult.cc + src/model/ListIntervalInstanceReportRequest.cc + src/model/ListIntervalInstanceReportResult.cc + src/model/ListIntervalSkillGroupReportRequest.cc + src/model/ListIntervalSkillGroupReportResult.cc + src/model/ListOutboundNumbersOfUserRequest.cc + src/model/ListOutboundNumbersOfUserResult.cc + src/model/ListPersonalNumbersOfUserRequest.cc + src/model/ListPersonalNumbersOfUserResult.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/ListPhoneNumbersOfSkillGroupRequest.cc + src/model/ListPhoneNumbersOfSkillGroupResult.cc + src/model/ListPrivilegesOfUserRequest.cc + src/model/ListPrivilegesOfUserResult.cc + src/model/ListRealtimeAgentStatesRequest.cc + src/model/ListRealtimeAgentStatesResult.cc + src/model/ListRealtimeSkillGroupStatesRequest.cc + src/model/ListRealtimeSkillGroupStatesResult.cc + src/model/ListRecentCallDetailRecordsRequest.cc + src/model/ListRecentCallDetailRecordsResult.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/ListSkillLevelsOfUserRequest.cc + src/model/ListSkillLevelsOfUserResult.cc + src/model/ListUserLevelsOfSkillGroupRequest.cc + src/model/ListUserLevelsOfSkillGroupResult.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/MakeCallRequest.cc + src/model/MakeCallResult.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/ModifySkillLevelsOfUserRequest.cc + src/model/ModifySkillLevelsOfUserResult.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/ModifyUserLevelsOfSkillGroupRequest.cc + src/model/ModifyUserLevelsOfSkillGroupResult.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/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/RemovePersonalNumbersFromUserRequest.cc + src/model/RemovePersonalNumbersFromUserResult.cc + src/model/RemovePhoneNumberFromSkillGroupsRequest.cc + src/model/RemovePhoneNumberFromSkillGroupsResult.cc + src/model/RemovePhoneNumbersRequest.cc + src/model/RemovePhoneNumbersResult.cc + src/model/RemovePhoneNumbersFromSkillGroupRequest.cc + src/model/RemovePhoneNumbersFromSkillGroupResult.cc + src/model/RemoveSkillGroupsFromUserRequest.cc + src/model/RemoveSkillGroupsFromUserResult.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/SaveTerminalLogRequest.cc - src/model/SaveTerminalLogResult.cc - src/model/SaveWebRTCStatsRequest.cc - src/model/SaveWebRTCStatsResult.cc - src/model/SendPredefinedShortMessageRequest.cc - src/model/SendPredefinedShortMessageResult.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/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/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 26f7c19d3..868c1f3f6 100644 --- a/ccc/include/alibabacloud/ccc/CCCClient.h +++ b/ccc/include/alibabacloud/ccc/CCCClient.h @@ -22,316 +22,182 @@ #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/AddNumbersToSkillGroupRequest.h" +#include "model/AddNumbersToSkillGroupResult.h" +#include "model/AddPersonalNumbersToUserRequest.h" +#include "model/AddPersonalNumbersToUserResult.h" +#include "model/AddPhoneNumberToSkillGroupsRequest.h" +#include "model/AddPhoneNumberToSkillGroupsResult.h" +#include "model/AddPhoneNumbersRequest.h" +#include "model/AddPhoneNumbersResult.h" +#include "model/AddSkillGroupsToUserRequest.h" +#include "model/AddSkillGroupsToUserResult.h" +#include "model/AddUsersToSkillGroupRequest.h" +#include "model/AddUsersToSkillGroupResult.h" +#include "model/AnswerCallRequest.h" +#include "model/AnswerCallResult.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/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/CoachCallRequest.h" +#include "model/CoachCallResult.h" +#include "model/CompleteAttendedTransferRequest.h" +#include "model/CompleteAttendedTransferResult.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/GetContactInfoByOutboundTaskIdRequest.h" -#include "model/GetContactInfoByOutboundTaskIdResult.h" -#include "model/GetConversationDetailByContactIdRequest.h" -#include "model/GetConversationDetailByContactIdResult.h" -#include "model/GetConversationListRequest.h" -#include "model/GetConversationListResult.h" +#include "model/GetCallDetailRecordRequest.h" +#include "model/GetCallDetailRecordResult.h" +#include "model/GetHistoricalCallerReportRequest.h" +#include "model/GetHistoricalCallerReportResult.h" +#include "model/GetHistoricalInstanceReportRequest.h" +#include "model/GetHistoricalInstanceReportResult.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/GetInstanceTrendingReportRequest.h" +#include "model/GetInstanceTrendingReportResult.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/GetRealtimeInstanceStatesRequest.h" +#include "model/GetRealtimeInstanceStatesResult.h" +#include "model/GetTurnCredentialsRequest.h" +#include "model/GetTurnCredentialsResult.h" +#include "model/GetTurnServerListRequest.h" +#include "model/GetTurnServerListResult.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/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/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/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/ListConfigItemsRequest.h" +#include "model/ListConfigItemsResult.h" #include "model/ListContactFlowsRequest.h" #include "model/ListContactFlowsResult.h" +#include "model/ListDevicesRequest.h" +#include "model/ListDevicesResult.h" +#include "model/ListHistoricalAgentReportRequest.h" +#include "model/ListHistoricalAgentReportResult.h" +#include "model/ListHistoricalSkillGroupReportRequest.h" +#include "model/ListHistoricalSkillGroupReportResult.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/ListIntervalAgentReportRequest.h" +#include "model/ListIntervalAgentReportResult.h" +#include "model/ListIntervalInstanceReportRequest.h" +#include "model/ListIntervalInstanceReportResult.h" +#include "model/ListIntervalSkillGroupReportRequest.h" +#include "model/ListIntervalSkillGroupReportResult.h" +#include "model/ListOutboundNumbersOfUserRequest.h" +#include "model/ListOutboundNumbersOfUserResult.h" +#include "model/ListPersonalNumbersOfUserRequest.h" +#include "model/ListPersonalNumbersOfUserResult.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/ListPhoneNumbersOfSkillGroupRequest.h" +#include "model/ListPhoneNumbersOfSkillGroupResult.h" +#include "model/ListPrivilegesOfUserRequest.h" +#include "model/ListPrivilegesOfUserResult.h" +#include "model/ListRealtimeAgentStatesRequest.h" +#include "model/ListRealtimeAgentStatesResult.h" +#include "model/ListRealtimeSkillGroupStatesRequest.h" +#include "model/ListRealtimeSkillGroupStatesResult.h" +#include "model/ListRecentCallDetailRecordsRequest.h" +#include "model/ListRecentCallDetailRecordsResult.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/ListSkillLevelsOfUserRequest.h" +#include "model/ListSkillLevelsOfUserResult.h" +#include "model/ListUserLevelsOfSkillGroupRequest.h" +#include "model/ListUserLevelsOfSkillGroupResult.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/MakeCallRequest.h" +#include "model/MakeCallResult.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/ModifySkillLevelsOfUserRequest.h" +#include "model/ModifySkillLevelsOfUserResult.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/ModifyUserLevelsOfSkillGroupRequest.h" +#include "model/ModifyUserLevelsOfSkillGroupResult.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/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/RemovePersonalNumbersFromUserRequest.h" +#include "model/RemovePersonalNumbersFromUserResult.h" +#include "model/RemovePhoneNumberFromSkillGroupsRequest.h" +#include "model/RemovePhoneNumberFromSkillGroupsResult.h" +#include "model/RemovePhoneNumbersRequest.h" +#include "model/RemovePhoneNumbersResult.h" +#include "model/RemovePhoneNumbersFromSkillGroupRequest.h" +#include "model/RemovePhoneNumbersFromSkillGroupResult.h" +#include "model/RemoveSkillGroupsFromUserRequest.h" +#include "model/RemoveSkillGroupsFromUserResult.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/SaveTerminalLogRequest.h" -#include "model/SaveTerminalLogResult.h" -#include "model/SaveWebRTCStatsRequest.h" -#include "model/SaveWebRTCStatsResult.h" -#include "model/SendPredefinedShortMessageRequest.h" -#include "model/SendPredefinedShortMessageResult.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/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/TakeBreakRequest.h" +#include "model/TakeBreakResult.h" +#include "model/UnmuteCallRequest.h" +#include "model/UnmuteCallResult.h" namespace AlibabaCloud @@ -341,941 +207,539 @@ 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 AddNumbersToSkillGroupOutcome; + typedef std::future AddNumbersToSkillGroupOutcomeCallable; + typedef std::function&)> AddNumbersToSkillGroupAsyncHandler; + typedef Outcome AddPersonalNumbersToUserOutcome; + typedef std::future AddPersonalNumbersToUserOutcomeCallable; + typedef std::function&)> AddPersonalNumbersToUserAsyncHandler; + typedef Outcome AddPhoneNumberToSkillGroupsOutcome; + typedef std::future AddPhoneNumberToSkillGroupsOutcomeCallable; + typedef std::function&)> AddPhoneNumberToSkillGroupsAsyncHandler; + typedef Outcome AddPhoneNumbersOutcome; + typedef std::future AddPhoneNumbersOutcomeCallable; + typedef std::function&)> AddPhoneNumbersAsyncHandler; + typedef Outcome AddSkillGroupsToUserOutcome; + typedef std::future AddSkillGroupsToUserOutcomeCallable; + typedef std::function&)> AddSkillGroupsToUserAsyncHandler; + typedef Outcome AddUsersToSkillGroupOutcome; + typedef std::future AddUsersToSkillGroupOutcomeCallable; + typedef std::function&)> AddUsersToSkillGroupAsyncHandler; + typedef Outcome AnswerCallOutcome; + typedef std::future AnswerCallOutcomeCallable; + typedef std::function&)> AnswerCallAsyncHandler; 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 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 CoachCallOutcome; + typedef std::future CoachCallOutcomeCallable; + typedef std::function&)> CoachCallAsyncHandler; + typedef Outcome CompleteAttendedTransferOutcome; + typedef std::future CompleteAttendedTransferOutcomeCallable; + typedef std::function&)> CompleteAttendedTransferAsyncHandler; 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 GetContactInfoByOutboundTaskIdOutcome; - typedef std::future GetContactInfoByOutboundTaskIdOutcomeCallable; - typedef std::function&)> GetContactInfoByOutboundTaskIdAsyncHandler; - typedef Outcome GetConversationDetailByContactIdOutcome; - typedef std::future GetConversationDetailByContactIdOutcomeCallable; - typedef std::function&)> GetConversationDetailByContactIdAsyncHandler; - typedef Outcome GetConversationListOutcome; - typedef std::future GetConversationListOutcomeCallable; - typedef std::function&)> GetConversationListAsyncHandler; + typedef Outcome GetCallDetailRecordOutcome; + typedef std::future GetCallDetailRecordOutcomeCallable; + typedef std::function&)> GetCallDetailRecordAsyncHandler; + typedef Outcome GetHistoricalCallerReportOutcome; + typedef std::future GetHistoricalCallerReportOutcomeCallable; + typedef std::function&)> GetHistoricalCallerReportAsyncHandler; + typedef Outcome GetHistoricalInstanceReportOutcome; + typedef std::future GetHistoricalInstanceReportOutcomeCallable; + typedef std::function&)> GetHistoricalInstanceReportAsyncHandler; 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 GetInstanceTrendingReportOutcome; + typedef std::future GetInstanceTrendingReportOutcomeCallable; + typedef std::function&)> GetInstanceTrendingReportAsyncHandler; + 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 GetRealtimeInstanceStatesOutcome; + typedef std::future GetRealtimeInstanceStatesOutcomeCallable; + typedef std::function&)> GetRealtimeInstanceStatesAsyncHandler; + typedef Outcome GetTurnCredentialsOutcome; + typedef std::future GetTurnCredentialsOutcomeCallable; + typedef std::function&)> GetTurnCredentialsAsyncHandler; + typedef Outcome GetTurnServerListOutcome; + typedef std::future GetTurnServerListOutcomeCallable; + typedef std::function&)> GetTurnServerListAsyncHandler; 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 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 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 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 ListConfigItemsOutcome; + typedef std::future ListConfigItemsOutcomeCallable; + typedef std::function&)> ListConfigItemsAsyncHandler; typedef Outcome ListContactFlowsOutcome; typedef std::future ListContactFlowsOutcomeCallable; typedef std::function&)> ListContactFlowsAsyncHandler; + typedef Outcome ListDevicesOutcome; + typedef std::future ListDevicesOutcomeCallable; + typedef std::function&)> ListDevicesAsyncHandler; + typedef Outcome ListHistoricalAgentReportOutcome; + typedef std::future ListHistoricalAgentReportOutcomeCallable; + typedef std::function&)> ListHistoricalAgentReportAsyncHandler; + typedef Outcome ListHistoricalSkillGroupReportOutcome; + typedef std::future ListHistoricalSkillGroupReportOutcomeCallable; + typedef std::function&)> ListHistoricalSkillGroupReportAsyncHandler; 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 ListIntervalAgentReportOutcome; + typedef std::future ListIntervalAgentReportOutcomeCallable; + typedef std::function&)> ListIntervalAgentReportAsyncHandler; + typedef Outcome ListIntervalInstanceReportOutcome; + typedef std::future ListIntervalInstanceReportOutcomeCallable; + typedef std::function&)> ListIntervalInstanceReportAsyncHandler; + typedef Outcome ListIntervalSkillGroupReportOutcome; + typedef std::future ListIntervalSkillGroupReportOutcomeCallable; + typedef std::function&)> ListIntervalSkillGroupReportAsyncHandler; + typedef Outcome ListOutboundNumbersOfUserOutcome; + typedef std::future ListOutboundNumbersOfUserOutcomeCallable; + typedef std::function&)> ListOutboundNumbersOfUserAsyncHandler; + typedef Outcome ListPersonalNumbersOfUserOutcome; + typedef std::future ListPersonalNumbersOfUserOutcomeCallable; + typedef std::function&)> ListPersonalNumbersOfUserAsyncHandler; 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 ListPhoneNumbersOfSkillGroupOutcome; + typedef std::future ListPhoneNumbersOfSkillGroupOutcomeCallable; + typedef std::function&)> ListPhoneNumbersOfSkillGroupAsyncHandler; + typedef Outcome ListPrivilegesOfUserOutcome; + typedef std::future ListPrivilegesOfUserOutcomeCallable; + typedef std::function&)> ListPrivilegesOfUserAsyncHandler; + typedef Outcome ListRealtimeAgentStatesOutcome; + typedef std::future ListRealtimeAgentStatesOutcomeCallable; + typedef std::function&)> ListRealtimeAgentStatesAsyncHandler; + typedef Outcome ListRealtimeSkillGroupStatesOutcome; + typedef std::future ListRealtimeSkillGroupStatesOutcomeCallable; + typedef std::function&)> ListRealtimeSkillGroupStatesAsyncHandler; + typedef Outcome ListRecentCallDetailRecordsOutcome; + typedef std::future ListRecentCallDetailRecordsOutcomeCallable; + typedef std::function&)> ListRecentCallDetailRecordsAsyncHandler; 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 ListSkillLevelsOfUserOutcome; + typedef std::future ListSkillLevelsOfUserOutcomeCallable; + typedef std::function&)> ListSkillLevelsOfUserAsyncHandler; + typedef Outcome ListUserLevelsOfSkillGroupOutcome; + typedef std::future ListUserLevelsOfSkillGroupOutcomeCallable; + typedef std::function&)> ListUserLevelsOfSkillGroupAsyncHandler; 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 MakeCallOutcome; + typedef std::future MakeCallOutcomeCallable; + typedef std::function&)> MakeCallAsyncHandler; 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 ModifySkillLevelsOfUserOutcome; + typedef std::future ModifySkillLevelsOfUserOutcomeCallable; + typedef std::function&)> ModifySkillLevelsOfUserAsyncHandler; 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 ModifyUserLevelsOfSkillGroupOutcome; + typedef std::future ModifyUserLevelsOfSkillGroupOutcomeCallable; + typedef std::function&)> ModifyUserLevelsOfSkillGroupAsyncHandler; + 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 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 RemovePersonalNumbersFromUserOutcome; + typedef std::future RemovePersonalNumbersFromUserOutcomeCallable; + typedef std::function&)> RemovePersonalNumbersFromUserAsyncHandler; + typedef Outcome RemovePhoneNumberFromSkillGroupsOutcome; + typedef std::future RemovePhoneNumberFromSkillGroupsOutcomeCallable; + typedef std::function&)> RemovePhoneNumberFromSkillGroupsAsyncHandler; + typedef Outcome RemovePhoneNumbersOutcome; + typedef std::future RemovePhoneNumbersOutcomeCallable; + typedef std::function&)> RemovePhoneNumbersAsyncHandler; + typedef Outcome RemovePhoneNumbersFromSkillGroupOutcome; + typedef std::future RemovePhoneNumbersFromSkillGroupOutcomeCallable; + typedef std::function&)> RemovePhoneNumbersFromSkillGroupAsyncHandler; + typedef Outcome RemoveSkillGroupsFromUserOutcome; + typedef std::future RemoveSkillGroupsFromUserOutcomeCallable; + typedef std::function&)> RemoveSkillGroupsFromUserAsyncHandler; 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 SaveTerminalLogOutcome; - typedef std::future SaveTerminalLogOutcomeCallable; - typedef std::function&)> SaveTerminalLogAsyncHandler; - typedef Outcome SaveWebRTCStatsOutcome; - typedef std::future SaveWebRTCStatsOutcomeCallable; - typedef std::function&)> SaveWebRTCStatsAsyncHandler; - typedef Outcome SendPredefinedShortMessageOutcome; - typedef std::future SendPredefinedShortMessageOutcomeCallable; - typedef std::function&)> SendPredefinedShortMessageAsyncHandler; + 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 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 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; + AddNumbersToSkillGroupOutcome addNumbersToSkillGroup(const Model::AddNumbersToSkillGroupRequest &request)const; + void addNumbersToSkillGroupAsync(const Model::AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddNumbersToSkillGroupOutcomeCallable addNumbersToSkillGroupCallable(const Model::AddNumbersToSkillGroupRequest& request) const; + AddPersonalNumbersToUserOutcome addPersonalNumbersToUser(const Model::AddPersonalNumbersToUserRequest &request)const; + void addPersonalNumbersToUserAsync(const Model::AddPersonalNumbersToUserRequest& request, const AddPersonalNumbersToUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPersonalNumbersToUserOutcomeCallable addPersonalNumbersToUserCallable(const Model::AddPersonalNumbersToUserRequest& request) const; + AddPhoneNumberToSkillGroupsOutcome addPhoneNumberToSkillGroups(const Model::AddPhoneNumberToSkillGroupsRequest &request)const; + void addPhoneNumberToSkillGroupsAsync(const Model::AddPhoneNumberToSkillGroupsRequest& request, const AddPhoneNumberToSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPhoneNumberToSkillGroupsOutcomeCallable addPhoneNumberToSkillGroupsCallable(const Model::AddPhoneNumberToSkillGroupsRequest& request) const; + AddPhoneNumbersOutcome addPhoneNumbers(const Model::AddPhoneNumbersRequest &request)const; + void addPhoneNumbersAsync(const Model::AddPhoneNumbersRequest& request, const AddPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPhoneNumbersOutcomeCallable addPhoneNumbersCallable(const Model::AddPhoneNumbersRequest& request) const; + AddSkillGroupsToUserOutcome addSkillGroupsToUser(const Model::AddSkillGroupsToUserRequest &request)const; + void addSkillGroupsToUserAsync(const Model::AddSkillGroupsToUserRequest& request, const AddSkillGroupsToUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSkillGroupsToUserOutcomeCallable addSkillGroupsToUserCallable(const Model::AddSkillGroupsToUserRequest& request) const; + AddUsersToSkillGroupOutcome addUsersToSkillGroup(const Model::AddUsersToSkillGroupRequest &request)const; + void addUsersToSkillGroupAsync(const Model::AddUsersToSkillGroupRequest& request, const AddUsersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUsersToSkillGroupOutcomeCallable addUsersToSkillGroupCallable(const Model::AddUsersToSkillGroupRequest& 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; 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; + 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; + CoachCallOutcome coachCall(const Model::CoachCallRequest &request)const; + void coachCallAsync(const Model::CoachCallRequest& request, const CoachCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CoachCallOutcomeCallable coachCallCallable(const Model::CoachCallRequest& 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; 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; - GetContactInfoByOutboundTaskIdOutcome getContactInfoByOutboundTaskId(const Model::GetContactInfoByOutboundTaskIdRequest &request)const; - void getContactInfoByOutboundTaskIdAsync(const Model::GetContactInfoByOutboundTaskIdRequest& request, const GetContactInfoByOutboundTaskIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetContactInfoByOutboundTaskIdOutcomeCallable getContactInfoByOutboundTaskIdCallable(const Model::GetContactInfoByOutboundTaskIdRequest& 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; + GetCallDetailRecordOutcome getCallDetailRecord(const Model::GetCallDetailRecordRequest &request)const; + void getCallDetailRecordAsync(const Model::GetCallDetailRecordRequest& request, const GetCallDetailRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCallDetailRecordOutcomeCallable getCallDetailRecordCallable(const Model::GetCallDetailRecordRequest& request) const; + GetHistoricalCallerReportOutcome getHistoricalCallerReport(const Model::GetHistoricalCallerReportRequest &request)const; + void getHistoricalCallerReportAsync(const Model::GetHistoricalCallerReportRequest& request, const GetHistoricalCallerReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHistoricalCallerReportOutcomeCallable getHistoricalCallerReportCallable(const Model::GetHistoricalCallerReportRequest& request) const; + GetHistoricalInstanceReportOutcome getHistoricalInstanceReport(const Model::GetHistoricalInstanceReportRequest &request)const; + void getHistoricalInstanceReportAsync(const Model::GetHistoricalInstanceReportRequest& request, const GetHistoricalInstanceReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHistoricalInstanceReportOutcomeCallable getHistoricalInstanceReportCallable(const Model::GetHistoricalInstanceReportRequest& 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; + GetInstanceTrendingReportOutcome getInstanceTrendingReport(const Model::GetInstanceTrendingReportRequest &request)const; + void getInstanceTrendingReportAsync(const Model::GetInstanceTrendingReportRequest& request, const GetInstanceTrendingReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceTrendingReportOutcomeCallable getInstanceTrendingReportCallable(const Model::GetInstanceTrendingReportRequest& 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; + GetRealtimeInstanceStatesOutcome getRealtimeInstanceStates(const Model::GetRealtimeInstanceStatesRequest &request)const; + void getRealtimeInstanceStatesAsync(const Model::GetRealtimeInstanceStatesRequest& request, const GetRealtimeInstanceStatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRealtimeInstanceStatesOutcomeCallable getRealtimeInstanceStatesCallable(const Model::GetRealtimeInstanceStatesRequest& 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; 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; + 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; 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; + 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; + ListConfigItemsOutcome listConfigItems(const Model::ListConfigItemsRequest &request)const; + void listConfigItemsAsync(const Model::ListConfigItemsRequest& request, const ListConfigItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigItemsOutcomeCallable listConfigItemsCallable(const Model::ListConfigItemsRequest& request) const; ListContactFlowsOutcome listContactFlows(const Model::ListContactFlowsRequest &request)const; void listContactFlowsAsync(const Model::ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListContactFlowsOutcomeCallable listContactFlowsCallable(const Model::ListContactFlowsRequest& request) const; + ListDevicesOutcome listDevices(const Model::ListDevicesRequest &request)const; + void listDevicesAsync(const Model::ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDevicesOutcomeCallable listDevicesCallable(const Model::ListDevicesRequest& request) const; + ListHistoricalAgentReportOutcome listHistoricalAgentReport(const Model::ListHistoricalAgentReportRequest &request)const; + void listHistoricalAgentReportAsync(const Model::ListHistoricalAgentReportRequest& request, const ListHistoricalAgentReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListHistoricalAgentReportOutcomeCallable listHistoricalAgentReportCallable(const Model::ListHistoricalAgentReportRequest& request) const; + ListHistoricalSkillGroupReportOutcome listHistoricalSkillGroupReport(const Model::ListHistoricalSkillGroupReportRequest &request)const; + void listHistoricalSkillGroupReportAsync(const Model::ListHistoricalSkillGroupReportRequest& request, const ListHistoricalSkillGroupReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListHistoricalSkillGroupReportOutcomeCallable listHistoricalSkillGroupReportCallable(const Model::ListHistoricalSkillGroupReportRequest& 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; + ListIntervalAgentReportOutcome listIntervalAgentReport(const Model::ListIntervalAgentReportRequest &request)const; + void listIntervalAgentReportAsync(const Model::ListIntervalAgentReportRequest& request, const ListIntervalAgentReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIntervalAgentReportOutcomeCallable listIntervalAgentReportCallable(const Model::ListIntervalAgentReportRequest& request) const; + ListIntervalInstanceReportOutcome listIntervalInstanceReport(const Model::ListIntervalInstanceReportRequest &request)const; + void listIntervalInstanceReportAsync(const Model::ListIntervalInstanceReportRequest& request, const ListIntervalInstanceReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIntervalInstanceReportOutcomeCallable listIntervalInstanceReportCallable(const Model::ListIntervalInstanceReportRequest& request) const; + ListIntervalSkillGroupReportOutcome listIntervalSkillGroupReport(const Model::ListIntervalSkillGroupReportRequest &request)const; + void listIntervalSkillGroupReportAsync(const Model::ListIntervalSkillGroupReportRequest& request, const ListIntervalSkillGroupReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIntervalSkillGroupReportOutcomeCallable listIntervalSkillGroupReportCallable(const Model::ListIntervalSkillGroupReportRequest& 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; + ListPersonalNumbersOfUserOutcome listPersonalNumbersOfUser(const Model::ListPersonalNumbersOfUserRequest &request)const; + void listPersonalNumbersOfUserAsync(const Model::ListPersonalNumbersOfUserRequest& request, const ListPersonalNumbersOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPersonalNumbersOfUserOutcomeCallable listPersonalNumbersOfUserCallable(const Model::ListPersonalNumbersOfUserRequest& 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; + ListPhoneNumbersOfSkillGroupOutcome listPhoneNumbersOfSkillGroup(const Model::ListPhoneNumbersOfSkillGroupRequest &request)const; + void listPhoneNumbersOfSkillGroupAsync(const Model::ListPhoneNumbersOfSkillGroupRequest& request, const ListPhoneNumbersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhoneNumbersOfSkillGroupOutcomeCallable listPhoneNumbersOfSkillGroupCallable(const Model::ListPhoneNumbersOfSkillGroupRequest& 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; + ListRealtimeSkillGroupStatesOutcome listRealtimeSkillGroupStates(const Model::ListRealtimeSkillGroupStatesRequest &request)const; + void listRealtimeSkillGroupStatesAsync(const Model::ListRealtimeSkillGroupStatesRequest& request, const ListRealtimeSkillGroupStatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRealtimeSkillGroupStatesOutcomeCallable listRealtimeSkillGroupStatesCallable(const Model::ListRealtimeSkillGroupStatesRequest& 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; 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; + ListSkillLevelsOfUserOutcome listSkillLevelsOfUser(const Model::ListSkillLevelsOfUserRequest &request)const; + void listSkillLevelsOfUserAsync(const Model::ListSkillLevelsOfUserRequest& request, const ListSkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillLevelsOfUserOutcomeCallable listSkillLevelsOfUserCallable(const Model::ListSkillLevelsOfUserRequest& request) const; + ListUserLevelsOfSkillGroupOutcome listUserLevelsOfSkillGroup(const Model::ListUserLevelsOfSkillGroupRequest &request)const; + void listUserLevelsOfSkillGroupAsync(const Model::ListUserLevelsOfSkillGroupRequest& request, const ListUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserLevelsOfSkillGroupOutcomeCallable listUserLevelsOfSkillGroupCallable(const Model::ListUserLevelsOfSkillGroupRequest& request) const; 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; + MakeCallOutcome makeCall(const Model::MakeCallRequest &request)const; + void makeCallAsync(const Model::MakeCallRequest& request, const MakeCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MakeCallOutcomeCallable makeCallCallable(const Model::MakeCallRequest& request) const; ModifyPhoneNumberOutcome modifyPhoneNumber(const Model::ModifyPhoneNumberRequest &request)const; void modifyPhoneNumberAsync(const Model::ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyPhoneNumberOutcomeCallable modifyPhoneNumberCallable(const Model::ModifyPhoneNumberRequest& request) const; - 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; + ModifySkillLevelsOfUserOutcome modifySkillLevelsOfUser(const Model::ModifySkillLevelsOfUserRequest &request)const; + void modifySkillLevelsOfUserAsync(const Model::ModifySkillLevelsOfUserRequest& request, const ModifySkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySkillLevelsOfUserOutcomeCallable modifySkillLevelsOfUserCallable(const Model::ModifySkillLevelsOfUserRequest& 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; + ModifyUserLevelsOfSkillGroupOutcome modifyUserLevelsOfSkillGroup(const Model::ModifyUserLevelsOfSkillGroupRequest &request)const; + void modifyUserLevelsOfSkillGroupAsync(const Model::ModifyUserLevelsOfSkillGroupRequest& request, const ModifyUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyUserLevelsOfSkillGroupOutcomeCallable modifyUserLevelsOfSkillGroupCallable(const Model::ModifyUserLevelsOfSkillGroupRequest& request) const; + MonitorCallOutcome monitorCall(const Model::MonitorCallRequest &request)const; + void monitorCallAsync(const Model::MonitorCallRequest& request, const MonitorCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MonitorCallOutcomeCallable monitorCallCallable(const Model::MonitorCallRequest& request) const; + 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; + 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; + RemovePersonalNumbersFromUserOutcome removePersonalNumbersFromUser(const Model::RemovePersonalNumbersFromUserRequest &request)const; + void removePersonalNumbersFromUserAsync(const Model::RemovePersonalNumbersFromUserRequest& request, const RemovePersonalNumbersFromUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemovePersonalNumbersFromUserOutcomeCallable removePersonalNumbersFromUserCallable(const Model::RemovePersonalNumbersFromUserRequest& request) const; + RemovePhoneNumberFromSkillGroupsOutcome removePhoneNumberFromSkillGroups(const Model::RemovePhoneNumberFromSkillGroupsRequest &request)const; + void removePhoneNumberFromSkillGroupsAsync(const Model::RemovePhoneNumberFromSkillGroupsRequest& request, const RemovePhoneNumberFromSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemovePhoneNumberFromSkillGroupsOutcomeCallable removePhoneNumberFromSkillGroupsCallable(const Model::RemovePhoneNumberFromSkillGroupsRequest& request) const; + RemovePhoneNumbersOutcome removePhoneNumbers(const Model::RemovePhoneNumbersRequest &request)const; + void removePhoneNumbersAsync(const Model::RemovePhoneNumbersRequest& request, const RemovePhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemovePhoneNumbersOutcomeCallable removePhoneNumbersCallable(const Model::RemovePhoneNumbersRequest& request) const; + RemovePhoneNumbersFromSkillGroupOutcome removePhoneNumbersFromSkillGroup(const Model::RemovePhoneNumbersFromSkillGroupRequest &request)const; + void removePhoneNumbersFromSkillGroupAsync(const Model::RemovePhoneNumbersFromSkillGroupRequest& request, const RemovePhoneNumbersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemovePhoneNumbersFromSkillGroupOutcomeCallable removePhoneNumbersFromSkillGroupCallable(const Model::RemovePhoneNumbersFromSkillGroupRequest& request) const; + RemoveSkillGroupsFromUserOutcome removeSkillGroupsFromUser(const Model::RemoveSkillGroupsFromUserRequest &request)const; + void removeSkillGroupsFromUserAsync(const Model::RemoveSkillGroupsFromUserRequest& request, const RemoveSkillGroupsFromUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveSkillGroupsFromUserOutcomeCallable removeSkillGroupsFromUserCallable(const Model::RemoveSkillGroupsFromUserRequest& 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; - SaveTerminalLogOutcome saveTerminalLog(const Model::SaveTerminalLogRequest &request)const; - void saveTerminalLogAsync(const Model::SaveTerminalLogRequest& request, const SaveTerminalLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveTerminalLogOutcomeCallable saveTerminalLogCallable(const Model::SaveTerminalLogRequest& 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; + 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; 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; + 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/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/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/ListTrunksOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h similarity index 71% rename from ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h index 8083cc160..3f1ee45d5 100644 --- a/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListTrunksOfSkillGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddNumbersToSkillGroupRequest : public RpcServiceRequest { public: - ListTrunksOfSkillGroupRequest(); - ~ListTrunksOfSkillGroupRequest(); + AddNumbersToSkillGroupRequest(); + ~AddNumbersToSkillGroupRequest(); + std::string getNumberList()const; + void setNumberList(const std::string& numberList); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSkillGroupId()const; void setSkillGroupId(const std::string& skillGroupId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: + std::string numberList_; std::string instanceId_; std::string skillGroupId_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h b/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/CreateFaultResult.h rename to ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h index abd530465..366040577 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ #include #include @@ -29,18 +29,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CreateFaultResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT AddNumbersToSkillGroupResult : public ServiceResult { public: - CreateFaultResult(); - explicit CreateFaultResult(const std::string &payload); - ~CreateFaultResult(); + AddNumbersToSkillGroupResult(); + explicit AddNumbersToSkillGroupResult(const std::string &payload); + ~AddNumbersToSkillGroupResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -48,10 +47,9 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserRequest.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h rename to ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserRequest.h index 051dd88bd..c7087f90d 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeleteSurveyRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddPersonalNumbersToUserRequest : public RpcServiceRequest { public: - DeleteSurveyRequest(); - ~DeleteSurveyRequest(); + AddPersonalNumbersToUserRequest(); + ~AddPersonalNumbersToUserRequest(); - std::string getSurveyId()const; - void setSurveyId(const std::string& surveyId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getNumberList()const; + void setNumberList(const std::string& numberList); 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 userId_; + std::string numberList_; std::string instanceId_; - std::string scenarioId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserResult.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h rename to ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserResult.h index fe820fb96..e5e842c8e 100644 --- a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserResult.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_ADDPERSONALNUMBERSTOUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERRESULT_H_ #include #include @@ -29,31 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT AddPersonalNumbersToUserResult : public ServiceResult { public: - CreatePredictiveJobGroupResult(); - explicit CreatePredictiveJobGroupResult(const std::string &payload); - ~CreatePredictiveJobGroupResult(); - std::string getJobGroupId()const; + AddPersonalNumbersToUserResult(); + explicit AddPersonalNumbersToUserResult(const std::string &payload); + ~AddPersonalNumbersToUserResult(); 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 jobGroupId_; std::string message_; int httpStatusCode_; + std::vector data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERRESULT_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/ListTransferableSkillGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h rename to ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h index 7a4e3a7cd..7c26846c6 100644 --- a/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListTransferableSkillGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberToSkillGroupsRequest : public RpcServiceRequest { public: - ListTransferableSkillGroupsRequest(); - ~ListTransferableSkillGroupsRequest(); + AddPhoneNumberToSkillGroupsRequest(); + ~AddPhoneNumberToSkillGroupsRequest(); + 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); + std::string getSkillGroupIdList()const; + void setSkillGroupIdList(const std::string& skillGroupIdList); private: + std::string number_; std::string instanceId_; - std::string accessKeyId_; + std::string skillGroupIdList_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h rename to ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h index e02bccc15..1e72227a3 100644 --- a/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ #include #include @@ -29,18 +29,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddJobsToPredictiveJobGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberToSkillGroupsResult : public ServiceResult { public: - AddJobsToPredictiveJobGroupResult(); - explicit AddJobsToPredictiveJobGroupResult(const std::string &payload); - ~AddJobsToPredictiveJobGroupResult(); + AddPhoneNumberToSkillGroupsResult(); + explicit AddPhoneNumberToSkillGroupsResult(const std::string &payload); + ~AddPhoneNumberToSkillGroupsResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -48,10 +47,9 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumbersRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h rename to ccc/include/alibabacloud/ccc/model/AddPhoneNumbersRequest.h index 7025884be..30103bbdd 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumbersRequest.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_ADDPHONENUMBERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddPhoneNumbersRequest : public RpcServiceRequest { public: - AddPhoneNumberRequest(); - ~AddPhoneNumberRequest(); + AddPhoneNumbersRequest(); + ~AddPhoneNumbersRequest(); 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 getNumberGroupId()const; + void setNumberGroupId(const std::string& numberGroupId); + std::string getNumberList()const; + void setNumberList(const std::string& numberList); 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 numberGroupId_; + std::string numberList_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumbersResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h rename to ccc/include/alibabacloud/ccc/model/AddPhoneNumbersResult.h index af4bfbcce..461e6683a 100644 --- a/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumbersResult.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_ADDPHONENUMBERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSRESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeletePhoneTagsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT AddPhoneNumbersResult : public ServiceResult { public: - DeletePhoneTagsResult(); - explicit DeletePhoneTagsResult(const std::string &payload); - ~DeletePhoneTagsResult(); + AddPhoneNumbersResult(); + explicit AddPhoneNumbersResult(const std::string &payload); + ~AddPhoneNumbersResult(); 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_DELETEPHONETAGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSRESULT_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/DownloadCabRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h rename to ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h index b16671bc7..2701bf41b 100644 --- a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DownloadCabRecordingRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddSkillGroupsToUserRequest : public RpcServiceRequest { public: - DownloadCabRecordingRequest(); - ~DownloadCabRecordingRequest(); + AddSkillGroupsToUserRequest(); + ~AddSkillGroupsToUserRequest(); + std::string getUserId()const; + void setUserId(const std::string& userId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); + std::string getSkillLevelList()const; + void setSkillLevelList(const std::string& skillLevelList); private: + std::string userId_; std::string instanceId_; - std::string taskId_; + std::string skillLevelList_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h rename to ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h index 78dfccfbf..799e37848 100644 --- a/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ResumePredictiveJobsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT AddSkillGroupsToUserResult : public ServiceResult { public: - ResumePredictiveJobsResult(); - explicit ResumePredictiveJobsResult(const std::string &payload); - ~ResumePredictiveJobsResult(); + AddSkillGroupsToUserResult(); + explicit AddSkillGroupsToUserResult(const std::string &payload); + ~AddSkillGroupsToUserResult(); 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_RESUMEPREDICTIVEJOBSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupRequest.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupRequest.h index 81de5faec..8403649f7 100644 --- a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddUsersToSkillGroupRequest : public RpcServiceRequest { public: - PublishPredictiveJobGroupRequest(); - ~PublishPredictiveJobGroupRequest(); + AddUsersToSkillGroupRequest(); + ~AddUsersToSkillGroupRequest(); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getUserSkillLevelList()const; + void setUserSkillLevelList(const std::string& userSkillLevelList); 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 userSkillLevelList_; std::string skillGroupId_; - std::string jobGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h b/ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupResult.h similarity index 73% rename from ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h rename to ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupResult.h index 88d2e2505..6a9aa434f 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPRESULT_H_ #include #include @@ -29,18 +29,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPhoneTagsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT AddUsersToSkillGroupResult : public ServiceResult { public: - AddPhoneTagsResult(); - explicit AddPhoneTagsResult(const std::string &payload); - ~AddPhoneTagsResult(); + AddUsersToSkillGroupResult(); + explicit AddUsersToSkillGroupResult(const std::string &payload); + ~AddUsersToSkillGroupResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -48,10 +47,9 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPRESULT_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/AssignUsersRequest.h b/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h index 1831d549c..0c4122b69 100644 --- a/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h @@ -35,26 +35,23 @@ namespace AlibabaCloud 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 getRamIdList()const; + void setRamIdList(const std::string& ramIdList); + std::string getRoleId()const; + void setRoleId(const std::string& roleId); + std::string getWorkMode()const; + void setWorkMode(const std::string& workMode); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::vector getSkillGroupId()const; - void setSkillGroupId(const std::vector& skillGroupId); + std::string getSkillLevelList()const; + void setSkillLevelList(const std::string& skillLevelList); private: - std::vector roleId_; - std::string accessKeyId_; - std::vector userRamId_; - std::vector skillLevel_; + std::string ramIdList_; + std::string roleId_; + std::string workMode_; std::string instanceId_; - std::vector skillGroupId_; + std::string skillLevelList_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h b/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h index a49f3f8fa..e3f6ecc4c 100644 --- a/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h @@ -39,16 +39,20 @@ namespace AlibabaCloud ~AssignUsersResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::string getData()const; + std::string getSync()const; + std::string getWorkflowId()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + std::string data_; + std::string sync_; + std::string workflowId_; std::string code_; - bool success_; }; } 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/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/LaunchAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h rename to ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h index 4f7260461..5b1466656 100644 --- a/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISEREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODEREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT LaunchAppraiseRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ChangeWorkModeRequest : public RpcServiceRequest { public: - LaunchAppraiseRequest(); - ~LaunchAppraiseRequest(); + ChangeWorkModeRequest(); + ~ChangeWorkModeRequest(); - std::string getAcid()const; - void setAcid(const std::string& acid); + 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 getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: - std::string acid_; + std::string workMode_; + std::string userId_; + std::string deviceId_; std::string instanceId_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISEREQUEST_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/ChangeWorkModeResult.h b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeResult.h new file mode 100644 index 000000000..b727c1aeb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeResult.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_CHANGEWORKMODERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + 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; + }; + + + 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; + + 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_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/CoachCallRequest.h b/ccc/include/alibabacloud/ccc/model/CoachCallRequest.h new file mode 100644 index 000000000..c66a3b3af --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CoachCallRequest.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_COACHCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_COACHCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CoachCallRequest : public RpcServiceRequest + { + + public: + CoachCallRequest(); + ~CoachCallRequest(); + + std::string getCoachedUserId()const; + void setCoachedUserId(const std::string& coachedUserId); + 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); + + private: + std::string coachedUserId_; + std::string userId_; + std::string deviceId_; + std::string jobId_; + int timeoutSeconds_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_COACHCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CoachCallResult.h b/ccc/include/alibabacloud/ccc/model/CoachCallResult.h new file mode 100644 index 000000000..493eb9da3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CoachCallResult.h @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_COACHCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_COACHCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CoachCallResult : 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::string uri; + std::vector signedSkillGroupIdList; + std::string extension; + std::string deviceState; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; + + + CoachCallResult(); + explicit CoachCallResult(const std::string &payload); + ~CoachCallResult(); + 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_COACHCALLRESULT_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/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 index e9f99947d..15b73d15e 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h @@ -35,34 +35,19 @@ namespace AlibabaCloud 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 getDisplayName()const; + void setDisplayName(const std::string& displayName); 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 displayName_; std::string name_; }; diff --git a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h index c594714e9..ffeb11507 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h @@ -32,6 +32,13 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT CreateSkillGroupResult : public ServiceResult { public: + struct Data + { + std::string description; + std::string instanceId; + std::string skillGroupId; + std::string name; + }; CreateSkillGroupResult(); @@ -39,18 +46,16 @@ namespace AlibabaCloud ~CreateSkillGroupResult(); 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_; }; } 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 index 27df9100f..6f3eac9c3 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h @@ -35,37 +35,34 @@ namespace AlibabaCloud 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 getRoleId()const; + void setRoleId(const std::string& roleId); + std::string getMobile()const; + void setMobile(const std::string& mobile); + std::string getWorkMode()const; + void setWorkMode(const std::string& workMode); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string 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); + bool getResetPassword()const; + void setResetPassword(bool resetPassword); + std::string getSkillLevelList()const; + void setSkillLevelList(const std::string& skillLevelList); std::string getEmail()const; void setEmail(const std::string& email); private: - std::string privateOutboundNumberId_; std::string loginName_; - std::vector roleId_; - std::string accessKeyId_; - std::vector skillLevel_; + std::string roleId_; + std::string mobile_; + std::string workMode_; std::string instanceId_; - std::string phone_; std::string displayName_; - std::vector skillGroupId_; + bool resetPassword_; + std::string skillLevelList_; std::string email_; }; diff --git a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h index 0117738a0..4633720ad 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h @@ -32,25 +32,35 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT CreateUserResult : public ServiceResult { public: + struct Data + { + std::string extension; + std::string loginName; + std::string email; + std::string userId; + std::string displayName; + std::string mobile; + std::string workMode; + }; CreateUserResult(); explicit CreateUserResult(const std::string &payload); ~CreateUserResult(); std::string getMessage()const; - std::string getUserId()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_; - std::string userId_; int httpStatusCode_; + std::vector params_; + Data data_; std::string code_; - bool success_; }; } 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/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 index 96945d011..ad245f1e0 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h @@ -39,13 +39,13 @@ namespace AlibabaCloud 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); + bool getForce()const; + void setForce(bool force); private: std::string instanceId_; std::string skillGroupId_; - std::string accessKeyId_; + bool force_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h index a1223b3c2..481cbd7fb 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h @@ -40,7 +40,6 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -48,7 +47,6 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; - bool success_; }; } 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/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/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/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/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/GetJobFileUploadUrlRequest.h b/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h rename to ccc/include/alibabacloud/ccc/model/GetCallDetailRecordRequest.h index 8f6da70c0..bc746d58b 100644 --- a/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetJobFileUploadUrlRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetCallDetailRecordRequest : public RpcServiceRequest { public: - GetJobFileUploadUrlRequest(); - ~GetJobFileUploadUrlRequest(); + GetCallDetailRecordRequest(); + ~GetCallDetailRecordRequest(); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getFileName()const; - void setFileName(const std::string& fileName); + std::string getContactId()const; + void setContactId(const std::string& contactId); private: std::string instanceId_; - std::string fileName_; + std::string contactId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordResult.h b/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordResult.h new file mode 100644 index 000000000..d6930bf37 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordResult.h @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetCallDetailRecordResult : public ServiceResult + { + public: + struct Data + { + struct CdrAgentEventsItem + { + struct EventSequenceItem + { + long eventTime; + std::string event; + }; + std::vector eventSequence; + std::string agentId; + std::string agentName; + std::string skillGroupId; + }; + struct CdrIvrEventsItem + { + struct EventSequenceItem2 + { + long eventTime; + std::string event; + }; + std::string flowId; + std::vector eventSequence1; + }; + struct CdrQueueEventsItem + { + struct EventSequenceItem4 + { + long eventTime; + std::string event; + }; + std::string flowId; + std::vector eventSequence3; + std::string queueId; + std::string queueName; + int queueType; + }; + std::string skillGroupIds; + std::string calledNumber; + std::string contactType; + std::string contactDisposition; + std::string instanceId; + std::string releaseInitiator; + std::vector cdrIvrEvents; + int satisfaction; + long startTime; + std::string contactId; + long callDuration; + std::string callingNumber; + long releaseTime; + bool recordingReady; + std::string skillGroupNames; + std::vector cdrQueueEvents; + std::string satisfactionSurveyChannel; + std::string agentIds; + bool satisfactionSurveyOffered; + std::vector cdrAgentEvents; + long establishedTime; + std::string agentNames; + }; + + + GetCallDetailRecordResult(); + explicit GetCallDetailRecordResult(const std::string &payload); + ~GetCallDetailRecordResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDRESULT_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/GetContactInfoByOutboundTaskIdResult.h b/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.h deleted file mode 100644 index ee5f321ae..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.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_GETCONTACTINFOBYOUTBOUNDTASKIDRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT GetContactInfoByOutboundTaskIdResult : public ServiceResult - { - public: - struct ContactIdentity - { - std::string jobGroupId; - std::string userPhone; - std::string caller; - std::string contactReferrnceId; - }; - - - GetContactInfoByOutboundTaskIdResult(); - explicit GetContactInfoByOutboundTaskIdResult(const std::string &payload); - ~GetContactInfoByOutboundTaskIdResult(); - std::string getMessage()const; - ContactIdentity getContactIdentity()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - ContactIdentity contactIdentity_; - int httpStatusCode_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDRESULT_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/ListAgentDevicesRequest.h b/ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h rename to ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h index b6fb0914b..b36cec1e0 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTREQUEST_H_ #include #include @@ -28,33 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentDevicesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetHistoricalCallerReportRequest : public RpcServiceRequest { public: - ListAgentDevicesRequest(); - ~ListAgentDevicesRequest(); + GetHistoricalCallerReportRequest(); + ~GetHistoricalCallerReportRequest(); - 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); + long getStartTime()const; + void setStartTime(long startTime); + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - std::string ramIds_; - long startTime_; long stopTime_; - std::string accessKeyId_; + long startTime_; + std::string callingNumber_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h rename to ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h index 63982c551..e7346e58b 100644 --- a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTRESULT_H_ #include #include @@ -29,29 +29,34 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetHistoricalCallerReportResult : public ServiceResult { public: + struct Data + { + long lastCallingTime; + long totalCalls; + }; - PublishPredictiveJobGroupResult(); - explicit PublishPredictiveJobGroupResult(const std::string &payload); - ~PublishPredictiveJobGroupResult(); + GetHistoricalCallerReportResult(); + explicit GetHistoricalCallerReportResult(const std::string &payload); + ~GetHistoricalCallerReportResult(); 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_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h b/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h rename to ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h index 2c3cae1fd..be749614c 100644 --- a/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETHISTORICALINSTANCEREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETHISTORICALINSTANCEREPORTREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DownloadUnreachableContactsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetHistoricalInstanceReportRequest : public RpcServiceRequest { public: - DownloadUnreachableContactsRequest(); - ~DownloadUnreachableContactsRequest(); + GetHistoricalInstanceReportRequest(); + ~GetHistoricalInstanceReportRequest(); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); private: + long endTime_; + long startTime_; std::string instanceId_; - std::string jobGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETHISTORICALINSTANCEREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportResult.h b/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportResult.h new file mode 100644 index 000000000..2809afed5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportResult.h @@ -0,0 +1,157 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETHISTORICALINSTANCEREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETHISTORICALINSTANCEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetHistoricalInstanceReportResult : public ServiceResult + { + public: + struct Data + { + struct Inbound + { + long callsAbandonedInQueue; + float serviceLevel20; + long totalWorkTime; + long callsRinged; + long totalHoldTime; + float averageHoldTime; + long maxAbandonedInIVRTime; + long callsAbandoned; + long callsOffered; + long maxRingTime; + long callsHold; + float satisfactionIndex; + long maxAbandonedInRingTime; + long totalRingTime; + float handleRate; + float averageAbandonedInQueueTime; + long callsAbandonedInRinging; + long totalAbandonedInIVRTime; + float averageWaitTime; + long totalTalkTime; + long totalAbandonedInRingTime; + long callsQueued; + long maxTalkTime; + float averageAbandonedInIVRTime; + long totalAbandonTime; + float averageTalkTime; + long maxHoldTime; + long callsAbandonedInIVR; + long callsConsulted; + long maxAbandonedInQueueTime; + long satisfactionSurveysOffered; + long callsHandled; + long maxWaitTime; + long satisfactionSurveysResponded; + long callsTransferred; + float averageRingTime; + long maxAbandonTime; + long totalWaitTime; + float averageAbandonTime; + float averageAbandonedInRingTime; + float averageWorkTime; + long totalAbandonedInQueueTime; + long maxWorkTime; + float abandonRate; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long totalHoldTime; + float averageHoldTime; + long callsDialedSuccess; + long satisfactionSurveysOffered; + int callsHold; + float satisfactionIndex; + long satisfactionSurveysResponded; + float averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + float averageWorkTime; + long maxWorkTime; + float answerRate; + float averageTalkTime; + long maxHoldTime; + }; + struct Overall + { + long totalReadyTime; + long totalBreakTime; + long totalCalls; + long totalWorkTime; + long totalHoldTime; + float averageHoldTime; + 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; + long maxHoldTime; + float occupancyRate; + }; + Outbound outbound; + Overall overall; + Inbound inbound; + }; + + + GetHistoricalInstanceReportResult(); + explicit GetHistoricalInstanceReportResult(const std::string &payload); + ~GetHistoricalInstanceReportResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETHISTORICALINSTANCEREPORTRESULT_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 index c12adb119..b64d7c689 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud 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/GetInstanceResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h index 7ff018413..278108050 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h @@ -32,51 +32,52 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT GetInstanceResult : public ServiceResult { public: - struct Instance + struct Data { struct User { - struct Detail - { - std::string loginName; - std::string department; - std::string email; - std::string phone; - std::string displayName; - }; + std::string extension; + std::string loginName; + std::string roleName; + std::string email; std::string instanceId; std::string userId; - std::string ramId; - Detail detail; + std::string displayName; + std::string mobile; + std::string roleId; + std::string workMode; }; struct PhoneNumber { + struct SkillGroup + { + std::string description; + std::string instanceId; + int phoneNumberCount; + int userCount; + std::string displayName; + std::string skillGroupId; + std::string name; + }; + bool active; std::string usage; - bool testOnly; - bool allowOutbound; std::string number; + std::string contactFlowId; std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::string phoneNumberDescription; + std::string userId; + std::vector skillGroups; + std::string city; + std::string province; }; std::string status; - std::vector phoneNumbers; - std::string owner; - long createdTime; - std::string instanceId; - std::string domainName; + std::vector adminList; + std::string description; 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; + std::string domainName; + std::string aliyunUid; + std::vector numberList; + std::string id; + std::string name; }; @@ -84,19 +85,19 @@ namespace AlibabaCloud explicit GetInstanceResult(const std::string &payload); ~GetInstanceResult(); 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_; }; } 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/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/DeleteMediaRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportRequest.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h rename to ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportRequest.h index 3b53abb00..e89113256 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeleteMediaRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetInstanceTrendingReportRequest : public RpcServiceRequest { public: - DeleteMediaRequest(); - ~DeleteMediaRequest(); + GetInstanceTrendingReportRequest(); + ~GetInstanceTrendingReportRequest(); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); 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: + long endTime_; + long startTime_; std::string instanceId_; - std::string name_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportResult.h new file mode 100644 index 000000000..7285b93fd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceTrendingReportResult : public ServiceResult + { + public: + struct Data + { + struct InboundItem + { + long callsAbandonedInRinging; + long totalCalls; + long callsAbandonedInQueue; + long callsQueued; + long callsHandled; + long callsAbandonedInIVR; + long statsTime; + }; + struct OutboundItem + { + long callsAnswered; + long totalCalls; + long statsTime; + }; + std::vector outbound; + std::vector inbound; + }; + + + GetInstanceTrendingReportResult(); + explicit GetInstanceTrendingReportResult(const std::string &payload); + ~GetInstanceTrendingReportResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTRESULT_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/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/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/RequestLoginInfoRequest.h b/ccc/include/alibabacloud/ccc/model/GetLoginDetailsRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/RequestLoginInfoRequest.h rename to ccc/include/alibabacloud/ccc/model/GetLoginDetailsRequest.h index 0f8d76b8a..e5d42cbf9 100644 --- a/ccc/include/alibabacloud/ccc/model/RequestLoginInfoRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetLoginDetailsRequest.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_GETLOGINDETAILSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSREQUEST_H_ #include #include @@ -28,27 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RequestLoginInfoRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetLoginDetailsRequest : public RpcServiceRequest { public: - RequestLoginInfoRequest(); - ~RequestLoginInfoRequest(); + 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_REQUESTLOGININFOREQUEST_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/GetInstanceStateRequest.h b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h rename to ccc/include/alibabacloud/ccc/model/GetMonoRecordingRequest.h index 3ae1f7e49..7a9ed8647 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATEREQUEST_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 GetInstanceStateRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetMonoRecordingRequest : public RpcServiceRequest { public: - GetInstanceStateRequest(); - ~GetInstanceStateRequest(); + 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_GETINSTANCESTATEREQUEST_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/AddAgentDeviceResult.h b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h rename to ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h index 168433117..0925f0ca5 100644 --- a/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_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 AddAgentDeviceResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetMonoRecordingResult : public ServiceResult { public: + struct Data + { + std::string fileUrl; + std::string fileName; + }; - AddAgentDeviceResult(); - explicit AddAgentDeviceResult(const std::string &payload); - ~AddAgentDeviceResult(); + GetMonoRecordingResult(); + explicit GetMonoRecordingResult(const std::string &payload); + ~GetMonoRecordingResult(); std::string getMessage()const; - long getAgentDeviceId()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_; - long agentDeviceId_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_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/RefreshTokenResult.h b/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h rename to ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h index 5104ecdd1..9ad1977d7 100644 --- a/ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGRESULT_H_ #include #include @@ -29,36 +29,34 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RefreshTokenResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetMultiChannelRecordingResult : public ServiceResult { public: - struct Token + struct Data { - std::string signData; - std::string signature; + std::string fileUrl; + std::string fileName; }; - RefreshTokenResult(); - explicit RefreshTokenResult(const std::string &payload); - ~RefreshTokenResult(); + GetMultiChannelRecordingResult(); + explicit GetMultiChannelRecordingResult(const std::string &payload); + ~GetMultiChannelRecordingResult(); std::string getMessage()const; int getHttpStatusCode()const; - Token getToken()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Token token_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_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/GetJobRequest.h b/ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesRequest.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/GetJobRequest.h rename to ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesRequest.h index 75a07085f..41979ec1d 100644 --- a/ccc/include/alibabacloud/ccc/model/GetJobRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesRequest.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_GETREALTIMEINSTANCESTATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetJobRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetRealtimeInstanceStatesRequest : public RpcServiceRequest { public: - GetJobRequest(); - ~GetJobRequest(); + GetRealtimeInstanceStatesRequest(); + ~GetRealtimeInstanceStatesRequest(); - std::string getJobId()const; - void setJobId(const std::string& jobId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - std::string jobId_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h b/ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesResult.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h rename to ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesResult.h index 31f8ac821..454500956 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesResult.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_GETREALTIMEINSTANCESTATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESRESULT_H_ #include #include @@ -29,41 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CreateCabInstanceResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetRealtimeInstanceStatesResult : public ServiceResult { public: - struct Instance + struct Data { - std::string instanceName; - std::string owner; - int maxConcurrentConversation; + long breakingAgents; + long talkingAgents; std::string instanceId; - long creationTime; - std::string instanceDescription; - std::string callCenterInstanceId; + long loggedInAgents; + long readyAgents; + long waitingCalls; + long longestCall; + long interactiveCalls; + long totalAgents; + long workingAgents; }; - CreateCabInstanceResult(); - explicit CreateCabInstanceResult(const std::string &payload); - ~CreateCabInstanceResult(); + GetRealtimeInstanceStatesResult(); + explicit GetRealtimeInstanceStatesResult(const std::string &payload); + ~GetRealtimeInstanceStatesResult(); std::string getMessage()const; - Instance getInstance()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_; - Instance instance_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESRESULT_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/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/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/GetUserRequest.h b/ccc/include/alibabacloud/ccc/model/GetUserRequest.h index 1ce1c43e1..a6df00598 100644 --- a/ccc/include/alibabacloud/ccc/model/GetUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetUserRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud GetUserRequest(); ~GetUserRequest(); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); + std::string getExtension()const; + void setExtension(const std::string& extension); 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 extension_; std::string userId_; - std::string accessKeyId_; + std::string instanceId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetUserResult.h b/ccc/include/alibabacloud/ccc/model/GetUserResult.h index 95b6c033a..a539830a2 100644 --- a/ccc/include/alibabacloud/ccc/model/GetUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetUserResult.h @@ -32,62 +32,38 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT GetUserResult : public ServiceResult { public: - struct User + struct Data { - 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 extension; + std::string loginName; + std::string roleName; + std::string email; std::string instanceId; std::string userId; - std::string ramId; - std::vector roles; - Detail detail; + std::string displayName; + std::string mobile; + std::string roleId; + std::string workMode; }; GetUserResult(); explicit GetUserResult(const std::string &payload); ~GetUserResult(); - User getUser()const; 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: - User user_; std::string message_; int httpStatusCode_; + std::vector params_; + Data data_; std::string code_; - bool success_; }; } 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/ModifySkillGroupOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h similarity index 53% rename from ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h rename to ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h index 64ec18813..160aec044 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERREQUEST_H_ #include #include @@ -28,36 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOfUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT InitiateAttendedTransferRequest : public RpcServiceRequest { public: - ModifySkillGroupOfUserRequest(); - ~ModifySkillGroupOfUserRequest(); + InitiateAttendedTransferRequest(); + ~InitiateAttendedTransferRequest(); - std::vector getRoleId()const; - void setRoleId(const std::vector& roleId); + 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 getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getSkillLevel()const; - void setSkillLevel(const std::vector& skillLevel); + 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); - std::vector getSkillGroupId()const; - void setSkillGroupId(const std::vector& skillGroupId); private: - std::vector roleId_; + std::string transferee_; + std::string transferor_; std::string userId_; - std::string accessKeyId_; - std::vector skillLevel_; + std::string deviceId_; + int timeoutSeconds_; + std::string jobId_; std::string instanceId_; - std::vector skillGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ \ No newline at end of file +#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/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/LaunchAuthenticationRequest.h b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationRequest.h new file mode 100644 index 000000000..565cd4961 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationRequest.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_LAUNCHAUTHENTICATIONREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchAuthenticationRequest : public RpcServiceRequest + { + + public: + LaunchAuthenticationRequest(); + ~LaunchAuthenticationRequest(); + + 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); + + private: + std::string contactFlowId_; + std::string userId_; + std::string deviceId_; + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#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/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 index 630e62801..64f48bc23 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h @@ -35,29 +35,20 @@ namespace AlibabaCloud ListAgentStateLogsRequest(); ~ListAgentStateLogsRequest(); + std::string getAgentId()const; + void setAgentId(const std::string& agentId); 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: + std::string agentId_; long endTime_; long startTime_; - long ramId_; - int pageNumber_; - std::string accessKeyId_; std::string instanceId_; - int pageSize_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h index f8c85074b..b6cfb0ad8 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h @@ -32,24 +32,12 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListAgentStateLogsResult : public ServiceResult { public: - struct AgentStateLogPage + struct DataItem { - 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; + std::string state; + long startTime; + std::string stateCode; + long duration; }; @@ -58,18 +46,16 @@ namespace AlibabaCloud ~ListAgentStateLogsResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getData()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::vector data_; std::string code_; - AgentStateLogPage agentStateLogPage_; - bool success_; }; } 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/ListAgentSummaryReportsResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h deleted file mode 100644 index a8608cf2f..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.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_LISTAGENTSUMMARYREPORTSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsResult : 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; - 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; - 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; - }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; - }; - - - ListAgentSummaryReportsResult(); - explicit ListAgentSummaryReportsResult(const std::string &payload); - ~ListAgentSummaryReportsResult(); - 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_LISTAGENTSUMMARYREPORTSRESULT_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/ListUnreachableContactsRequest.h b/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h index 91e75d899..12c84271b 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSREQUEST_H_ #include #include @@ -28,30 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListUnreachableContactsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListBriefSkillGroupsRequest : public RpcServiceRequest { public: - ListUnreachableContactsRequest(); - ~ListUnreachableContactsRequest(); + ListBriefSkillGroupsRequest(); + ~ListBriefSkillGroupsRequest(); int getPageNumber()const; void setPageNumber(int pageNumber); + std::string getSearchPattern()const; + void setSearchPattern(const std::string& searchPattern); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); int getPageSize()const; void setPageSize(int pageSize); private: int pageNumber_; + std::string searchPattern_; std::string instanceId_; - std::string jobGroupId_; int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSREQUEST_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/ListMediasResult.h b/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ListMediasResult.h rename to ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h index 7bfd0748a..6cc586de4 100644 --- a/ccc/include/alibabacloud/ccc/model/ListMediasResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSRESULT_H_ #include #include @@ -29,50 +29,46 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListMediasResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListBriefSkillGroupsResult : public ServiceResult { public: - struct Medias + struct Data { - struct Media + struct SkillGroup { - 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; + std::string skillGroupName; + std::string instanceId; + int phoneNumberCount; + int userCount; + std::string displayName; + std::string skillGroupId; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListMediasResult(); - explicit ListMediasResult(const std::string &payload); - ~ListMediasResult(); + ListBriefSkillGroupsResult(); + explicit ListBriefSkillGroupsResult(const std::string &payload); + ~ListBriefSkillGroupsResult(); std::string getMessage()const; int getHttpStatusCode()const; - Medias getMedias()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Medias medias_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_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..48fac6346 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h @@ -35,47 +35,56 @@ 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); + std::string getSatisfactionList()const; + void setSatisfactionList(const std::string& satisfactionList); int getPageSize()const; void setPageSize(int pageSize); - bool getWithRecording()const; - void setWithRecording(bool withRecording); + std::string getSortOrder()const; + void setSortOrder(const std::string& sortOrder); + std::string getAgentId()const; + void setAgentId(const std::string& agentId); + std::string getContactType()const; + void setContactType(const std::string& contactType); + std::string getSatisfactionSurveyChannel()const; + void setSatisfactionSurveyChannel(const std::string& satisfactionSurveyChannel); + 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_; + std::string satisfactionList_; int pageSize_; - bool withRecording_; + std::string sortOrder_; + std::string agentId_; + std::string contactType_; + std::string satisfactionSurveyChannel_; + 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..56954d40a 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h @@ -32,44 +32,29 @@ 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; + std::string releaseInitiator; 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; + bool recordingReady; + long releaseTime; std::string skillGroupNames; + std::string satisfactionSurveyChannel; + std::string agentIds; + bool satisfactionSurveyOffered; + long establishedTime; std::string agentNames; - std::string skillGroupIdList; }; int totalCount; int pageSize; @@ -82,19 +67,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/ListConfigResult.h b/ccc/include/alibabacloud/ccc/model/ListConfigItemsResult.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/ListConfigResult.h rename to ccc/include/alibabacloud/ccc/model/ListConfigItemsResult.h index 36b767103..cfaaee686 100644 --- a/ccc/include/alibabacloud/ccc/model/ListConfigResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListConfigItemsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONFIGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGRESULT_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 ListConfigResult : 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; }; - ListConfigResult(); - explicit ListConfigResult(const std::string &payload); - ~ListConfigResult(); - std::vector getConfigItems()const; + ListConfigItemsResult(); + explicit ListConfigItemsResult(const std::string &payload); + ~ListConfigItemsResult(); 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: - std::vector configItems_; std::string message_; int httpStatusCode_; + std::vector params_; + std::vector data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONFIGRESULT_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/ListContactFlowsRequest.h b/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h index 921dc7a24..170e58e65 100644 --- a/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h @@ -35,14 +35,20 @@ namespace AlibabaCloud ListContactFlowsRequest(); ~ListContactFlowsRequest(); + std::string getType()const; + void setType(const std::string& type); + int getPageNumber()const; + void setPageNumber(int pageNumber); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + int getPageSize()const; + void setPageSize(int pageSize); private: + std::string type_; + int pageNumber_; std::string instanceId_; - std::string accessKeyId_; + int pageSize_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h b/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h index 4e8e490d1..d36ae6edb 100644 --- a/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h @@ -32,38 +32,27 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListContactFlowsResult : public ServiceResult { public: - struct ContactFlow + struct Data { - struct ContactFlowVersion + struct ContactFlow { - 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 type; + std::string createdTime; + std::string description; + std::string contactFlowId; std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::string phoneNumberDescription; + std::string definition; + bool published; + std::vector numberList; + std::string draftId; + std::string updatedTime; + std::string editor; + std::string name; }; - std::vector phoneNumbers; - std::string type; - std::string appliedVersion; - std::vector versions; - std::string contactFlowId; - std::string instanceId; - std::string contactFlowName; - std::string contactFlowDescription; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; }; @@ -71,19 +60,17 @@ namespace AlibabaCloud explicit ListContactFlowsResult(const std::string &payload); ~ListContactFlowsResult(); std::string getMessage()const; - std::vector getContactFlows()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_; - std::vector contactFlows_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } 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/GetAgentDataResult.h b/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h rename to ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h index 19129dc0d..d2a78c740 100644 --- a/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTRESULT_H_ #include #include @@ -29,32 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetAgentDataResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListHistoricalAgentReportResult : public ServiceResult { public: - struct DataList + struct Data { - struct GenerateAgentStatistic + struct Items { struct Inbound { + long callsConsulted; long totalWorkTime; long totalHoldTime; - long averageHoldTime; + float averageHoldTime; long satisfactionSurveysOffered; long callsOffered; long maxRingTime; + long callsHold; float satisfactionIndex; long callsHandled; long satisfactionSurveysResponded; long totalRingTime; float handleRate; + long callsTransferred; + float averageRingTime; long totalTalkTime; - long averageRingTime; long maxTalkTime; - long averageWorkTime; + float averageWorkTime; long maxWorkTime; - long averageTalkTime; + float averageTalkTime; long maxHoldTime; }; struct Outbound @@ -62,83 +65,77 @@ namespace AlibabaCloud long totalDialingTime; long totalWorkTime; long totalHoldTime; - long averageHoldTime; + float averageHoldTime; + long callsDialedSuccess; long satisfactionSurveysOffered; + long callsHold; float satisfactionIndex; long satisfactionSurveysResponded; - long averageDialingTime; + float averageDialingTime; long callsAnswered; - long totalTalkTime; long callsDialed; - long totalDialingTime1; + long totalTalkTime; long maxDialingTime; long maxTalkTime; - long averageWorkTime; + float averageWorkTime; long maxWorkTime; - long averageTalkTime; - long maxHoldTime; float answerRate; + float averageTalkTime; + long maxHoldTime; }; struct Overall { + long totalReadyTime; + long totalBreakTime; long totalCalls; long totalWorkTime; long totalHoldTime; - long averageHoldTime; long satisfactionSurveysOffered; float satisfactionIndex; + float averageBreakTime; long satisfactionSurveysResponded; long totalTalkTime; + float averageReadyTime; + long totalLoggedInTime; long maxTalkTime; - long averageWorkTime; + float averageWorkTime; + long maxReadyTime; + long maxBreakTime; long maxWorkTime; - long averageTalkTime; - long maxHoldTime; + float averageTalkTime; + float occupancyRate; }; - 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; + Overall overall; std::string agentId; std::string agentName; - long maxReadyTime; - float occupancyRate; + Inbound inbound; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - GetAgentDataResult(); - explicit GetAgentDataResult(const std::string &payload); - ~GetAgentDataResult(); - DataList getDataList()const; + ListHistoricalAgentReportResult(); + explicit ListHistoricalAgentReportResult(const std::string &payload); + ~ListHistoricalAgentReportResult(); 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: - DataList dataList_; std::string message_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_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/ListJobsByGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportRequest.h index 7a83b4a29..d0cfd72ad 100644 --- a/ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTREQUEST_H_ #include #include @@ -28,36 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListJobsByGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListHistoricalSkillGroupReportRequest : public RpcServiceRequest { public: - ListJobsByGroupRequest(); - ~ListJobsByGroupRequest(); + ListHistoricalSkillGroupReportRequest(); + ~ListHistoricalSkillGroupReportRequest(); - std::string getJobStatus()const; - void setJobStatus(const std::string& jobStatus); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); int getPageNumber()const; void setPageNumber(int pageNumber); + std::string getSkillGroupIdList()const; + void setSkillGroupIdList(const std::string& skillGroupIdList); 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_; + long endTime_; + long startTime_; int pageNumber_; + std::string skillGroupIdList_; std::string instanceId_; - std::string jobFailureReason_; - std::string jobGroupId_; int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportResult.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h rename to ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportResult.h index 14a315f1a..36e0127a5 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTRESULT_H_ #include #include @@ -29,113 +29,126 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsSinceMidnightResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListHistoricalSkillGroupReportResult : public ServiceResult { public: - struct PagedSkillGroupSummaryReport + struct Data { - struct SkillGroupSummaryReport + struct Items { - 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 abandonedInQueueOfQueueCount; - long answeredByAgentOfQueueCount; - long giveUpByAgentOfQueueCount; + long callsRinged; + long totalHoldTime; + long callsAbandoned; long callsOffered; long maxRingTime; + long callsHold; float satisfactionIndex; + long maxAbandonedInRingTime; long totalRingTime; float handleRate; + float averageAbandonedInQueueTime; + long callsAbandonedInRinging; + float averageWaitTime; long totalTalkTime; - long overFlowInQueueOfQueueCount; - std::string maxTalkTime; - long averageTalkTime; - long answeredByAgentOfQueueWaitTimeDuration; + long totalAbandonedInRingTime; + long callsQueued; + long maxTalkTime; + long totalAbandonTime; + float averageTalkTime; + long callsConsulted; + long maxAbandonedInQueueTime; long satisfactionSurveysOffered; - long queueWaitTimeDuration; long callsHandled; + long maxWaitTime; long satisfactionSurveysResponded; - long queueMaxWaitTimeDuration; - long averageRingTime; - long answeredByAgentOfQueueMaxWaitTimeDuration; - long averageWorkTime; + long callsTransferred; + float averageRingTime; + long maxAbandonTime; + long totalWaitTime; + float averageAbandonTime; + float averageAbandonedInRingTime; + float averageWorkTime; + long totalAbandonedInQueueTime; long maxWorkTime; - long inComingQueueOfQueueCount; + float abandonRate; }; 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; + float averageWorkTime; 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; + Overall overall; std::string skillGroupName; - std::string instanceId; std::string skillGroupId; Inbound inbound; - std::string timestamp; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListSkillGroupSummaryReportsSinceMidnightResult(); - explicit ListSkillGroupSummaryReportsSinceMidnightResult(const std::string &payload); - ~ListSkillGroupSummaryReportsSinceMidnightResult(); - PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; + ListHistoricalSkillGroupReportResult(); + explicit ListHistoricalSkillGroupReportResult(const std::string &payload); + ~ListHistoricalSkillGroupReportResult(); 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: - PagedSkillGroupSummaryReport pagedSkillGroupSummaryReport_; std::string message_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTRESULT_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 index 5174233a4..82ea563f5 100644 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h @@ -35,11 +35,14 @@ namespace AlibabaCloud ListInstancesOfUserRequest(); ~ListInstancesOfUserRequest(); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); private: - std::string accessKeyId_; + int pageNumber_; + int pageSize_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h index 3856f11aa..ee103f12d 100644 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h @@ -32,71 +32,79 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserResult : public ServiceResult { public: - struct CallCenterInstance + struct Data { - struct User + struct CallCenterInstance { - struct Detail + struct User { + std::string extension; std::string loginName; - std::string department; + std::string roleName; std::string email; - std::string phone; + std::string instanceId; + std::string userId; std::string displayName; + std::string mobile; + std::string roleId; + std::string workMode; }; - std::string instanceId; - std::string userId; - std::string ramId; - Detail detail; + struct PhoneNumber + { + struct SkillGroup + { + std::string description; + std::string instanceId; + int phoneNumberCount; + int userCount; + std::string displayName; + std::string skillGroupId; + std::string name; + }; + bool active; + std::string usage; + std::string number; + std::string contactFlowId; + std::string instanceId; + std::string userId; + std::vector skillGroups; + std::string city; + std::string province; + }; + std::string status; + std::vector adminList; + std::string description; + std::string consoleUrl; + std::string domainName; + std::string aliyunUid; + std::vector numberList; + std::string id; + std::string name; }; - 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; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; }; ListInstancesOfUserResult(); explicit ListInstancesOfUserResult(const std::string &payload); ~ListInstancesOfUserResult(); - std::vector getInstances()const; 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 instances_; std::string message_; int httpStatusCode_; + std::vector params_; + Data data_; std::string code_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h b/ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportRequest.h similarity index 58% rename from ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h rename to ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportRequest.h index a8e8643e5..fba66fafe 100644 --- a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTREQUEST_H_ #include #include @@ -28,30 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CallOnlinePrivacyNumberRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListIntervalAgentReportRequest : public RpcServiceRequest { public: - CallOnlinePrivacyNumberRequest(); - ~CallOnlinePrivacyNumberRequest(); + ListIntervalAgentReportRequest(); + ~ListIntervalAgentReportRequest(); - 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 getAgentId()const; + void setAgentId(const std::string& agentId); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getInterval()const; + void setInterval(const std::string& interval); private: - std::string accessKeyId_; - std::string telA_; - std::string telB_; + std::string agentId_; + long endTime_; + long startTime_; std::string instanceId_; + std::string interval_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h b/ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportResult.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h rename to ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportResult.h index 1df0396db..00d9b4113 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTRESULT_H_ #include #include @@ -29,102 +29,101 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListIntervalAgentReportResult : public ServiceResult { public: - struct InstanceSummaryReport + struct DataItem { - 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 callsConsulted; long totalWorkTime; - long callsIncomingLine; + long totalHoldTime; long satisfactionSurveysOffered; long callsOffered; long maxRingTime; + long callsHold; float satisfactionIndex; - long callsIncomingQueue; - long callsIncomingIVR; long callsHandled; - long maxWaitTime; - long totalRingTime; long satisfactionSurveysResponded; + long totalRingTime; float handleRate; - long averageRingTime; + long callsTransferred; + float averageRingTime; long totalTalkTime; - long averageWaitTime; - long totalWaitTime; - std::string maxTalkTime; - long averageWorkTime; + long maxTalkTime; + float averageWorkTime; long maxWorkTime; - long averageTalkTime; - long callsAbandonedInIVR; + 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; + float averageWorkTime; long maxWorkTime; float answerRate; - long averageTalkTime; + float averageTalkTime; + }; + struct Overall + { + long totalReadyTime; + long lastCheckoutTime; + long totalBreakTime; + long totalCalls; + long totalWorkTime; + long totalHoldTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + float averageBreakTime; + long firstCheckInTime; + 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 instanceId; + Overall overall; Inbound inbound; + long statsTime; }; - GetInstanceSummaryReportResult(); - explicit GetInstanceSummaryReportResult(const std::string &payload); - ~GetInstanceSummaryReportResult(); + ListIntervalAgentReportResult(); + explicit ListIntervalAgentReportResult(const std::string &payload); + ~ListIntervalAgentReportResult(); std::string getMessage()const; int getHttpStatusCode()const; - InstanceSummaryReport getInstanceSummaryReport()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_; - InstanceSummaryReport instanceSummaryReport_; + std::vector data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsRequest.h b/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportRequest.h similarity index 59% rename from ccc/include/alibabacloud/ccc/model/DeletePhoneTagsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportRequest.h index e4e50b3a0..6cb029219 100644 --- a/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportRequest.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_LISTINTERVALINSTANCEREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALINSTANCEREPORTREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeletePhoneTagsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListIntervalInstanceReportRequest : public RpcServiceRequest { public: - DeletePhoneTagsRequest(); - ~DeletePhoneTagsRequest(); + ListIntervalInstanceReportRequest(); + ~ListIntervalInstanceReportRequest(); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); 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); + std::string getInterval()const; + void setInterval(const std::string& interval); private: + long endTime_; + long startTime_; std::string instanceId_; - std::vector phoneNumberList_; - std::string accessKeyId_; + std::string interval_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALINSTANCEREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportResult.h b/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportResult.h new file mode 100644 index 000000000..cd35d6e8a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportResult.h @@ -0,0 +1,155 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALINSTANCEREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALINSTANCEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListIntervalInstanceReportResult : public ServiceResult + { + public: + struct DataItem + { + struct Inbound + { + long callsAbandonedInQueue; + float serviceLevel20; + long totalWorkTime; + long callsRinged; + long totalHoldTime; + float averageHoldTime; + long maxAbandonedInIVRTime; + long callsAbandoned; + long callsOffered; + long maxRingTime; + long callsHold; + float satisfactionIndex; + long maxAbandonedInRingTime; + long totalRingTime; + float handleRate; + float averageAbandonedInQueueTime; + long callsAbandonedInRinging; + long totalAbandonedInIVRTime; + float averageWaitTime; + long totalTalkTime; + long totalAbandonedInRingTime; + long callsQueued; + long maxTalkTime; + float averageAbandonedInIVRTime; + long totalAbandonTime; + float averageTalkTime; + long maxHoldTime; + long callsAbandonedInIVR; + long callsConsulted; + long maxAbandonedInQueueTime; + long satisfactionSurveysOffered; + long callsHandled; + long maxWaitTime; + long satisfactionSurveysResponded; + long callsTransferred; + float averageRingTime; + long maxAbandonTime; + long totalWaitTime; + float averageAbandonTime; + float averageAbandonedInRingTime; + float averageWorkTime; + long totalAbandonedInQueueTime; + float abandonedRate; + long maxWorkTime; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long totalHoldTime; + long callsDialedSuccess; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + float averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + float averageWorkTime; + long maxWorkTime; + float answerRate; + float averageTalkTime; + }; + struct Overall + { + long totalReadyTime; + long totalBreakTime; + long totalCalls; + long totalWorkTime; + long totalHoldTime; + float averageHoldTime; + 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; + long maxHoldTime; + float occupancyRate; + }; + Outbound outbound; + Overall overall; + Inbound inbound; + long statsTime; + }; + + + ListIntervalInstanceReportResult(); + explicit ListIntervalInstanceReportResult(const std::string &payload); + ~ListIntervalInstanceReportResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALINSTANCEREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h b/ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportRequest.h index 6f57c0f81..3cf51c330 100644 --- a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AbortPredictiveJobsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListIntervalSkillGroupReportRequest : public RpcServiceRequest { public: - AbortPredictiveJobsRequest(); - ~AbortPredictiveJobsRequest(); + ListIntervalSkillGroupReportRequest(); + ~ListIntervalSkillGroupReportRequest(); - bool getAll()const; - void setAll(bool all); - std::vector getJobId()const; - void setJobId(const std::vector& jobId); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); 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); + std::string getInterval()const; + void setInterval(const std::string& interval); private: - bool all_; - std::vector jobId_; + long endTime_; + long startTime_; std::string instanceId_; std::string skillGroupId_; - std::string jobGroupId_; + std::string interval_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportResult.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h rename to ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportResult.h index c48903e79..b1ac62752 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTRESULT_H_ #include #include @@ -29,103 +29,118 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportSinceMidnightResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListIntervalSkillGroupReportResult : public ServiceResult { public: - struct InstanceSummaryReport + struct DataItem { - 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 callsRinged; + long totalHoldTime; + long callsAbandoned; long callsOffered; long maxRingTime; + long callsHold; float satisfactionIndex; - long callsIncomingQueue; - long callsIncomingIVR; + long maxAbandonedInRingTime; + long totalRingTime; + float handleRate; + float averageAbandonedInQueueTime; + long callsAbandonedInRinging; + float averageWaitTime; + long totalTalkTime; + long totalAbandonedInRingTime; + long callsQueued; + long maxTalkTime; + long totalAbandonTime; + float averageTalkTime; + long callsConsulted; + long maxAbandonedInQueueTime; + long satisfactionSurveysOffered; long callsHandled; long maxWaitTime; - long totalRingTime; long satisfactionSurveysResponded; - float handleRate; - long averageRingTime; - long totalTalkTime; - long averageWaitTime; + long callsTransferred; + float averageRingTime; + long maxAbandonTime; long totalWaitTime; - std::string maxTalkTime; - long averageWorkTime; + float averageAbandonTime; + float averageAbandonedInRingTime; + float averageWorkTime; + long totalAbandonedInQueueTime; long maxWorkTime; - long averageTalkTime; - long callsAbandonedInIVR; + float abandonRate; }; 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; + float averageWorkTime; 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 instanceId; + Overall overall; Inbound inbound; - std::string timestamp; + long statsTime; }; - GetInstanceSummaryReportSinceMidnightResult(); - explicit GetInstanceSummaryReportSinceMidnightResult(const std::string &payload); - ~GetInstanceSummaryReportSinceMidnightResult(); + ListIntervalSkillGroupReportResult(); + explicit ListIntervalSkillGroupReportResult(const std::string &payload); + ~ListIntervalSkillGroupReportResult(); std::string getMessage()const; int getHttpStatusCode()const; - InstanceSummaryReport getInstanceSummaryReport()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_; - InstanceSummaryReport instanceSummaryReport_; + std::vector data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTRESULT_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/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/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/GetAgentDataRequest.h b/ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserRequest.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h rename to ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserRequest.h index ab919a011..263935105 100644 --- a/ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserRequest.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_LISTPERSONALNUMBERSOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERREQUEST_H_ #include #include @@ -28,39 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetAgentDataRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListPersonalNumbersOfUserRequest : public RpcServiceRequest { public: - GetAgentDataRequest(); - ~GetAgentDataRequest(); + ListPersonalNumbersOfUserRequest(); + ~ListPersonalNumbersOfUserRequest(); - std::string getStartDay()const; - void setStartDay(const std::string& startDay); 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); + bool getIsMember()const; + void setIsMember(bool isMember); + 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_; int pageNumber_; - std::string accessKeyId_; + bool isMember_; + 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_LISTPERSONALNUMBERSOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserResult.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h rename to ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserResult.h index 9a3559332..80adfbfb2 100644 --- a/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERRESULT_H_ #include #include @@ -29,48 +29,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT PickGlobalOutboundNumbersResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListPersonalNumbersOfUserResult : public ServiceResult { public: - struct DialNumberPair + struct Data { - struct Callee + struct PhoneNumber { + bool active; std::string number; + std::string contactFlowId; + std::string instanceId; 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; }; - PickGlobalOutboundNumbersResult(); - explicit PickGlobalOutboundNumbersResult(const std::string &payload); - ~PickGlobalOutboundNumbersResult(); + ListPersonalNumbersOfUserResult(); + explicit ListPersonalNumbersOfUserResult(const std::string &payload); + ~ListPersonalNumbersOfUserResult(); std::string getMessage()const; int getHttpStatusCode()const; + Data 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_; + Data data_; std::string code_; - bool success_; - std::vector dialNumberPairs_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupRequest.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h rename to ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupRequest.h index 0b63e2b4c..16763eeb7 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupRequest.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_LISTPHONENUMBERSOFSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPREQUEST_H_ #include #include @@ -28,39 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentStatesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListPhoneNumbersOfSkillGroupRequest : public RpcServiceRequest { public: - ListAgentStatesRequest(); - ~ListAgentStatesRequest(); + ListPhoneNumbersOfSkillGroupRequest(); + ~ListPhoneNumbersOfSkillGroupRequest(); - std::string getAgentIds()const; - void setAgentIds(const std::string& agentIds); + bool getActive()const; + void setActive(bool active); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + bool getIsMember()const; + void setIsMember(bool isMember); + std::string getSearchPattern()const; + void setSearchPattern(const std::string& searchPattern); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSkillGroupId()const; void setSkillGroupId(const std::string& skillGroupId); int getPageSize()const; void setPageSize(int pageSize); - std::string getState()const; - void setState(const std::string& state); private: - std::string agentIds_; + bool active_; int pageNumber_; - std::string accessKeyId_; + bool isMember_; + std::string searchPattern_; std::string instanceId_; std::string skillGroupId_; int pageSize_; - std::string state_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupResult.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h rename to ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupResult.h index ad002c9ca..7142901f6 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPRESULT_H_ #include #include @@ -29,27 +29,20 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListPhoneTagsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListPhoneNumbersOfSkillGroupResult : public ServiceResult { public: - struct PhoneNumbers + struct Data { struct PhoneNumber { + bool active; 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; + std::string contactFlowId; + std::string instanceId; + std::string city; + std::string province; }; int totalCount; int pageSize; @@ -58,26 +51,24 @@ namespace AlibabaCloud }; - ListPhoneTagsResult(); - explicit ListPhoneTagsResult(const std::string &payload); - ~ListPhoneTagsResult(); - PhoneNumbers getPhoneNumbers()const; + ListPhoneNumbersOfSkillGroupResult(); + explicit ListPhoneNumbersOfSkillGroupResult(const std::string &payload); + ~ListPhoneNumbersOfSkillGroupResult(); 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: - PhoneNumbers phoneNumbers_; std::string message_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPRESULT_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 index 5e05613ea..f134442e2 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h @@ -35,17 +35,26 @@ namespace AlibabaCloud ListPhoneNumbersRequest(); ~ListPhoneNumbersRequest(); - bool getOutboundOnly()const; - void setOutboundOnly(bool outboundOnly); + std::string getUsage()const; + void setUsage(const std::string& usage); + bool getActive()const; + void setActive(bool active); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getSearchPattern()const; + void setSearchPattern(const std::string& searchPattern); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + int getPageSize()const; + void setPageSize(int pageSize); private: - bool outboundOnly_; + std::string usage_; + bool active_; + int pageNumber_; + std::string searchPattern_; std::string instanceId_; - std::string accessKeyId_; + int pageSize_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h index c1aca59ab..ca2e08fe8 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h @@ -32,70 +32,57 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListPhoneNumbersResult : public ServiceResult { public: - struct PhoneNumber + struct Data { - struct ContactFlow + struct PhoneNumber { - std::string type; + struct SkillGroup + { + std::string instanceId; + std::string displayName; + std::string skillGroupId; + std::string name; + }; + std::string usage; std::string contactFlowId; std::string instanceId; + std::string createTime; + std::vector skillGroups; + std::string city; + std::string province; + std::string provider; + bool active; + std::string number; + std::string userId; std::string contactFlowName; - std::string contactFlowDescription; + std::string tags; }; - 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; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; }; ListPhoneNumbersResult(); explicit ListPhoneNumbersResult(const std::string &payload); ~ListPhoneNumbersResult(); - std::vector getPhoneNumbers()const; std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; int getHttpStatusCode()const; + Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector phoneNumbers_; std::string message_; + int pageSize_; + int pageNumber_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } 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/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/GetConfigResult.h b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/GetConfigResult.h rename to ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h index 881af8071..b32ceb07b 100644 --- a/ccc/include/alibabacloud/ccc/model/GetConfigResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.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_LISTPRIVILEGESOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ #include #include @@ -29,36 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetConfigResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListPrivilegesOfUserResult : public ServiceResult { public: - struct ConfigItem + struct DataItem { - std::string value; + std::string scope; + std::string instanceId; std::string name; }; - GetConfigResult(); - explicit GetConfigResult(const std::string &payload); - ~GetConfigResult(); + ListPrivilegesOfUserResult(); + explicit ListPrivilegesOfUserResult(const std::string &payload); + ~ListPrivilegesOfUserResult(); std::string getMessage()const; int getHttpStatusCode()const; - ConfigItem getConfigItem()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 data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_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/ListAgentSummaryReportsSinceMidnightRequest.h b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h rename to ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h index 1a832aef8..fb7fa1efd 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESREQUEST_H_ #include #include @@ -28,36 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsSinceMidnightRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListRealtimeAgentStatesRequest : public RpcServiceRequest { public: - ListAgentSummaryReportsSinceMidnightRequest(); - ~ListAgentSummaryReportsSinceMidnightRequest(); + 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 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 stateList_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_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/FindUsersRequest.h b/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/FindUsersRequest.h rename to ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesRequest.h index 8c8573583..b2d5e7d36 100644 --- a/ccc/include/alibabacloud/ccc/model/FindUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESREQUEST_H_ #include #include @@ -28,28 +28,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT FindUsersRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListRealtimeSkillGroupStatesRequest : public RpcServiceRequest { public: - FindUsersRequest(); - ~FindUsersRequest(); + ListRealtimeSkillGroupStatesRequest(); + ~ListRealtimeSkillGroupStatesRequest(); - 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 getSkillGroupIdList()const; + void setSkillGroupIdList(const std::string& skillGroupIdList); 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 skillGroupIdList_; std::string instanceId_; int pageSize_; @@ -57,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h rename to ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h index 9cbcbd3a9..d1e3cfbc6 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.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_LISTREALTIMESKILLGROUPSTATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESRESULT_H_ #include #include @@ -29,39 +29,38 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupStatesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListRealtimeSkillGroupStatesResult : public ServiceResult { public: struct Data { - struct RealTimeSkillGroupState + struct SkillGroupState { long breakingAgents; long talkingAgents; + long longestWaitingTime; std::string skillGroupName; std::string instanceId; long loggedInAgents; long readyAgents; long waitingCalls; 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(); + ListRealtimeSkillGroupStatesResult(); + explicit ListRealtimeSkillGroupStatesResult(const std::string &payload); + ~ListRealtimeSkillGroupStatesResult(); 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 +69,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_LISTREALTIMESKILLGROUPSTATESRESULT_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 72% rename from ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h index 9a69287d8..2c120d817 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,13 +28,15 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListJobGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListRecentCallDetailRecordsRequest : public RpcServiceRequest { public: - ListJobGroupsRequest(); - ~ListJobGroupsRequest(); + ListRecentCallDetailRecordsRequest(); + ~ListRecentCallDetailRecordsRequest(); + std::string getCriteria()const; + void setCriteria(const std::string& criteria); long getEndTime()const; void setEndTime(long endTime); long getStartTime()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud void setPageSize(int pageSize); private: + std::string criteria_; long endTime_; long startTime_; int pageNumber_; @@ -57,4 +60,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/ListRolesRequest.h b/ccc/include/alibabacloud/ccc/model/ListRolesRequest.h index 9ec631c8b..be5979417 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRolesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRolesRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud 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/ListRolesResult.h b/ccc/include/alibabacloud/ccc/model/ListRolesResult.h index 8958f4eca..5ecc86871 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRolesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRolesResult.h @@ -34,10 +34,8 @@ namespace AlibabaCloud public: struct Role { - std::string roleName; - std::string instanceId; - std::string roleDescription; std::string roleId; + std::string name; }; @@ -46,18 +44,16 @@ namespace AlibabaCloud ~ListRolesResult(); 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_; }; } 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/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 index 9cc6d59d5..6f0d23757 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsRequest.h @@ -35,14 +35,20 @@ namespace AlibabaCloud ListSkillGroupsRequest(); ~ListSkillGroupsRequest(); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getSearchPattern()const; + void setSearchPattern(const std::string& searchPattern); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + int getPageSize()const; + void setPageSize(int pageSize); private: + int pageNumber_; + std::string searchPattern_; std::string instanceId_; - std::string accessKeyId_; + int pageSize_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h index 011265772..79f4a19d3 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h @@ -32,29 +32,22 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListSkillGroupsResult : public ServiceResult { public: - struct SkillGroup + struct Data { - struct PhoneNumber + struct SkillGroup { - std::string usage; - bool testOnly; - bool allowOutbound; - std::string number; + std::string description; + std::string skillGroupName; std::string instanceId; - int remainingTime; - int trunks; - std::string phoneNumberId; - std::string phoneNumberDescription; + int phoneNumberCount; + int userCount; + std::string displayName; + std::string skillGroupId; }; - 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; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; }; @@ -63,18 +56,16 @@ namespace AlibabaCloud ~ListSkillGroupsResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getSkillGroups()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 skillGroups_; + Data data_; std::string code_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h rename to ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h index 72e772667..e50506e03 100644 --- a/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERREQUEST_H_ #include #include @@ -28,28 +28,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetConversationDetailByContactIdRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListSkillLevelsOfUserRequest : public RpcServiceRequest { public: - GetConversationDetailByContactIdRequest(); - ~GetConversationDetailByContactIdRequest(); + ListSkillLevelsOfUserRequest(); + ~ListSkillLevelsOfUserRequest(); - std::string getContactId()const; - void setContactId(const std::string& contactId); + 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); int getPageSize()const; void setPageSize(int pageSize); private: - std::string contactId_; + std::string userId_; + bool isMember_; int pageNumber_; - std::string accessKeyId_; + std::string searchPattern_; std::string instanceId_; int pageSize_; @@ -57,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_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/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/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/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/ListUserLevelsOfSkillGroupRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h index b39183f74..1cc8ab72b 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ #include #include @@ -28,17 +28,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListUsersOfSkillGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListUserLevelsOfSkillGroupRequest : public RpcServiceRequest { public: - ListUsersOfSkillGroupRequest(); - ~ListUsersOfSkillGroupRequest(); + ListUserLevelsOfSkillGroupRequest(); + ~ListUserLevelsOfSkillGroupRequest(); + 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 getSkillGroupId()const; @@ -47,8 +49,9 @@ namespace AlibabaCloud void setPageSize(int pageSize); private: + bool isMember_; int pageNumber_; - std::string accessKeyId_; + std::string searchPattern_; std::string instanceId_; std::string skillGroupId_; int pageSize_; @@ -57,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h rename to ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h index 193951d24..f2e1bfe26 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.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_LISTUSERLEVELSOFSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_ #include #include @@ -29,45 +29,47 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListAgentEventsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListUserLevelsOfSkillGroupResult : public ServiceResult { public: - struct AgentEvent + struct Data { - struct SkillGroup + struct UserSkillLevel { + std::string loginName; + std::string roleName; std::string skillGroupName; + int skillLevel; + std::string userId; + std::string displayName; std::string skillGroupId; + std::string roleId; }; - std::vector skillGroupIds; - std::string loginName; - std::string instanceId; - long eventTime; - long ramId; - std::string event; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; }; - ListAgentEventsResult(); - explicit ListAgentEventsResult(const std::string &payload); - ~ListAgentEventsResult(); - std::vector getAgentEventList()const; + ListUserLevelsOfSkillGroupResult(); + explicit ListUserLevelsOfSkillGroupResult(const std::string &payload); + ~ListUserLevelsOfSkillGroupResult(); 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::vector agentEventList_; std::string message_; int httpStatusCode_; + Data data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_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/ListUsersRequest.h b/ccc/include/alibabacloud/ccc/model/ListUsersRequest.h index 5af0614b4..c7d79f04f 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListUsersRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud 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_; diff --git a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h index 6af04c8b1..60f110896 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h @@ -32,51 +32,40 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListUsersResult : public ServiceResult { public: - struct Users + struct Data { - struct User + struct UserDetail { - struct Detail + struct PhoneNumber { - std::string loginName; - std::string department; - std::string email; - std::string phone; - std::string displayName; + bool active; + std::string usage; + std::string number; + std::string city; + std::string province; }; - struct Role + struct UserSkillLevel { - std::string roleName; - std::string instanceId; - std::string roleDescription; - std::string roleId; + std::string skillGroupName; + int skillLevel; + std::string skillGroupId; }; - 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 loginName; + std::string roleName; + std::string email; std::string userId; - bool primary; - std::string ramId; - std::vector roles; - Detail detail; + std::vector skillLevelList; + bool primaryAccount; + std::string displayName; + std::vector personalOutboundNumberList; + std::string mobile; + std::string roleId; + std::string workMode; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; @@ -85,18 +74,18 @@ namespace AlibabaCloud ~ListUsersResult(); std::string getMessage()const; int getHttpStatusCode()const; - Users getUsers()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_; - Users users_; + std::vector params_; + Data data_; std::string code_; - bool success_; }; } 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 index 64c03b953..699c79e6d 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h @@ -39,22 +39,16 @@ namespace AlibabaCloud 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 getNumber()const; + void setNumber(const std::string& number); 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 number_; std::string instanceId_; - std::string phoneNumberId_; - std::vector skillGroupId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h index 65f041ee3..ab4047766 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h @@ -32,33 +32,6 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ModifyPhoneNumberResult : public ServiceResult { public: - struct PhoneNumber - { - struct ContactFlow - { - std::string type; - std::string contactFlowId; - std::string instanceId; - std::string contactFlowName; - std::string contactFlowDescription; - }; - 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(); @@ -66,18 +39,14 @@ namespace AlibabaCloud ~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_; }; } 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/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/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 index a31a8e279..f051b234a 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h @@ -35,38 +35,20 @@ namespace AlibabaCloud 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); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); 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_; + std::string displayName_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h index 52905d804..0da149c17 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h @@ -40,7 +40,6 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -48,7 +47,6 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h rename to ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserRequest.h index ec8569e0b..3a47a4ed8 100644 --- a/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetRecordOssUploadParamRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ModifySkillLevelsOfUserRequest : public RpcServiceRequest { public: - GetRecordOssUploadParamRequest(); - ~GetRecordOssUploadParamRequest(); + ModifySkillLevelsOfUserRequest(); + ~ModifySkillLevelsOfUserRequest(); + std::string getUserId()const; + void setUserId(const std::string& userId); 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); + std::string getSkillLevelList()const; + void setSkillLevelList(const std::string& skillLevelList); private: + std::string userId_; std::string instanceId_; - std::string fileName_; - std::string accessKeyId_; + std::string skillLevelList_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h new file mode 100644 index 000000000..f567f4e12 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.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_MODIFYSKILLLEVELSOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySkillLevelsOfUserResult : public ServiceResult + { + public: + + + ModifySkillLevelsOfUserResult(); + explicit ModifySkillLevelsOfUserResult(const std::string &payload); + ~ModifySkillLevelsOfUserResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getParams()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector params_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERRESULT_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/GetContactInfoByOutboundTaskIdRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h rename to ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h index 1d70c0884..ee398ad88 100644 --- a/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetContactInfoByOutboundTaskIdRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ModifyUserLevelsOfSkillGroupRequest : public RpcServiceRequest { public: - GetContactInfoByOutboundTaskIdRequest(); - ~GetContactInfoByOutboundTaskIdRequest(); + ModifyUserLevelsOfSkillGroupRequest(); + ~ModifyUserLevelsOfSkillGroupRequest(); + std::string getUserLevelList()const; + void setUserLevelList(const std::string& userLevelList); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getOutboundTaskId()const; - void setOutboundTaskId(const std::string& outboundTaskId); std::string getSkillGroupId()const; void setSkillGroupId(const std::string& skillGroupId); private: + std::string userLevelList_; std::string instanceId_; - std::string outboundTaskId_; std::string skillGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h new file mode 100644 index 000000000..f53ab160e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyUserLevelsOfSkillGroupResult : public ServiceResult + { + public: + + + ModifyUserLevelsOfSkillGroupResult(); + explicit ModifyUserLevelsOfSkillGroupResult(const std::string &payload); + ~ModifyUserLevelsOfSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h index 982a30cad..98b71f0d0 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h @@ -35,38 +35,23 @@ namespace AlibabaCloud ModifyUserRequest(); ~ModifyUserRequest(); - std::string getPrivateOutboundNumberId()const; - void setPrivateOutboundNumberId(const std::string& privateOutboundNumberId); - std::vector getRoleId()const; - void setRoleId(const std::vector& roleId); + std::string getRoleId()const; + void setRoleId(const std::string& roleId); + std::string getMobile()const; + void setMobile(const std::string& mobile); + std::string getWorkMode()const; + void setWorkMode(const std::string& workMode); std::string getUserId()const; void setUserId(const std::string& userId); - std::string 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 roleId_; + std::string mobile_; + std::string workMode_; std::string userId_; - std::string accessKeyId_; - std::vector skillLevel_; std::string instanceId_; - std::string phone_; - std::string displayName_; - std::vector skillGroupId_; - std::string email_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h index 8ec1130e0..5c612e529 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h @@ -39,16 +39,18 @@ namespace AlibabaCloud ~ModifyUserResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; + std::string 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_; + std::string data_; std::string code_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/MonitorCallRequest.h similarity index 57% rename from ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/MonitorCallRequest.h index 2b15e1f9f..7f3e3b60b 100644 --- a/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/MonitorCallRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MONITORCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MONITORCALLREQUEST_H_ #include #include @@ -28,24 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetJobGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT MonitorCallRequest : public RpcServiceRequest { public: - GetJobGroupRequest(); - ~GetJobGroupRequest(); + 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 getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); + std::string getMonitoredUserId()const; + void setMonitoredUserId(const std::string& monitoredUserId); private: + std::string userId_; + std::string deviceId_; + int timeoutSeconds_; std::string instanceId_; - std::string jobGroupId_; + std::string monitoredUserId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_ \ No newline at end of file +#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/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/ListSkillGroupsOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h rename to ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.h index 3345f9c9c..1003df506 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.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_POLLUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListSkillGroupsOfUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT PollUserStatusRequest : public RpcServiceRequest { public: - ListSkillGroupsOfUserRequest(); - ~ListSkillGroupsOfUserRequest(); + 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_LISTSKILLGROUPSOFUSERREQUEST_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/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/ResetUserStatusRequest.h b/ccc/include/alibabacloud/ccc/model/ReadyForServiceRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h rename to ccc/include/alibabacloud/ccc/model/ReadyForServiceRequest.h index 3671f3533..3a115f60a 100644 --- a/ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ReadyForServiceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSREQUEST_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 ResetUserStatusRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ReadyForServiceRequest : public RpcServiceRequest { public: - ResetUserStatusRequest(); - ~ResetUserStatusRequest(); + 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 getRamIdList()const; - void setRamIdList(const std::vector& ramIdList); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: + bool outboundScenario_; + std::string userId_; + std::string deviceId_; std::string instanceId_; - std::vector ramIdList_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSREQUEST_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/ReadyForServiceResult.h b/ccc/include/alibabacloud/ccc/model/ReadyForServiceResult.h new file mode 100644 index 000000000..8b3000e1e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ReadyForServiceResult.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_READYFORSERVICERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_READYFORSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ReadyForServiceResult : 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; + }; + + + 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; + + 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_READYFORSERVICERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.h index 81318e551..27d47bd12 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.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_REGISTERDEVICEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICEREQUEST_H_ #include #include @@ -28,24 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DeleteJobGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT RegisterDeviceRequest : public RpcServiceRequest { public: - DeleteJobGroupRequest(); - ~DeleteJobGroupRequest(); + 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); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); private: + std::string userId_; + std::string deviceId_; + std::string password_; std::string instanceId_; - std::string jobGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ \ No newline at end of file +#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/ListVoiceAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserRequest.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h rename to ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserRequest.h index ea6f85a02..5020e4b2a 100644 --- a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListVoiceAppraiseRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT RemovePersonalNumbersFromUserRequest : public RpcServiceRequest { public: - ListVoiceAppraiseRequest(); - ~ListVoiceAppraiseRequest(); + RemovePersonalNumbersFromUserRequest(); + ~RemovePersonalNumbersFromUserRequest(); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getNumberList()const; + void setNumberList(const std::string& numberList); 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 numberList_; std::string instanceId_; - std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h b/ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h rename to ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserResult.h index 25391a9ef..49636e661 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERRESULT_H_ #include #include @@ -29,18 +29,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ModifyPrivacyNumberCallDetailResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT RemovePersonalNumbersFromUserResult : public ServiceResult { public: - ModifyPrivacyNumberCallDetailResult(); - explicit ModifyPrivacyNumberCallDetailResult(const std::string &payload); - ~ModifyPrivacyNumberCallDetailResult(); + RemovePersonalNumbersFromUserResult(); + explicit RemovePersonalNumbersFromUserResult(const std::string &payload); + ~RemovePersonalNumbersFromUserResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -48,10 +47,9 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsRequest.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h rename to ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsRequest.h index 69c116d1d..733458150 100644 --- a/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT DownloadOriginalStatisticsReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumberFromSkillGroupsRequest : public RpcServiceRequest { public: - DownloadOriginalStatisticsReportRequest(); - ~DownloadOriginalStatisticsReportRequest(); + RemovePhoneNumberFromSkillGroupsRequest(); + ~RemovePhoneNumberFromSkillGroupsRequest(); + std::string getNumber()const; + void setNumber(const std::string& number); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); + std::string getSkillGroupIdList()const; + void setSkillGroupIdList(const std::string& skillGroupIdList); private: + std::string number_; std::string instanceId_; - std::string jobGroupId_; + std::string skillGroupIdList_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsResult.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h rename to ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsResult.h index 20a388db6..c9ee82e34 100644 --- a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSRESULT_H_ #include #include @@ -29,18 +29,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AbortPredictiveJobsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumberFromSkillGroupsResult : public ServiceResult { public: - AbortPredictiveJobsResult(); - explicit AbortPredictiveJobsResult(const std::string &payload); - ~AbortPredictiveJobsResult(); + RemovePhoneNumberFromSkillGroupsResult(); + explicit RemovePhoneNumberFromSkillGroupsResult(const std::string &payload); + ~RemovePhoneNumberFromSkillGroupsResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -48,10 +47,9 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSRESULT_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/RemovePhoneNumbersFromSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h new file mode 100644 index 000000000..0f48cd426 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersFromSkillGroupRequest : public RpcServiceRequest + { + + public: + RemovePhoneNumbersFromSkillGroupRequest(); + ~RemovePhoneNumbersFromSkillGroupRequest(); + + std::string getNumberList()const; + void setNumberList(const std::string& numberList); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + + private: + std::string numberList_; + std::string instanceId_; + std::string skillGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AssignJobsResult.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/AssignJobsResult.h rename to ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h index c6deb0518..d21407d64 100644 --- a/ccc/include/alibabacloud/ccc/model/AssignJobsResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ #include #include @@ -29,19 +29,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AssignJobsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersFromSkillGroupResult : public ServiceResult { public: - AssignJobsResult(); - explicit AssignJobsResult(const std::string &payload); - ~AssignJobsResult(); + RemovePhoneNumbersFromSkillGroupResult(); + explicit RemovePhoneNumbersFromSkillGroupResult(const std::string &payload); + ~RemovePhoneNumbersFromSkillGroupResult(); 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); @@ -49,11 +47,9 @@ namespace AlibabaCloud 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 +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h rename to ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersRequest.h index 9309b0fb8..a528b5e45 100644 --- a/ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetUserByExtensionRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersRequest : public RpcServiceRequest { public: - GetUserByExtensionRequest(); - ~GetUserByExtensionRequest(); + RemovePhoneNumbersRequest(); + ~RemovePhoneNumbersRequest(); - std::string getExtension()const; - void setExtension(const std::string& extension); + std::string getNumberList()const; + void setNumberList(const std::string& numberList); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - std::string extension_; + std::string numberList_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h rename to ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h index 2c44ee9a4..fdec006d9 100644 --- a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSRESULT_H_ #include #include @@ -29,29 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT SubmitCabRecordingResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersResult : public ServiceResult { public: - SubmitCabRecordingResult(); - explicit SubmitCabRecordingResult(const std::string &payload); - ~SubmitCabRecordingResult(); + RemovePhoneNumbersResult(); + explicit RemovePhoneNumbersResult(const std::string &payload); + ~RemovePhoneNumbersResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; + std::vector getFailureList()const; + std::string 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_; + std::vector failureList_; + std::string data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserRequest.h new file mode 100644 index 000000000..9d0f75567 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemoveSkillGroupsFromUserRequest : public RpcServiceRequest + { + + public: + RemoveSkillGroupsFromUserRequest(); + ~RemoveSkillGroupsFromUserRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupIdList()const; + void setSkillGroupIdList(const std::string& skillGroupIdList); + + private: + std::string userId_; + std::string instanceId_; + std::string skillGroupIdList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h b/ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserResult.h similarity index 71% rename from ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h rename to ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserResult.h index 80a31ad27..8004c9411 100644 --- a/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERRESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT PublishContactFlowVersionResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT RemoveSkillGroupsFromUserResult : public ServiceResult { public: - PublishContactFlowVersionResult(); - explicit PublishContactFlowVersionResult(const std::string &payload); - ~PublishContactFlowVersionResult(); + RemoveSkillGroupsFromUserResult(); + explicit RemoveSkillGroupsFromUserResult(const std::string &payload); + ~RemoveSkillGroupsFromUserResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::string getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; + std::string data_; std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERRESULT_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 index 65ed989c8..ead9611bb 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h @@ -35,18 +35,15 @@ namespace AlibabaCloud RemoveUsersFromSkillGroupRequest(); ~RemoveUsersFromSkillGroupRequest(); - std::vector getUserId()const; - void setUserId(const std::vector& userId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getUserIdList()const; + void setUserIdList(const std::string& userIdList); 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 userIdList_; std::string instanceId_; std::string skillGroupId_; diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h index 8461d846c..878a124b2 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h @@ -40,7 +40,6 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -48,7 +47,6 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h index c29b4d962..24b115ac8 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h @@ -35,17 +35,14 @@ namespace AlibabaCloud RemoveUsersRequest(); ~RemoveUsersRequest(); + std::string getUserIdList()const; + void setUserIdList(const std::string& userIdList); 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 userIdList_; std::string instanceId_; - std::vector userId_; - std::string accessKeyId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h index 85f577d26..eb3e6c5c1 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersResult.h @@ -39,16 +39,16 @@ namespace AlibabaCloud ~RemoveUsersResult(); 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_; }; } 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/SubmitBatchJobsRequest.h b/ccc/include/alibabacloud/ccc/model/ResetAgentStateRequest.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h rename to ccc/include/alibabacloud/ccc/model/ResetAgentStateRequest.h index 7aa78c8ca..727442bf5 100644 --- a/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ResetAgentStateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATEREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT SubmitBatchJobsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ResetAgentStateRequest : public RpcServiceRequest { public: - SubmitBatchJobsRequest(); - ~SubmitBatchJobsRequest(); + ResetAgentStateRequest(); + ~ResetAgentStateRequest(); + 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 userId_; + std::string deviceId_; std::string instanceId_; - std::string jobGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSREQUEST_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/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/RetrieveCallRequest.h b/ccc/include/alibabacloud/ccc/model/RetrieveCallRequest.h new file mode 100644 index 000000000..4dcaa41c7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RetrieveCallRequest.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_RETRIEVECALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RETRIEVECALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RetrieveCallRequest : public RpcServiceRequest + { + + public: + 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_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/SaveTerminalLogRequest.h b/ccc/include/alibabacloud/ccc/model/SaveTerminalLogRequest.h deleted file mode 100644 index 59a28ed8a..000000000 --- a/ccc/include/alibabacloud/ccc/model/SaveTerminalLogRequest.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_SAVETERMINALLOGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SAVETERMINALLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SaveTerminalLogRequest : public RpcServiceRequest - { - - public: - SaveTerminalLogRequest(); - ~SaveTerminalLogRequest(); - - std::string getCallId()const; - void setCallId(const std::string& callId); - std::string getContent()const; - void setContent(const std::string& content); - std::string getUniqueRequestId()const; - void setUniqueRequestId(const std::string& uniqueRequestId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getAppName()const; - void setAppName(const std::string& appName); - int getDataType()const; - void setDataType(int dataType); - std::string getStatus()const; - void setStatus(const std::string& status); - std::string getMethodName()const; - void setMethodName(const std::string& methodName); - - private: - std::string callId_; - std::string content_; - std::string uniqueRequestId_; - std::string jobId_; - std::string instanceId_; - std::string appName_; - int dataType_; - std::string status_; - std::string methodName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SAVETERMINALLOGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SaveTerminalLogResult.h b/ccc/include/alibabacloud/ccc/model/SaveTerminalLogResult.h deleted file mode 100644 index 63729302b..000000000 --- a/ccc/include/alibabacloud/ccc/model/SaveTerminalLogResult.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_SAVETERMINALLOGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SAVETERMINALLOGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SaveTerminalLogResult : public ServiceResult - { - public: - - - SaveTerminalLogResult(); - explicit SaveTerminalLogResult(const std::string &payload); - ~SaveTerminalLogResult(); - std::string getMessage()const; - long getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - long getTimeStamp()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - long httpStatusCode_; - std::string code_; - bool success_; - long timeStamp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SAVETERMINALLOGRESULT_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/SignOutGroupResult.h b/ccc/include/alibabacloud/ccc/model/SignOutGroupResult.h new file mode 100644 index 000000000..e066a4714 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SignOutGroupResult.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_SIGNOUTGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SignOutGroupResult : 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; + }; + + + SignOutGroupResult(); + explicit SignOutGroupResult(const std::string &payload); + ~SignOutGroupResult(); + 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_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 index bdc3731ae..6ec98c34c 100644 --- a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h @@ -35,26 +35,35 @@ namespace AlibabaCloud 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 getBroker()const; + void setBroker(const std::string& broker); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getAdditionalBroker()const; + void setAdditionalBroker(const std::string& additionalBroker); + std::string getTags()const; + void setTags(const std::string& tags); + int getTimeoutSeconds()const; + void setTimeoutSeconds(int timeoutSeconds); std::string getCaller()const; void setCaller(const std::string& caller); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getWorkflowId()const; - void setWorkflowId(const std::string& workflowId); private: - std::string callCenterNumber_; std::string callee_; - std::string accessKeyId_; + std::string broker_; + std::string userId_; + std::string deviceId_; + std::string additionalBroker_; + std::string tags_; + int timeoutSeconds_; std::string caller_; std::string instanceId_; - std::string workflowId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h index 57f9b4383..131711ae4 100644 --- a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h @@ -32,31 +32,71 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT StartBack2BackCallResult : public ServiceResult { public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseInitiator; + std::string callType; + std::string associatedData; + std::string channelId; + long timestamp; + std::string releaseReason; + std::string channelFlags; + std::string originator; + std::string userId; + std::string userExtension; + std::string jobId; + }; + std::string instanceId; + std::string callType; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string userState; + std::string instanceId; + std::string breakCode; + std::string deviceId; + bool outboundScenario; + std::string mobile; + std::string uri; + std::vector signedSkillGroupIdList; + std::string extension; + std::string deviceState; + std::string userId; + long heartbeat; + std::string jobId; + std::string workMode; + long reserved; + }; + UserContext userContext; + CallContext callContext; + }; StartBack2BackCallResult(); explicit StartBack2BackCallResult(const std::string &payload); ~StartBack2BackCallResult(); - std::string getStatusDesc()const; - std::string getTaskId()const; std::string getMessage()const; int getHttpStatusCode()const; + std::vector getParams()const; + Data getData()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::vector params_; + Data data_; std::string code_; - std::string statusCode_; - bool success_; - std::string timeStamp_; }; } 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/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/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/GetSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/TakeBreakRequest.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h rename to ccc/include/alibabacloud/ccc/model/TakeBreakRequest.h index 6bc39fc06..c80f82a59 100644 --- a/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h +++ b/ccc/include/alibabacloud/ccc/model/TakeBreakRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETSURVEYREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETSURVEYREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_TAKEBREAKREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_TAKEBREAKREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetSurveyRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT TakeBreakRequest : public RpcServiceRequest { public: - GetSurveyRequest(); - ~GetSurveyRequest(); + TakeBreakRequest(); + ~TakeBreakRequest(); - std::string getSurveyId()const; - void setSurveyId(const std::string& surveyId); + 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 getScenarioId()const; - void setScenarioId(const std::string& scenarioId); private: - std::string surveyId_; + std::string code_; + std::string userId_; + std::string deviceId_; std::string instanceId_; - std::string scenarioId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETSURVEYREQUEST_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 ba3de570f..fac3030c3 100644 --- a/ccc/src/CCCClient.cc +++ b/ccc/src/CCCClient.cc @@ -51,252 +51,252 @@ CCCClient::CCCClient(const std::string & accessKeyId, const std::string & access CCCClient::~CCCClient() {} -CCCClient::AbortPredictiveJobsOutcome CCCClient::abortPredictiveJobs(const AbortPredictiveJobsRequest &request) const +CCCClient::AddNumbersToSkillGroupOutcome CCCClient::addNumbersToSkillGroup(const AddNumbersToSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AbortPredictiveJobsOutcome(endpointOutcome.error()); + return AddNumbersToSkillGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AbortPredictiveJobsOutcome(AbortPredictiveJobsResult(outcome.result())); + return AddNumbersToSkillGroupOutcome(AddNumbersToSkillGroupResult(outcome.result())); else - return AbortPredictiveJobsOutcome(outcome.error()); + return AddNumbersToSkillGroupOutcome(outcome.error()); } -void CCCClient::abortPredictiveJobsAsync(const AbortPredictiveJobsRequest& request, const AbortPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addNumbersToSkillGroupAsync(const AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, abortPredictiveJobs(request), context); + handler(this, request, addNumbersToSkillGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AbortPredictiveJobsOutcomeCallable CCCClient::abortPredictiveJobsCallable(const AbortPredictiveJobsRequest &request) const +CCCClient::AddNumbersToSkillGroupOutcomeCallable CCCClient::addNumbersToSkillGroupCallable(const AddNumbersToSkillGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->abortPredictiveJobs(request); + return this->addNumbersToSkillGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddAgentDeviceOutcome CCCClient::addAgentDevice(const AddAgentDeviceRequest &request) const +CCCClient::AddPersonalNumbersToUserOutcome CCCClient::addPersonalNumbersToUser(const AddPersonalNumbersToUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddAgentDeviceOutcome(endpointOutcome.error()); + return AddPersonalNumbersToUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddAgentDeviceOutcome(AddAgentDeviceResult(outcome.result())); + return AddPersonalNumbersToUserOutcome(AddPersonalNumbersToUserResult(outcome.result())); else - return AddAgentDeviceOutcome(outcome.error()); + return AddPersonalNumbersToUserOutcome(outcome.error()); } -void CCCClient::addAgentDeviceAsync(const AddAgentDeviceRequest& request, const AddAgentDeviceAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addPersonalNumbersToUserAsync(const AddPersonalNumbersToUserRequest& request, const AddPersonalNumbersToUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addAgentDevice(request), context); + handler(this, request, addPersonalNumbersToUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddAgentDeviceOutcomeCallable CCCClient::addAgentDeviceCallable(const AddAgentDeviceRequest &request) const +CCCClient::AddPersonalNumbersToUserOutcomeCallable CCCClient::addPersonalNumbersToUserCallable(const AddPersonalNumbersToUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addAgentDevice(request); + return this->addPersonalNumbersToUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddBulkPhoneNumbersOutcome CCCClient::addBulkPhoneNumbers(const AddBulkPhoneNumbersRequest &request) const +CCCClient::AddPhoneNumberToSkillGroupsOutcome CCCClient::addPhoneNumberToSkillGroups(const AddPhoneNumberToSkillGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddBulkPhoneNumbersOutcome(endpointOutcome.error()); + return AddPhoneNumberToSkillGroupsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddBulkPhoneNumbersOutcome(AddBulkPhoneNumbersResult(outcome.result())); + return AddPhoneNumberToSkillGroupsOutcome(AddPhoneNumberToSkillGroupsResult(outcome.result())); else - return AddBulkPhoneNumbersOutcome(outcome.error()); + return AddPhoneNumberToSkillGroupsOutcome(outcome.error()); } -void CCCClient::addBulkPhoneNumbersAsync(const AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addPhoneNumberToSkillGroupsAsync(const AddPhoneNumberToSkillGroupsRequest& request, const AddPhoneNumberToSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addBulkPhoneNumbers(request), context); + handler(this, request, addPhoneNumberToSkillGroups(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddBulkPhoneNumbersOutcomeCallable CCCClient::addBulkPhoneNumbersCallable(const AddBulkPhoneNumbersRequest &request) const +CCCClient::AddPhoneNumberToSkillGroupsOutcomeCallable CCCClient::addPhoneNumberToSkillGroupsCallable(const AddPhoneNumberToSkillGroupsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addBulkPhoneNumbers(request); + return this->addPhoneNumberToSkillGroups(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddJobsToPredictiveJobGroupOutcome CCCClient::addJobsToPredictiveJobGroup(const AddJobsToPredictiveJobGroupRequest &request) const +CCCClient::AddPhoneNumbersOutcome CCCClient::addPhoneNumbers(const AddPhoneNumbersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddJobsToPredictiveJobGroupOutcome(endpointOutcome.error()); + return AddPhoneNumbersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddJobsToPredictiveJobGroupOutcome(AddJobsToPredictiveJobGroupResult(outcome.result())); + return AddPhoneNumbersOutcome(AddPhoneNumbersResult(outcome.result())); else - return AddJobsToPredictiveJobGroupOutcome(outcome.error()); + return AddPhoneNumbersOutcome(outcome.error()); } -void CCCClient::addJobsToPredictiveJobGroupAsync(const AddJobsToPredictiveJobGroupRequest& request, const AddJobsToPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addPhoneNumbersAsync(const AddPhoneNumbersRequest& request, const AddPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addJobsToPredictiveJobGroup(request), context); + handler(this, request, addPhoneNumbers(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddJobsToPredictiveJobGroupOutcomeCallable CCCClient::addJobsToPredictiveJobGroupCallable(const AddJobsToPredictiveJobGroupRequest &request) const +CCCClient::AddPhoneNumbersOutcomeCallable CCCClient::addPhoneNumbersCallable(const AddPhoneNumbersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addJobsToPredictiveJobGroup(request); + return this->addPhoneNumbers(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const +CCCClient::AddSkillGroupsToUserOutcome CCCClient::addSkillGroupsToUser(const AddSkillGroupsToUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddPhoneNumberOutcome(endpointOutcome.error()); + return AddSkillGroupsToUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddPhoneNumberOutcome(AddPhoneNumberResult(outcome.result())); + return AddSkillGroupsToUserOutcome(AddSkillGroupsToUserResult(outcome.result())); else - return AddPhoneNumberOutcome(outcome.error()); + return AddSkillGroupsToUserOutcome(outcome.error()); } -void CCCClient::addPhoneNumberAsync(const AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addSkillGroupsToUserAsync(const AddSkillGroupsToUserRequest& request, const AddSkillGroupsToUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addPhoneNumber(request), context); + handler(this, request, addSkillGroupsToUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const AddPhoneNumberRequest &request) const +CCCClient::AddSkillGroupsToUserOutcomeCallable CCCClient::addSkillGroupsToUserCallable(const AddSkillGroupsToUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addPhoneNumber(request); + return this->addSkillGroupsToUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddPhoneTagsOutcome CCCClient::addPhoneTags(const AddPhoneTagsRequest &request) const +CCCClient::AddUsersToSkillGroupOutcome CCCClient::addUsersToSkillGroup(const AddUsersToSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddPhoneTagsOutcome(endpointOutcome.error()); + return AddUsersToSkillGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddPhoneTagsOutcome(AddPhoneTagsResult(outcome.result())); + return AddUsersToSkillGroupOutcome(AddUsersToSkillGroupResult(outcome.result())); else - return AddPhoneTagsOutcome(outcome.error()); + return AddUsersToSkillGroupOutcome(outcome.error()); } -void CCCClient::addPhoneTagsAsync(const AddPhoneTagsRequest& request, const AddPhoneTagsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addUsersToSkillGroupAsync(const AddUsersToSkillGroupRequest& request, const AddUsersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addPhoneTags(request), context); + handler(this, request, addUsersToSkillGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddPhoneTagsOutcomeCallable CCCClient::addPhoneTagsCallable(const AddPhoneTagsRequest &request) const +CCCClient::AddUsersToSkillGroupOutcomeCallable CCCClient::addUsersToSkillGroupCallable(const AddUsersToSkillGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addPhoneTags(request); + return this->addUsersToSkillGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AssignJobsOutcome CCCClient::assignJobs(const AssignJobsRequest &request) const +CCCClient::AnswerCallOutcome CCCClient::answerCall(const AnswerCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AssignJobsOutcome(endpointOutcome.error()); + return AnswerCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AssignJobsOutcome(AssignJobsResult(outcome.result())); + return AnswerCallOutcome(AnswerCallResult(outcome.result())); else - return AssignJobsOutcome(outcome.error()); + return AnswerCallOutcome(outcome.error()); } -void CCCClient::assignJobsAsync(const AssignJobsRequest& request, const AssignJobsAsyncHandler& 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, assignJobs(request), context); + handler(this, request, answerCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AssignJobsOutcomeCallable CCCClient::assignJobsCallable(const AssignJobsRequest &request) const +CCCClient::AnswerCallOutcomeCallable CCCClient::answerCallCallable(const AnswerCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->assignJobs(request); + return this->answerCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -339,504 +339,216 @@ CCCClient::AssignUsersOutcomeCallable CCCClient::assignUsersCallable(const Assig return task->get_future(); } -CCCClient::CallOnlinePrivacyNumberOutcome CCCClient::callOnlinePrivacyNumber(const CallOnlinePrivacyNumberRequest &request) const +CCCClient::BargeInCallOutcome CCCClient::bargeInCall(const BargeInCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CallOnlinePrivacyNumberOutcome(endpointOutcome.error()); + return BargeInCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CallOnlinePrivacyNumberOutcome(CallOnlinePrivacyNumberResult(outcome.result())); + return BargeInCallOutcome(BargeInCallResult(outcome.result())); else - return CallOnlinePrivacyNumberOutcome(outcome.error()); + return BargeInCallOutcome(outcome.error()); } -void CCCClient::callOnlinePrivacyNumberAsync(const CallOnlinePrivacyNumberRequest& request, const CallOnlinePrivacyNumberAsyncHandler& 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, callOnlinePrivacyNumber(request), context); + handler(this, request, bargeInCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CallOnlinePrivacyNumberOutcomeCallable CCCClient::callOnlinePrivacyNumberCallable(const CallOnlinePrivacyNumberRequest &request) const +CCCClient::BargeInCallOutcomeCallable CCCClient::bargeInCallCallable(const BargeInCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->callOnlinePrivacyNumber(request); + return this->bargeInCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CancelJobsOutcome CCCClient::cancelJobs(const CancelJobsRequest &request) const +CCCClient::BlindTransferOutcome CCCClient::blindTransfer(const BlindTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CancelJobsOutcome(endpointOutcome.error()); + return BlindTransferOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CancelJobsOutcome(CancelJobsResult(outcome.result())); + return BlindTransferOutcome(BlindTransferResult(outcome.result())); else - return CancelJobsOutcome(outcome.error()); + return BlindTransferOutcome(outcome.error()); } -void CCCClient::cancelJobsAsync(const CancelJobsRequest& request, const CancelJobsAsyncHandler& 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, cancelJobs(request), context); + handler(this, request, blindTransfer(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CancelJobsOutcomeCallable CCCClient::cancelJobsCallable(const CancelJobsRequest &request) const +CCCClient::BlindTransferOutcomeCallable CCCClient::blindTransferCallable(const BlindTransferRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->cancelJobs(request); + return this->blindTransfer(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CheckNumberAvaliableOutcome CCCClient::checkNumberAvaliable(const CheckNumberAvaliableRequest &request) const +CCCClient::CancelAttendedTransferOutcome CCCClient::cancelAttendedTransfer(const CancelAttendedTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CheckNumberAvaliableOutcome(endpointOutcome.error()); + return CancelAttendedTransferOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CheckNumberAvaliableOutcome(CheckNumberAvaliableResult(outcome.result())); + return CancelAttendedTransferOutcome(CancelAttendedTransferResult(outcome.result())); else - return CheckNumberAvaliableOutcome(outcome.error()); + return CancelAttendedTransferOutcome(outcome.error()); } -void CCCClient::checkNumberAvaliableAsync(const CheckNumberAvaliableRequest& request, const CheckNumberAvaliableAsyncHandler& 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, checkNumberAvaliable(request), context); + handler(this, request, cancelAttendedTransfer(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CheckNumberAvaliableOutcomeCallable CCCClient::checkNumberAvaliableCallable(const CheckNumberAvaliableRequest &request) const +CCCClient::CancelAttendedTransferOutcomeCallable CCCClient::cancelAttendedTransferCallable(const CancelAttendedTransferRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->checkNumberAvaliable(request); + return this->cancelAttendedTransfer(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CommitContactFlowVersionModificationOutcome CCCClient::commitContactFlowVersionModification(const CommitContactFlowVersionModificationRequest &request) const +CCCClient::ChangeWorkModeOutcome CCCClient::changeWorkMode(const ChangeWorkModeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CommitContactFlowVersionModificationOutcome(endpointOutcome.error()); + return ChangeWorkModeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CommitContactFlowVersionModificationOutcome(CommitContactFlowVersionModificationResult(outcome.result())); + return ChangeWorkModeOutcome(ChangeWorkModeResult(outcome.result())); else - return CommitContactFlowVersionModificationOutcome(outcome.error()); + return ChangeWorkModeOutcome(outcome.error()); } -void CCCClient::commitContactFlowVersionModificationAsync(const CommitContactFlowVersionModificationRequest& request, const CommitContactFlowVersionModificationAsyncHandler& 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, commitContactFlowVersionModification(request), context); + handler(this, request, changeWorkMode(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CommitContactFlowVersionModificationOutcomeCallable CCCClient::commitContactFlowVersionModificationCallable(const CommitContactFlowVersionModificationRequest &request) const +CCCClient::ChangeWorkModeOutcomeCallable CCCClient::changeWorkModeCallable(const ChangeWorkModeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->commitContactFlowVersionModification(request); + return this->changeWorkMode(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateBatchJobsOutcome CCCClient::createBatchJobs(const CreateBatchJobsRequest &request) const +CCCClient::CoachCallOutcome CCCClient::coachCall(const CoachCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateBatchJobsOutcome(endpointOutcome.error()); + return CoachCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateBatchJobsOutcome(CreateBatchJobsResult(outcome.result())); + return CoachCallOutcome(CoachCallResult(outcome.result())); else - return CreateBatchJobsOutcome(outcome.error()); + return CoachCallOutcome(outcome.error()); } -void CCCClient::createBatchJobsAsync(const CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::coachCallAsync(const CoachCallRequest& request, const CoachCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createBatchJobs(request), context); + handler(this, request, coachCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateBatchJobsOutcomeCallable CCCClient::createBatchJobsCallable(const CreateBatchJobsRequest &request) const +CCCClient::CoachCallOutcomeCallable CCCClient::coachCallCallable(const CoachCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createBatchJobs(request); + return this->coachCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateCabInstanceOutcome CCCClient::createCabInstance(const CreateCabInstanceRequest &request) const +CCCClient::CompleteAttendedTransferOutcome CCCClient::completeAttendedTransfer(const CompleteAttendedTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateCabInstanceOutcome(endpointOutcome.error()); + return CompleteAttendedTransferOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateCabInstanceOutcome(CreateCabInstanceResult(outcome.result())); + return CompleteAttendedTransferOutcome(CompleteAttendedTransferResult(outcome.result())); else - return CreateCabInstanceOutcome(outcome.error()); + return CompleteAttendedTransferOutcome(outcome.error()); } -void CCCClient::createCabInstanceAsync(const CreateCabInstanceRequest& request, const CreateCabInstanceAsyncHandler& 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, createCabInstance(request), context); + handler(this, request, completeAttendedTransfer(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateCabInstanceOutcomeCallable CCCClient::createCabInstanceCallable(const CreateCabInstanceRequest &request) const +CCCClient::CompleteAttendedTransferOutcomeCallable CCCClient::completeAttendedTransferCallable(const CompleteAttendedTransferRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createCabInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::CreateContactFlowOutcome CCCClient::createContactFlow(const CreateContactFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateContactFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateContactFlowOutcome(CreateContactFlowResult(outcome.result())); - else - return CreateContactFlowOutcome(outcome.error()); -} - -void CCCClient::createContactFlowAsync(const CreateContactFlowRequest& request, const CreateContactFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createContactFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreateContactFlowOutcomeCallable CCCClient::createContactFlowCallable(const CreateContactFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createContactFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::CreateFaultOutcome CCCClient::createFault(const CreateFaultRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateFaultOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateFaultOutcome(CreateFaultResult(outcome.result())); - else - return CreateFaultOutcome(outcome.error()); -} - -void CCCClient::createFaultAsync(const CreateFaultRequest& request, const CreateFaultAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createFault(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreateFaultOutcomeCallable CCCClient::createFaultCallable(const CreateFaultRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createFault(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::CreateInstanceOutcome CCCClient::createInstance(const CreateInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); - else - return CreateInstanceOutcome(outcome.error()); -} - -void CCCClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreateInstanceOutcomeCallable CCCClient::createInstanceCallable(const CreateInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::CreateJobGroupOutcome CCCClient::createJobGroup(const CreateJobGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateJobGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateJobGroupOutcome(CreateJobGroupResult(outcome.result())); - else - return CreateJobGroupOutcome(outcome.error()); -} - -void CCCClient::createJobGroupAsync(const CreateJobGroupRequest& request, const CreateJobGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createJobGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreateJobGroupOutcomeCallable CCCClient::createJobGroupCallable(const CreateJobGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createJobGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::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); + return this->completeAttendedTransfer(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -879,42 +591,6 @@ CCCClient::CreateSkillGroupOutcomeCallable CCCClient::createSkillGroupCallable(c 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(); @@ -951,186 +627,6 @@ CCCClient::CreateUserOutcomeCallable CCCClient::createUserCallable(const CreateU 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(); @@ -1167,612 +663,108 @@ CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(c return task->get_future(); } -CCCClient::DeleteSurveyOutcome CCCClient::deleteSurvey(const DeleteSurveyRequest &request) const +CCCClient::GetCallDetailRecordOutcome CCCClient::getCallDetailRecord(const GetCallDetailRecordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteSurveyOutcome(endpointOutcome.error()); + return GetCallDetailRecordOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteSurveyOutcome(DeleteSurveyResult(outcome.result())); + return GetCallDetailRecordOutcome(GetCallDetailRecordResult(outcome.result())); else - return DeleteSurveyOutcome(outcome.error()); + return GetCallDetailRecordOutcome(outcome.error()); } -void CCCClient::deleteSurveyAsync(const DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getCallDetailRecordAsync(const GetCallDetailRecordRequest& request, const GetCallDetailRecordAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteSurvey(request), context); + handler(this, request, getCallDetailRecord(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::DeleteSurveyOutcomeCallable CCCClient::deleteSurveyCallable(const DeleteSurveyRequest &request) const +CCCClient::GetCallDetailRecordOutcomeCallable CCCClient::getCallDetailRecordCallable(const GetCallDetailRecordRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteSurvey(request); + return this->getCallDetailRecord(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::DialExOutcome CCCClient::dialEx(const DialExRequest &request) const +CCCClient::GetHistoricalCallerReportOutcome CCCClient::getHistoricalCallerReport(const GetHistoricalCallerReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DialExOutcome(endpointOutcome.error()); + return GetHistoricalCallerReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DialExOutcome(DialExResult(outcome.result())); + return GetHistoricalCallerReportOutcome(GetHistoricalCallerReportResult(outcome.result())); else - return DialExOutcome(outcome.error()); + return GetHistoricalCallerReportOutcome(outcome.error()); } -void CCCClient::dialExAsync(const DialExRequest& request, const DialExAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getHistoricalCallerReportAsync(const GetHistoricalCallerReportRequest& request, const GetHistoricalCallerReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, dialEx(request), context); + handler(this, request, getHistoricalCallerReport(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::DialExOutcomeCallable CCCClient::dialExCallable(const DialExRequest &request) const +CCCClient::GetHistoricalCallerReportOutcomeCallable CCCClient::getHistoricalCallerReportCallable(const GetHistoricalCallerReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->dialEx(request); + return this->getHistoricalCallerReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::DialogueOutcome CCCClient::dialogue(const DialogueRequest &request) const +CCCClient::GetHistoricalInstanceReportOutcome CCCClient::getHistoricalInstanceReport(const GetHistoricalInstanceReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DialogueOutcome(endpointOutcome.error()); + return GetHistoricalInstanceReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DialogueOutcome(DialogueResult(outcome.result())); + return GetHistoricalInstanceReportOutcome(GetHistoricalInstanceReportResult(outcome.result())); else - return DialogueOutcome(outcome.error()); + return GetHistoricalInstanceReportOutcome(outcome.error()); } -void CCCClient::dialogueAsync(const DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getHistoricalInstanceReportAsync(const GetHistoricalInstanceReportRequest& request, const GetHistoricalInstanceReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, dialogue(request), context); + handler(this, request, getHistoricalInstanceReport(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::DialogueOutcomeCallable CCCClient::dialogueCallable(const DialogueRequest &request) const +CCCClient::GetHistoricalInstanceReportOutcomeCallable CCCClient::getHistoricalInstanceReportCallable(const GetHistoricalInstanceReportRequest &request) const { - auto task = std::make_shared>( + 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::GetContactInfoByOutboundTaskIdOutcome CCCClient::getContactInfoByOutboundTaskId(const GetContactInfoByOutboundTaskIdRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetContactInfoByOutboundTaskIdOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetContactInfoByOutboundTaskIdOutcome(GetContactInfoByOutboundTaskIdResult(outcome.result())); - else - return GetContactInfoByOutboundTaskIdOutcome(outcome.error()); -} - -void CCCClient::getContactInfoByOutboundTaskIdAsync(const GetContactInfoByOutboundTaskIdRequest& request, const GetContactInfoByOutboundTaskIdAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getContactInfoByOutboundTaskId(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetContactInfoByOutboundTaskIdOutcomeCallable CCCClient::getContactInfoByOutboundTaskIdCallable(const GetContactInfoByOutboundTaskIdRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getContactInfoByOutboundTaskId(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); + return this->getHistoricalInstanceReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1815,756 +807,288 @@ CCCClient::GetInstanceOutcomeCallable CCCClient::getInstanceCallable(const GetIn return task->get_future(); } -CCCClient::GetInstanceStateOutcome CCCClient::getInstanceState(const GetInstanceStateRequest &request) const +CCCClient::GetInstanceTrendingReportOutcome CCCClient::getInstanceTrendingReport(const GetInstanceTrendingReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetInstanceStateOutcome(endpointOutcome.error()); + return GetInstanceTrendingReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetInstanceStateOutcome(GetInstanceStateResult(outcome.result())); + return GetInstanceTrendingReportOutcome(GetInstanceTrendingReportResult(outcome.result())); else - return GetInstanceStateOutcome(outcome.error()); + return GetInstanceTrendingReportOutcome(outcome.error()); } -void CCCClient::getInstanceStateAsync(const GetInstanceStateRequest& request, const GetInstanceStateAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getInstanceTrendingReportAsync(const GetInstanceTrendingReportRequest& request, const GetInstanceTrendingReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getInstanceState(request), context); + handler(this, request, getInstanceTrendingReport(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetInstanceStateOutcomeCallable CCCClient::getInstanceStateCallable(const GetInstanceStateRequest &request) const +CCCClient::GetInstanceTrendingReportOutcomeCallable CCCClient::getInstanceTrendingReportCallable(const GetInstanceTrendingReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getInstanceState(request); + return this->getInstanceTrendingReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetInstanceSummaryReportOutcome CCCClient::getInstanceSummaryReport(const GetInstanceSummaryReportRequest &request) const +CCCClient::GetLoginDetailsOutcome CCCClient::getLoginDetails(const GetLoginDetailsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetInstanceSummaryReportOutcome(endpointOutcome.error()); + return GetLoginDetailsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetInstanceSummaryReportOutcome(GetInstanceSummaryReportResult(outcome.result())); + return GetLoginDetailsOutcome(GetLoginDetailsResult(outcome.result())); else - return GetInstanceSummaryReportOutcome(outcome.error()); + return GetLoginDetailsOutcome(outcome.error()); } -void CCCClient::getInstanceSummaryReportAsync(const GetInstanceSummaryReportRequest& request, const GetInstanceSummaryReportAsyncHandler& 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, getInstanceSummaryReport(request), context); + handler(this, request, getLoginDetails(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetInstanceSummaryReportOutcomeCallable CCCClient::getInstanceSummaryReportCallable(const GetInstanceSummaryReportRequest &request) const +CCCClient::GetLoginDetailsOutcomeCallable CCCClient::getLoginDetailsCallable(const GetLoginDetailsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getInstanceSummaryReport(request); + return this->getLoginDetails(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetInstanceSummaryReportByIntervalOutcome CCCClient::getInstanceSummaryReportByInterval(const GetInstanceSummaryReportByIntervalRequest &request) const +CCCClient::GetMonoRecordingOutcome CCCClient::getMonoRecording(const GetMonoRecordingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetInstanceSummaryReportByIntervalOutcome(endpointOutcome.error()); + return GetMonoRecordingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetInstanceSummaryReportByIntervalOutcome(GetInstanceSummaryReportByIntervalResult(outcome.result())); + return GetMonoRecordingOutcome(GetMonoRecordingResult(outcome.result())); else - return GetInstanceSummaryReportByIntervalOutcome(outcome.error()); + return GetMonoRecordingOutcome(outcome.error()); } -void CCCClient::getInstanceSummaryReportByIntervalAsync(const GetInstanceSummaryReportByIntervalRequest& request, const GetInstanceSummaryReportByIntervalAsyncHandler& 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, getInstanceSummaryReportByInterval(request), context); + handler(this, request, getMonoRecording(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetInstanceSummaryReportByIntervalOutcomeCallable CCCClient::getInstanceSummaryReportByIntervalCallable(const GetInstanceSummaryReportByIntervalRequest &request) const +CCCClient::GetMonoRecordingOutcomeCallable CCCClient::getMonoRecordingCallable(const GetMonoRecordingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getInstanceSummaryReportByInterval(request); + return this->getMonoRecording(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetInstanceSummaryReportSinceMidnightOutcome CCCClient::getInstanceSummaryReportSinceMidnight(const GetInstanceSummaryReportSinceMidnightRequest &request) const +CCCClient::GetMultiChannelRecordingOutcome CCCClient::getMultiChannelRecording(const GetMultiChannelRecordingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetInstanceSummaryReportSinceMidnightOutcome(endpointOutcome.error()); + return GetMultiChannelRecordingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetInstanceSummaryReportSinceMidnightOutcome(GetInstanceSummaryReportSinceMidnightResult(outcome.result())); + return GetMultiChannelRecordingOutcome(GetMultiChannelRecordingResult(outcome.result())); else - return GetInstanceSummaryReportSinceMidnightOutcome(outcome.error()); + return GetMultiChannelRecordingOutcome(outcome.error()); } -void CCCClient::getInstanceSummaryReportSinceMidnightAsync(const GetInstanceSummaryReportSinceMidnightRequest& request, const GetInstanceSummaryReportSinceMidnightAsyncHandler& 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, getInstanceSummaryReportSinceMidnight(request), context); + handler(this, request, getMultiChannelRecording(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetInstanceSummaryReportSinceMidnightOutcomeCallable CCCClient::getInstanceSummaryReportSinceMidnightCallable(const GetInstanceSummaryReportSinceMidnightRequest &request) const +CCCClient::GetMultiChannelRecordingOutcomeCallable CCCClient::getMultiChannelRecordingCallable(const GetMultiChannelRecordingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getInstanceSummaryReportSinceMidnight(request); + return this->getMultiChannelRecording(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetJobOutcome CCCClient::getJob(const GetJobRequest &request) const +CCCClient::GetNumberLocationOutcome CCCClient::getNumberLocation(const GetNumberLocationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetJobOutcome(endpointOutcome.error()); + return GetNumberLocationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetJobOutcome(GetJobResult(outcome.result())); + return GetNumberLocationOutcome(GetNumberLocationResult(outcome.result())); else - return GetJobOutcome(outcome.error()); + return GetNumberLocationOutcome(outcome.error()); } -void CCCClient::getJobAsync(const GetJobRequest& request, const GetJobAsyncHandler& 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, getJob(request), context); + handler(this, request, getNumberLocation(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetJobOutcomeCallable CCCClient::getJobCallable(const GetJobRequest &request) const +CCCClient::GetNumberLocationOutcomeCallable CCCClient::getNumberLocationCallable(const GetNumberLocationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getJob(request); + return this->getNumberLocation(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetJobDataUploadParamsOutcome CCCClient::getJobDataUploadParams(const GetJobDataUploadParamsRequest &request) const +CCCClient::GetRealtimeInstanceStatesOutcome CCCClient::getRealtimeInstanceStates(const GetRealtimeInstanceStatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetJobDataUploadParamsOutcome(endpointOutcome.error()); + return GetRealtimeInstanceStatesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetJobDataUploadParamsOutcome(GetJobDataUploadParamsResult(outcome.result())); + return GetRealtimeInstanceStatesOutcome(GetRealtimeInstanceStatesResult(outcome.result())); else - return GetJobDataUploadParamsOutcome(outcome.error()); + return GetRealtimeInstanceStatesOutcome(outcome.error()); } -void CCCClient::getJobDataUploadParamsAsync(const GetJobDataUploadParamsRequest& request, const GetJobDataUploadParamsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getRealtimeInstanceStatesAsync(const GetRealtimeInstanceStatesRequest& request, const GetRealtimeInstanceStatesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getJobDataUploadParams(request), context); + handler(this, request, getRealtimeInstanceStates(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetJobDataUploadParamsOutcomeCallable CCCClient::getJobDataUploadParamsCallable(const GetJobDataUploadParamsRequest &request) const +CCCClient::GetRealtimeInstanceStatesOutcomeCallable CCCClient::getRealtimeInstanceStatesCallable(const GetRealtimeInstanceStatesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getJobDataUploadParams(request); + return this->getRealtimeInstanceStates(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetJobFileUploadUrlOutcome CCCClient::getJobFileUploadUrl(const GetJobFileUploadUrlRequest &request) const +CCCClient::GetTurnCredentialsOutcome CCCClient::getTurnCredentials(const GetTurnCredentialsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetJobFileUploadUrlOutcome(endpointOutcome.error()); + return GetTurnCredentialsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetJobFileUploadUrlOutcome(GetJobFileUploadUrlResult(outcome.result())); + return GetTurnCredentialsOutcome(GetTurnCredentialsResult(outcome.result())); else - return GetJobFileUploadUrlOutcome(outcome.error()); + return GetTurnCredentialsOutcome(outcome.error()); } -void CCCClient::getJobFileUploadUrlAsync(const GetJobFileUploadUrlRequest& request, const GetJobFileUploadUrlAsyncHandler& 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, getJobFileUploadUrl(request), context); + handler(this, request, getTurnCredentials(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetJobFileUploadUrlOutcomeCallable CCCClient::getJobFileUploadUrlCallable(const GetJobFileUploadUrlRequest &request) const +CCCClient::GetTurnCredentialsOutcomeCallable CCCClient::getTurnCredentialsCallable(const GetTurnCredentialsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getJobFileUploadUrl(request); + return this->getTurnCredentials(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetJobGroupOutcome CCCClient::getJobGroup(const GetJobGroupRequest &request) const +CCCClient::GetTurnServerListOutcome CCCClient::getTurnServerList(const GetTurnServerListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetJobGroupOutcome(endpointOutcome.error()); + return GetTurnServerListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetJobGroupOutcome(GetJobGroupResult(outcome.result())); + return GetTurnServerListOutcome(GetTurnServerListResult(outcome.result())); else - return GetJobGroupOutcome(outcome.error()); + return GetTurnServerListOutcome(outcome.error()); } -void CCCClient::getJobGroupAsync(const GetJobGroupRequest& request, const GetJobGroupAsyncHandler& 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, getJobGroup(request), context); + handler(this, request, getTurnServerList(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetJobGroupOutcomeCallable CCCClient::getJobGroupCallable(const GetJobGroupRequest &request) const +CCCClient::GetTurnServerListOutcomeCallable CCCClient::getTurnServerListCallable(const GetTurnServerListRequest &request) const { - auto task = std::make_shared>( + 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); + return this->getTurnServerList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2607,216 +1131,180 @@ CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserReques return task->get_future(); } -CCCClient::GetUserByExtensionOutcome CCCClient::getUserByExtension(const GetUserByExtensionRequest &request) const +CCCClient::HoldCallOutcome CCCClient::holdCall(const HoldCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetUserByExtensionOutcome(endpointOutcome.error()); + return HoldCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetUserByExtensionOutcome(GetUserByExtensionResult(outcome.result())); + return HoldCallOutcome(HoldCallResult(outcome.result())); else - return GetUserByExtensionOutcome(outcome.error()); + return HoldCallOutcome(outcome.error()); } -void CCCClient::getUserByExtensionAsync(const GetUserByExtensionRequest& request, const GetUserByExtensionAsyncHandler& 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, getUserByExtension(request), context); + handler(this, request, holdCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetUserByExtensionOutcomeCallable CCCClient::getUserByExtensionCallable(const GetUserByExtensionRequest &request) const +CCCClient::HoldCallOutcomeCallable CCCClient::holdCallCallable(const HoldCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getUserByExtension(request); + return this->holdCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::InflightTaskTimeoutOutcome CCCClient::inflightTaskTimeout(const InflightTaskTimeoutRequest &request) const +CCCClient::InitiateAttendedTransferOutcome CCCClient::initiateAttendedTransfer(const InitiateAttendedTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return InflightTaskTimeoutOutcome(endpointOutcome.error()); + return InitiateAttendedTransferOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return InflightTaskTimeoutOutcome(InflightTaskTimeoutResult(outcome.result())); + return InitiateAttendedTransferOutcome(InitiateAttendedTransferResult(outcome.result())); else - return InflightTaskTimeoutOutcome(outcome.error()); + return InitiateAttendedTransferOutcome(outcome.error()); } -void CCCClient::inflightTaskTimeoutAsync(const InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& 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, inflightTaskTimeout(request), context); + handler(this, request, initiateAttendedTransfer(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::InflightTaskTimeoutOutcomeCallable CCCClient::inflightTaskTimeoutCallable(const InflightTaskTimeoutRequest &request) const +CCCClient::InitiateAttendedTransferOutcomeCallable CCCClient::initiateAttendedTransferCallable(const InitiateAttendedTransferRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->inflightTaskTimeout(request); + return this->initiateAttendedTransfer(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::LaunchAppraiseOutcome CCCClient::launchAppraise(const LaunchAppraiseRequest &request) const +CCCClient::InterceptCallOutcome CCCClient::interceptCall(const InterceptCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return LaunchAppraiseOutcome(endpointOutcome.error()); + return InterceptCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return LaunchAppraiseOutcome(LaunchAppraiseResult(outcome.result())); + return InterceptCallOutcome(InterceptCallResult(outcome.result())); else - return LaunchAppraiseOutcome(outcome.error()); + return InterceptCallOutcome(outcome.error()); } -void CCCClient::launchAppraiseAsync(const LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& 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, launchAppraise(request), context); + handler(this, request, interceptCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::LaunchAppraiseOutcomeCallable CCCClient::launchAppraiseCallable(const LaunchAppraiseRequest &request) const +CCCClient::InterceptCallOutcomeCallable CCCClient::interceptCallCallable(const InterceptCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->launchAppraise(request); + return this->interceptCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::LaunchShortMessageAppraiseOutcome CCCClient::launchShortMessageAppraise(const LaunchShortMessageAppraiseRequest &request) const +CCCClient::LaunchAuthenticationOutcome CCCClient::launchAuthentication(const LaunchAuthenticationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return LaunchShortMessageAppraiseOutcome(endpointOutcome.error()); + return LaunchAuthenticationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return LaunchShortMessageAppraiseOutcome(LaunchShortMessageAppraiseResult(outcome.result())); + return LaunchAuthenticationOutcome(LaunchAuthenticationResult(outcome.result())); else - return LaunchShortMessageAppraiseOutcome(outcome.error()); + return LaunchAuthenticationOutcome(outcome.error()); } -void CCCClient::launchShortMessageAppraiseAsync(const LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& 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, launchShortMessageAppraise(request), context); + handler(this, request, launchAuthentication(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::LaunchShortMessageAppraiseOutcomeCallable CCCClient::launchShortMessageAppraiseCallable(const LaunchShortMessageAppraiseRequest &request) const +CCCClient::LaunchAuthenticationOutcomeCallable CCCClient::launchAuthenticationCallable(const LaunchAuthenticationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->launchShortMessageAppraise(request); + return this->launchAuthentication(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListAgentDevicesOutcome CCCClient::listAgentDevices(const ListAgentDevicesRequest &request) const +CCCClient::LaunchSurveyOutcome CCCClient::launchSurvey(const LaunchSurveyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListAgentDevicesOutcome(endpointOutcome.error()); + return LaunchSurveyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListAgentDevicesOutcome(ListAgentDevicesResult(outcome.result())); + return LaunchSurveyOutcome(LaunchSurveyResult(outcome.result())); else - return ListAgentDevicesOutcome(outcome.error()); + return LaunchSurveyOutcome(outcome.error()); } -void CCCClient::listAgentDevicesAsync(const ListAgentDevicesRequest& request, const ListAgentDevicesAsyncHandler& 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, listAgentDevices(request), context); + handler(this, request, launchSurvey(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListAgentDevicesOutcomeCallable CCCClient::listAgentDevicesCallable(const ListAgentDevicesRequest &request) const +CCCClient::LaunchSurveyOutcomeCallable CCCClient::launchSurveyCallable(const LaunchSurveyRequest &request) const { - auto task = std::make_shared>( + 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); + return this->launchSurvey(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2859,180 +1347,36 @@ CCCClient::ListAgentStateLogsOutcomeCallable CCCClient::listAgentStateLogsCallab return task->get_future(); } -CCCClient::ListAgentStatesOutcome CCCClient::listAgentStates(const ListAgentStatesRequest &request) const +CCCClient::ListBriefSkillGroupsOutcome CCCClient::listBriefSkillGroups(const ListBriefSkillGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListAgentStatesOutcome(endpointOutcome.error()); + return ListBriefSkillGroupsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListAgentStatesOutcome(ListAgentStatesResult(outcome.result())); + return ListBriefSkillGroupsOutcome(ListBriefSkillGroupsResult(outcome.result())); else - return ListAgentStatesOutcome(outcome.error()); + return ListBriefSkillGroupsOutcome(outcome.error()); } -void CCCClient::listAgentStatesAsync(const ListAgentStatesRequest& request, const ListAgentStatesAsyncHandler& 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, listAgentStates(request), context); + handler(this, request, listBriefSkillGroups(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListAgentStatesOutcomeCallable CCCClient::listAgentStatesCallable(const ListAgentStatesRequest &request) const +CCCClient::ListBriefSkillGroupsOutcomeCallable CCCClient::listBriefSkillGroupsCallable(const ListBriefSkillGroupsRequest &request) const { - auto task = std::make_shared>( + 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)(); })); @@ -3075,108 +1419,36 @@ 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); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListCallMeasureSummaryReportsOutcome CCCClient::listCallMeasureSummaryReports(const ListCallMeasureSummaryReportsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListCallMeasureSummaryReportsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListCallMeasureSummaryReportsOutcome(ListCallMeasureSummaryReportsResult(outcome.result())); - else - return ListCallMeasureSummaryReportsOutcome(outcome.error()); -} - -void CCCClient::listCallMeasureSummaryReportsAsync(const ListCallMeasureSummaryReportsRequest& request, const ListCallMeasureSummaryReportsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listCallMeasureSummaryReports(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListCallMeasureSummaryReportsOutcomeCallable CCCClient::listCallMeasureSummaryReportsCallable(const ListCallMeasureSummaryReportsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listCallMeasureSummaryReports(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListConfigOutcome CCCClient::listConfig(const ListConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListConfigOutcome(ListConfigResult(outcome.result())); - else - return ListConfigOutcome(outcome.error()); -} - -void CCCClient::listConfigAsync(const ListConfigRequest& request, const ListConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListConfigOutcomeCallable CCCClient::listConfigCallable(const ListConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listConfig(request); + return this->listConfigItems(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3219,6 +1491,114 @@ CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(c return task->get_future(); } +CCCClient::ListDevicesOutcome CCCClient::listDevices(const ListDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDevicesOutcome(ListDevicesResult(outcome.result())); + else + return ListDevicesOutcome(outcome.error()); +} + +void CCCClient::listDevicesAsync(const ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListDevicesOutcomeCallable CCCClient::listDevicesCallable(const ListDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListHistoricalAgentReportOutcome CCCClient::listHistoricalAgentReport(const ListHistoricalAgentReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListHistoricalAgentReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListHistoricalAgentReportOutcome(ListHistoricalAgentReportResult(outcome.result())); + else + return ListHistoricalAgentReportOutcome(outcome.error()); +} + +void CCCClient::listHistoricalAgentReportAsync(const ListHistoricalAgentReportRequest& request, const ListHistoricalAgentReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listHistoricalAgentReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListHistoricalAgentReportOutcomeCallable CCCClient::listHistoricalAgentReportCallable(const ListHistoricalAgentReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listHistoricalAgentReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListHistoricalSkillGroupReportOutcome CCCClient::listHistoricalSkillGroupReport(const ListHistoricalSkillGroupReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListHistoricalSkillGroupReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListHistoricalSkillGroupReportOutcome(ListHistoricalSkillGroupReportResult(outcome.result())); + else + return ListHistoricalSkillGroupReportOutcome(outcome.error()); +} + +void CCCClient::listHistoricalSkillGroupReportAsync(const ListHistoricalSkillGroupReportRequest& request, const ListHistoricalSkillGroupReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listHistoricalSkillGroupReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListHistoricalSkillGroupReportOutcomeCallable CCCClient::listHistoricalSkillGroupReportCallable(const ListHistoricalSkillGroupReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listHistoricalSkillGroupReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ListInstancesOfUserOutcome CCCClient::listInstancesOfUser(const ListInstancesOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3255,216 +1635,180 @@ CCCClient::ListInstancesOfUserOutcomeCallable CCCClient::listInstancesOfUserCall return task->get_future(); } -CCCClient::ListIvrTrackingDetailOutcome CCCClient::listIvrTrackingDetail(const ListIvrTrackingDetailRequest &request) const +CCCClient::ListIntervalAgentReportOutcome CCCClient::listIntervalAgentReport(const ListIntervalAgentReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListIvrTrackingDetailOutcome(endpointOutcome.error()); + return ListIntervalAgentReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListIvrTrackingDetailOutcome(ListIvrTrackingDetailResult(outcome.result())); + return ListIntervalAgentReportOutcome(ListIntervalAgentReportResult(outcome.result())); else - return ListIvrTrackingDetailOutcome(outcome.error()); + return ListIntervalAgentReportOutcome(outcome.error()); } -void CCCClient::listIvrTrackingDetailAsync(const ListIvrTrackingDetailRequest& request, const ListIvrTrackingDetailAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listIntervalAgentReportAsync(const ListIntervalAgentReportRequest& request, const ListIntervalAgentReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listIvrTrackingDetail(request), context); + handler(this, request, listIntervalAgentReport(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListIvrTrackingDetailOutcomeCallable CCCClient::listIvrTrackingDetailCallable(const ListIvrTrackingDetailRequest &request) const +CCCClient::ListIntervalAgentReportOutcomeCallable CCCClient::listIntervalAgentReportCallable(const ListIntervalAgentReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listIvrTrackingDetail(request); + return this->listIntervalAgentReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListJobGroupsOutcome CCCClient::listJobGroups(const ListJobGroupsRequest &request) const +CCCClient::ListIntervalInstanceReportOutcome CCCClient::listIntervalInstanceReport(const ListIntervalInstanceReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListJobGroupsOutcome(endpointOutcome.error()); + return ListIntervalInstanceReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListJobGroupsOutcome(ListJobGroupsResult(outcome.result())); + return ListIntervalInstanceReportOutcome(ListIntervalInstanceReportResult(outcome.result())); else - return ListJobGroupsOutcome(outcome.error()); + return ListIntervalInstanceReportOutcome(outcome.error()); } -void CCCClient::listJobGroupsAsync(const ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listIntervalInstanceReportAsync(const ListIntervalInstanceReportRequest& request, const ListIntervalInstanceReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listJobGroups(request), context); + handler(this, request, listIntervalInstanceReport(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListJobGroupsOutcomeCallable CCCClient::listJobGroupsCallable(const ListJobGroupsRequest &request) const +CCCClient::ListIntervalInstanceReportOutcomeCallable CCCClient::listIntervalInstanceReportCallable(const ListIntervalInstanceReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listJobGroups(request); + return this->listIntervalInstanceReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListJobStatusOutcome CCCClient::listJobStatus(const ListJobStatusRequest &request) const +CCCClient::ListIntervalSkillGroupReportOutcome CCCClient::listIntervalSkillGroupReport(const ListIntervalSkillGroupReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListJobStatusOutcome(endpointOutcome.error()); + return ListIntervalSkillGroupReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListJobStatusOutcome(ListJobStatusResult(outcome.result())); + return ListIntervalSkillGroupReportOutcome(ListIntervalSkillGroupReportResult(outcome.result())); else - return ListJobStatusOutcome(outcome.error()); + return ListIntervalSkillGroupReportOutcome(outcome.error()); } -void CCCClient::listJobStatusAsync(const ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listIntervalSkillGroupReportAsync(const ListIntervalSkillGroupReportRequest& request, const ListIntervalSkillGroupReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listJobStatus(request), context); + handler(this, request, listIntervalSkillGroupReport(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListJobStatusOutcomeCallable CCCClient::listJobStatusCallable(const ListJobStatusRequest &request) const +CCCClient::ListIntervalSkillGroupReportOutcomeCallable CCCClient::listIntervalSkillGroupReportCallable(const ListIntervalSkillGroupReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listJobStatus(request); + return this->listIntervalSkillGroupReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListJobsByGroupOutcome CCCClient::listJobsByGroup(const ListJobsByGroupRequest &request) const +CCCClient::ListOutboundNumbersOfUserOutcome CCCClient::listOutboundNumbersOfUser(const ListOutboundNumbersOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListJobsByGroupOutcome(endpointOutcome.error()); + return ListOutboundNumbersOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListJobsByGroupOutcome(ListJobsByGroupResult(outcome.result())); + return ListOutboundNumbersOfUserOutcome(ListOutboundNumbersOfUserResult(outcome.result())); else - return ListJobsByGroupOutcome(outcome.error()); + return ListOutboundNumbersOfUserOutcome(outcome.error()); } -void CCCClient::listJobsByGroupAsync(const ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& 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, listJobsByGroup(request), context); + handler(this, request, listOutboundNumbersOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListJobsByGroupOutcomeCallable CCCClient::listJobsByGroupCallable(const ListJobsByGroupRequest &request) const +CCCClient::ListOutboundNumbersOfUserOutcomeCallable CCCClient::listOutboundNumbersOfUserCallable(const ListOutboundNumbersOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listJobsByGroup(request); + return this->listOutboundNumbersOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListMediasOutcome CCCClient::listMedias(const ListMediasRequest &request) const +CCCClient::ListPersonalNumbersOfUserOutcome CCCClient::listPersonalNumbersOfUser(const ListPersonalNumbersOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMediasOutcome(endpointOutcome.error()); + return ListPersonalNumbersOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMediasOutcome(ListMediasResult(outcome.result())); + return ListPersonalNumbersOfUserOutcome(ListPersonalNumbersOfUserResult(outcome.result())); else - return ListMediasOutcome(outcome.error()); + return ListPersonalNumbersOfUserOutcome(outcome.error()); } -void CCCClient::listMediasAsync(const ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listPersonalNumbersOfUserAsync(const ListPersonalNumbersOfUserRequest& request, const ListPersonalNumbersOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMedias(request), context); + handler(this, request, listPersonalNumbersOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListMediasOutcomeCallable CCCClient::listMediasCallable(const ListMediasRequest &request) const +CCCClient::ListPersonalNumbersOfUserOutcomeCallable CCCClient::listPersonalNumbersOfUserCallable(const ListPersonalNumbersOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMedias(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListOutboundPhoneNumberOfUserOutcome CCCClient::listOutboundPhoneNumberOfUser(const ListOutboundPhoneNumberOfUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListOutboundPhoneNumberOfUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListOutboundPhoneNumberOfUserOutcome(ListOutboundPhoneNumberOfUserResult(outcome.result())); - else - return ListOutboundPhoneNumberOfUserOutcome(outcome.error()); -} - -void CCCClient::listOutboundPhoneNumberOfUserAsync(const ListOutboundPhoneNumberOfUserRequest& request, const ListOutboundPhoneNumberOfUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listOutboundPhoneNumberOfUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListOutboundPhoneNumberOfUserOutcomeCallable CCCClient::listOutboundPhoneNumberOfUserCallable(const ListOutboundPhoneNumberOfUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listOutboundPhoneNumberOfUser(request); + return this->listPersonalNumbersOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3507,216 +1851,180 @@ CCCClient::ListPhoneNumbersOutcomeCallable CCCClient::listPhoneNumbersCallable(c return task->get_future(); } -CCCClient::ListPhoneTagsOutcome CCCClient::listPhoneTags(const ListPhoneTagsRequest &request) const +CCCClient::ListPhoneNumbersOfSkillGroupOutcome CCCClient::listPhoneNumbersOfSkillGroup(const ListPhoneNumbersOfSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListPhoneTagsOutcome(endpointOutcome.error()); + return ListPhoneNumbersOfSkillGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListPhoneTagsOutcome(ListPhoneTagsResult(outcome.result())); + return ListPhoneNumbersOfSkillGroupOutcome(ListPhoneNumbersOfSkillGroupResult(outcome.result())); else - return ListPhoneTagsOutcome(outcome.error()); + return ListPhoneNumbersOfSkillGroupOutcome(outcome.error()); } -void CCCClient::listPhoneTagsAsync(const ListPhoneTagsRequest& request, const ListPhoneTagsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listPhoneNumbersOfSkillGroupAsync(const ListPhoneNumbersOfSkillGroupRequest& request, const ListPhoneNumbersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listPhoneTags(request), context); + handler(this, request, listPhoneNumbersOfSkillGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListPhoneTagsOutcomeCallable CCCClient::listPhoneTagsCallable(const ListPhoneTagsRequest &request) const +CCCClient::ListPhoneNumbersOfSkillGroupOutcomeCallable CCCClient::listPhoneNumbersOfSkillGroupCallable(const ListPhoneNumbersOfSkillGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listPhoneTags(request); + return this->listPhoneNumbersOfSkillGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListRealTimeAgentOutcome CCCClient::listRealTimeAgent(const ListRealTimeAgentRequest &request) const +CCCClient::ListPrivilegesOfUserOutcome CCCClient::listPrivilegesOfUser(const ListPrivilegesOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRealTimeAgentOutcome(endpointOutcome.error()); + return ListPrivilegesOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRealTimeAgentOutcome(ListRealTimeAgentResult(outcome.result())); + return ListPrivilegesOfUserOutcome(ListPrivilegesOfUserResult(outcome.result())); else - return ListRealTimeAgentOutcome(outcome.error()); + return ListPrivilegesOfUserOutcome(outcome.error()); } -void CCCClient::listRealTimeAgentAsync(const ListRealTimeAgentRequest& request, const ListRealTimeAgentAsyncHandler& 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, listRealTimeAgent(request), context); + handler(this, request, listPrivilegesOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRealTimeAgentOutcomeCallable CCCClient::listRealTimeAgentCallable(const ListRealTimeAgentRequest &request) const +CCCClient::ListPrivilegesOfUserOutcomeCallable CCCClient::listPrivilegesOfUserCallable(const ListPrivilegesOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRealTimeAgent(request); + return this->listPrivilegesOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListRecentCallRecordsOutcome CCCClient::listRecentCallRecords(const ListRecentCallRecordsRequest &request) const +CCCClient::ListRealtimeAgentStatesOutcome CCCClient::listRealtimeAgentStates(const ListRealtimeAgentStatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRecentCallRecordsOutcome(endpointOutcome.error()); + return ListRealtimeAgentStatesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRecentCallRecordsOutcome(ListRecentCallRecordsResult(outcome.result())); + return ListRealtimeAgentStatesOutcome(ListRealtimeAgentStatesResult(outcome.result())); else - return ListRecentCallRecordsOutcome(outcome.error()); + return ListRealtimeAgentStatesOutcome(outcome.error()); } -void CCCClient::listRecentCallRecordsAsync(const ListRecentCallRecordsRequest& request, const ListRecentCallRecordsAsyncHandler& 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, listRecentCallRecords(request), context); + handler(this, request, listRealtimeAgentStates(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRecentCallRecordsOutcomeCallable CCCClient::listRecentCallRecordsCallable(const ListRecentCallRecordsRequest &request) const +CCCClient::ListRealtimeAgentStatesOutcomeCallable CCCClient::listRealtimeAgentStatesCallable(const ListRealtimeAgentStatesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRecentCallRecords(request); + return this->listRealtimeAgentStates(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListRecordingOfDualTrackOutcome CCCClient::listRecordingOfDualTrack(const ListRecordingOfDualTrackRequest &request) const +CCCClient::ListRealtimeSkillGroupStatesOutcome CCCClient::listRealtimeSkillGroupStates(const ListRealtimeSkillGroupStatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRecordingOfDualTrackOutcome(endpointOutcome.error()); + return ListRealtimeSkillGroupStatesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRecordingOfDualTrackOutcome(ListRecordingOfDualTrackResult(outcome.result())); + return ListRealtimeSkillGroupStatesOutcome(ListRealtimeSkillGroupStatesResult(outcome.result())); else - return ListRecordingOfDualTrackOutcome(outcome.error()); + return ListRealtimeSkillGroupStatesOutcome(outcome.error()); } -void CCCClient::listRecordingOfDualTrackAsync(const ListRecordingOfDualTrackRequest& request, const ListRecordingOfDualTrackAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listRealtimeSkillGroupStatesAsync(const ListRealtimeSkillGroupStatesRequest& request, const ListRealtimeSkillGroupStatesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRecordingOfDualTrack(request), context); + handler(this, request, listRealtimeSkillGroupStates(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRecordingOfDualTrackOutcomeCallable CCCClient::listRecordingOfDualTrackCallable(const ListRecordingOfDualTrackRequest &request) const +CCCClient::ListRealtimeSkillGroupStatesOutcomeCallable CCCClient::listRealtimeSkillGroupStatesCallable(const ListRealtimeSkillGroupStatesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRecordingOfDualTrack(request); + return this->listRealtimeSkillGroupStates(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const +CCCClient::ListRecentCallDetailRecordsOutcome CCCClient::listRecentCallDetailRecords(const ListRecentCallDetailRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRecordingsOutcome(endpointOutcome.error()); + return ListRecentCallDetailRecordsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRecordingsOutcome(ListRecordingsResult(outcome.result())); + return ListRecentCallDetailRecordsOutcome(ListRecentCallDetailRecordsResult(outcome.result())); else - return ListRecordingsOutcome(outcome.error()); + return ListRecentCallDetailRecordsOutcome(outcome.error()); } -void CCCClient::listRecordingsAsync(const ListRecordingsRequest& request, const ListRecordingsAsyncHandler& 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, listRecordings(request), context); + handler(this, request, listRecentCallDetailRecords(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const ListRecordingsRequest &request) const +CCCClient::ListRecentCallDetailRecordsOutcomeCallable CCCClient::listRecentCallDetailRecordsCallable(const ListRecentCallDetailRecordsRequest &request) const { - auto task = std::make_shared>( + 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); + return this->listRecentCallDetailRecords(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3759,222 +2067,6 @@ CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRoles 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(); @@ -4011,216 +2103,72 @@ CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(con return task->get_future(); } -CCCClient::ListSkillGroupsOfUserOutcome CCCClient::listSkillGroupsOfUser(const ListSkillGroupsOfUserRequest &request) const +CCCClient::ListSkillLevelsOfUserOutcome CCCClient::listSkillLevelsOfUser(const ListSkillLevelsOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListSkillGroupsOfUserOutcome(endpointOutcome.error()); + return ListSkillLevelsOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListSkillGroupsOfUserOutcome(ListSkillGroupsOfUserResult(outcome.result())); + return ListSkillLevelsOfUserOutcome(ListSkillLevelsOfUserResult(outcome.result())); else - return ListSkillGroupsOfUserOutcome(outcome.error()); + return ListSkillLevelsOfUserOutcome(outcome.error()); } -void CCCClient::listSkillGroupsOfUserAsync(const ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& 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, listSkillGroupsOfUser(request), context); + handler(this, request, listSkillLevelsOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListSkillGroupsOfUserOutcomeCallable CCCClient::listSkillGroupsOfUserCallable(const ListSkillGroupsOfUserRequest &request) const +CCCClient::ListSkillLevelsOfUserOutcomeCallable CCCClient::listSkillLevelsOfUserCallable(const ListSkillLevelsOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listSkillGroupsOfUser(request); + return this->listSkillLevelsOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListSurveysOutcome CCCClient::listSurveys(const ListSurveysRequest &request) const +CCCClient::ListUserLevelsOfSkillGroupOutcome CCCClient::listUserLevelsOfSkillGroup(const ListUserLevelsOfSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListSurveysOutcome(endpointOutcome.error()); + return ListUserLevelsOfSkillGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListSurveysOutcome(ListSurveysResult(outcome.result())); + return ListUserLevelsOfSkillGroupOutcome(ListUserLevelsOfSkillGroupResult(outcome.result())); else - return ListSurveysOutcome(outcome.error()); + return ListUserLevelsOfSkillGroupOutcome(outcome.error()); } -void CCCClient::listSurveysAsync(const ListSurveysRequest& request, const ListSurveysAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listUserLevelsOfSkillGroupAsync(const ListUserLevelsOfSkillGroupRequest& request, const ListUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listSurveys(request), context); + handler(this, request, listUserLevelsOfSkillGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListSurveysOutcomeCallable CCCClient::listSurveysCallable(const ListSurveysRequest &request) const +CCCClient::ListUserLevelsOfSkillGroupOutcomeCallable CCCClient::listUserLevelsOfSkillGroupCallable(const ListUserLevelsOfSkillGroupRequest &request) const { - auto task = std::make_shared>( + 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); + return this->listUserLevelsOfSkillGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4263,144 +2211,36 @@ CCCClient::ListUsersOutcomeCallable CCCClient::listUsersCallable(const ListUsers return task->get_future(); } -CCCClient::ListUsersOfSkillGroupOutcome CCCClient::listUsersOfSkillGroup(const ListUsersOfSkillGroupRequest &request) const +CCCClient::MakeCallOutcome CCCClient::makeCall(const MakeCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListUsersOfSkillGroupOutcome(endpointOutcome.error()); + return MakeCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListUsersOfSkillGroupOutcome(ListUsersOfSkillGroupResult(outcome.result())); + return MakeCallOutcome(MakeCallResult(outcome.result())); else - return ListUsersOfSkillGroupOutcome(outcome.error()); + return MakeCallOutcome(outcome.error()); } -void CCCClient::listUsersOfSkillGroupAsync(const ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& 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, listUsersOfSkillGroup(request), context); + handler(this, request, makeCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListUsersOfSkillGroupOutcomeCallable CCCClient::listUsersOfSkillGroupCallable(const ListUsersOfSkillGroupRequest &request) const +CCCClient::MakeCallOutcomeCallable CCCClient::makeCallCallable(const MakeCallRequest &request) const { - auto task = std::make_shared>( + 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); + return this->makeCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4443,150 +2283,6 @@ CCCClient::ModifyPhoneNumberOutcomeCallable CCCClient::modifyPhoneNumberCallable 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(); @@ -4623,108 +2319,36 @@ CCCClient::ModifySkillGroupOutcomeCallable CCCClient::modifySkillGroupCallable(c return task->get_future(); } -CCCClient::ModifySkillGroupOfUserOutcome CCCClient::modifySkillGroupOfUser(const ModifySkillGroupOfUserRequest &request) const +CCCClient::ModifySkillLevelsOfUserOutcome CCCClient::modifySkillLevelsOfUser(const ModifySkillLevelsOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifySkillGroupOfUserOutcome(endpointOutcome.error()); + return ModifySkillLevelsOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifySkillGroupOfUserOutcome(ModifySkillGroupOfUserResult(outcome.result())); + return ModifySkillLevelsOfUserOutcome(ModifySkillLevelsOfUserResult(outcome.result())); else - return ModifySkillGroupOfUserOutcome(outcome.error()); + return ModifySkillLevelsOfUserOutcome(outcome.error()); } -void CCCClient::modifySkillGroupOfUserAsync(const ModifySkillGroupOfUserRequest& request, const ModifySkillGroupOfUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::modifySkillLevelsOfUserAsync(const ModifySkillLevelsOfUserRequest& request, const ModifySkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifySkillGroupOfUser(request), context); + handler(this, request, modifySkillLevelsOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ModifySkillGroupOfUserOutcomeCallable CCCClient::modifySkillGroupOfUserCallable(const ModifySkillGroupOfUserRequest &request) const +CCCClient::ModifySkillLevelsOfUserOutcomeCallable CCCClient::modifySkillLevelsOfUserCallable(const ModifySkillLevelsOfUserRequest &request) const { - auto task = std::make_shared>( + 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); + return this->modifySkillLevelsOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4767,72 +2391,108 @@ CCCClient::ModifyUserOutcomeCallable CCCClient::modifyUserCallable(const ModifyU return task->get_future(); } -CCCClient::PickGlobalOutboundNumbersOutcome CCCClient::pickGlobalOutboundNumbers(const PickGlobalOutboundNumbersRequest &request) const +CCCClient::ModifyUserLevelsOfSkillGroupOutcome CCCClient::modifyUserLevelsOfSkillGroup(const ModifyUserLevelsOfSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PickGlobalOutboundNumbersOutcome(endpointOutcome.error()); + return ModifyUserLevelsOfSkillGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PickGlobalOutboundNumbersOutcome(PickGlobalOutboundNumbersResult(outcome.result())); + return ModifyUserLevelsOfSkillGroupOutcome(ModifyUserLevelsOfSkillGroupResult(outcome.result())); else - return PickGlobalOutboundNumbersOutcome(outcome.error()); + return ModifyUserLevelsOfSkillGroupOutcome(outcome.error()); } -void CCCClient::pickGlobalOutboundNumbersAsync(const PickGlobalOutboundNumbersRequest& request, const PickGlobalOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::modifyUserLevelsOfSkillGroupAsync(const ModifyUserLevelsOfSkillGroupRequest& request, const ModifyUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, pickGlobalOutboundNumbers(request), context); + handler(this, request, modifyUserLevelsOfSkillGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::PickGlobalOutboundNumbersOutcomeCallable CCCClient::pickGlobalOutboundNumbersCallable(const PickGlobalOutboundNumbersRequest &request) const +CCCClient::ModifyUserLevelsOfSkillGroupOutcomeCallable CCCClient::modifyUserLevelsOfSkillGroupCallable(const ModifyUserLevelsOfSkillGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->pickGlobalOutboundNumbers(request); + return this->modifyUserLevelsOfSkillGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::PickLocalNumberOutcome CCCClient::pickLocalNumber(const PickLocalNumberRequest &request) const +CCCClient::MonitorCallOutcome CCCClient::monitorCall(const MonitorCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PickLocalNumberOutcome(endpointOutcome.error()); + return MonitorCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PickLocalNumberOutcome(PickLocalNumberResult(outcome.result())); + return MonitorCallOutcome(MonitorCallResult(outcome.result())); else - return PickLocalNumberOutcome(outcome.error()); + return MonitorCallOutcome(outcome.error()); } -void CCCClient::pickLocalNumberAsync(const PickLocalNumberRequest& request, const PickLocalNumberAsyncHandler& 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, pickLocalNumber(request), context); + handler(this, request, monitorCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::PickLocalNumberOutcomeCallable CCCClient::pickLocalNumberCallable(const PickLocalNumberRequest &request) const +CCCClient::MonitorCallOutcomeCallable CCCClient::monitorCallCallable(const MonitorCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->pickLocalNumber(request); + return this->monitorCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::MuteCallOutcome CCCClient::muteCall(const MuteCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MuteCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MuteCallOutcome(MuteCallResult(outcome.result())); + else + return MuteCallOutcome(outcome.error()); +} + +void CCCClient::muteCallAsync(const MuteCallRequest& request, const MuteCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, muteCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::MuteCallOutcomeCallable CCCClient::muteCallCallable(const MuteCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->muteCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4875,180 +2535,324 @@ 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::RemovePersonalNumbersFromUserOutcome CCCClient::removePersonalNumbersFromUser(const RemovePersonalNumbersFromUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RemovePhoneNumberOutcome(endpointOutcome.error()); + return RemovePersonalNumbersFromUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RemovePhoneNumberOutcome(RemovePhoneNumberResult(outcome.result())); + return RemovePersonalNumbersFromUserOutcome(RemovePersonalNumbersFromUserResult(outcome.result())); else - return RemovePhoneNumberOutcome(outcome.error()); + return RemovePersonalNumbersFromUserOutcome(outcome.error()); } -void CCCClient::removePhoneNumberAsync(const RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::removePersonalNumbersFromUserAsync(const RemovePersonalNumbersFromUserRequest& request, const RemovePersonalNumbersFromUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, removePhoneNumber(request), context); + handler(this, request, removePersonalNumbersFromUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable(const RemovePhoneNumberRequest &request) const +CCCClient::RemovePersonalNumbersFromUserOutcomeCallable CCCClient::removePersonalNumbersFromUserCallable(const RemovePersonalNumbersFromUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->removePhoneNumber(request); + return this->removePersonalNumbersFromUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::RemovePhoneNumberFromSkillGroupsOutcome CCCClient::removePhoneNumberFromSkillGroups(const RemovePhoneNumberFromSkillGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemovePhoneNumberFromSkillGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemovePhoneNumberFromSkillGroupsOutcome(RemovePhoneNumberFromSkillGroupsResult(outcome.result())); + else + return RemovePhoneNumberFromSkillGroupsOutcome(outcome.error()); +} + +void CCCClient::removePhoneNumberFromSkillGroupsAsync(const RemovePhoneNumberFromSkillGroupsRequest& request, const RemovePhoneNumberFromSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removePhoneNumberFromSkillGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RemovePhoneNumberFromSkillGroupsOutcomeCallable CCCClient::removePhoneNumberFromSkillGroupsCallable(const RemovePhoneNumberFromSkillGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removePhoneNumberFromSkillGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::RemovePhoneNumbersOutcome CCCClient::removePhoneNumbers(const RemovePhoneNumbersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemovePhoneNumbersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemovePhoneNumbersOutcome(RemovePhoneNumbersResult(outcome.result())); + else + return RemovePhoneNumbersOutcome(outcome.error()); +} + +void CCCClient::removePhoneNumbersAsync(const RemovePhoneNumbersRequest& request, const RemovePhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removePhoneNumbers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RemovePhoneNumbersOutcomeCallable CCCClient::removePhoneNumbersCallable(const RemovePhoneNumbersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removePhoneNumbers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::RemovePhoneNumbersFromSkillGroupOutcome CCCClient::removePhoneNumbersFromSkillGroup(const RemovePhoneNumbersFromSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemovePhoneNumbersFromSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemovePhoneNumbersFromSkillGroupOutcome(RemovePhoneNumbersFromSkillGroupResult(outcome.result())); + else + return RemovePhoneNumbersFromSkillGroupOutcome(outcome.error()); +} + +void CCCClient::removePhoneNumbersFromSkillGroupAsync(const RemovePhoneNumbersFromSkillGroupRequest& request, const RemovePhoneNumbersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removePhoneNumbersFromSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RemovePhoneNumbersFromSkillGroupOutcomeCallable CCCClient::removePhoneNumbersFromSkillGroupCallable(const RemovePhoneNumbersFromSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removePhoneNumbersFromSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::RemoveSkillGroupsFromUserOutcome CCCClient::removeSkillGroupsFromUser(const RemoveSkillGroupsFromUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveSkillGroupsFromUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveSkillGroupsFromUserOutcome(RemoveSkillGroupsFromUserResult(outcome.result())); + else + return RemoveSkillGroupsFromUserOutcome(outcome.error()); +} + +void CCCClient::removeSkillGroupsFromUserAsync(const RemoveSkillGroupsFromUserRequest& request, const RemoveSkillGroupsFromUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeSkillGroupsFromUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RemoveSkillGroupsFromUserOutcomeCallable CCCClient::removeSkillGroupsFromUserCallable(const RemoveSkillGroupsFromUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeSkillGroupsFromUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5127,252 +2931,180 @@ CCCClient::RemoveUsersFromSkillGroupOutcomeCallable CCCClient::removeUsersFromSk return task->get_future(); } -CCCClient::RequestLoginInfoOutcome CCCClient::requestLoginInfo(const RequestLoginInfoRequest &request) const +CCCClient::ResetAgentStateOutcome CCCClient::resetAgentState(const ResetAgentStateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RequestLoginInfoOutcome(endpointOutcome.error()); + return ResetAgentStateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RequestLoginInfoOutcome(RequestLoginInfoResult(outcome.result())); + return ResetAgentStateOutcome(ResetAgentStateResult(outcome.result())); else - return RequestLoginInfoOutcome(outcome.error()); + return ResetAgentStateOutcome(outcome.error()); } -void CCCClient::requestLoginInfoAsync(const RequestLoginInfoRequest& request, const RequestLoginInfoAsyncHandler& 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, requestLoginInfo(request), context); + handler(this, request, resetAgentState(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RequestLoginInfoOutcomeCallable CCCClient::requestLoginInfoCallable(const RequestLoginInfoRequest &request) const +CCCClient::ResetAgentStateOutcomeCallable CCCClient::resetAgentStateCallable(const ResetAgentStateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->requestLoginInfo(request); + return this->resetAgentState(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ResetUserStatusOutcome CCCClient::resetUserStatus(const ResetUserStatusRequest &request) const +CCCClient::RetrieveCallOutcome CCCClient::retrieveCall(const RetrieveCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ResetUserStatusOutcome(endpointOutcome.error()); + return RetrieveCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ResetUserStatusOutcome(ResetUserStatusResult(outcome.result())); + return RetrieveCallOutcome(RetrieveCallResult(outcome.result())); else - return ResetUserStatusOutcome(outcome.error()); + return RetrieveCallOutcome(outcome.error()); } -void CCCClient::resetUserStatusAsync(const ResetUserStatusRequest& request, const ResetUserStatusAsyncHandler& 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, resetUserStatus(request), context); + handler(this, request, retrieveCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ResetUserStatusOutcomeCallable CCCClient::resetUserStatusCallable(const ResetUserStatusRequest &request) const +CCCClient::RetrieveCallOutcomeCallable CCCClient::retrieveCallCallable(const RetrieveCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->resetUserStatus(request); + return this->retrieveCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ResumeJobsOutcome CCCClient::resumeJobs(const ResumeJobsRequest &request) const +CCCClient::SendDtmfSignalingOutcome CCCClient::sendDtmfSignaling(const SendDtmfSignalingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ResumeJobsOutcome(endpointOutcome.error()); + return SendDtmfSignalingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ResumeJobsOutcome(ResumeJobsResult(outcome.result())); + return SendDtmfSignalingOutcome(SendDtmfSignalingResult(outcome.result())); else - return ResumeJobsOutcome(outcome.error()); + return SendDtmfSignalingOutcome(outcome.error()); } -void CCCClient::resumeJobsAsync(const ResumeJobsRequest& request, const ResumeJobsAsyncHandler& 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, resumeJobs(request), context); + handler(this, request, sendDtmfSignaling(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ResumeJobsOutcomeCallable CCCClient::resumeJobsCallable(const ResumeJobsRequest &request) const +CCCClient::SendDtmfSignalingOutcomeCallable CCCClient::sendDtmfSignalingCallable(const SendDtmfSignalingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->resumeJobs(request); + return this->sendDtmfSignaling(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ResumePredictiveJobsOutcome CCCClient::resumePredictiveJobs(const ResumePredictiveJobsRequest &request) const +CCCClient::SignInGroupOutcome CCCClient::signInGroup(const SignInGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ResumePredictiveJobsOutcome(endpointOutcome.error()); + return SignInGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ResumePredictiveJobsOutcome(ResumePredictiveJobsResult(outcome.result())); + return SignInGroupOutcome(SignInGroupResult(outcome.result())); else - return ResumePredictiveJobsOutcome(outcome.error()); + return SignInGroupOutcome(outcome.error()); } -void CCCClient::resumePredictiveJobsAsync(const ResumePredictiveJobsRequest& request, const ResumePredictiveJobsAsyncHandler& 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, resumePredictiveJobs(request), context); + handler(this, request, signInGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ResumePredictiveJobsOutcomeCallable CCCClient::resumePredictiveJobsCallable(const ResumePredictiveJobsRequest &request) const +CCCClient::SignInGroupOutcomeCallable CCCClient::signInGroupCallable(const SignInGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->resumePredictiveJobs(request); + return this->signInGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::SaveTerminalLogOutcome CCCClient::saveTerminalLog(const SaveTerminalLogRequest &request) const +CCCClient::SignOutGroupOutcome CCCClient::signOutGroup(const SignOutGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SaveTerminalLogOutcome(endpointOutcome.error()); + return SignOutGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SaveTerminalLogOutcome(SaveTerminalLogResult(outcome.result())); + return SignOutGroupOutcome(SignOutGroupResult(outcome.result())); else - return SaveTerminalLogOutcome(outcome.error()); + return SignOutGroupOutcome(outcome.error()); } -void CCCClient::saveTerminalLogAsync(const SaveTerminalLogRequest& request, const SaveTerminalLogAsyncHandler& 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, saveTerminalLog(request), context); + handler(this, request, signOutGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::SaveTerminalLogOutcomeCallable CCCClient::saveTerminalLogCallable(const SaveTerminalLogRequest &request) const +CCCClient::SignOutGroupOutcomeCallable CCCClient::signOutGroupCallable(const SignOutGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->saveTerminalLog(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); + return this->signOutGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5415,216 +3147,72 @@ CCCClient::StartBack2BackCallOutcomeCallable CCCClient::startBack2BackCallCallab return task->get_future(); } -CCCClient::StartJobOutcome CCCClient::startJob(const StartJobRequest &request) const +CCCClient::TakeBreakOutcome CCCClient::takeBreak(const TakeBreakRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartJobOutcome(endpointOutcome.error()); + return TakeBreakOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartJobOutcome(StartJobResult(outcome.result())); + return TakeBreakOutcome(TakeBreakResult(outcome.result())); else - return StartJobOutcome(outcome.error()); + return TakeBreakOutcome(outcome.error()); } -void CCCClient::startJobAsync(const StartJobRequest& request, const StartJobAsyncHandler& 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, startJob(request), context); + handler(this, request, takeBreak(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::StartJobOutcomeCallable CCCClient::startJobCallable(const StartJobRequest &request) const +CCCClient::TakeBreakOutcomeCallable CCCClient::takeBreakCallable(const TakeBreakRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->startJob(request); + return this->takeBreak(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::SubmitBatchJobsOutcome CCCClient::submitBatchJobs(const SubmitBatchJobsRequest &request) const +CCCClient::UnmuteCallOutcome CCCClient::unmuteCall(const UnmuteCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SubmitBatchJobsOutcome(endpointOutcome.error()); + return UnmuteCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SubmitBatchJobsOutcome(SubmitBatchJobsResult(outcome.result())); + return UnmuteCallOutcome(UnmuteCallResult(outcome.result())); else - return SubmitBatchJobsOutcome(outcome.error()); + return UnmuteCallOutcome(outcome.error()); } -void CCCClient::submitBatchJobsAsync(const SubmitBatchJobsRequest& request, const SubmitBatchJobsAsyncHandler& 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, submitBatchJobs(request), context); + handler(this, request, unmuteCall(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::SubmitBatchJobsOutcomeCallable CCCClient::submitBatchJobsCallable(const SubmitBatchJobsRequest &request) const +CCCClient::UnmuteCallOutcomeCallable CCCClient::unmuteCallCallable(const UnmuteCallRequest &request) const { - auto task = std::make_shared>( + 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/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/ListTrunksOfSkillGroupRequest.cc b/ccc/src/model/AddNumbersToSkillGroupRequest.cc similarity index 52% rename from ccc/src/model/ListTrunksOfSkillGroupRequest.cc rename to ccc/src/model/AddNumbersToSkillGroupRequest.cc index fb34b9eaa..590e2d772 100644 --- a/ccc/src/model/ListTrunksOfSkillGroupRequest.cc +++ b/ccc/src/model/AddNumbersToSkillGroupRequest.cc @@ -14,49 +14,49 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListTrunksOfSkillGroupRequest; +using AlibabaCloud::CCC::Model::AddNumbersToSkillGroupRequest; -ListTrunksOfSkillGroupRequest::ListTrunksOfSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListTrunksOfSkillGroup") +AddNumbersToSkillGroupRequest::AddNumbersToSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddNumbersToSkillGroup") { setMethod(HttpRequest::Method::Post); } -ListTrunksOfSkillGroupRequest::~ListTrunksOfSkillGroupRequest() +AddNumbersToSkillGroupRequest::~AddNumbersToSkillGroupRequest() {} -std::string ListTrunksOfSkillGroupRequest::getInstanceId()const +std::string AddNumbersToSkillGroupRequest::getNumberList()const +{ + return numberList_; +} + +void AddNumbersToSkillGroupRequest::setNumberList(const std::string& numberList) +{ + numberList_ = numberList; + setParameter("NumberList", numberList); +} + +std::string AddNumbersToSkillGroupRequest::getInstanceId()const { return instanceId_; } -void ListTrunksOfSkillGroupRequest::setInstanceId(const std::string& instanceId) +void AddNumbersToSkillGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -std::string ListTrunksOfSkillGroupRequest::getSkillGroupId()const +std::string AddNumbersToSkillGroupRequest::getSkillGroupId()const { return skillGroupId_; } -void ListTrunksOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +void AddNumbersToSkillGroupRequest::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/CancelJobsResult.cc b/ccc/src/model/AddNumbersToSkillGroupResult.cc similarity index 69% rename from ccc/src/model/CancelJobsResult.cc rename to ccc/src/model/AddNumbersToSkillGroupResult.cc index 3e006ac90..6f977221b 100644 --- a/ccc/src/model/CancelJobsResult.cc +++ b/ccc/src/model/AddNumbersToSkillGroupResult.cc @@ -14,59 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -CancelJobsResult::CancelJobsResult() : +AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult() : ServiceResult() {} -CancelJobsResult::CancelJobsResult(const std::string &payload) : +AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -CancelJobsResult::~CancelJobsResult() +AddNumbersToSkillGroupResult::~AddNumbersToSkillGroupResult() {} -void CancelJobsResult::parse(const std::string &payload) +void AddNumbersToSkillGroupResult::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["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string CancelJobsResult::getMessage()const +std::string AddNumbersToSkillGroupResult::getMessage()const { return message_; } -int CancelJobsResult::getHttpStatusCode()const +int AddNumbersToSkillGroupResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string CancelJobsResult::getCode()const +std::string AddNumbersToSkillGroupResult::getCode()const { return code_; } -bool CancelJobsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/AddPersonalNumbersToUserRequest.cc b/ccc/src/model/AddPersonalNumbersToUserRequest.cc new file mode 100644 index 000000000..7e45b937e --- /dev/null +++ b/ccc/src/model/AddPersonalNumbersToUserRequest.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::AddPersonalNumbersToUserRequest; + +AddPersonalNumbersToUserRequest::AddPersonalNumbersToUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddPersonalNumbersToUser") +{ + setMethod(HttpRequest::Method::Post); +} + +AddPersonalNumbersToUserRequest::~AddPersonalNumbersToUserRequest() +{} + +std::string AddPersonalNumbersToUserRequest::getUserId()const +{ + return userId_; +} + +void AddPersonalNumbersToUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string AddPersonalNumbersToUserRequest::getNumberList()const +{ + return numberList_; +} + +void AddPersonalNumbersToUserRequest::setNumberList(const std::string& numberList) +{ + numberList_ = numberList; + setParameter("NumberList", numberList); +} + +std::string AddPersonalNumbersToUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddPersonalNumbersToUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/SuspendJobsResult.cc b/ccc/src/model/AddPersonalNumbersToUserResult.cc similarity index 62% rename from ccc/src/model/SuspendJobsResult.cc rename to ccc/src/model/AddPersonalNumbersToUserResult.cc index 6d99feeea..4f84a7ef3 100644 --- a/ccc/src/model/SuspendJobsResult.cc +++ b/ccc/src/model/AddPersonalNumbersToUserResult.cc @@ -14,59 +14,60 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -SuspendJobsResult::SuspendJobsResult() : +AddPersonalNumbersToUserResult::AddPersonalNumbersToUserResult() : ServiceResult() {} -SuspendJobsResult::SuspendJobsResult(const std::string &payload) : +AddPersonalNumbersToUserResult::AddPersonalNumbersToUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -SuspendJobsResult::~SuspendJobsResult() +AddPersonalNumbersToUserResult::~AddPersonalNumbersToUserResult() {} -void SuspendJobsResult::parse(const std::string &payload) +void AddPersonalNumbersToUserResult::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 allData = value["Data"]["FailList"]; + for (const auto &item : allData) + data_.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 SuspendJobsResult::getMessage()const +std::string AddPersonalNumbersToUserResult::getMessage()const { return message_; } -int SuspendJobsResult::getHttpStatusCode()const +int AddPersonalNumbersToUserResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string SuspendJobsResult::getCode()const +std::vector AddPersonalNumbersToUserResult::getData()const +{ + return data_; +} + +std::string AddPersonalNumbersToUserResult::getCode()const { return code_; } -bool SuspendJobsResult::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/AddPhoneNumberToSkillGroupsRequest.cc b/ccc/src/model/AddPhoneNumberToSkillGroupsRequest.cc new file mode 100644 index 000000000..7b8f4fe58 --- /dev/null +++ b/ccc/src/model/AddPhoneNumberToSkillGroupsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::AddPhoneNumberToSkillGroupsRequest; + +AddPhoneNumberToSkillGroupsRequest::AddPhoneNumberToSkillGroupsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddPhoneNumberToSkillGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +AddPhoneNumberToSkillGroupsRequest::~AddPhoneNumberToSkillGroupsRequest() +{} + +std::string AddPhoneNumberToSkillGroupsRequest::getNumber()const +{ + return number_; +} + +void AddPhoneNumberToSkillGroupsRequest::setNumber(const std::string& number) +{ + number_ = number; + setParameter("Number", number); +} + +std::string AddPhoneNumberToSkillGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddPhoneNumberToSkillGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AddPhoneNumberToSkillGroupsRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void AddPhoneNumberToSkillGroupsRequest::setSkillGroupIdList(const std::string& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + setParameter("SkillGroupIdList", skillGroupIdList); +} + diff --git a/ccc/src/model/CreateFaultResult.cc b/ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc similarity index 68% rename from ccc/src/model/CreateFaultResult.cc rename to ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc index 940d90ed7..9083a789a 100644 --- a/ccc/src/model/CreateFaultResult.cc +++ b/ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc @@ -14,59 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -CreateFaultResult::CreateFaultResult() : +AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult() : ServiceResult() {} -CreateFaultResult::CreateFaultResult(const std::string &payload) : +AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateFaultResult::~CreateFaultResult() +AddPhoneNumberToSkillGroupsResult::~AddPhoneNumberToSkillGroupsResult() {} -void CreateFaultResult::parse(const std::string &payload) +void AddPhoneNumberToSkillGroupsResult::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["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string CreateFaultResult::getMessage()const +std::string AddPhoneNumberToSkillGroupsResult::getMessage()const { return message_; } -int CreateFaultResult::getHttpStatusCode()const +int AddPhoneNumberToSkillGroupsResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string CreateFaultResult::getCode()const +std::string AddPhoneNumberToSkillGroupsResult::getCode()const { return code_; } -bool CreateFaultResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/AddPhoneNumbersRequest.cc b/ccc/src/model/AddPhoneNumbersRequest.cc new file mode 100644 index 000000000..998db81a6 --- /dev/null +++ b/ccc/src/model/AddPhoneNumbersRequest.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::AddPhoneNumbersRequest; + +AddPhoneNumbersRequest::AddPhoneNumbersRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddPhoneNumbers") +{ + setMethod(HttpRequest::Method::Post); +} + +AddPhoneNumbersRequest::~AddPhoneNumbersRequest() +{} + +std::string AddPhoneNumbersRequest::getContactFlowId()const +{ + return contactFlowId_; +} + +void AddPhoneNumbersRequest::setContactFlowId(const std::string& contactFlowId) +{ + contactFlowId_ = contactFlowId; + setParameter("ContactFlowId", contactFlowId); +} + +std::string AddPhoneNumbersRequest::getUsage()const +{ + return usage_; +} + +void AddPhoneNumbersRequest::setUsage(const std::string& usage) +{ + usage_ = usage; + setParameter("Usage", usage); +} + +std::string AddPhoneNumbersRequest::getNumberGroupId()const +{ + return numberGroupId_; +} + +void AddPhoneNumbersRequest::setNumberGroupId(const std::string& numberGroupId) +{ + numberGroupId_ = numberGroupId; + setParameter("NumberGroupId", numberGroupId); +} + +std::string AddPhoneNumbersRequest::getNumberList()const +{ + return numberList_; +} + +void AddPhoneNumbersRequest::setNumberList(const std::string& numberList) +{ + numberList_ = numberList; + setParameter("NumberList", numberList); +} + +std::string AddPhoneNumbersRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddPhoneNumbersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/DeletePhoneTagsResult.cc b/ccc/src/model/AddPhoneNumbersResult.cc similarity index 66% rename from ccc/src/model/DeletePhoneTagsResult.cc rename to ccc/src/model/AddPhoneNumbersResult.cc index d25beefa4..74fdec3d4 100644 --- a/ccc/src/model/DeletePhoneTagsResult.cc +++ b/ccc/src/model/AddPhoneNumbersResult.cc @@ -14,59 +14,60 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -DeletePhoneTagsResult::DeletePhoneTagsResult() : +AddPhoneNumbersResult::AddPhoneNumbersResult() : ServiceResult() {} -DeletePhoneTagsResult::DeletePhoneTagsResult(const std::string &payload) : +AddPhoneNumbersResult::AddPhoneNumbersResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeletePhoneTagsResult::~DeletePhoneTagsResult() +AddPhoneNumbersResult::~AddPhoneNumbersResult() {} -void DeletePhoneTagsResult::parse(const std::string &payload) +void AddPhoneNumbersResult::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 allData = value["Data"]["Data"]; + for (const auto &item : allData) + data_.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 DeletePhoneTagsResult::getMessage()const +std::string AddPhoneNumbersResult::getMessage()const { return message_; } -int DeletePhoneTagsResult::getHttpStatusCode()const +int AddPhoneNumbersResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string DeletePhoneTagsResult::getCode()const +std::vector AddPhoneNumbersResult::getData()const +{ + return data_; +} + +std::string AddPhoneNumbersResult::getCode()const { return code_; } -bool DeletePhoneTagsResult::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/AddSkillGroupsToUserRequest.cc b/ccc/src/model/AddSkillGroupsToUserRequest.cc new file mode 100644 index 000000000..bc6a5e5d2 --- /dev/null +++ b/ccc/src/model/AddSkillGroupsToUserRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::AddSkillGroupsToUserRequest; + +AddSkillGroupsToUserRequest::AddSkillGroupsToUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddSkillGroupsToUser") +{ + setMethod(HttpRequest::Method::Post); +} + +AddSkillGroupsToUserRequest::~AddSkillGroupsToUserRequest() +{} + +std::string AddSkillGroupsToUserRequest::getUserId()const +{ + return userId_; +} + +void AddSkillGroupsToUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string AddSkillGroupsToUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddSkillGroupsToUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AddSkillGroupsToUserRequest::getSkillLevelList()const +{ + return skillLevelList_; +} + +void AddSkillGroupsToUserRequest::setSkillLevelList(const std::string& skillLevelList) +{ + skillLevelList_ = skillLevelList; + setParameter("SkillLevelList", skillLevelList); +} + diff --git a/ccc/src/model/ResumePredictiveJobsResult.cc b/ccc/src/model/AddSkillGroupsToUserResult.cc similarity index 64% rename from ccc/src/model/ResumePredictiveJobsResult.cc rename to ccc/src/model/AddSkillGroupsToUserResult.cc index 6c20f2962..453fa45c5 100644 --- a/ccc/src/model/ResumePredictiveJobsResult.cc +++ b/ccc/src/model/AddSkillGroupsToUserResult.cc @@ -14,59 +14,60 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ResumePredictiveJobsResult::ResumePredictiveJobsResult() : +AddSkillGroupsToUserResult::AddSkillGroupsToUserResult() : ServiceResult() {} -ResumePredictiveJobsResult::ResumePredictiveJobsResult(const std::string &payload) : +AddSkillGroupsToUserResult::AddSkillGroupsToUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -ResumePredictiveJobsResult::~ResumePredictiveJobsResult() +AddSkillGroupsToUserResult::~AddSkillGroupsToUserResult() {} -void ResumePredictiveJobsResult::parse(const std::string &payload) +void AddSkillGroupsToUserResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } -std::string ResumePredictiveJobsResult::getMessage()const +std::string AddSkillGroupsToUserResult::getMessage()const { return message_; } -int ResumePredictiveJobsResult::getHttpStatusCode()const +int AddSkillGroupsToUserResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string ResumePredictiveJobsResult::getCode()const +std::vector AddSkillGroupsToUserResult::getParams()const +{ + return params_; +} + +std::string AddSkillGroupsToUserResult::getCode()const { return code_; } -bool ResumePredictiveJobsResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/AddUsersToSkillGroupRequest.cc b/ccc/src/model/AddUsersToSkillGroupRequest.cc new file mode 100644 index 000000000..9e41d4c05 --- /dev/null +++ b/ccc/src/model/AddUsersToSkillGroupRequest.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::AddUsersToSkillGroupRequest; + +AddUsersToSkillGroupRequest::AddUsersToSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "AddUsersToSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +AddUsersToSkillGroupRequest::~AddUsersToSkillGroupRequest() +{} + +std::string AddUsersToSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddUsersToSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AddUsersToSkillGroupRequest::getUserSkillLevelList()const +{ + return userSkillLevelList_; +} + +void AddUsersToSkillGroupRequest::setUserSkillLevelList(const std::string& userSkillLevelList) +{ + userSkillLevelList_ = userSkillLevelList; + setParameter("UserSkillLevelList", userSkillLevelList); +} + +std::string AddUsersToSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void AddUsersToSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + diff --git a/ccc/src/model/ResumeJobsResult.cc b/ccc/src/model/AddUsersToSkillGroupResult.cc similarity index 69% rename from ccc/src/model/ResumeJobsResult.cc rename to ccc/src/model/AddUsersToSkillGroupResult.cc index aefa918fe..7b18fd60d 100644 --- a/ccc/src/model/ResumeJobsResult.cc +++ b/ccc/src/model/AddUsersToSkillGroupResult.cc @@ -14,59 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ResumeJobsResult::ResumeJobsResult() : +AddUsersToSkillGroupResult::AddUsersToSkillGroupResult() : ServiceResult() {} -ResumeJobsResult::ResumeJobsResult(const std::string &payload) : +AddUsersToSkillGroupResult::AddUsersToSkillGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -ResumeJobsResult::~ResumeJobsResult() +AddUsersToSkillGroupResult::~AddUsersToSkillGroupResult() {} -void ResumeJobsResult::parse(const std::string &payload) +void AddUsersToSkillGroupResult::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["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string ResumeJobsResult::getMessage()const +std::string AddUsersToSkillGroupResult::getMessage()const { return message_; } -int ResumeJobsResult::getHttpStatusCode()const +int AddUsersToSkillGroupResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string ResumeJobsResult::getCode()const +std::string AddUsersToSkillGroupResult::getCode()const { return code_; } -bool ResumeJobsResult::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/AssignUsersRequest.cc b/ccc/src/model/AssignUsersRequest.cc index 2c3fdfafa..005efb897 100644 --- a/ccc/src/model/AssignUsersRequest.cc +++ b/ccc/src/model/AssignUsersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::AssignUsersRequest; AssignUsersRequest::AssignUsersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "AssignUsers") + RpcServiceRequest("ccc", "2020-07-01", "AssignUsers") { setMethod(HttpRequest::Method::Post); } @@ -27,54 +27,37 @@ AssignUsersRequest::AssignUsersRequest() : AssignUsersRequest::~AssignUsersRequest() {} -std::vector AssignUsersRequest::getRoleId()const +std::string AssignUsersRequest::getRamIdList()const +{ + return ramIdList_; +} + +void AssignUsersRequest::setRamIdList(const std::string& ramIdList) +{ + ramIdList_ = ramIdList; + setParameter("RamIdList", ramIdList); +} + +std::string AssignUsersRequest::getRoleId()const { return roleId_; } -void AssignUsersRequest::setRoleId(const std::vector& roleId) +void AssignUsersRequest::setRoleId(const std::string& roleId) { roleId_ = roleId; - for(int dep1 = 0; dep1!= roleId.size(); dep1++) { - setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); - } + setParameter("RoleId", roleId); } -std::string AssignUsersRequest::getAccessKeyId()const +std::string AssignUsersRequest::getWorkMode()const { - return accessKeyId_; + return workMode_; } -void AssignUsersRequest::setAccessKeyId(const std::string& accessKeyId) +void AssignUsersRequest::setWorkMode(const std::string& workMode) { - 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))); - } + workMode_ = workMode; + setParameter("WorkMode", workMode); } std::string AssignUsersRequest::getInstanceId()const @@ -88,16 +71,14 @@ void AssignUsersRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::vector AssignUsersRequest::getSkillGroupId()const +std::string AssignUsersRequest::getSkillLevelList()const { - return skillGroupId_; + return skillLevelList_; } -void AssignUsersRequest::setSkillGroupId(const std::vector& skillGroupId) +void AssignUsersRequest::setSkillLevelList(const std::string& skillLevelList) { - skillGroupId_ = skillGroupId; - for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } + skillLevelList_ = skillLevelList; + setParameter("SkillLevelList", skillLevelList); } diff --git a/ccc/src/model/AssignUsersResult.cc b/ccc/src/model/AssignUsersResult.cc index eb6c57c0e..4ce236c73 100644 --- a/ccc/src/model/AssignUsersResult.cc +++ b/ccc/src/model/AssignUsersResult.cc @@ -39,14 +39,18 @@ void AssignUsersResult::parse(const std::string &payload) 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["Data"].isNull()) + data_ = value["Data"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Sync"].isNull()) + sync_ = value["Sync"].asString(); + if(!value["WorkflowId"].isNull()) + workflowId_ = value["WorkflowId"].asString(); } @@ -60,13 +64,23 @@ int AssignUsersResult::getHttpStatusCode()const return httpStatusCode_; } +std::string AssignUsersResult::getData()const +{ + return data_; +} + +std::string AssignUsersResult::getSync()const +{ + return sync_; +} + +std::string AssignUsersResult::getWorkflowId()const +{ + return workflowId_; +} + 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/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/CoachCallRequest.cc b/ccc/src/model/CoachCallRequest.cc new file mode 100644 index 000000000..1eeb59ca2 --- /dev/null +++ b/ccc/src/model/CoachCallRequest.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::CoachCallRequest; + +CoachCallRequest::CoachCallRequest() : + RpcServiceRequest("ccc", "2020-07-01", "CoachCall") +{ + setMethod(HttpRequest::Method::Post); +} + +CoachCallRequest::~CoachCallRequest() +{} + +std::string CoachCallRequest::getCoachedUserId()const +{ + return coachedUserId_; +} + +void CoachCallRequest::setCoachedUserId(const std::string& coachedUserId) +{ + coachedUserId_ = coachedUserId; + setParameter("CoachedUserId", coachedUserId); +} + +std::string CoachCallRequest::getUserId()const +{ + return userId_; +} + +void CoachCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string CoachCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void CoachCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string CoachCallRequest::getJobId()const +{ + return jobId_; +} + +void CoachCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +int CoachCallRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void CoachCallRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); +} + +std::string CoachCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void CoachCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/CoachCallResult.cc b/ccc/src/model/CoachCallResult.cc new file mode 100644 index 000000000..750d56f55 --- /dev/null +++ b/ccc/src/model/CoachCallResult.cc @@ -0,0 +1,154 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +CoachCallResult::CoachCallResult() : + ServiceResult() +{} + +CoachCallResult::CoachCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CoachCallResult::~CoachCallResult() +{} + +void CoachCallResult::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["DeviceState"].isNull()) + data_.userContext.deviceState = userContextNode["DeviceState"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["Uri"].isNull()) + data_.userContext.uri = userContextNode["Uri"].asString(); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CoachCallResult::getMessage()const +{ + return message_; +} + +int CoachCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector CoachCallResult::getParams()const +{ + return params_; +} + +CoachCallResult::Data CoachCallResult::getData()const +{ + return data_; +} + +std::string CoachCallResult::getCode()const +{ + return code_; +} + 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/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 index 201d957b6..621eb65a7 100644 --- a/ccc/src/model/CreateSkillGroupRequest.cc +++ b/ccc/src/model/CreateSkillGroupRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::CreateSkillGroupRequest; CreateSkillGroupRequest::CreateSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreateSkillGroup") + RpcServiceRequest("ccc", "2020-07-01", "CreateSkillGroup") { setMethod(HttpRequest::Method::Post); } @@ -27,17 +27,6 @@ CreateSkillGroupRequest::CreateSkillGroupRequest() : 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_; @@ -49,54 +38,6 @@ void CreateSkillGroupRequest::setDescription(const std::string& 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_; @@ -108,17 +49,15 @@ void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::vector CreateSkillGroupRequest::getOutboundPhoneNumberId()const +std::string CreateSkillGroupRequest::getDisplayName()const { - return outboundPhoneNumberId_; + return displayName_; } -void CreateSkillGroupRequest::setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId) +void CreateSkillGroupRequest::setDisplayName(const std::string& displayName) { - outboundPhoneNumberId_ = outboundPhoneNumberId; - for(int dep1 = 0; dep1!= outboundPhoneNumberId.size(); dep1++) { - setParameter("OutboundPhoneNumberId."+ std::to_string(dep1), outboundPhoneNumberId.at(dep1)); - } + displayName_ = displayName; + setParameter("DisplayName", displayName); } std::string CreateSkillGroupRequest::getName()const diff --git a/ccc/src/model/CreateSkillGroupResult.cc b/ccc/src/model/CreateSkillGroupResult.cc index da09f8ea9..6e54dc696 100644 --- a/ccc/src/model/CreateSkillGroupResult.cc +++ b/ccc/src/model/CreateSkillGroupResult.cc @@ -39,16 +39,21 @@ void CreateSkillGroupResult::parse(const std::string &payload) 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["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["SkillGroupId"].isNull()) + data_.skillGroupId = dataNode["SkillGroupId"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["SkillGroupId"].isNull()) - skillGroupId_ = value["SkillGroupId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } @@ -62,9 +67,9 @@ int CreateSkillGroupResult::getHttpStatusCode()const return httpStatusCode_; } -std::string CreateSkillGroupResult::getSkillGroupId()const +CreateSkillGroupResult::Data CreateSkillGroupResult::getData()const { - return skillGroupId_; + return data_; } std::string CreateSkillGroupResult::getCode()const @@ -72,8 +77,3 @@ 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 index 99ce3a5e5..4bce8637d 100644 --- a/ccc/src/model/CreateUserRequest.cc +++ b/ccc/src/model/CreateUserRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::CreateUserRequest; CreateUserRequest::CreateUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "CreateUser") + RpcServiceRequest("ccc", "2020-07-01", "CreateUser") { setMethod(HttpRequest::Method::Post); } @@ -27,17 +27,6 @@ CreateUserRequest::CreateUserRequest() : 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_; @@ -49,41 +38,37 @@ void CreateUserRequest::setLoginName(const std::string& loginName) setParameter("LoginName", loginName); } -std::vector CreateUserRequest::getRoleId()const +std::string CreateUserRequest::getRoleId()const { return roleId_; } -void CreateUserRequest::setRoleId(const std::vector& roleId) +void CreateUserRequest::setRoleId(const std::string& roleId) { roleId_ = roleId; - for(int dep1 = 0; dep1!= roleId.size(); dep1++) { - setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); - } + setParameter("RoleId", roleId); } -std::string CreateUserRequest::getAccessKeyId()const +std::string CreateUserRequest::getMobile()const { - return accessKeyId_; + return mobile_; } -void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId) +void CreateUserRequest::setMobile(const std::string& mobile) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + mobile_ = mobile; + setParameter("Mobile", mobile); } -std::vector CreateUserRequest::getSkillLevel()const +std::string CreateUserRequest::getWorkMode()const { - return skillLevel_; + return workMode_; } -void CreateUserRequest::setSkillLevel(const std::vector& skillLevel) +void CreateUserRequest::setWorkMode(const std::string& workMode) { - skillLevel_ = skillLevel; - for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { - setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); - } + workMode_ = workMode; + setParameter("WorkMode", workMode); } std::string CreateUserRequest::getInstanceId()const @@ -97,17 +82,6 @@ void CreateUserRequest::setInstanceId(const std::string& 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_; @@ -119,17 +93,26 @@ void CreateUserRequest::setDisplayName(const std::string& displayName) setParameter("DisplayName", displayName); } -std::vector CreateUserRequest::getSkillGroupId()const +bool CreateUserRequest::getResetPassword()const { - return skillGroupId_; + return resetPassword_; } -void CreateUserRequest::setSkillGroupId(const std::vector& skillGroupId) +void CreateUserRequest::setResetPassword(bool resetPassword) { - skillGroupId_ = skillGroupId; - for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { - setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); - } + resetPassword_ = resetPassword; + setParameter("ResetPassword", resetPassword ? "true" : "false"); +} + +std::string CreateUserRequest::getSkillLevelList()const +{ + return skillLevelList_; +} + +void CreateUserRequest::setSkillLevelList(const std::string& skillLevelList) +{ + skillLevelList_ = skillLevelList; + setParameter("SkillLevelList", skillLevelList); } std::string CreateUserRequest::getEmail()const diff --git a/ccc/src/model/CreateUserResult.cc b/ccc/src/model/CreateUserResult.cc index e6eecea31..e82683f41 100644 --- a/ccc/src/model/CreateUserResult.cc +++ b/ccc/src/model/CreateUserResult.cc @@ -39,16 +39,30 @@ void CreateUserResult::parse(const std::string &payload) 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["DisplayName"].isNull()) + data_.displayName = dataNode["DisplayName"].asString(); + if(!dataNode["Email"].isNull()) + data_.email = dataNode["Email"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["LoginName"].isNull()) + data_.loginName = dataNode["LoginName"].asString(); + if(!dataNode["Mobile"].isNull()) + data_.mobile = dataNode["Mobile"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["UserId"].isNull()) - userId_ = value["UserId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } @@ -57,23 +71,23 @@ std::string CreateUserResult::getMessage()const return message_; } -std::string CreateUserResult::getUserId()const -{ - return userId_; -} - int CreateUserResult::getHttpStatusCode()const { return httpStatusCode_; } +std::vector CreateUserResult::getParams()const +{ + return params_; +} + +CreateUserResult::Data CreateUserResult::getData()const +{ + return data_; +} + std::string CreateUserResult::getCode()const { return code_; } -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/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/DeleteSkillGroupRequest.cc b/ccc/src/model/DeleteSkillGroupRequest.cc index 2de2e78af..3c7eb77f6 100644 --- a/ccc/src/model/DeleteSkillGroupRequest.cc +++ b/ccc/src/model/DeleteSkillGroupRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::DeleteSkillGroupRequest; DeleteSkillGroupRequest::DeleteSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DeleteSkillGroup") + RpcServiceRequest("ccc", "2020-07-01", "DeleteSkillGroup") { setMethod(HttpRequest::Method::Post); } @@ -49,14 +49,14 @@ void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) setParameter("SkillGroupId", skillGroupId); } -std::string DeleteSkillGroupRequest::getAccessKeyId()const +bool DeleteSkillGroupRequest::getForce()const { - return accessKeyId_; + return force_; } -void DeleteSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) +void DeleteSkillGroupRequest::setForce(bool force) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + force_ = force; + setParameter("Force", force ? "true" : "false"); } diff --git a/ccc/src/model/DeleteSkillGroupResult.cc b/ccc/src/model/DeleteSkillGroupResult.cc index a441d9766..dfa967369 100644 --- a/ccc/src/model/DeleteSkillGroupResult.cc +++ b/ccc/src/model/DeleteSkillGroupResult.cc @@ -39,14 +39,12 @@ void DeleteSkillGroupResult::parse(const std::string &payload) 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["Message"].isNull()) + message_ = value["Message"].asString(); } @@ -65,8 +63,3 @@ std::string DeleteSkillGroupResult::getCode()const return code_; } -bool DeleteSkillGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/DeleteSurveyRequest.cc b/ccc/src/model/DeleteSurveyRequest.cc 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/GetJobFileUploadUrlRequest.cc b/ccc/src/model/GetCallDetailRecordRequest.cc similarity index 54% rename from ccc/src/model/GetJobFileUploadUrlRequest.cc rename to ccc/src/model/GetCallDetailRecordRequest.cc index 5afe9bf77..e07602e72 100644 --- a/ccc/src/model/GetJobFileUploadUrlRequest.cc +++ b/ccc/src/model/GetCallDetailRecordRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetJobFileUploadUrlRequest; +using AlibabaCloud::CCC::Model::GetCallDetailRecordRequest; -GetJobFileUploadUrlRequest::GetJobFileUploadUrlRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetJobFileUploadUrl") +GetCallDetailRecordRequest::GetCallDetailRecordRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetCallDetailRecord") { setMethod(HttpRequest::Method::Post); } -GetJobFileUploadUrlRequest::~GetJobFileUploadUrlRequest() +GetCallDetailRecordRequest::~GetCallDetailRecordRequest() {} -std::string GetJobFileUploadUrlRequest::getInstanceId()const +std::string GetCallDetailRecordRequest::getInstanceId()const { return instanceId_; } -void GetJobFileUploadUrlRequest::setInstanceId(const std::string& instanceId) +void GetCallDetailRecordRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -std::string GetJobFileUploadUrlRequest::getFileName()const +std::string GetCallDetailRecordRequest::getContactId()const { - return fileName_; + return contactId_; } -void GetJobFileUploadUrlRequest::setFileName(const std::string& fileName) +void GetCallDetailRecordRequest::setContactId(const std::string& contactId) { - fileName_ = fileName; - setParameter("FileName", fileName); + contactId_ = contactId; + setParameter("ContactId", contactId); } diff --git a/ccc/src/model/GetCallDetailRecordResult.cc b/ccc/src/model/GetCallDetailRecordResult.cc new file mode 100644 index 000000000..222453b69 --- /dev/null +++ b/ccc/src/model/GetCallDetailRecordResult.cc @@ -0,0 +1,173 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetCallDetailRecordResult::GetCallDetailRecordResult() : + ServiceResult() +{} + +GetCallDetailRecordResult::GetCallDetailRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCallDetailRecordResult::~GetCallDetailRecordResult() +{} + +void GetCallDetailRecordResult::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["AgentIds"].isNull()) + data_.agentIds = dataNode["AgentIds"].asString(); + if(!dataNode["AgentNames"].isNull()) + data_.agentNames = dataNode["AgentNames"].asString(); + if(!dataNode["CalledNumber"].isNull()) + data_.calledNumber = dataNode["CalledNumber"].asString(); + if(!dataNode["CallingNumber"].isNull()) + data_.callingNumber = dataNode["CallingNumber"].asString(); + if(!dataNode["ContactDisposition"].isNull()) + data_.contactDisposition = dataNode["ContactDisposition"].asString(); + if(!dataNode["ContactId"].isNull()) + data_.contactId = dataNode["ContactId"].asString(); + if(!dataNode["ContactType"].isNull()) + data_.contactType = dataNode["ContactType"].asString(); + if(!dataNode["CallDuration"].isNull()) + data_.callDuration = std::stol(dataNode["CallDuration"].asString()); + if(!dataNode["EstablishedTime"].isNull()) + data_.establishedTime = std::stol(dataNode["EstablishedTime"].asString()); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["StartTime"].isNull()) + data_.startTime = std::stol(dataNode["StartTime"].asString()); + if(!dataNode["ReleaseTime"].isNull()) + data_.releaseTime = std::stol(dataNode["ReleaseTime"].asString()); + if(!dataNode["SkillGroupIds"].isNull()) + data_.skillGroupIds = dataNode["SkillGroupIds"].asString(); + if(!dataNode["SkillGroupNames"].isNull()) + data_.skillGroupNames = dataNode["SkillGroupNames"].asString(); + if(!dataNode["SatisfactionSurveyOffered"].isNull()) + data_.satisfactionSurveyOffered = dataNode["SatisfactionSurveyOffered"].asString() == "true"; + if(!dataNode["Satisfaction"].isNull()) + data_.satisfaction = std::stoi(dataNode["Satisfaction"].asString()); + if(!dataNode["SatisfactionSurveyChannel"].isNull()) + data_.satisfactionSurveyChannel = dataNode["SatisfactionSurveyChannel"].asString(); + if(!dataNode["ReleaseInitiator"].isNull()) + data_.releaseInitiator = dataNode["ReleaseInitiator"].asString(); + if(!dataNode["RecordingReady"].isNull()) + data_.recordingReady = dataNode["RecordingReady"].asString() == "true"; + auto allCdrAgentEventsNode = dataNode["CdrAgentEvents"]["CdrAgentEventsItem"]; + for (auto dataNodeCdrAgentEventsCdrAgentEventsItem : allCdrAgentEventsNode) + { + Data::CdrAgentEventsItem cdrAgentEventsItemObject; + if(!dataNodeCdrAgentEventsCdrAgentEventsItem["AgentId"].isNull()) + cdrAgentEventsItemObject.agentId = dataNodeCdrAgentEventsCdrAgentEventsItem["AgentId"].asString(); + if(!dataNodeCdrAgentEventsCdrAgentEventsItem["AgentName"].isNull()) + cdrAgentEventsItemObject.agentName = dataNodeCdrAgentEventsCdrAgentEventsItem["AgentName"].asString(); + if(!dataNodeCdrAgentEventsCdrAgentEventsItem["SkillGroupId"].isNull()) + cdrAgentEventsItemObject.skillGroupId = dataNodeCdrAgentEventsCdrAgentEventsItem["SkillGroupId"].asString(); + auto allEventSequenceNode = dataNodeCdrAgentEventsCdrAgentEventsItem["EventSequence"]["EventSequenceItem"]; + for (auto dataNodeCdrAgentEventsCdrAgentEventsItemEventSequenceEventSequenceItem : allEventSequenceNode) + { + Data::CdrAgentEventsItem::EventSequenceItem eventSequenceObject; + if(!dataNodeCdrAgentEventsCdrAgentEventsItemEventSequenceEventSequenceItem["Event"].isNull()) + eventSequenceObject.event = dataNodeCdrAgentEventsCdrAgentEventsItemEventSequenceEventSequenceItem["Event"].asString(); + if(!dataNodeCdrAgentEventsCdrAgentEventsItemEventSequenceEventSequenceItem["EventTime"].isNull()) + eventSequenceObject.eventTime = std::stol(dataNodeCdrAgentEventsCdrAgentEventsItemEventSequenceEventSequenceItem["EventTime"].asString()); + cdrAgentEventsItemObject.eventSequence.push_back(eventSequenceObject); + } + data_.cdrAgentEvents.push_back(cdrAgentEventsItemObject); + } + auto allCdrIvrEventsNode = dataNode["CdrIvrEvents"]["CdrIvrEventsItem"]; + for (auto dataNodeCdrIvrEventsCdrIvrEventsItem : allCdrIvrEventsNode) + { + Data::CdrIvrEventsItem cdrIvrEventsItemObject; + if(!dataNodeCdrIvrEventsCdrIvrEventsItem["FlowId"].isNull()) + cdrIvrEventsItemObject.flowId = dataNodeCdrIvrEventsCdrIvrEventsItem["FlowId"].asString(); + auto allEventSequence1Node = dataNodeCdrIvrEventsCdrIvrEventsItem["EventSequence"]["EventSequenceItem"]; + for (auto dataNodeCdrIvrEventsCdrIvrEventsItemEventSequenceEventSequenceItem : allEventSequence1Node) + { + Data::CdrIvrEventsItem::EventSequenceItem2 eventSequence1Object; + if(!dataNodeCdrIvrEventsCdrIvrEventsItemEventSequenceEventSequenceItem["Event"].isNull()) + eventSequence1Object.event = dataNodeCdrIvrEventsCdrIvrEventsItemEventSequenceEventSequenceItem["Event"].asString(); + if(!dataNodeCdrIvrEventsCdrIvrEventsItemEventSequenceEventSequenceItem["EventTime"].isNull()) + eventSequence1Object.eventTime = std::stol(dataNodeCdrIvrEventsCdrIvrEventsItemEventSequenceEventSequenceItem["EventTime"].asString()); + cdrIvrEventsItemObject.eventSequence1.push_back(eventSequence1Object); + } + data_.cdrIvrEvents.push_back(cdrIvrEventsItemObject); + } + auto allCdrQueueEventsNode = dataNode["CdrQueueEvents"]["CdrQueueEventsItem"]; + for (auto dataNodeCdrQueueEventsCdrQueueEventsItem : allCdrQueueEventsNode) + { + Data::CdrQueueEventsItem cdrQueueEventsItemObject; + if(!dataNodeCdrQueueEventsCdrQueueEventsItem["FlowId"].isNull()) + cdrQueueEventsItemObject.flowId = dataNodeCdrQueueEventsCdrQueueEventsItem["FlowId"].asString(); + if(!dataNodeCdrQueueEventsCdrQueueEventsItem["QueueId"].isNull()) + cdrQueueEventsItemObject.queueId = dataNodeCdrQueueEventsCdrQueueEventsItem["QueueId"].asString(); + if(!dataNodeCdrQueueEventsCdrQueueEventsItem["QueueName"].isNull()) + cdrQueueEventsItemObject.queueName = dataNodeCdrQueueEventsCdrQueueEventsItem["QueueName"].asString(); + if(!dataNodeCdrQueueEventsCdrQueueEventsItem["QueueType"].isNull()) + cdrQueueEventsItemObject.queueType = std::stoi(dataNodeCdrQueueEventsCdrQueueEventsItem["QueueType"].asString()); + auto allEventSequence3Node = dataNodeCdrQueueEventsCdrQueueEventsItem["EventSequence"]["EventSequenceItem"]; + for (auto dataNodeCdrQueueEventsCdrQueueEventsItemEventSequenceEventSequenceItem : allEventSequence3Node) + { + Data::CdrQueueEventsItem::EventSequenceItem4 eventSequence3Object; + if(!dataNodeCdrQueueEventsCdrQueueEventsItemEventSequenceEventSequenceItem["Event"].isNull()) + eventSequence3Object.event = dataNodeCdrQueueEventsCdrQueueEventsItemEventSequenceEventSequenceItem["Event"].asString(); + if(!dataNodeCdrQueueEventsCdrQueueEventsItemEventSequenceEventSequenceItem["EventTime"].isNull()) + eventSequence3Object.eventTime = std::stol(dataNodeCdrQueueEventsCdrQueueEventsItemEventSequenceEventSequenceItem["EventTime"].asString()); + cdrQueueEventsItemObject.eventSequence3.push_back(eventSequence3Object); + } + data_.cdrQueueEvents.push_back(cdrQueueEventsItemObject); + } + 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 GetCallDetailRecordResult::getMessage()const +{ + return message_; +} + +int GetCallDetailRecordResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetCallDetailRecordResult::Data GetCallDetailRecordResult::getData()const +{ + return data_; +} + +std::string GetCallDetailRecordResult::getCode()const +{ + return code_; +} + 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/GetContactInfoByOutboundTaskIdRequest.cc b/ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc deleted file mode 100644 index d2e5eb3af..000000000 --- a/ccc/src/model/GetContactInfoByOutboundTaskIdRequest.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::GetContactInfoByOutboundTaskIdRequest; - -GetContactInfoByOutboundTaskIdRequest::GetContactInfoByOutboundTaskIdRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetContactInfoByOutboundTaskId") -{ - setMethod(HttpRequest::Method::Post); -} - -GetContactInfoByOutboundTaskIdRequest::~GetContactInfoByOutboundTaskIdRequest() -{} - -std::string GetContactInfoByOutboundTaskIdRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetContactInfoByOutboundTaskIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetContactInfoByOutboundTaskIdRequest::getOutboundTaskId()const -{ - return outboundTaskId_; -} - -void GetContactInfoByOutboundTaskIdRequest::setOutboundTaskId(const std::string& outboundTaskId) -{ - outboundTaskId_ = outboundTaskId; - setParameter("OutboundTaskId", outboundTaskId); -} - -std::string GetContactInfoByOutboundTaskIdRequest::getSkillGroupId()const -{ - return skillGroupId_; -} - -void GetContactInfoByOutboundTaskIdRequest::setSkillGroupId(const std::string& skillGroupId) -{ - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); -} - diff --git a/ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc b/ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc deleted file mode 100644 index 9947f6beb..000000000 --- a/ccc/src/model/GetContactInfoByOutboundTaskIdResult.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; - -GetContactInfoByOutboundTaskIdResult::GetContactInfoByOutboundTaskIdResult() : - ServiceResult() -{} - -GetContactInfoByOutboundTaskIdResult::GetContactInfoByOutboundTaskIdResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetContactInfoByOutboundTaskIdResult::~GetContactInfoByOutboundTaskIdResult() -{} - -void GetContactInfoByOutboundTaskIdResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto contactIdentityNode = value["ContactIdentity"]; - if(!contactIdentityNode["ContactReferrnceId"].isNull()) - contactIdentity_.contactReferrnceId = contactIdentityNode["ContactReferrnceId"].asString(); - if(!contactIdentityNode["JobGroupId"].isNull()) - contactIdentity_.jobGroupId = contactIdentityNode["JobGroupId"].asString(); - if(!contactIdentityNode["UserPhone"].isNull()) - contactIdentity_.userPhone = contactIdentityNode["UserPhone"].asString(); - if(!contactIdentityNode["Caller"].isNull()) - contactIdentity_.caller = contactIdentityNode["Caller"].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 GetContactInfoByOutboundTaskIdResult::getMessage()const -{ - return message_; -} - -GetContactInfoByOutboundTaskIdResult::ContactIdentity GetContactInfoByOutboundTaskIdResult::getContactIdentity()const -{ - return contactIdentity_; -} - -int GetContactInfoByOutboundTaskIdResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string GetContactInfoByOutboundTaskIdResult::getCode()const -{ - return code_; -} - -bool GetContactInfoByOutboundTaskIdResult::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/GetHistoricalCallerReportRequest.cc b/ccc/src/model/GetHistoricalCallerReportRequest.cc new file mode 100644 index 000000000..7b7515504 --- /dev/null +++ b/ccc/src/model/GetHistoricalCallerReportRequest.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::GetHistoricalCallerReportRequest; + +GetHistoricalCallerReportRequest::GetHistoricalCallerReportRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetHistoricalCallerReport") +{ + setMethod(HttpRequest::Method::Post); +} + +GetHistoricalCallerReportRequest::~GetHistoricalCallerReportRequest() +{} + +long GetHistoricalCallerReportRequest::getStopTime()const +{ + return stopTime_; +} + +void GetHistoricalCallerReportRequest::setStopTime(long stopTime) +{ + stopTime_ = stopTime; + setParameter("StopTime", std::to_string(stopTime)); +} + +long GetHistoricalCallerReportRequest::getStartTime()const +{ + return startTime_; +} + +void GetHistoricalCallerReportRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string GetHistoricalCallerReportRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void GetHistoricalCallerReportRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setParameter("CallingNumber", callingNumber); +} + +std::string GetHistoricalCallerReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetHistoricalCallerReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/PublishPredictiveJobGroupResult.cc b/ccc/src/model/GetHistoricalCallerReportResult.cc similarity index 59% rename from ccc/src/model/PublishPredictiveJobGroupResult.cc rename to ccc/src/model/GetHistoricalCallerReportResult.cc index 5badd78a6..37e6bb057 100644 --- a/ccc/src/model/PublishPredictiveJobGroupResult.cc +++ b/ccc/src/model/GetHistoricalCallerReportResult.cc @@ -14,59 +14,62 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -PublishPredictiveJobGroupResult::PublishPredictiveJobGroupResult() : +GetHistoricalCallerReportResult::GetHistoricalCallerReportResult() : ServiceResult() {} -PublishPredictiveJobGroupResult::PublishPredictiveJobGroupResult(const std::string &payload) : +GetHistoricalCallerReportResult::GetHistoricalCallerReportResult(const std::string &payload) : ServiceResult() { parse(payload); } -PublishPredictiveJobGroupResult::~PublishPredictiveJobGroupResult() +GetHistoricalCallerReportResult::~GetHistoricalCallerReportResult() {} -void PublishPredictiveJobGroupResult::parse(const std::string &payload) +void GetHistoricalCallerReportResult::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["LastCallingTime"].isNull()) + data_.lastCallingTime = std::stol(dataNode["LastCallingTime"].asString()); + if(!dataNode["TotalCalls"].isNull()) + data_.totalCalls = std::stol(dataNode["TotalCalls"].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 PublishPredictiveJobGroupResult::getMessage()const +std::string GetHistoricalCallerReportResult::getMessage()const { return message_; } -int PublishPredictiveJobGroupResult::getHttpStatusCode()const +int GetHistoricalCallerReportResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string PublishPredictiveJobGroupResult::getCode()const +GetHistoricalCallerReportResult::Data GetHistoricalCallerReportResult::getData()const +{ + return data_; +} + +std::string GetHistoricalCallerReportResult::getCode()const { return code_; } -bool PublishPredictiveJobGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetHistoricalInstanceReportRequest.cc b/ccc/src/model/GetHistoricalInstanceReportRequest.cc new file mode 100644 index 000000000..7b4dae5dd --- /dev/null +++ b/ccc/src/model/GetHistoricalInstanceReportRequest.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::GetHistoricalInstanceReportRequest; + +GetHistoricalInstanceReportRequest::GetHistoricalInstanceReportRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetHistoricalInstanceReport") +{ + setMethod(HttpRequest::Method::Post); +} + +GetHistoricalInstanceReportRequest::~GetHistoricalInstanceReportRequest() +{} + +long GetHistoricalInstanceReportRequest::getEndTime()const +{ + return endTime_; +} + +void GetHistoricalInstanceReportRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long GetHistoricalInstanceReportRequest::getStartTime()const +{ + return startTime_; +} + +void GetHistoricalInstanceReportRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string GetHistoricalInstanceReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetHistoricalInstanceReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/GetHistoricalInstanceReportResult.cc b/ccc/src/model/GetHistoricalInstanceReportResult.cc new file mode 100644 index 000000000..8e2f58616 --- /dev/null +++ b/ccc/src/model/GetHistoricalInstanceReportResult.cc @@ -0,0 +1,244 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +GetHistoricalInstanceReportResult::GetHistoricalInstanceReportResult() : + ServiceResult() +{} + +GetHistoricalInstanceReportResult::GetHistoricalInstanceReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHistoricalInstanceReportResult::~GetHistoricalInstanceReportResult() +{} + +void GetHistoricalInstanceReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto inboundNode = dataNode["Inbound"]; + if(!inboundNode["AbandonRate"].isNull()) + data_.inbound.abandonRate = std::stof(inboundNode["AbandonRate"].asString()); + if(!inboundNode["AverageAbandonTime"].isNull()) + data_.inbound.averageAbandonTime = std::stof(inboundNode["AverageAbandonTime"].asString()); + if(!inboundNode["AverageAbandonedInIVRTime"].isNull()) + data_.inbound.averageAbandonedInIVRTime = std::stof(inboundNode["AverageAbandonedInIVRTime"].asString()); + if(!inboundNode["AverageAbandonedInQueueTime"].isNull()) + data_.inbound.averageAbandonedInQueueTime = std::stof(inboundNode["AverageAbandonedInQueueTime"].asString()); + if(!inboundNode["AverageAbandonedInRingTime"].isNull()) + data_.inbound.averageAbandonedInRingTime = std::stof(inboundNode["AverageAbandonedInRingTime"].asString()); + if(!inboundNode["AverageHoldTime"].isNull()) + data_.inbound.averageHoldTime = std::stof(inboundNode["AverageHoldTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + data_.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + data_.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["AverageWaitTime"].isNull()) + data_.inbound.averageWaitTime = std::stof(inboundNode["AverageWaitTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + data_.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["CallsAbandoned"].isNull()) + data_.inbound.callsAbandoned = std::stol(inboundNode["CallsAbandoned"].asString()); + if(!inboundNode["CallsAbandonedInIVR"].isNull()) + data_.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); + if(!inboundNode["CallsAbandonedInQueue"].isNull()) + data_.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); + if(!inboundNode["CallsAbandonedInRinging"].isNull()) + data_.inbound.callsAbandonedInRinging = std::stol(inboundNode["CallsAbandonedInRinging"].asString()); + if(!inboundNode["CallsConsulted"].isNull()) + data_.inbound.callsConsulted = std::stol(inboundNode["CallsConsulted"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + data_.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["CallsHold"].isNull()) + data_.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + data_.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsQueued"].isNull()) + data_.inbound.callsQueued = std::stol(inboundNode["CallsQueued"].asString()); + if(!inboundNode["CallsRinged"].isNull()) + data_.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString()); + if(!inboundNode["CallsTransferred"].isNull()) + data_.inbound.callsTransferred = std::stol(inboundNode["CallsTransferred"].asString()); + if(!inboundNode["HandleRate"].isNull()) + data_.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["MaxAbandonTime"].isNull()) + data_.inbound.maxAbandonTime = std::stol(inboundNode["MaxAbandonTime"].asString()); + if(!inboundNode["MaxAbandonedInIVRTime"].isNull()) + data_.inbound.maxAbandonedInIVRTime = std::stol(inboundNode["MaxAbandonedInIVRTime"].asString()); + if(!inboundNode["MaxAbandonedInQueueTime"].isNull()) + data_.inbound.maxAbandonedInQueueTime = std::stol(inboundNode["MaxAbandonedInQueueTime"].asString()); + if(!inboundNode["MaxAbandonedInRingTime"].isNull()) + data_.inbound.maxAbandonedInRingTime = std::stol(inboundNode["MaxAbandonedInRingTime"].asString()); + if(!inboundNode["MaxHoldTime"].isNull()) + data_.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + data_.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + data_.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["MaxWaitTime"].isNull()) + data_.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + data_.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + data_.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + data_.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + data_.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + data_.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalAbandonTime"].isNull()) + data_.inbound.totalAbandonTime = std::stol(inboundNode["TotalAbandonTime"].asString()); + if(!inboundNode["TotalAbandonedInIVRTime"].isNull()) + data_.inbound.totalAbandonedInIVRTime = std::stol(inboundNode["TotalAbandonedInIVRTime"].asString()); + if(!inboundNode["TotalAbandonedInQueueTime"].isNull()) + data_.inbound.totalAbandonedInQueueTime = std::stol(inboundNode["TotalAbandonedInQueueTime"].asString()); + if(!inboundNode["TotalAbandonedInRingTime"].isNull()) + data_.inbound.totalAbandonedInRingTime = std::stol(inboundNode["TotalAbandonedInRingTime"].asString()); + if(!inboundNode["TotalHoldTime"].isNull()) + data_.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + data_.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + data_.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["TotalWaitTime"].isNull()) + data_.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + data_.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + auto outboundNode = dataNode["Outbound"]; + if(!outboundNode["AnswerRate"].isNull()) + data_.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + data_.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["AverageHoldTime"].isNull()) + data_.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + data_.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + data_.outbound.averageWorkTime = std::stof(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + data_.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["CallsDialed"].isNull()) + data_.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsDialedSuccess"].isNull()) + data_.outbound.callsDialedSuccess = std::stol(outboundNode["CallsDialedSuccess"].asString()); + if(!outboundNode["CallsHold"].isNull()) + data_.outbound.callsHold = std::stoi(outboundNode["CallsHold"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + data_.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["MaxHoldTime"].isNull()) + data_.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + data_.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + data_.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + data_.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + data_.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + data_.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + data_.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["TotalHoldTime"].isNull()) + data_.outbound.totalHoldTime = std::stol(outboundNode["TotalHoldTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + data_.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + data_.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + auto overallNode = dataNode["Overall"]; + if(!overallNode["AverageBreakTime"].isNull()) + data_.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString()); + if(!overallNode["AverageHoldTime"].isNull()) + data_.overall.averageHoldTime = std::stof(overallNode["AverageHoldTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + data_.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + data_.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + data_.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString()); + if(!overallNode["MaxBreakTime"].isNull()) + data_.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString()); + if(!overallNode["MaxHoldTime"].isNull()) + data_.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + data_.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + data_.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + data_.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + data_.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + data_.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + data_.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + data_.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + data_.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["TotalCalls"].isNull()) + data_.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalHoldTime"].isNull()) + data_.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + data_.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + data_.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + data_.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + data_.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].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 GetHistoricalInstanceReportResult::getMessage()const +{ + return message_; +} + +int GetHistoricalInstanceReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetHistoricalInstanceReportResult::Data GetHistoricalInstanceReportResult::getData()const +{ + return data_; +} + +std::string GetHistoricalInstanceReportResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetInstanceRequest.cc b/ccc/src/model/GetInstanceRequest.cc index f0e2049b6..64a946b6b 100644 --- a/ccc/src/model/GetInstanceRequest.cc +++ b/ccc/src/model/GetInstanceRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::GetInstanceRequest; GetInstanceRequest::GetInstanceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetInstance") + RpcServiceRequest("ccc", "2020-07-01", "GetInstance") { setMethod(HttpRequest::Method::Post); } @@ -38,14 +38,3 @@ void GetInstanceRequest::setInstanceId(const std::string& 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 index 161ca2bae..9a4455834 100644 --- a/ccc/src/model/GetInstanceResult.cc +++ b/ccc/src/model/GetInstanceResult.cc @@ -39,90 +39,98 @@ void GetInstanceResult::parse(const std::string &payload) 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) + auto dataNode = value["Data"]; + if(!dataNode["AliyunUid"].isNull()) + data_.aliyunUid = dataNode["AliyunUid"].asString(); + if(!dataNode["ConsoleUrl"].isNull()) + data_.consoleUrl = dataNode["ConsoleUrl"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["DomainName"].isNull()) + data_.domainName = dataNode["DomainName"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + auto allAdminListNode = dataNode["AdminList"]["User"]; + for (auto dataNodeAdminListUser : allAdminListNode) { - 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); + Data::User userObject; + if(!dataNodeAdminListUser["DisplayName"].isNull()) + userObject.displayName = dataNodeAdminListUser["DisplayName"].asString(); + if(!dataNodeAdminListUser["Email"].isNull()) + userObject.email = dataNodeAdminListUser["Email"].asString(); + if(!dataNodeAdminListUser["Extension"].isNull()) + userObject.extension = dataNodeAdminListUser["Extension"].asString(); + if(!dataNodeAdminListUser["InstanceId"].isNull()) + userObject.instanceId = dataNodeAdminListUser["InstanceId"].asString(); + if(!dataNodeAdminListUser["LoginName"].isNull()) + userObject.loginName = dataNodeAdminListUser["LoginName"].asString(); + if(!dataNodeAdminListUser["Mobile"].isNull()) + userObject.mobile = dataNodeAdminListUser["Mobile"].asString(); + if(!dataNodeAdminListUser["RoleId"].isNull()) + userObject.roleId = dataNodeAdminListUser["RoleId"].asString(); + if(!dataNodeAdminListUser["RoleName"].isNull()) + userObject.roleName = dataNodeAdminListUser["RoleName"].asString(); + if(!dataNodeAdminListUser["UserId"].isNull()) + userObject.userId = dataNodeAdminListUser["UserId"].asString(); + if(!dataNodeAdminListUser["WorkMode"].isNull()) + userObject.workMode = dataNodeAdminListUser["WorkMode"].asString(); + data_.adminList.push_back(userObject); } - auto allPhoneNumbersNode = instanceNode["PhoneNumbers"]["PhoneNumber"]; - for (auto instanceNodePhoneNumbersPhoneNumber : allPhoneNumbersNode) + auto allNumberListNode = dataNode["NumberList"]["PhoneNumber"]; + for (auto dataNodeNumberListPhoneNumber : allNumberListNode) { - 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); + Data::PhoneNumber phoneNumberObject; + if(!dataNodeNumberListPhoneNumber["Active"].isNull()) + phoneNumberObject.active = dataNodeNumberListPhoneNumber["Active"].asString() == "true"; + if(!dataNodeNumberListPhoneNumber["City"].isNull()) + phoneNumberObject.city = dataNodeNumberListPhoneNumber["City"].asString(); + if(!dataNodeNumberListPhoneNumber["ContactFlowId"].isNull()) + phoneNumberObject.contactFlowId = dataNodeNumberListPhoneNumber["ContactFlowId"].asString(); + if(!dataNodeNumberListPhoneNumber["InstanceId"].isNull()) + phoneNumberObject.instanceId = dataNodeNumberListPhoneNumber["InstanceId"].asString(); + if(!dataNodeNumberListPhoneNumber["Number"].isNull()) + phoneNumberObject.number = dataNodeNumberListPhoneNumber["Number"].asString(); + if(!dataNodeNumberListPhoneNumber["Province"].isNull()) + phoneNumberObject.province = dataNodeNumberListPhoneNumber["Province"].asString(); + if(!dataNodeNumberListPhoneNumber["Usage"].isNull()) + phoneNumberObject.usage = dataNodeNumberListPhoneNumber["Usage"].asString(); + if(!dataNodeNumberListPhoneNumber["UserId"].isNull()) + phoneNumberObject.userId = dataNodeNumberListPhoneNumber["UserId"].asString(); + auto allSkillGroupsNode = dataNodeNumberListPhoneNumber["SkillGroups"]["SkillGroup"]; + for (auto dataNodeNumberListPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode) + { + Data::PhoneNumber::SkillGroup skillGroupsObject; + if(!dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["Description"].isNull()) + skillGroupsObject.description = dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["Description"].asString(); + if(!dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].isNull()) + skillGroupsObject.displayName = dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].asString(); + if(!dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].isNull()) + skillGroupsObject.instanceId = dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].asString(); + if(!dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["Name"].isNull()) + skillGroupsObject.name = dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["Name"].asString(); + if(!dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].isNull()) + skillGroupsObject.phoneNumberCount = std::stoi(dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].asString()); + if(!dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull()) + skillGroupsObject.skillGroupId = dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString(); + if(!dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].isNull()) + skillGroupsObject.userCount = std::stoi(dataNodeNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].asString()); + phoneNumberObject.skillGroups.push_back(skillGroupsObject); + } + data_.numberList.push_back(phoneNumberObject); } - 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(); } @@ -131,23 +139,23 @@ std::string GetInstanceResult::getMessage()const return message_; } -GetInstanceResult::Instance GetInstanceResult::getInstance()const -{ - return instance_; -} - int GetInstanceResult::getHttpStatusCode()const { return httpStatusCode_; } +std::vector GetInstanceResult::getParams()const +{ + return params_; +} + +GetInstanceResult::Data GetInstanceResult::getData()const +{ + return data_; +} + std::string GetInstanceResult::getCode()const { return code_; } -bool GetInstanceResult::getSuccess()const -{ - return success_; -} - 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/GetInstanceTrendingReportRequest.cc b/ccc/src/model/GetInstanceTrendingReportRequest.cc new file mode 100644 index 000000000..cf5e4f4d1 --- /dev/null +++ b/ccc/src/model/GetInstanceTrendingReportRequest.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::GetInstanceTrendingReportRequest; + +GetInstanceTrendingReportRequest::GetInstanceTrendingReportRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetInstanceTrendingReport") +{ + setMethod(HttpRequest::Method::Post); +} + +GetInstanceTrendingReportRequest::~GetInstanceTrendingReportRequest() +{} + +long GetInstanceTrendingReportRequest::getEndTime()const +{ + return endTime_; +} + +void GetInstanceTrendingReportRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long GetInstanceTrendingReportRequest::getStartTime()const +{ + return startTime_; +} + +void GetInstanceTrendingReportRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string GetInstanceTrendingReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetInstanceTrendingReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/GetInstanceTrendingReportResult.cc b/ccc/src/model/GetInstanceTrendingReportResult.cc new file mode 100644 index 000000000..013f6cc92 --- /dev/null +++ b/ccc/src/model/GetInstanceTrendingReportResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetInstanceTrendingReportResult::GetInstanceTrendingReportResult() : + ServiceResult() +{} + +GetInstanceTrendingReportResult::GetInstanceTrendingReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceTrendingReportResult::~GetInstanceTrendingReportResult() +{} + +void GetInstanceTrendingReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allInboundNode = dataNode["Inbound"]["InboundItem"]; + for (auto dataNodeInboundInboundItem : allInboundNode) + { + Data::InboundItem inboundItemObject; + if(!dataNodeInboundInboundItem["CallsAbandonedInIVR"].isNull()) + inboundItemObject.callsAbandonedInIVR = std::stol(dataNodeInboundInboundItem["CallsAbandonedInIVR"].asString()); + if(!dataNodeInboundInboundItem["CallsAbandonedInQueue"].isNull()) + inboundItemObject.callsAbandonedInQueue = std::stol(dataNodeInboundInboundItem["CallsAbandonedInQueue"].asString()); + if(!dataNodeInboundInboundItem["CallsAbandonedInRinging"].isNull()) + inboundItemObject.callsAbandonedInRinging = std::stol(dataNodeInboundInboundItem["CallsAbandonedInRinging"].asString()); + if(!dataNodeInboundInboundItem["CallsHandled"].isNull()) + inboundItemObject.callsHandled = std::stol(dataNodeInboundInboundItem["CallsHandled"].asString()); + if(!dataNodeInboundInboundItem["CallsQueued"].isNull()) + inboundItemObject.callsQueued = std::stol(dataNodeInboundInboundItem["CallsQueued"].asString()); + if(!dataNodeInboundInboundItem["StatsTime"].isNull()) + inboundItemObject.statsTime = std::stol(dataNodeInboundInboundItem["StatsTime"].asString()); + if(!dataNodeInboundInboundItem["TotalCalls"].isNull()) + inboundItemObject.totalCalls = std::stol(dataNodeInboundInboundItem["TotalCalls"].asString()); + data_.inbound.push_back(inboundItemObject); + } + auto allOutboundNode = dataNode["Outbound"]["OutboundItem"]; + for (auto dataNodeOutboundOutboundItem : allOutboundNode) + { + Data::OutboundItem outboundItemObject; + if(!dataNodeOutboundOutboundItem["CallsAnswered"].isNull()) + outboundItemObject.callsAnswered = std::stol(dataNodeOutboundOutboundItem["CallsAnswered"].asString()); + if(!dataNodeOutboundOutboundItem["StatsTime"].isNull()) + outboundItemObject.statsTime = std::stol(dataNodeOutboundOutboundItem["StatsTime"].asString()); + if(!dataNodeOutboundOutboundItem["TotalCalls"].isNull()) + outboundItemObject.totalCalls = std::stol(dataNodeOutboundOutboundItem["TotalCalls"].asString()); + data_.outbound.push_back(outboundItemObject); + } + 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 GetInstanceTrendingReportResult::getMessage()const +{ + return message_; +} + +int GetInstanceTrendingReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetInstanceTrendingReportResult::Data GetInstanceTrendingReportResult::getData()const +{ + return data_; +} + +std::string GetInstanceTrendingReportResult::getCode()const +{ + return code_; +} + 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/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/GetInstanceStateRequest.cc b/ccc/src/model/GetMonoRecordingRequest.cc similarity index 54% rename from ccc/src/model/GetInstanceStateRequest.cc rename to ccc/src/model/GetMonoRecordingRequest.cc index 9e6ec2353..acc727b09 100644 --- a/ccc/src/model/GetInstanceStateRequest.cc +++ b/ccc/src/model/GetMonoRecordingRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetInstanceStateRequest; +using AlibabaCloud::CCC::Model::GetMonoRecordingRequest; -GetInstanceStateRequest::GetInstanceStateRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetInstanceState") +GetMonoRecordingRequest::GetMonoRecordingRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetMonoRecording") { setMethod(HttpRequest::Method::Post); } -GetInstanceStateRequest::~GetInstanceStateRequest() +GetMonoRecordingRequest::~GetMonoRecordingRequest() {} -std::string GetInstanceStateRequest::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 GetInstanceStateRequest::setInstanceId(const std::string& instanceId) +void GetMonoRecordingRequest::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/AbortPredictiveJobsResult.cc b/ccc/src/model/GetMonoRecordingResult.cc similarity index 62% rename from ccc/src/model/AbortPredictiveJobsResult.cc rename to ccc/src/model/GetMonoRecordingResult.cc index 7a459f8dd..b5438ecee 100644 --- a/ccc/src/model/AbortPredictiveJobsResult.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; -AbortPredictiveJobsResult::AbortPredictiveJobsResult() : +GetMonoRecordingResult::GetMonoRecordingResult() : ServiceResult() {} -AbortPredictiveJobsResult::AbortPredictiveJobsResult(const std::string &payload) : +GetMonoRecordingResult::GetMonoRecordingResult(const std::string &payload) : ServiceResult() { parse(payload); } -AbortPredictiveJobsResult::~AbortPredictiveJobsResult() +GetMonoRecordingResult::~GetMonoRecordingResult() {} -void AbortPredictiveJobsResult::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()); + 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["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 +std::string GetMonoRecordingResult::getMessage()const { return message_; } -int AbortPredictiveJobsResult::getHttpStatusCode()const +int GetMonoRecordingResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string AbortPredictiveJobsResult::getCode()const +GetMonoRecordingResult::Data GetMonoRecordingResult::getData()const +{ + return data_; +} + +std::string GetMonoRecordingResult::getCode()const { return code_; } -bool AbortPredictiveJobsResult::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/ModifyAgentDeviceResult.cc b/ccc/src/model/GetNumberLocationResult.cc similarity index 60% rename from ccc/src/model/ModifyAgentDeviceResult.cc rename to ccc/src/model/GetNumberLocationResult.cc index 85f9db3ff..61ff2a8d8 100644 --- a/ccc/src/model/ModifyAgentDeviceResult.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; -ModifyAgentDeviceResult::ModifyAgentDeviceResult() : +GetNumberLocationResult::GetNumberLocationResult() : ServiceResult() {} -ModifyAgentDeviceResult::ModifyAgentDeviceResult(const std::string &payload) : +GetNumberLocationResult::GetNumberLocationResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyAgentDeviceResult::~ModifyAgentDeviceResult() +GetNumberLocationResult::~GetNumberLocationResult() {} -void ModifyAgentDeviceResult::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 ModifyAgentDeviceResult::getMessage()const +std::string GetNumberLocationResult::getMessage()const { return message_; } -int ModifyAgentDeviceResult::getHttpStatusCode()const +int GetNumberLocationResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string ModifyAgentDeviceResult::getCode()const +GetNumberLocationResult::Data GetNumberLocationResult::getData()const +{ + return data_; +} + +std::string GetNumberLocationResult::getCode()const { return code_; } -bool ModifyAgentDeviceResult::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/GetJobRequest.cc b/ccc/src/model/GetRealtimeInstanceStatesRequest.cc similarity index 59% rename from ccc/src/model/GetJobRequest.cc rename to ccc/src/model/GetRealtimeInstanceStatesRequest.cc index 5a5ce9677..8d2ef37d3 100644 --- a/ccc/src/model/GetJobRequest.cc +++ b/ccc/src/model/GetRealtimeInstanceStatesRequest.cc @@ -14,36 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetJobRequest; +using AlibabaCloud::CCC::Model::GetRealtimeInstanceStatesRequest; -GetJobRequest::GetJobRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetJob") +GetRealtimeInstanceStatesRequest::GetRealtimeInstanceStatesRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetRealtimeInstanceStates") { setMethod(HttpRequest::Method::Post); } -GetJobRequest::~GetJobRequest() +GetRealtimeInstanceStatesRequest::~GetRealtimeInstanceStatesRequest() {} -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 GetRealtimeInstanceStatesRequest::getInstanceId()const { return instanceId_; } -void GetJobRequest::setInstanceId(const std::string& instanceId) +void GetRealtimeInstanceStatesRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/GetRealtimeInstanceStatesResult.cc b/ccc/src/model/GetRealtimeInstanceStatesResult.cc new file mode 100644 index 000000000..036749569 --- /dev/null +++ b/ccc/src/model/GetRealtimeInstanceStatesResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetRealtimeInstanceStatesResult::GetRealtimeInstanceStatesResult() : + ServiceResult() +{} + +GetRealtimeInstanceStatesResult::GetRealtimeInstanceStatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRealtimeInstanceStatesResult::~GetRealtimeInstanceStatesResult() +{} + +void GetRealtimeInstanceStatesResult::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["BreakingAgents"].isNull()) + data_.breakingAgents = std::stol(dataNode["BreakingAgents"].asString()); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["InteractiveCalls"].isNull()) + data_.interactiveCalls = std::stol(dataNode["InteractiveCalls"].asString()); + if(!dataNode["LoggedInAgents"].isNull()) + data_.loggedInAgents = std::stol(dataNode["LoggedInAgents"].asString()); + if(!dataNode["LongestCall"].isNull()) + data_.longestCall = std::stol(dataNode["LongestCall"].asString()); + if(!dataNode["ReadyAgents"].isNull()) + data_.readyAgents = std::stol(dataNode["ReadyAgents"].asString()); + if(!dataNode["TalkingAgents"].isNull()) + data_.talkingAgents = std::stol(dataNode["TalkingAgents"].asString()); + if(!dataNode["TotalAgents"].isNull()) + data_.totalAgents = std::stol(dataNode["TotalAgents"].asString()); + if(!dataNode["WaitingCalls"].isNull()) + data_.waitingCalls = std::stol(dataNode["WaitingCalls"].asString()); + if(!dataNode["WorkingAgents"].isNull()) + data_.workingAgents = std::stol(dataNode["WorkingAgents"].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 GetRealtimeInstanceStatesResult::getMessage()const +{ + return message_; +} + +int GetRealtimeInstanceStatesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetRealtimeInstanceStatesResult::Data GetRealtimeInstanceStatesResult::getData()const +{ + return data_; +} + +std::string GetRealtimeInstanceStatesResult::getCode()const +{ + return code_; +} + 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/DeleteInstanceRequest.cc b/ccc/src/model/GetTurnCredentialsRequest.cc similarity index 54% rename from ccc/src/model/DeleteInstanceRequest.cc rename to ccc/src/model/GetTurnCredentialsRequest.cc index abd5b0e59..fc15d1b39 100644 --- a/ccc/src/model/DeleteInstanceRequest.cc +++ b/ccc/src/model/GetTurnCredentialsRequest.cc @@ -14,36 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::DeleteInstanceRequest; +using AlibabaCloud::CCC::Model::GetTurnCredentialsRequest; -DeleteInstanceRequest::DeleteInstanceRequest() : - RpcServiceRequest("ccc", "2017-07-05", "DeleteInstance") +GetTurnCredentialsRequest::GetTurnCredentialsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "GetTurnCredentials") { setMethod(HttpRequest::Method::Post); } -DeleteInstanceRequest::~DeleteInstanceRequest() +GetTurnCredentialsRequest::~GetTurnCredentialsRequest() {} -std::string DeleteInstanceRequest::getAccessKeyId()const +std::string GetTurnCredentialsRequest::getUserId()const { - return accessKeyId_; + return userId_; } -void DeleteInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +void GetTurnCredentialsRequest::setUserId(const std::string& userId) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + userId_ = userId; + setParameter("UserId", userId); } -std::string DeleteInstanceRequest::getInstanceId()const +std::string GetTurnCredentialsRequest::getInstanceId()const { return instanceId_; } -void DeleteInstanceRequest::setInstanceId(const std::string& instanceId) +void GetTurnCredentialsRequest::setInstanceId(const std::string& instanceId) { 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/RemovePhoneNumberResult.cc b/ccc/src/model/GetTurnServerListResult.cc similarity index 61% rename from ccc/src/model/RemovePhoneNumberResult.cc rename to ccc/src/model/GetTurnServerListResult.cc index 5363a6739..56ee7e29b 100644 --- a/ccc/src/model/RemovePhoneNumberResult.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; -RemovePhoneNumberResult::RemovePhoneNumberResult() : +GetTurnServerListResult::GetTurnServerListResult() : ServiceResult() {} -RemovePhoneNumberResult::RemovePhoneNumberResult(const std::string &payload) : +GetTurnServerListResult::GetTurnServerListResult(const std::string &payload) : ServiceResult() { parse(payload); } -RemovePhoneNumberResult::~RemovePhoneNumberResult() +GetTurnServerListResult::~GetTurnServerListResult() {} -void RemovePhoneNumberResult::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 RemovePhoneNumberResult::getMessage()const +std::string GetTurnServerListResult::getMessage()const { return message_; } -int RemovePhoneNumberResult::getHttpStatusCode()const +int GetTurnServerListResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string RemovePhoneNumberResult::getCode()const +std::vector GetTurnServerListResult::getParams()const +{ + return params_; +} + +std::string GetTurnServerListResult::getData()const +{ + return data_; +} + +std::string GetTurnServerListResult::getCode()const { return code_; } -bool RemovePhoneNumberResult::getSuccess()const -{ - return success_; -} - 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/GetUserRequest.cc b/ccc/src/model/GetUserRequest.cc index d6a4dd972..4aba127b5 100644 --- a/ccc/src/model/GetUserRequest.cc +++ b/ccc/src/model/GetUserRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::GetUserRequest; GetUserRequest::GetUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetUser") + RpcServiceRequest("ccc", "2020-07-01", "GetUser") { setMethod(HttpRequest::Method::Post); } @@ -27,15 +27,15 @@ GetUserRequest::GetUserRequest() : GetUserRequest::~GetUserRequest() {} -std::string GetUserRequest::getInstanceId()const +std::string GetUserRequest::getExtension()const { - return instanceId_; + return extension_; } -void GetUserRequest::setInstanceId(const std::string& instanceId) +void GetUserRequest::setExtension(const std::string& extension) { - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + extension_ = extension; + setParameter("Extension", extension); } std::string GetUserRequest::getUserId()const @@ -49,14 +49,14 @@ void GetUserRequest::setUserId(const std::string& userId) setParameter("UserId", userId); } -std::string GetUserRequest::getAccessKeyId()const +std::string GetUserRequest::getInstanceId()const { - return accessKeyId_; + return instanceId_; } -void GetUserRequest::setAccessKeyId(const std::string& accessKeyId) +void GetUserRequest::setInstanceId(const std::string& instanceId) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); } diff --git a/ccc/src/model/GetUserResult.cc b/ccc/src/model/GetUserResult.cc index b085d8f63..8eadb889b 100644 --- a/ccc/src/model/GetUserResult.cc +++ b/ccc/src/model/GetUserResult.cc @@ -39,73 +39,39 @@ void GetUserResult::parse(const std::string &payload) 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"; + auto dataNode = value["Data"]; + if(!dataNode["DisplayName"].isNull()) + data_.displayName = dataNode["DisplayName"].asString(); + if(!dataNode["Email"].isNull()) + data_.email = dataNode["Email"].asString(); + if(!dataNode["Extension"].isNull()) + data_.extension = dataNode["Extension"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["LoginName"].isNull()) + data_.loginName = dataNode["LoginName"].asString(); + if(!dataNode["Mobile"].isNull()) + data_.mobile = dataNode["Mobile"].asString(); + if(!dataNode["RoleId"].isNull()) + data_.roleId = dataNode["RoleId"].asString(); + if(!dataNode["RoleName"].isNull()) + data_.roleName = dataNode["RoleName"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["WorkMode"].isNull()) + data_.workMode = dataNode["WorkMode"].asString(); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -GetUserResult::User GetUserResult::getUser()const -{ - return user_; -} - std::string GetUserResult::getMessage()const { return message_; @@ -116,13 +82,18 @@ int GetUserResult::getHttpStatusCode()const return httpStatusCode_; } +std::vector GetUserResult::getParams()const +{ + return params_; +} + +GetUserResult::Data GetUserResult::getData()const +{ + return data_; +} + 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 index 633199aab..9a661e9ad 100644 --- a/ccc/src/model/ListAgentStateLogsRequest.cc +++ b/ccc/src/model/ListAgentStateLogsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ListAgentStateLogsRequest; ListAgentStateLogsRequest::ListAgentStateLogsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListAgentStateLogs") + RpcServiceRequest("ccc", "2020-07-01", "ListAgentStateLogs") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ ListAgentStateLogsRequest::ListAgentStateLogsRequest() : ListAgentStateLogsRequest::~ListAgentStateLogsRequest() {} +std::string ListAgentStateLogsRequest::getAgentId()const +{ + return agentId_; +} + +void ListAgentStateLogsRequest::setAgentId(const std::string& agentId) +{ + agentId_ = agentId; + setParameter("AgentId", agentId); +} + long ListAgentStateLogsRequest::getEndTime()const { return endTime_; @@ -49,39 +60,6 @@ void ListAgentStateLogsRequest::setStartTime(long 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_; @@ -93,14 +71,3 @@ void ListAgentStateLogsRequest::setInstanceId(const std::string& 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 index d44a8eeb6..2c8617eda 100644 --- a/ccc/src/model/ListAgentStateLogsResult.cc +++ b/ccc/src/model/ListAgentStateLogsResult.cc @@ -39,45 +39,26 @@ void ListAgentStateLogsResult::parse(const std::string &payload) 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) + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) { - 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); + DataItem dataObject; + if(!valueDataDataItem["Duration"].isNull()) + dataObject.duration = std::stol(valueDataDataItem["Duration"].asString()); + if(!valueDataDataItem["StartTime"].isNull()) + dataObject.startTime = std::stol(valueDataDataItem["StartTime"].asString()); + if(!valueDataDataItem["State"].isNull()) + dataObject.state = valueDataDataItem["State"].asString(); + if(!valueDataDataItem["StateCode"].isNull()) + dataObject.stateCode = valueDataDataItem["StateCode"].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(); } @@ -91,18 +72,13 @@ int ListAgentStateLogsResult::getHttpStatusCode()const return httpStatusCode_; } +std::vector ListAgentStateLogsResult::getData()const +{ + return data_; +} + 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/ListUnreachableContactsRequest.cc b/ccc/src/model/ListBriefSkillGroupsRequest.cc similarity index 50% rename from ccc/src/model/ListUnreachableContactsRequest.cc rename to ccc/src/model/ListBriefSkillGroupsRequest.cc index e2ff38bd5..51292e702 100644 --- a/ccc/src/model/ListUnreachableContactsRequest.cc +++ b/ccc/src/model/ListBriefSkillGroupsRequest.cc @@ -14,58 +14,58 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListUnreachableContactsRequest; +using AlibabaCloud::CCC::Model::ListBriefSkillGroupsRequest; -ListUnreachableContactsRequest::ListUnreachableContactsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListUnreachableContacts") +ListBriefSkillGroupsRequest::ListBriefSkillGroupsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListBriefSkillGroups") { setMethod(HttpRequest::Method::Post); } -ListUnreachableContactsRequest::~ListUnreachableContactsRequest() +ListBriefSkillGroupsRequest::~ListBriefSkillGroupsRequest() {} -int ListUnreachableContactsRequest::getPageNumber()const +int ListBriefSkillGroupsRequest::getPageNumber()const { return pageNumber_; } -void ListUnreachableContactsRequest::setPageNumber(int pageNumber) +void ListBriefSkillGroupsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListUnreachableContactsRequest::getInstanceId()const +std::string ListBriefSkillGroupsRequest::getSearchPattern()const +{ + return searchPattern_; +} + +void ListBriefSkillGroupsRequest::setSearchPattern(const std::string& searchPattern) +{ + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); +} + +std::string ListBriefSkillGroupsRequest::getInstanceId()const { return instanceId_; } -void ListUnreachableContactsRequest::setInstanceId(const std::string& instanceId) +void ListBriefSkillGroupsRequest::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 +int ListBriefSkillGroupsRequest::getPageSize()const { return pageSize_; } -void ListUnreachableContactsRequest::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..2b27b770a 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,26 @@ 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); + calledNumber_ = calledNumber; + setParameter("CalledNumber", calledNumber); } -std::string ListCallDetailRecordsRequest::getInstanceId()const +std::string ListCallDetailRecordsRequest::getSatisfactionList()const { - return instanceId_; + return satisfactionList_; } -void ListCallDetailRecordsRequest::setInstanceId(const std::string& instanceId) +void ListCallDetailRecordsRequest::setSatisfactionList(const std::string& satisfactionList) { - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListCallDetailRecordsRequest::getContactDisposition()const -{ - return contactDisposition_; -} - -void ListCallDetailRecordsRequest::setContactDisposition(const std::string& contactDisposition) -{ - contactDisposition_ = contactDisposition; - setParameter("ContactDisposition", contactDisposition); + satisfactionList_ = satisfactionList; + setParameter("SatisfactionList", satisfactionList); } int ListCallDetailRecordsRequest::getPageSize()const @@ -159,14 +104,102 @@ void ListCallDetailRecordsRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } -bool ListCallDetailRecordsRequest::getWithRecording()const +std::string ListCallDetailRecordsRequest::getSortOrder()const { - return withRecording_; + return sortOrder_; } -void ListCallDetailRecordsRequest::setWithRecording(bool withRecording) +void ListCallDetailRecordsRequest::setSortOrder(const std::string& sortOrder) { - withRecording_ = withRecording; - setParameter("WithRecording", withRecording ? "true" : "false"); + sortOrder_ = sortOrder; + setParameter("SortOrder", sortOrder); +} + +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); +} + +std::string ListCallDetailRecordsRequest::getSatisfactionSurveyChannel()const +{ + return satisfactionSurveyChannel_; +} + +void ListCallDetailRecordsRequest::setSatisfactionSurveyChannel(const std::string& satisfactionSurveyChannel) +{ + satisfactionSurveyChannel_ = satisfactionSurveyChannel; + setParameter("SatisfactionSurveyChannel", satisfactionSurveyChannel); +} + +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..0c8881e4a 100644 --- a/ccc/src/model/ListCallDetailRecordsResult.cc +++ b/ccc/src/model/ListCallDetailRecordsResult.cc @@ -39,91 +39,63 @@ 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["RecordingReady"].isNull()) + callDetailRecordObject.recordingReady = dataNodeListCallDetailRecord["RecordingReady"].asString() == "true"; + if(!dataNodeListCallDetailRecord["ReleaseInitiator"].isNull()) + callDetailRecordObject.releaseInitiator = dataNodeListCallDetailRecord["ReleaseInitiator"].asString(); + if(!dataNodeListCallDetailRecord["ReleaseTime"].isNull()) + callDetailRecordObject.releaseTime = std::stol(dataNodeListCallDetailRecord["ReleaseTime"].asString()); + if(!dataNodeListCallDetailRecord["Satisfaction"].isNull()) + callDetailRecordObject.satisfaction = std::stoi(dataNodeListCallDetailRecord["Satisfaction"].asString()); + if(!dataNodeListCallDetailRecord["SatisfactionSurveyChannel"].isNull()) + callDetailRecordObject.satisfactionSurveyChannel = dataNodeListCallDetailRecord["SatisfactionSurveyChannel"].asString(); + if(!dataNodeListCallDetailRecord["SatisfactionSurveyOffered"].isNull()) + callDetailRecordObject.satisfactionSurveyOffered = dataNodeListCallDetailRecord["SatisfactionSurveyOffered"].asString() == "true"; + 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 +104,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/ListContactFlowsRequest.cc b/ccc/src/model/ListContactFlowsRequest.cc index 5dcc3c1c6..51012251c 100644 --- a/ccc/src/model/ListContactFlowsRequest.cc +++ b/ccc/src/model/ListContactFlowsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ListContactFlowsRequest; ListContactFlowsRequest::ListContactFlowsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListContactFlows") + RpcServiceRequest("ccc", "2020-07-01", "ListContactFlows") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,28 @@ ListContactFlowsRequest::ListContactFlowsRequest() : ListContactFlowsRequest::~ListContactFlowsRequest() {} +std::string ListContactFlowsRequest::getType()const +{ + return type_; +} + +void ListContactFlowsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +int ListContactFlowsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListContactFlowsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + std::string ListContactFlowsRequest::getInstanceId()const { return instanceId_; @@ -38,14 +60,14 @@ void ListContactFlowsRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string ListContactFlowsRequest::getAccessKeyId()const +int ListContactFlowsRequest::getPageSize()const { - return accessKeyId_; + return pageSize_; } -void ListContactFlowsRequest::setAccessKeyId(const std::string& accessKeyId) +void ListContactFlowsRequest::setPageSize(int pageSize) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); } diff --git a/ccc/src/model/ListContactFlowsResult.cc b/ccc/src/model/ListContactFlowsResult.cc index 259a20f4f..68279ea37 100644 --- a/ccc/src/model/ListContactFlowsResult.cc +++ b/ccc/src/model/ListContactFlowsResult.cc @@ -39,76 +39,50 @@ void ListContactFlowsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allContactFlowsNode = value["ContactFlows"]["ContactFlow"]; - for (auto valueContactFlowsContactFlow : allContactFlowsNode) + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["ContactFlow"]; + for (auto dataNodeListContactFlow : allListNode) { - 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); + Data::ContactFlow contactFlowObject; + if(!dataNodeListContactFlow["ContactFlowId"].isNull()) + contactFlowObject.contactFlowId = dataNodeListContactFlow["ContactFlowId"].asString(); + if(!dataNodeListContactFlow["CreatedTime"].isNull()) + contactFlowObject.createdTime = dataNodeListContactFlow["CreatedTime"].asString(); + if(!dataNodeListContactFlow["Definition"].isNull()) + contactFlowObject.definition = dataNodeListContactFlow["Definition"].asString(); + if(!dataNodeListContactFlow["Description"].isNull()) + contactFlowObject.description = dataNodeListContactFlow["Description"].asString(); + if(!dataNodeListContactFlow["DraftId"].isNull()) + contactFlowObject.draftId = dataNodeListContactFlow["DraftId"].asString(); + if(!dataNodeListContactFlow["Editor"].isNull()) + contactFlowObject.editor = dataNodeListContactFlow["Editor"].asString(); + if(!dataNodeListContactFlow["InstanceId"].isNull()) + contactFlowObject.instanceId = dataNodeListContactFlow["InstanceId"].asString(); + if(!dataNodeListContactFlow["Name"].isNull()) + contactFlowObject.name = dataNodeListContactFlow["Name"].asString(); + if(!dataNodeListContactFlow["Published"].isNull()) + contactFlowObject.published = dataNodeListContactFlow["Published"].asString() == "true"; + if(!dataNodeListContactFlow["Type"].isNull()) + contactFlowObject.type = dataNodeListContactFlow["Type"].asString(); + if(!dataNodeListContactFlow["UpdatedTime"].isNull()) + contactFlowObject.updatedTime = dataNodeListContactFlow["UpdatedTime"].asString(); + auto allNumberList = value["NumberList"]["NumberList"]; + for (auto value : allNumberList) + contactFlowObject.numberList.push_back(value.asString()); + data_.list.push_back(contactFlowObject); } - if(!value["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(); } @@ -117,23 +91,18 @@ std::string ListContactFlowsResult::getMessage()const return message_; } -std::vector ListContactFlowsResult::getContactFlows()const -{ - return contactFlows_; -} - int ListContactFlowsResult::getHttpStatusCode()const { return httpStatusCode_; } +ListContactFlowsResult::Data ListContactFlowsResult::getData()const +{ + return data_; +} + 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..08297e18a --- /dev/null +++ b/ccc/src/model/ListHistoricalAgentReportResult.cc @@ -0,0 +1,210 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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["AverageHoldTime"].isNull()) + itemsObject.inbound.averageHoldTime = std::stof(inboundNode["AverageHoldTime"].asString()); + 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["CallsTransferred"].isNull()) + itemsObject.inbound.callsTransferred = std::stol(inboundNode["CallsTransferred"].asString()); + if(!inboundNode["HandleRate"].isNull()) + itemsObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["MaxHoldTime"].isNull()) + itemsObject.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].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["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["AverageHoldTime"].isNull()) + itemsObject.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + itemsObject.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + itemsObject.outbound.averageWorkTime = std::stof(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["CallsDialedSuccess"].isNull()) + itemsObject.outbound.callsDialedSuccess = std::stol(outboundNode["CallsDialedSuccess"].asString()); + if(!outboundNode["CallsHold"].isNull()) + itemsObject.outbound.callsHold = std::stol(outboundNode["CallsHold"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + itemsObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["MaxHoldTime"].isNull()) + itemsObject.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].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/ListHistoricalSkillGroupReportRequest.cc b/ccc/src/model/ListHistoricalSkillGroupReportRequest.cc new file mode 100644 index 000000000..abf5790da --- /dev/null +++ b/ccc/src/model/ListHistoricalSkillGroupReportRequest.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::ListHistoricalSkillGroupReportRequest; + +ListHistoricalSkillGroupReportRequest::ListHistoricalSkillGroupReportRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListHistoricalSkillGroupReport") +{ + setMethod(HttpRequest::Method::Post); +} + +ListHistoricalSkillGroupReportRequest::~ListHistoricalSkillGroupReportRequest() +{} + +long ListHistoricalSkillGroupReportRequest::getEndTime()const +{ + return endTime_; +} + +void ListHistoricalSkillGroupReportRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListHistoricalSkillGroupReportRequest::getStartTime()const +{ + return startTime_; +} + +void ListHistoricalSkillGroupReportRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +int ListHistoricalSkillGroupReportRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListHistoricalSkillGroupReportRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListHistoricalSkillGroupReportRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void ListHistoricalSkillGroupReportRequest::setSkillGroupIdList(const std::string& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + setBodyParameter("SkillGroupIdList", skillGroupIdList); +} + +std::string ListHistoricalSkillGroupReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListHistoricalSkillGroupReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListHistoricalSkillGroupReportRequest::getPageSize()const +{ + return pageSize_; +} + +void ListHistoricalSkillGroupReportRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListHistoricalSkillGroupReportResult.cc b/ccc/src/model/ListHistoricalSkillGroupReportResult.cc new file mode 100644 index 000000000..7cadfb59a --- /dev/null +++ b/ccc/src/model/ListHistoricalSkillGroupReportResult.cc @@ -0,0 +1,236 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListHistoricalSkillGroupReportResult::ListHistoricalSkillGroupReportResult() : + ServiceResult() +{} + +ListHistoricalSkillGroupReportResult::ListHistoricalSkillGroupReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListHistoricalSkillGroupReportResult::~ListHistoricalSkillGroupReportResult() +{} + +void ListHistoricalSkillGroupReportResult::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["SkillGroupId"].isNull()) + itemsObject.skillGroupId = dataNodeListItems["SkillGroupId"].asString(); + if(!dataNodeListItems["SkillGroupName"].isNull()) + itemsObject.skillGroupName = dataNodeListItems["SkillGroupName"].asString(); + auto inboundNode = value["Inbound"]; + if(!inboundNode["AbandonRate"].isNull()) + itemsObject.inbound.abandonRate = std::stof(inboundNode["AbandonRate"].asString()); + if(!inboundNode["AverageAbandonTime"].isNull()) + itemsObject.inbound.averageAbandonTime = std::stof(inboundNode["AverageAbandonTime"].asString()); + if(!inboundNode["AverageAbandonedInQueueTime"].isNull()) + itemsObject.inbound.averageAbandonedInQueueTime = std::stof(inboundNode["AverageAbandonedInQueueTime"].asString()); + if(!inboundNode["AverageAbandonedInRingTime"].isNull()) + itemsObject.inbound.averageAbandonedInRingTime = std::stof(inboundNode["AverageAbandonedInRingTime"].asString()); + 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["AverageWaitTime"].isNull()) + itemsObject.inbound.averageWaitTime = std::stof(inboundNode["AverageWaitTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + itemsObject.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["CallsAbandoned"].isNull()) + itemsObject.inbound.callsAbandoned = std::stol(inboundNode["CallsAbandoned"].asString()); + if(!inboundNode["CallsAbandonedInQueue"].isNull()) + itemsObject.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); + if(!inboundNode["CallsAbandonedInRinging"].isNull()) + itemsObject.inbound.callsAbandonedInRinging = std::stol(inboundNode["CallsAbandonedInRinging"].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["CallsQueued"].isNull()) + itemsObject.inbound.callsQueued = std::stol(inboundNode["CallsQueued"].asString()); + if(!inboundNode["CallsRinged"].isNull()) + itemsObject.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString()); + if(!inboundNode["CallsTransferred"].isNull()) + itemsObject.inbound.callsTransferred = std::stol(inboundNode["CallsTransferred"].asString()); + if(!inboundNode["HandleRate"].isNull()) + itemsObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["MaxAbandonTime"].isNull()) + itemsObject.inbound.maxAbandonTime = std::stol(inboundNode["MaxAbandonTime"].asString()); + if(!inboundNode["MaxAbandonedInQueueTime"].isNull()) + itemsObject.inbound.maxAbandonedInQueueTime = std::stol(inboundNode["MaxAbandonedInQueueTime"].asString()); + if(!inboundNode["MaxAbandonedInRingTime"].isNull()) + itemsObject.inbound.maxAbandonedInRingTime = std::stol(inboundNode["MaxAbandonedInRingTime"].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["MaxWaitTime"].isNull()) + itemsObject.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].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::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalAbandonTime"].isNull()) + itemsObject.inbound.totalAbandonTime = std::stol(inboundNode["TotalAbandonTime"].asString()); + if(!inboundNode["TotalAbandonedInQueueTime"].isNull()) + itemsObject.inbound.totalAbandonedInQueueTime = std::stol(inboundNode["TotalAbandonedInQueueTime"].asString()); + if(!inboundNode["TotalAbandonedInRingTime"].isNull()) + itemsObject.inbound.totalAbandonedInRingTime = std::stol(inboundNode["TotalAbandonedInRingTime"].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["TotalWaitTime"].isNull()) + itemsObject.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].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::stof(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 ListHistoricalSkillGroupReportResult::getMessage()const +{ + return message_; +} + +int ListHistoricalSkillGroupReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListHistoricalSkillGroupReportResult::Data ListHistoricalSkillGroupReportResult::getData()const +{ + return data_; +} + +std::string ListHistoricalSkillGroupReportResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListInstancesOfUserRequest.cc b/ccc/src/model/ListInstancesOfUserRequest.cc index 7b5a8c079..b14d7ee38 100644 --- a/ccc/src/model/ListInstancesOfUserRequest.cc +++ b/ccc/src/model/ListInstancesOfUserRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ListInstancesOfUserRequest; ListInstancesOfUserRequest::ListInstancesOfUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListInstancesOfUser") + RpcServiceRequest("ccc", "2020-07-01", "ListInstancesOfUser") { setMethod(HttpRequest::Method::Post); } @@ -27,14 +27,25 @@ ListInstancesOfUserRequest::ListInstancesOfUserRequest() : ListInstancesOfUserRequest::~ListInstancesOfUserRequest() {} -std::string ListInstancesOfUserRequest::getAccessKeyId()const +int ListInstancesOfUserRequest::getPageNumber()const { - return accessKeyId_; + return pageNumber_; } -void ListInstancesOfUserRequest::setAccessKeyId(const std::string& accessKeyId) +void ListInstancesOfUserRequest::setPageNumber(int pageNumber) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListInstancesOfUserRequest::getPageSize()const +{ + return pageSize_; +} + +void ListInstancesOfUserRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); } diff --git a/ccc/src/model/ListInstancesOfUserResult.cc b/ccc/src/model/ListInstancesOfUserResult.cc index 8ea209999..64288a306 100644 --- a/ccc/src/model/ListInstancesOfUserResult.cc +++ b/ccc/src/model/ListInstancesOfUserResult.cc @@ -39,103 +39,113 @@ void ListInstancesOfUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allInstancesNode = value["Instances"]["CallCenterInstance"]; - for (auto valueInstancesCallCenterInstance : allInstancesNode) + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["CallCenterInstance"]; + for (auto dataNodeListCallCenterInstance : allListNode) { - 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) + Data::CallCenterInstance callCenterInstanceObject; + if(!dataNodeListCallCenterInstance["AliyunUid"].isNull()) + callCenterInstanceObject.aliyunUid = dataNodeListCallCenterInstance["AliyunUid"].asString(); + if(!dataNodeListCallCenterInstance["ConsoleUrl"].isNull()) + callCenterInstanceObject.consoleUrl = dataNodeListCallCenterInstance["ConsoleUrl"].asString(); + if(!dataNodeListCallCenterInstance["Description"].isNull()) + callCenterInstanceObject.description = dataNodeListCallCenterInstance["Description"].asString(); + if(!dataNodeListCallCenterInstance["DomainName"].isNull()) + callCenterInstanceObject.domainName = dataNodeListCallCenterInstance["DomainName"].asString(); + if(!dataNodeListCallCenterInstance["Id"].isNull()) + callCenterInstanceObject.id = dataNodeListCallCenterInstance["Id"].asString(); + if(!dataNodeListCallCenterInstance["Name"].isNull()) + callCenterInstanceObject.name = dataNodeListCallCenterInstance["Name"].asString(); + if(!dataNodeListCallCenterInstance["Status"].isNull()) + callCenterInstanceObject.status = dataNodeListCallCenterInstance["Status"].asString(); + auto allAdminListNode = dataNodeListCallCenterInstance["AdminList"]["User"]; + for (auto dataNodeListCallCenterInstanceAdminListUser : allAdminListNode) { - 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); + Data::CallCenterInstance::User adminListObject; + if(!dataNodeListCallCenterInstanceAdminListUser["DisplayName"].isNull()) + adminListObject.displayName = dataNodeListCallCenterInstanceAdminListUser["DisplayName"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["Email"].isNull()) + adminListObject.email = dataNodeListCallCenterInstanceAdminListUser["Email"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["Extension"].isNull()) + adminListObject.extension = dataNodeListCallCenterInstanceAdminListUser["Extension"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["InstanceId"].isNull()) + adminListObject.instanceId = dataNodeListCallCenterInstanceAdminListUser["InstanceId"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["LoginName"].isNull()) + adminListObject.loginName = dataNodeListCallCenterInstanceAdminListUser["LoginName"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["Mobile"].isNull()) + adminListObject.mobile = dataNodeListCallCenterInstanceAdminListUser["Mobile"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["RoleId"].isNull()) + adminListObject.roleId = dataNodeListCallCenterInstanceAdminListUser["RoleId"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["RoleName"].isNull()) + adminListObject.roleName = dataNodeListCallCenterInstanceAdminListUser["RoleName"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["UserId"].isNull()) + adminListObject.userId = dataNodeListCallCenterInstanceAdminListUser["UserId"].asString(); + if(!dataNodeListCallCenterInstanceAdminListUser["WorkMode"].isNull()) + adminListObject.workMode = dataNodeListCallCenterInstanceAdminListUser["WorkMode"].asString(); + callCenterInstanceObject.adminList.push_back(adminListObject); } - auto allPhoneNumbersNode = valueInstancesCallCenterInstance["PhoneNumbers"]["PhoneNumber"]; - for (auto valueInstancesCallCenterInstancePhoneNumbersPhoneNumber : allPhoneNumbersNode) + auto allNumberListNode = dataNodeListCallCenterInstance["NumberList"]["PhoneNumber"]; + for (auto dataNodeListCallCenterInstanceNumberListPhoneNumber : allNumberListNode) { - 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); + Data::CallCenterInstance::PhoneNumber numberListObject; + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Active"].isNull()) + numberListObject.active = dataNodeListCallCenterInstanceNumberListPhoneNumber["Active"].asString() == "true"; + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["City"].isNull()) + numberListObject.city = dataNodeListCallCenterInstanceNumberListPhoneNumber["City"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["ContactFlowId"].isNull()) + numberListObject.contactFlowId = dataNodeListCallCenterInstanceNumberListPhoneNumber["ContactFlowId"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["InstanceId"].isNull()) + numberListObject.instanceId = dataNodeListCallCenterInstanceNumberListPhoneNumber["InstanceId"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].isNull()) + numberListObject.number = dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Province"].isNull()) + numberListObject.province = dataNodeListCallCenterInstanceNumberListPhoneNumber["Province"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Usage"].isNull()) + numberListObject.usage = dataNodeListCallCenterInstanceNumberListPhoneNumber["Usage"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["UserId"].isNull()) + numberListObject.userId = dataNodeListCallCenterInstanceNumberListPhoneNumber["UserId"].asString(); + auto allSkillGroupsNode = dataNodeListCallCenterInstanceNumberListPhoneNumber["SkillGroups"]["SkillGroup"]; + for (auto dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode) + { + Data::CallCenterInstance::PhoneNumber::SkillGroup skillGroupsObject; + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Description"].isNull()) + skillGroupsObject.description = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Description"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].isNull()) + skillGroupsObject.displayName = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].isNull()) + skillGroupsObject.instanceId = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Name"].isNull()) + skillGroupsObject.name = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Name"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].isNull()) + skillGroupsObject.phoneNumberCount = std::stoi(dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].asString()); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull()) + skillGroupsObject.skillGroupId = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString(); + if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].isNull()) + skillGroupsObject.userCount = std::stoi(dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].asString()); + numberListObject.skillGroups.push_back(skillGroupsObject); + } + callCenterInstanceObject.numberList.push_back(numberListObject); } - instances_.push_back(instancesObject); + data_.list.push_back(callCenterInstanceObject); } - 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::vector ListInstancesOfUserResult::getInstances()const -{ - return instances_; -} - std::string ListInstancesOfUserResult::getMessage()const { return message_; @@ -146,13 +156,18 @@ int ListInstancesOfUserResult::getHttpStatusCode()const return httpStatusCode_; } +std::vector ListInstancesOfUserResult::getParams()const +{ + return params_; +} + +ListInstancesOfUserResult::Data ListInstancesOfUserResult::getData()const +{ + return data_; +} + std::string ListInstancesOfUserResult::getCode()const { return code_; } -bool ListInstancesOfUserResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListIntervalAgentReportRequest.cc b/ccc/src/model/ListIntervalAgentReportRequest.cc new file mode 100644 index 000000000..d38a60a64 --- /dev/null +++ b/ccc/src/model/ListIntervalAgentReportRequest.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::ListIntervalAgentReportRequest; + +ListIntervalAgentReportRequest::ListIntervalAgentReportRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListIntervalAgentReport") +{ + setMethod(HttpRequest::Method::Post); +} + +ListIntervalAgentReportRequest::~ListIntervalAgentReportRequest() +{} + +std::string ListIntervalAgentReportRequest::getAgentId()const +{ + return agentId_; +} + +void ListIntervalAgentReportRequest::setAgentId(const std::string& agentId) +{ + agentId_ = agentId; + setParameter("AgentId", agentId); +} + +long ListIntervalAgentReportRequest::getEndTime()const +{ + return endTime_; +} + +void ListIntervalAgentReportRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListIntervalAgentReportRequest::getStartTime()const +{ + return startTime_; +} + +void ListIntervalAgentReportRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListIntervalAgentReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListIntervalAgentReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListIntervalAgentReportRequest::getInterval()const +{ + return interval_; +} + +void ListIntervalAgentReportRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + diff --git a/ccc/src/model/ListIntervalAgentReportResult.cc b/ccc/src/model/ListIntervalAgentReportResult.cc new file mode 100644 index 000000000..759e49504 --- /dev/null +++ b/ccc/src/model/ListIntervalAgentReportResult.cc @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListIntervalAgentReportResult::ListIntervalAgentReportResult() : + ServiceResult() +{} + +ListIntervalAgentReportResult::ListIntervalAgentReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIntervalAgentReportResult::~ListIntervalAgentReportResult() +{} + +void ListIntervalAgentReportResult::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["StatsTime"].isNull()) + dataObject.statsTime = std::stol(valueDataDataItem["StatsTime"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["AverageRingTime"].isNull()) + dataObject.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + dataObject.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + dataObject.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["CallsConsulted"].isNull()) + dataObject.inbound.callsConsulted = std::stol(inboundNode["CallsConsulted"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + dataObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["CallsHold"].isNull()) + dataObject.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + dataObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsTransferred"].isNull()) + dataObject.inbound.callsTransferred = std::stol(inboundNode["CallsTransferred"].asString()); + if(!inboundNode["HandleRate"].isNull()) + dataObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + dataObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + dataObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + dataObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + dataObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + dataObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + dataObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["TotalHoldTime"].isNull()) + dataObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + dataObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + dataObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + dataObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["AnswerRate"].isNull()) + dataObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + dataObject.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + dataObject.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + dataObject.outbound.averageWorkTime = std::stof(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + dataObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["CallsDialed"].isNull()) + dataObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + dataObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + dataObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + dataObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + dataObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + dataObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + dataObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + dataObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["TotalHoldTime"].isNull()) + dataObject.outbound.totalHoldTime = std::stol(outboundNode["TotalHoldTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + dataObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + dataObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + auto overallNode = value["Overall"]; + if(!overallNode["AverageBreakTime"].isNull()) + dataObject.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + dataObject.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + dataObject.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + dataObject.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString()); + if(!overallNode["FirstCheckInTime"].isNull()) + dataObject.overall.firstCheckInTime = std::stol(overallNode["FirstCheckInTime"].asString()); + if(!overallNode["LastCheckoutTime"].isNull()) + dataObject.overall.lastCheckoutTime = std::stol(overallNode["LastCheckoutTime"].asString()); + if(!overallNode["MaxBreakTime"].isNull()) + dataObject.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + dataObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + dataObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + dataObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + dataObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + dataObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + dataObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + dataObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + dataObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["TotalCalls"].isNull()) + dataObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalHoldTime"].isNull()) + dataObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + dataObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + dataObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + dataObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + dataObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].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(); + +} + +std::string ListIntervalAgentReportResult::getMessage()const +{ + return message_; +} + +int ListIntervalAgentReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListIntervalAgentReportResult::getData()const +{ + return data_; +} + +std::string ListIntervalAgentReportResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListIntervalInstanceReportRequest.cc b/ccc/src/model/ListIntervalInstanceReportRequest.cc new file mode 100644 index 000000000..92c36e751 --- /dev/null +++ b/ccc/src/model/ListIntervalInstanceReportRequest.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::ListIntervalInstanceReportRequest; + +ListIntervalInstanceReportRequest::ListIntervalInstanceReportRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListIntervalInstanceReport") +{ + setMethod(HttpRequest::Method::Post); +} + +ListIntervalInstanceReportRequest::~ListIntervalInstanceReportRequest() +{} + +long ListIntervalInstanceReportRequest::getEndTime()const +{ + return endTime_; +} + +void ListIntervalInstanceReportRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListIntervalInstanceReportRequest::getStartTime()const +{ + return startTime_; +} + +void ListIntervalInstanceReportRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListIntervalInstanceReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListIntervalInstanceReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListIntervalInstanceReportRequest::getInterval()const +{ + return interval_; +} + +void ListIntervalInstanceReportRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + diff --git a/ccc/src/model/ListIntervalInstanceReportResult.cc b/ccc/src/model/ListIntervalInstanceReportResult.cc new file mode 100644 index 000000000..5582bed1e --- /dev/null +++ b/ccc/src/model/ListIntervalInstanceReportResult.cc @@ -0,0 +1,245 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListIntervalInstanceReportResult::ListIntervalInstanceReportResult() : + ServiceResult() +{} + +ListIntervalInstanceReportResult::ListIntervalInstanceReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIntervalInstanceReportResult::~ListIntervalInstanceReportResult() +{} + +void ListIntervalInstanceReportResult::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["StatsTime"].isNull()) + dataObject.statsTime = std::stol(valueDataDataItem["StatsTime"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["AbandonedRate"].isNull()) + dataObject.inbound.abandonedRate = std::stof(inboundNode["AbandonedRate"].asString()); + if(!inboundNode["AverageAbandonTime"].isNull()) + dataObject.inbound.averageAbandonTime = std::stof(inboundNode["AverageAbandonTime"].asString()); + if(!inboundNode["AverageAbandonedInIVRTime"].isNull()) + dataObject.inbound.averageAbandonedInIVRTime = std::stof(inboundNode["AverageAbandonedInIVRTime"].asString()); + if(!inboundNode["AverageAbandonedInQueueTime"].isNull()) + dataObject.inbound.averageAbandonedInQueueTime = std::stof(inboundNode["AverageAbandonedInQueueTime"].asString()); + if(!inboundNode["AverageAbandonedInRingTime"].isNull()) + dataObject.inbound.averageAbandonedInRingTime = std::stof(inboundNode["AverageAbandonedInRingTime"].asString()); + if(!inboundNode["AverageHoldTime"].isNull()) + dataObject.inbound.averageHoldTime = std::stof(inboundNode["AverageHoldTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + dataObject.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + dataObject.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["AverageWaitTime"].isNull()) + dataObject.inbound.averageWaitTime = std::stof(inboundNode["AverageWaitTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + dataObject.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["CallsAbandoned"].isNull()) + dataObject.inbound.callsAbandoned = std::stol(inboundNode["CallsAbandoned"].asString()); + if(!inboundNode["CallsAbandonedInIVR"].isNull()) + dataObject.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); + if(!inboundNode["CallsAbandonedInQueue"].isNull()) + dataObject.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); + if(!inboundNode["CallsAbandonedInRinging"].isNull()) + dataObject.inbound.callsAbandonedInRinging = std::stol(inboundNode["CallsAbandonedInRinging"].asString()); + if(!inboundNode["CallsConsulted"].isNull()) + dataObject.inbound.callsConsulted = std::stol(inboundNode["CallsConsulted"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + dataObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["CallsHold"].isNull()) + dataObject.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + dataObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsQueued"].isNull()) + dataObject.inbound.callsQueued = std::stol(inboundNode["CallsQueued"].asString()); + if(!inboundNode["CallsRinged"].isNull()) + dataObject.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString()); + if(!inboundNode["CallsTransferred"].isNull()) + dataObject.inbound.callsTransferred = std::stol(inboundNode["CallsTransferred"].asString()); + if(!inboundNode["HandleRate"].isNull()) + dataObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["MaxAbandonTime"].isNull()) + dataObject.inbound.maxAbandonTime = std::stol(inboundNode["MaxAbandonTime"].asString()); + if(!inboundNode["MaxAbandonedInIVRTime"].isNull()) + dataObject.inbound.maxAbandonedInIVRTime = std::stol(inboundNode["MaxAbandonedInIVRTime"].asString()); + if(!inboundNode["MaxAbandonedInQueueTime"].isNull()) + dataObject.inbound.maxAbandonedInQueueTime = std::stol(inboundNode["MaxAbandonedInQueueTime"].asString()); + if(!inboundNode["MaxAbandonedInRingTime"].isNull()) + dataObject.inbound.maxAbandonedInRingTime = std::stol(inboundNode["MaxAbandonedInRingTime"].asString()); + if(!inboundNode["MaxHoldTime"].isNull()) + dataObject.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + dataObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + dataObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["MaxWaitTime"].isNull()) + dataObject.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + dataObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + dataObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + dataObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + dataObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + dataObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalAbandonTime"].isNull()) + dataObject.inbound.totalAbandonTime = std::stol(inboundNode["TotalAbandonTime"].asString()); + if(!inboundNode["TotalAbandonedInIVRTime"].isNull()) + dataObject.inbound.totalAbandonedInIVRTime = std::stol(inboundNode["TotalAbandonedInIVRTime"].asString()); + if(!inboundNode["TotalAbandonedInQueueTime"].isNull()) + dataObject.inbound.totalAbandonedInQueueTime = std::stol(inboundNode["TotalAbandonedInQueueTime"].asString()); + if(!inboundNode["TotalAbandonedInRingTime"].isNull()) + dataObject.inbound.totalAbandonedInRingTime = std::stol(inboundNode["TotalAbandonedInRingTime"].asString()); + if(!inboundNode["TotalHoldTime"].isNull()) + dataObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + dataObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + dataObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["TotalWaitTime"].isNull()) + dataObject.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + dataObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["AnswerRate"].isNull()) + dataObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + dataObject.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + dataObject.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + dataObject.outbound.averageWorkTime = std::stof(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + dataObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["CallsDialed"].isNull()) + dataObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsDialedSuccess"].isNull()) + dataObject.outbound.callsDialedSuccess = std::stol(outboundNode["CallsDialedSuccess"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + dataObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + dataObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + dataObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + dataObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + dataObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + dataObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + dataObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["TotalHoldTime"].isNull()) + dataObject.outbound.totalHoldTime = std::stol(outboundNode["TotalHoldTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + dataObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + dataObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + auto overallNode = value["Overall"]; + if(!overallNode["AverageBreakTime"].isNull()) + dataObject.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString()); + if(!overallNode["AverageHoldTime"].isNull()) + dataObject.overall.averageHoldTime = std::stof(overallNode["AverageHoldTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + dataObject.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + dataObject.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + dataObject.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString()); + if(!overallNode["MaxBreakTime"].isNull()) + dataObject.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString()); + if(!overallNode["MaxHoldTime"].isNull()) + dataObject.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + dataObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + dataObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + dataObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + dataObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + dataObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + dataObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + dataObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + dataObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["TotalCalls"].isNull()) + dataObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalHoldTime"].isNull()) + dataObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + dataObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + dataObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + dataObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + dataObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].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(); + +} + +std::string ListIntervalInstanceReportResult::getMessage()const +{ + return message_; +} + +int ListIntervalInstanceReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListIntervalInstanceReportResult::getData()const +{ + return data_; +} + +std::string ListIntervalInstanceReportResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListIntervalSkillGroupReportRequest.cc b/ccc/src/model/ListIntervalSkillGroupReportRequest.cc new file mode 100644 index 000000000..131793f71 --- /dev/null +++ b/ccc/src/model/ListIntervalSkillGroupReportRequest.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::ListIntervalSkillGroupReportRequest; + +ListIntervalSkillGroupReportRequest::ListIntervalSkillGroupReportRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListIntervalSkillGroupReport") +{ + setMethod(HttpRequest::Method::Post); +} + +ListIntervalSkillGroupReportRequest::~ListIntervalSkillGroupReportRequest() +{} + +long ListIntervalSkillGroupReportRequest::getEndTime()const +{ + return endTime_; +} + +void ListIntervalSkillGroupReportRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListIntervalSkillGroupReportRequest::getStartTime()const +{ + return startTime_; +} + +void ListIntervalSkillGroupReportRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string ListIntervalSkillGroupReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListIntervalSkillGroupReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListIntervalSkillGroupReportRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListIntervalSkillGroupReportRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string ListIntervalSkillGroupReportRequest::getInterval()const +{ + return interval_; +} + +void ListIntervalSkillGroupReportRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + diff --git a/ccc/src/model/ListIntervalSkillGroupReportResult.cc b/ccc/src/model/ListIntervalSkillGroupReportResult.cc new file mode 100644 index 000000000..dd75cc282 --- /dev/null +++ b/ccc/src/model/ListIntervalSkillGroupReportResult.cc @@ -0,0 +1,227 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListIntervalSkillGroupReportResult::ListIntervalSkillGroupReportResult() : + ServiceResult() +{} + +ListIntervalSkillGroupReportResult::ListIntervalSkillGroupReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIntervalSkillGroupReportResult::~ListIntervalSkillGroupReportResult() +{} + +void ListIntervalSkillGroupReportResult::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["StatsTime"].isNull()) + dataObject.statsTime = std::stol(valueDataDataItem["StatsTime"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["AbandonRate"].isNull()) + dataObject.inbound.abandonRate = std::stof(inboundNode["AbandonRate"].asString()); + if(!inboundNode["AverageAbandonTime"].isNull()) + dataObject.inbound.averageAbandonTime = std::stof(inboundNode["AverageAbandonTime"].asString()); + if(!inboundNode["AverageAbandonedInQueueTime"].isNull()) + dataObject.inbound.averageAbandonedInQueueTime = std::stof(inboundNode["AverageAbandonedInQueueTime"].asString()); + if(!inboundNode["AverageAbandonedInRingTime"].isNull()) + dataObject.inbound.averageAbandonedInRingTime = std::stof(inboundNode["AverageAbandonedInRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + dataObject.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + dataObject.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["AverageWaitTime"].isNull()) + dataObject.inbound.averageWaitTime = std::stof(inboundNode["AverageWaitTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + dataObject.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["CallsAbandoned"].isNull()) + dataObject.inbound.callsAbandoned = std::stol(inboundNode["CallsAbandoned"].asString()); + if(!inboundNode["CallsAbandonedInQueue"].isNull()) + dataObject.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); + if(!inboundNode["CallsAbandonedInRinging"].isNull()) + dataObject.inbound.callsAbandonedInRinging = std::stol(inboundNode["CallsAbandonedInRinging"].asString()); + if(!inboundNode["CallsConsulted"].isNull()) + dataObject.inbound.callsConsulted = std::stol(inboundNode["CallsConsulted"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + dataObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["CallsHold"].isNull()) + dataObject.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + dataObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsQueued"].isNull()) + dataObject.inbound.callsQueued = std::stol(inboundNode["CallsQueued"].asString()); + if(!inboundNode["CallsRinged"].isNull()) + dataObject.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString()); + if(!inboundNode["CallsTransferred"].isNull()) + dataObject.inbound.callsTransferred = std::stol(inboundNode["CallsTransferred"].asString()); + if(!inboundNode["HandleRate"].isNull()) + dataObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["MaxAbandonTime"].isNull()) + dataObject.inbound.maxAbandonTime = std::stol(inboundNode["MaxAbandonTime"].asString()); + if(!inboundNode["MaxAbandonedInQueueTime"].isNull()) + dataObject.inbound.maxAbandonedInQueueTime = std::stol(inboundNode["MaxAbandonedInQueueTime"].asString()); + if(!inboundNode["MaxAbandonedInRingTime"].isNull()) + dataObject.inbound.maxAbandonedInRingTime = std::stol(inboundNode["MaxAbandonedInRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + dataObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + dataObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["MaxWaitTime"].isNull()) + dataObject.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + dataObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + dataObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + dataObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + dataObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + dataObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalAbandonTime"].isNull()) + dataObject.inbound.totalAbandonTime = std::stol(inboundNode["TotalAbandonTime"].asString()); + if(!inboundNode["TotalAbandonedInQueueTime"].isNull()) + dataObject.inbound.totalAbandonedInQueueTime = std::stol(inboundNode["TotalAbandonedInQueueTime"].asString()); + if(!inboundNode["TotalAbandonedInRingTime"].isNull()) + dataObject.inbound.totalAbandonedInRingTime = std::stol(inboundNode["TotalAbandonedInRingTime"].asString()); + if(!inboundNode["TotalHoldTime"].isNull()) + dataObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + dataObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + dataObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["TotalWaitTime"].isNull()) + dataObject.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + dataObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["AnswerRate"].isNull()) + dataObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + dataObject.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + dataObject.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + dataObject.outbound.averageWorkTime = std::stof(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + dataObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["CallsDialed"].isNull()) + dataObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + dataObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + dataObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + dataObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + dataObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + dataObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + dataObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + dataObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["TotalHoldTime"].isNull()) + dataObject.outbound.totalHoldTime = std::stol(outboundNode["TotalHoldTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + dataObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + dataObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + auto overallNode = value["Overall"]; + if(!overallNode["AverageBreakTime"].isNull()) + dataObject.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + dataObject.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + dataObject.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + dataObject.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString()); + if(!overallNode["MaxBreakTime"].isNull()) + dataObject.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + dataObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + dataObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + dataObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + dataObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + dataObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + dataObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + dataObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + dataObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["TotalCalls"].isNull()) + dataObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalHoldTime"].isNull()) + dataObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + dataObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + dataObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + dataObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + dataObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].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(); + +} + +std::string ListIntervalSkillGroupReportResult::getMessage()const +{ + return message_; +} + +int ListIntervalSkillGroupReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListIntervalSkillGroupReportResult::getData()const +{ + return data_; +} + +std::string ListIntervalSkillGroupReportResult::getCode()const +{ + return code_; +} + 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/ListJobGroupsRequest.cc b/ccc/src/model/ListJobGroupsRequest.cc deleted file mode 100644 index e1f9e0be0..000000000 --- a/ccc/src/model/ListJobGroupsRequest.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::ListJobGroupsRequest; - -ListJobGroupsRequest::ListJobGroupsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListJobGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ListJobGroupsRequest::~ListJobGroupsRequest() -{} - -long ListJobGroupsRequest::getEndTime()const -{ - return endTime_; -} - -void ListJobGroupsRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); -} - -long ListJobGroupsRequest::getStartTime()const -{ - return startTime_; -} - -void ListJobGroupsRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -int ListJobGroupsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListJobGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListJobGroupsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListJobGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListJobGroupsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListJobGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - 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/ListPersonalNumbersOfUserRequest.cc b/ccc/src/model/ListPersonalNumbersOfUserRequest.cc new file mode 100644 index 000000000..669869b92 --- /dev/null +++ b/ccc/src/model/ListPersonalNumbersOfUserRequest.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::ListPersonalNumbersOfUserRequest; + +ListPersonalNumbersOfUserRequest::ListPersonalNumbersOfUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListPersonalNumbersOfUser") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPersonalNumbersOfUserRequest::~ListPersonalNumbersOfUserRequest() +{} + +std::string ListPersonalNumbersOfUserRequest::getUserId()const +{ + return userId_; +} + +void ListPersonalNumbersOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +int ListPersonalNumbersOfUserRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPersonalNumbersOfUserRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +bool ListPersonalNumbersOfUserRequest::getIsMember()const +{ + return isMember_; +} + +void ListPersonalNumbersOfUserRequest::setIsMember(bool isMember) +{ + isMember_ = isMember; + setParameter("IsMember", isMember ? "true" : "false"); +} + +std::string ListPersonalNumbersOfUserRequest::getSearchPattern()const +{ + return searchPattern_; +} + +void ListPersonalNumbersOfUserRequest::setSearchPattern(const std::string& searchPattern) +{ + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); +} + +std::string ListPersonalNumbersOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListPersonalNumbersOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListPersonalNumbersOfUserRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPersonalNumbersOfUserRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListPersonalNumbersOfUserResult.cc b/ccc/src/model/ListPersonalNumbersOfUserResult.cc new file mode 100644 index 000000000..cf77bdbc6 --- /dev/null +++ b/ccc/src/model/ListPersonalNumbersOfUserResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListPersonalNumbersOfUserResult::ListPersonalNumbersOfUserResult() : + ServiceResult() +{} + +ListPersonalNumbersOfUserResult::ListPersonalNumbersOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPersonalNumbersOfUserResult::~ListPersonalNumbersOfUserResult() +{} + +void ListPersonalNumbersOfUserResult::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["Active"].isNull()) + phoneNumberObject.active = dataNodeListPhoneNumber["Active"].asString() == "true"; + if(!dataNodeListPhoneNumber["City"].isNull()) + phoneNumberObject.city = dataNodeListPhoneNumber["City"].asString(); + if(!dataNodeListPhoneNumber["ContactFlowId"].isNull()) + phoneNumberObject.contactFlowId = dataNodeListPhoneNumber["ContactFlowId"].asString(); + if(!dataNodeListPhoneNumber["Number"].isNull()) + phoneNumberObject.number = dataNodeListPhoneNumber["Number"].asString(); + if(!dataNodeListPhoneNumber["Province"].isNull()) + phoneNumberObject.province = dataNodeListPhoneNumber["Province"].asString(); + if(!dataNodeListPhoneNumber["InstanceId"].isNull()) + phoneNumberObject.instanceId = dataNodeListPhoneNumber["InstanceId"].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 ListPersonalNumbersOfUserResult::getMessage()const +{ + return message_; +} + +int ListPersonalNumbersOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListPersonalNumbersOfUserResult::Data ListPersonalNumbersOfUserResult::getData()const +{ + return data_; +} + +std::string ListPersonalNumbersOfUserResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListPhoneNumbersOfSkillGroupRequest.cc b/ccc/src/model/ListPhoneNumbersOfSkillGroupRequest.cc new file mode 100644 index 000000000..59724042a --- /dev/null +++ b/ccc/src/model/ListPhoneNumbersOfSkillGroupRequest.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::ListPhoneNumbersOfSkillGroupRequest; + +ListPhoneNumbersOfSkillGroupRequest::ListPhoneNumbersOfSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListPhoneNumbersOfSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPhoneNumbersOfSkillGroupRequest::~ListPhoneNumbersOfSkillGroupRequest() +{} + +bool ListPhoneNumbersOfSkillGroupRequest::getActive()const +{ + return active_; +} + +void ListPhoneNumbersOfSkillGroupRequest::setActive(bool active) +{ + active_ = active; + setParameter("Active", active ? "true" : "false"); +} + +int ListPhoneNumbersOfSkillGroupRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPhoneNumbersOfSkillGroupRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +bool ListPhoneNumbersOfSkillGroupRequest::getIsMember()const +{ + return isMember_; +} + +void ListPhoneNumbersOfSkillGroupRequest::setIsMember(bool isMember) +{ + isMember_ = isMember; + setParameter("IsMember", isMember ? "true" : "false"); +} + +std::string ListPhoneNumbersOfSkillGroupRequest::getSearchPattern()const +{ + return searchPattern_; +} + +void ListPhoneNumbersOfSkillGroupRequest::setSearchPattern(const std::string& searchPattern) +{ + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); +} + +std::string ListPhoneNumbersOfSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListPhoneNumbersOfSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListPhoneNumbersOfSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListPhoneNumbersOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +int ListPhoneNumbersOfSkillGroupRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPhoneNumbersOfSkillGroupRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListPhoneNumbersOfSkillGroupResult.cc b/ccc/src/model/ListPhoneNumbersOfSkillGroupResult.cc new file mode 100644 index 000000000..8e52a609e --- /dev/null +++ b/ccc/src/model/ListPhoneNumbersOfSkillGroupResult.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; + +ListPhoneNumbersOfSkillGroupResult::ListPhoneNumbersOfSkillGroupResult() : + ServiceResult() +{} + +ListPhoneNumbersOfSkillGroupResult::ListPhoneNumbersOfSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPhoneNumbersOfSkillGroupResult::~ListPhoneNumbersOfSkillGroupResult() +{} + +void ListPhoneNumbersOfSkillGroupResult::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["Active"].isNull()) + phoneNumberObject.active = dataNodeListPhoneNumber["Active"].asString() == "true"; + if(!dataNodeListPhoneNumber["City"].isNull()) + phoneNumberObject.city = dataNodeListPhoneNumber["City"].asString(); + if(!dataNodeListPhoneNumber["ContactFlowId"].isNull()) + phoneNumberObject.contactFlowId = dataNodeListPhoneNumber["ContactFlowId"].asString(); + if(!dataNodeListPhoneNumber["InstanceId"].isNull()) + phoneNumberObject.instanceId = dataNodeListPhoneNumber["InstanceId"].asString(); + if(!dataNodeListPhoneNumber["Number"].isNull()) + phoneNumberObject.number = dataNodeListPhoneNumber["Number"].asString(); + if(!dataNodeListPhoneNumber["Province"].isNull()) + phoneNumberObject.province = dataNodeListPhoneNumber["Province"].asString(); + if(!dataNodeListPhoneNumber["Usage"].isNull()) + phoneNumberObject.usage = dataNodeListPhoneNumber["Usage"].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 ListPhoneNumbersOfSkillGroupResult::getMessage()const +{ + return message_; +} + +int ListPhoneNumbersOfSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListPhoneNumbersOfSkillGroupResult::Data ListPhoneNumbersOfSkillGroupResult::getData()const +{ + return data_; +} + +std::string ListPhoneNumbersOfSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListPhoneNumbersRequest.cc b/ccc/src/model/ListPhoneNumbersRequest.cc index a7a9f5f7c..c7dc3ec1d 100644 --- a/ccc/src/model/ListPhoneNumbersRequest.cc +++ b/ccc/src/model/ListPhoneNumbersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ListPhoneNumbersRequest; ListPhoneNumbersRequest::ListPhoneNumbersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListPhoneNumbers") + RpcServiceRequest("ccc", "2020-07-01", "ListPhoneNumbers") { setMethod(HttpRequest::Method::Post); } @@ -27,15 +27,48 @@ ListPhoneNumbersRequest::ListPhoneNumbersRequest() : ListPhoneNumbersRequest::~ListPhoneNumbersRequest() {} -bool ListPhoneNumbersRequest::getOutboundOnly()const +std::string ListPhoneNumbersRequest::getUsage()const { - return outboundOnly_; + return usage_; } -void ListPhoneNumbersRequest::setOutboundOnly(bool outboundOnly) +void ListPhoneNumbersRequest::setUsage(const std::string& usage) { - outboundOnly_ = outboundOnly; - setParameter("OutboundOnly", outboundOnly ? "true" : "false"); + usage_ = usage; + setParameter("Usage", usage); +} + +bool ListPhoneNumbersRequest::getActive()const +{ + return active_; +} + +void ListPhoneNumbersRequest::setActive(bool active) +{ + active_ = active; + setParameter("Active", active ? "true" : "false"); +} + +int ListPhoneNumbersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPhoneNumbersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListPhoneNumbersRequest::getSearchPattern()const +{ + return searchPattern_; +} + +void ListPhoneNumbersRequest::setSearchPattern(const std::string& searchPattern) +{ + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); } std::string ListPhoneNumbersRequest::getInstanceId()const @@ -49,14 +82,14 @@ void ListPhoneNumbersRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string ListPhoneNumbersRequest::getAccessKeyId()const +int ListPhoneNumbersRequest::getPageSize()const { - return accessKeyId_; + return pageSize_; } -void ListPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId) +void ListPhoneNumbersRequest::setPageSize(int pageSize) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); } diff --git a/ccc/src/model/ListPhoneNumbersResult.cc b/ccc/src/model/ListPhoneNumbersResult.cc index 5c9775a47..a09d5348b 100644 --- a/ccc/src/model/ListPhoneNumbersResult.cc +++ b/ccc/src/model/ListPhoneNumbersResult.cc @@ -39,113 +39,97 @@ void ListPhoneNumbersResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allPhoneNumbersNode = value["PhoneNumbers"]["PhoneNumber"]; - for (auto valuePhoneNumbersPhoneNumber : allPhoneNumbersNode) + 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) { - 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) + Data::PhoneNumber phoneNumberObject; + if(!dataNodeListPhoneNumber["Active"].isNull()) + phoneNumberObject.active = dataNodeListPhoneNumber["Active"].asString() == "true"; + if(!dataNodeListPhoneNumber["City"].isNull()) + phoneNumberObject.city = dataNodeListPhoneNumber["City"].asString(); + if(!dataNodeListPhoneNumber["ContactFlowId"].isNull()) + phoneNumberObject.contactFlowId = dataNodeListPhoneNumber["ContactFlowId"].asString(); + if(!dataNodeListPhoneNumber["ContactFlowName"].isNull()) + phoneNumberObject.contactFlowName = dataNodeListPhoneNumber["ContactFlowName"].asString(); + if(!dataNodeListPhoneNumber["InstanceId"].isNull()) + phoneNumberObject.instanceId = dataNodeListPhoneNumber["InstanceId"].asString(); + if(!dataNodeListPhoneNumber["Number"].isNull()) + phoneNumberObject.number = dataNodeListPhoneNumber["Number"].asString(); + if(!dataNodeListPhoneNumber["Province"].isNull()) + phoneNumberObject.province = dataNodeListPhoneNumber["Province"].asString(); + if(!dataNodeListPhoneNumber["Usage"].isNull()) + phoneNumberObject.usage = dataNodeListPhoneNumber["Usage"].asString(); + if(!dataNodeListPhoneNumber["UserId"].isNull()) + phoneNumberObject.userId = dataNodeListPhoneNumber["UserId"].asString(); + if(!dataNodeListPhoneNumber["Provider"].isNull()) + phoneNumberObject.provider = dataNodeListPhoneNumber["Provider"].asString(); + if(!dataNodeListPhoneNumber["Tags"].isNull()) + phoneNumberObject.tags = dataNodeListPhoneNumber["Tags"].asString(); + if(!dataNodeListPhoneNumber["CreateTime"].isNull()) + phoneNumberObject.createTime = dataNodeListPhoneNumber["CreateTime"].asString(); + auto allSkillGroupsNode = dataNodeListPhoneNumber["SkillGroups"]["SkillGroup"]; + for (auto dataNodeListPhoneNumberSkillGroupsSkillGroup : 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); + Data::PhoneNumber::SkillGroup skillGroupsObject; + if(!dataNodeListPhoneNumberSkillGroupsSkillGroup["DisplayName"].isNull()) + skillGroupsObject.displayName = dataNodeListPhoneNumberSkillGroupsSkillGroup["DisplayName"].asString(); + if(!dataNodeListPhoneNumberSkillGroupsSkillGroup["InstanceId"].isNull()) + skillGroupsObject.instanceId = dataNodeListPhoneNumberSkillGroupsSkillGroup["InstanceId"].asString(); + if(!dataNodeListPhoneNumberSkillGroupsSkillGroup["Name"].isNull()) + skillGroupsObject.name = dataNodeListPhoneNumberSkillGroupsSkillGroup["Name"].asString(); + if(!dataNodeListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull()) + skillGroupsObject.skillGroupId = dataNodeListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString(); + phoneNumberObject.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); + data_.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()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); } -std::vector ListPhoneNumbersResult::getPhoneNumbers()const -{ - return phoneNumbers_; -} - std::string ListPhoneNumbersResult::getMessage()const { return message_; } +int ListPhoneNumbersResult::getPageSize()const +{ + return pageSize_; +} + +int ListPhoneNumbersResult::getPageNumber()const +{ + return pageNumber_; +} + int ListPhoneNumbersResult::getHttpStatusCode()const { return httpStatusCode_; } +ListPhoneNumbersResult::Data ListPhoneNumbersResult::getData()const +{ + return data_; +} + 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/ListPrivilegesOfUserRequest.cc b/ccc/src/model/ListPrivilegesOfUserRequest.cc new file mode 100644 index 000000000..6fcdda764 --- /dev/null +++ b/ccc/src/model/ListPrivilegesOfUserRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ListPrivilegesOfUserRequest; + +ListPrivilegesOfUserRequest::ListPrivilegesOfUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListPrivilegesOfUser") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPrivilegesOfUserRequest::~ListPrivilegesOfUserRequest() +{} + +std::string ListPrivilegesOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListPrivilegesOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/StartJobResult.cc b/ccc/src/model/ListPrivilegesOfUserResult.cc similarity index 53% rename from ccc/src/model/StartJobResult.cc rename to ccc/src/model/ListPrivilegesOfUserResult.cc index cc2c0c8c9..aaf1fbf23 100644 --- a/ccc/src/model/StartJobResult.cc +++ b/ccc/src/model/ListPrivilegesOfUserResult.cc @@ -14,74 +14,69 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -StartJobResult::StartJobResult() : +ListPrivilegesOfUserResult::ListPrivilegesOfUserResult() : ServiceResult() {} -StartJobResult::StartJobResult(const std::string &payload) : +ListPrivilegesOfUserResult::ListPrivilegesOfUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -StartJobResult::~StartJobResult() +ListPrivilegesOfUserResult::~ListPrivilegesOfUserResult() {} -void StartJobResult::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 allTaskIdsNode = value["TaskIds"]["KeyValuePair"]; - for (auto valueTaskIdsKeyValuePair : allTaskIdsNode) + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) { - KeyValuePair taskIdsObject; - if(!valueTaskIdsKeyValuePair["Key"].isNull()) - taskIdsObject.key = valueTaskIdsKeyValuePair["Key"].asString(); - if(!valueTaskIdsKeyValuePair["Value"].isNull()) - taskIdsObject.value = valueTaskIdsKeyValuePair["Value"].asString(); - taskIds_.push_back(taskIdsObject); + 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["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(); } -std::vector StartJobResult::getTaskIds()const -{ - return taskIds_; -} - -std::string StartJobResult::getMessage()const +std::string ListPrivilegesOfUserResult::getMessage()const { return message_; } -int StartJobResult::getHttpStatusCode()const +int ListPrivilegesOfUserResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string StartJobResult::getCode()const +std::vector ListPrivilegesOfUserResult::getData()const +{ + return data_; +} + +std::string ListPrivilegesOfUserResult::getCode()const { return code_; } -bool StartJobResult::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/ListRealtimeSkillGroupStatesRequest.cc b/ccc/src/model/ListRealtimeSkillGroupStatesRequest.cc new file mode 100644 index 000000000..e6e4ae132 --- /dev/null +++ b/ccc/src/model/ListRealtimeSkillGroupStatesRequest.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::ListRealtimeSkillGroupStatesRequest; + +ListRealtimeSkillGroupStatesRequest::ListRealtimeSkillGroupStatesRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListRealtimeSkillGroupStates") +{ + setMethod(HttpRequest::Method::Post); +} + +ListRealtimeSkillGroupStatesRequest::~ListRealtimeSkillGroupStatesRequest() +{} + +int ListRealtimeSkillGroupStatesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListRealtimeSkillGroupStatesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListRealtimeSkillGroupStatesRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void ListRealtimeSkillGroupStatesRequest::setSkillGroupIdList(const std::string& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + setBodyParameter("SkillGroupIdList", skillGroupIdList); +} + +std::string ListRealtimeSkillGroupStatesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRealtimeSkillGroupStatesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListRealtimeSkillGroupStatesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListRealtimeSkillGroupStatesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListRealtimeSkillGroupStatesResult.cc b/ccc/src/model/ListRealtimeSkillGroupStatesResult.cc new file mode 100644 index 000000000..8937dd32b --- /dev/null +++ b/ccc/src/model/ListRealtimeSkillGroupStatesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListRealtimeSkillGroupStatesResult::ListRealtimeSkillGroupStatesResult() : + ServiceResult() +{} + +ListRealtimeSkillGroupStatesResult::ListRealtimeSkillGroupStatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRealtimeSkillGroupStatesResult::~ListRealtimeSkillGroupStatesResult() +{} + +void ListRealtimeSkillGroupStatesResult::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"]["SkillGroupState"]; + for (auto dataNodeListSkillGroupState : allListNode) + { + Data::SkillGroupState skillGroupStateObject; + if(!dataNodeListSkillGroupState["BreakingAgents"].isNull()) + skillGroupStateObject.breakingAgents = std::stol(dataNodeListSkillGroupState["BreakingAgents"].asString()); + if(!dataNodeListSkillGroupState["InstanceId"].isNull()) + skillGroupStateObject.instanceId = dataNodeListSkillGroupState["InstanceId"].asString(); + if(!dataNodeListSkillGroupState["LoggedInAgents"].isNull()) + skillGroupStateObject.loggedInAgents = std::stol(dataNodeListSkillGroupState["LoggedInAgents"].asString()); + if(!dataNodeListSkillGroupState["LongestWaitingTime"].isNull()) + skillGroupStateObject.longestWaitingTime = std::stol(dataNodeListSkillGroupState["LongestWaitingTime"].asString()); + if(!dataNodeListSkillGroupState["ReadyAgents"].isNull()) + skillGroupStateObject.readyAgents = std::stol(dataNodeListSkillGroupState["ReadyAgents"].asString()); + if(!dataNodeListSkillGroupState["SkillGroupId"].isNull()) + skillGroupStateObject.skillGroupId = dataNodeListSkillGroupState["SkillGroupId"].asString(); + if(!dataNodeListSkillGroupState["SkillGroupName"].isNull()) + skillGroupStateObject.skillGroupName = dataNodeListSkillGroupState["SkillGroupName"].asString(); + if(!dataNodeListSkillGroupState["TalkingAgents"].isNull()) + skillGroupStateObject.talkingAgents = std::stol(dataNodeListSkillGroupState["TalkingAgents"].asString()); + if(!dataNodeListSkillGroupState["WaitingCalls"].isNull()) + skillGroupStateObject.waitingCalls = std::stol(dataNodeListSkillGroupState["WaitingCalls"].asString()); + if(!dataNodeListSkillGroupState["WorkingAgents"].isNull()) + skillGroupStateObject.workingAgents = std::stol(dataNodeListSkillGroupState["WorkingAgents"].asString()); + data_.list.push_back(skillGroupStateObject); + } + 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 ListRealtimeSkillGroupStatesResult::getMessage()const +{ + return message_; +} + +int ListRealtimeSkillGroupStatesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListRealtimeSkillGroupStatesResult::Data ListRealtimeSkillGroupStatesResult::getData()const +{ + return data_; +} + +std::string ListRealtimeSkillGroupStatesResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListRecentCallDetailRecordsRequest.cc b/ccc/src/model/ListRecentCallDetailRecordsRequest.cc new file mode 100644 index 000000000..024befbc1 --- /dev/null +++ b/ccc/src/model/ListRecentCallDetailRecordsRequest.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::ListRecentCallDetailRecordsRequest; + +ListRecentCallDetailRecordsRequest::ListRecentCallDetailRecordsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListRecentCallDetailRecords") +{ + setMethod(HttpRequest::Method::Post); +} + +ListRecentCallDetailRecordsRequest::~ListRecentCallDetailRecordsRequest() +{} + +std::string ListRecentCallDetailRecordsRequest::getCriteria()const +{ + return criteria_; +} + +void ListRecentCallDetailRecordsRequest::setCriteria(const std::string& criteria) +{ + criteria_ = criteria; + setParameter("Criteria", criteria); +} + +long ListRecentCallDetailRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void ListRecentCallDetailRecordsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long ListRecentCallDetailRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void ListRecentCallDetailRecordsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setBodyParameter("StartTime", std::to_string(startTime)); +} + +int ListRecentCallDetailRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListRecentCallDetailRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListRecentCallDetailRecordsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRecentCallDetailRecordsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListRecentCallDetailRecordsRequest::getPageSize()const +{ + return 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 index 9ba00fe65..9c18267eb 100644 --- a/ccc/src/model/ListRolesRequest.cc +++ b/ccc/src/model/ListRolesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ListRolesRequest; ListRolesRequest::ListRolesRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListRoles") + RpcServiceRequest("ccc", "2020-07-01", "ListRoles") { setMethod(HttpRequest::Method::Post); } @@ -38,14 +38,3 @@ void ListRolesRequest::setInstanceId(const std::string& 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 index c06486749..d5ea3c9fa 100644 --- a/ccc/src/model/ListRolesResult.cc +++ b/ccc/src/model/ListRolesResult.cc @@ -39,28 +39,22 @@ void ListRolesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allRolesNode = value["Roles"]["Role"]; - for (auto valueRolesRole : allRolesNode) + auto allDataNode = value["Data"]["Role"]; + for (auto valueDataRole : allDataNode) { - 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); + Role dataObject; + if(!valueDataRole["Name"].isNull()) + dataObject.name = valueDataRole["Name"].asString(); + if(!valueDataRole["RoleId"].isNull()) + dataObject.roleId = valueDataRole["RoleId"].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(); } @@ -74,9 +68,9 @@ int ListRolesResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListRolesResult::getRoles()const +std::vector ListRolesResult::getData()const { - return roles_; + return data_; } std::string ListRolesResult::getCode()const @@ -84,8 +78,3 @@ 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 index d949a8dfb..0296661f7 100644 --- a/ccc/src/model/ListSkillGroupsRequest.cc +++ b/ccc/src/model/ListSkillGroupsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ListSkillGroupsRequest; ListSkillGroupsRequest::ListSkillGroupsRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroups") + RpcServiceRequest("ccc", "2020-07-01", "ListSkillGroups") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,28 @@ ListSkillGroupsRequest::ListSkillGroupsRequest() : ListSkillGroupsRequest::~ListSkillGroupsRequest() {} +int ListSkillGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSkillGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListSkillGroupsRequest::getSearchPattern()const +{ + return searchPattern_; +} + +void ListSkillGroupsRequest::setSearchPattern(const std::string& searchPattern) +{ + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); +} + std::string ListSkillGroupsRequest::getInstanceId()const { return instanceId_; @@ -38,14 +60,14 @@ void ListSkillGroupsRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string ListSkillGroupsRequest::getAccessKeyId()const +int ListSkillGroupsRequest::getPageSize()const { - return accessKeyId_; + return pageSize_; } -void ListSkillGroupsRequest::setAccessKeyId(const std::string& accessKeyId) +void ListSkillGroupsRequest::setPageSize(int pageSize) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); } diff --git a/ccc/src/model/ListSkillGroupsResult.cc b/ccc/src/model/ListSkillGroupsResult.cc index 3379b230c..819c6380e 100644 --- a/ccc/src/model/ListSkillGroupsResult.cc +++ b/ccc/src/model/ListSkillGroupsResult.cc @@ -39,60 +39,39 @@ void ListSkillGroupsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allSkillGroupsNode = value["SkillGroups"]["SkillGroup"]; - for (auto valueSkillGroupsSkillGroup : allSkillGroupsNode) + 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) { - 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); + 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["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(); } @@ -106,9 +85,9 @@ int ListSkillGroupsResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListSkillGroupsResult::getSkillGroups()const +ListSkillGroupsResult::Data ListSkillGroupsResult::getData()const { - return skillGroups_; + return data_; } std::string ListSkillGroupsResult::getCode()const @@ -116,8 +95,3 @@ 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/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/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/ListUserLevelsOfSkillGroupRequest.cc b/ccc/src/model/ListUserLevelsOfSkillGroupRequest.cc new file mode 100644 index 000000000..5d2562836 --- /dev/null +++ b/ccc/src/model/ListUserLevelsOfSkillGroupRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ListUserLevelsOfSkillGroupRequest; + +ListUserLevelsOfSkillGroupRequest::ListUserLevelsOfSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ListUserLevelsOfSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ListUserLevelsOfSkillGroupRequest::~ListUserLevelsOfSkillGroupRequest() +{} + +bool ListUserLevelsOfSkillGroupRequest::getIsMember()const +{ + return isMember_; +} + +void ListUserLevelsOfSkillGroupRequest::setIsMember(bool isMember) +{ + isMember_ = isMember; + setParameter("IsMember", isMember ? "true" : "false"); +} + +int ListUserLevelsOfSkillGroupRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListUserLevelsOfSkillGroupRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListUserLevelsOfSkillGroupRequest::getSearchPattern()const +{ + return searchPattern_; +} + +void ListUserLevelsOfSkillGroupRequest::setSearchPattern(const std::string& searchPattern) +{ + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); +} + +std::string ListUserLevelsOfSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListUserLevelsOfSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListUserLevelsOfSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListUserLevelsOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +int ListUserLevelsOfSkillGroupRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUserLevelsOfSkillGroupRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc b/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc new file mode 100644 index 000000000..f052e37fe --- /dev/null +++ b/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListUserLevelsOfSkillGroupResult::ListUserLevelsOfSkillGroupResult() : + ServiceResult() +{} + +ListUserLevelsOfSkillGroupResult::ListUserLevelsOfSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserLevelsOfSkillGroupResult::~ListUserLevelsOfSkillGroupResult() +{} + +void ListUserLevelsOfSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["UserSkillLevel"]; + for (auto dataNodeListUserSkillLevel : allListNode) + { + Data::UserSkillLevel userSkillLevelObject; + if(!dataNodeListUserSkillLevel["DisplayName"].isNull()) + userSkillLevelObject.displayName = dataNodeListUserSkillLevel["DisplayName"].asString(); + if(!dataNodeListUserSkillLevel["LoginName"].isNull()) + userSkillLevelObject.loginName = dataNodeListUserSkillLevel["LoginName"].asString(); + if(!dataNodeListUserSkillLevel["RoleId"].isNull()) + userSkillLevelObject.roleId = dataNodeListUserSkillLevel["RoleId"].asString(); + if(!dataNodeListUserSkillLevel["RoleName"].isNull()) + userSkillLevelObject.roleName = dataNodeListUserSkillLevel["RoleName"].asString(); + if(!dataNodeListUserSkillLevel["SkillGroupId"].isNull()) + userSkillLevelObject.skillGroupId = dataNodeListUserSkillLevel["SkillGroupId"].asString(); + if(!dataNodeListUserSkillLevel["SkillGroupName"].isNull()) + userSkillLevelObject.skillGroupName = dataNodeListUserSkillLevel["SkillGroupName"].asString(); + if(!dataNodeListUserSkillLevel["SkillLevel"].isNull()) + userSkillLevelObject.skillLevel = std::stoi(dataNodeListUserSkillLevel["SkillLevel"].asString()); + if(!dataNodeListUserSkillLevel["UserId"].isNull()) + userSkillLevelObject.userId = dataNodeListUserSkillLevel["UserId"].asString(); + data_.list.push_back(userSkillLevelObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListUserLevelsOfSkillGroupResult::getMessage()const +{ + return message_; +} + +int ListUserLevelsOfSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListUserLevelsOfSkillGroupResult::Data ListUserLevelsOfSkillGroupResult::getData()const +{ + return data_; +} + +std::string ListUserLevelsOfSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/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/ListUsersRequest.cc b/ccc/src/model/ListUsersRequest.cc index eaf999a01..aca6292aa 100644 --- a/ccc/src/model/ListUsersRequest.cc +++ b/ccc/src/model/ListUsersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ListUsersRequest; ListUsersRequest::ListUsersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ListUsers") + RpcServiceRequest("ccc", "2020-07-01", "ListUsers") { setMethod(HttpRequest::Method::Post); } @@ -38,15 +38,15 @@ void ListUsersRequest::setPageNumber(int pageNumber) setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListUsersRequest::getAccessKeyId()const +std::string ListUsersRequest::getSearchPattern()const { - return accessKeyId_; + return searchPattern_; } -void ListUsersRequest::setAccessKeyId(const std::string& accessKeyId) +void ListUsersRequest::setSearchPattern(const std::string& searchPattern) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + searchPattern_ = searchPattern; + setParameter("SearchPattern", searchPattern); } std::string ListUsersRequest::getInstanceId()const diff --git a/ccc/src/model/ListUsersResult.cc b/ccc/src/model/ListUsersResult.cc index 8e8986ca2..304ebcc60 100644 --- a/ccc/src/model/ListUsersResult.cc +++ b/ccc/src/model/ListUsersResult.cc @@ -39,81 +39,74 @@ void ListUsersResult::parse(const std::string &payload) 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) + 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"]["UserDetail"]; + for (auto dataNodeListUserDetail : 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) + Data::UserDetail userDetailObject; + if(!dataNodeListUserDetail["DisplayName"].isNull()) + userDetailObject.displayName = dataNodeListUserDetail["DisplayName"].asString(); + if(!dataNodeListUserDetail["Email"].isNull()) + userDetailObject.email = dataNodeListUserDetail["Email"].asString(); + if(!dataNodeListUserDetail["LoginName"].isNull()) + userDetailObject.loginName = dataNodeListUserDetail["LoginName"].asString(); + if(!dataNodeListUserDetail["Mobile"].isNull()) + userDetailObject.mobile = dataNodeListUserDetail["Mobile"].asString(); + if(!dataNodeListUserDetail["RoleId"].isNull()) + userDetailObject.roleId = dataNodeListUserDetail["RoleId"].asString(); + if(!dataNodeListUserDetail["RoleName"].isNull()) + userDetailObject.roleName = dataNodeListUserDetail["RoleName"].asString(); + if(!dataNodeListUserDetail["UserId"].isNull()) + userDetailObject.userId = dataNodeListUserDetail["UserId"].asString(); + if(!dataNodeListUserDetail["WorkMode"].isNull()) + userDetailObject.workMode = dataNodeListUserDetail["WorkMode"].asString(); + if(!dataNodeListUserDetail["PrimaryAccount"].isNull()) + userDetailObject.primaryAccount = dataNodeListUserDetail["PrimaryAccount"].asString() == "true"; + auto allPersonalOutboundNumberListNode = dataNodeListUserDetail["PersonalOutboundNumberList"]["PhoneNumber"]; + for (auto dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber : allPersonalOutboundNumberListNode) { - 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); + Data::UserDetail::PhoneNumber personalOutboundNumberListObject; + if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Active"].isNull()) + personalOutboundNumberListObject.active = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Active"].asString() == "true"; + if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["City"].isNull()) + personalOutboundNumberListObject.city = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["City"].asString(); + if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Number"].isNull()) + personalOutboundNumberListObject.number = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Number"].asString(); + if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Province"].isNull()) + personalOutboundNumberListObject.province = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Province"].asString(); + if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Usage"].isNull()) + personalOutboundNumberListObject.usage = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Usage"].asString(); + userDetailObject.personalOutboundNumberList.push_back(personalOutboundNumberListObject); } - auto allSkillLevelsNode = usersNodeListUser["SkillLevels"]["SkillLevel"]; - for (auto usersNodeListUserSkillLevelsSkillLevel : allSkillLevelsNode) + auto allSkillLevelListNode = dataNodeListUserDetail["SkillLevelList"]["UserSkillLevel"]; + for (auto dataNodeListUserDetailSkillLevelListUserSkillLevel : allSkillLevelListNode) { - 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); + Data::UserDetail::UserSkillLevel skillLevelListObject; + if(!dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillGroupId"].isNull()) + skillLevelListObject.skillGroupId = dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillGroupId"].asString(); + if(!dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillGroupName"].isNull()) + skillLevelListObject.skillGroupName = dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillGroupName"].asString(); + if(!dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillLevel"].isNull()) + skillLevelListObject.skillLevel = std::stoi(dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillLevel"].asString()); + userDetailObject.skillLevelList.push_back(skillLevelListObject); } - 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); + data_.list.push_back(userDetailObject); } - 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(); } @@ -127,9 +120,14 @@ int ListUsersResult::getHttpStatusCode()const return httpStatusCode_; } -ListUsersResult::Users ListUsersResult::getUsers()const +std::vector ListUsersResult::getParams()const { - return users_; + return params_; +} + +ListUsersResult::Data ListUsersResult::getData()const +{ + return data_; } std::string ListUsersResult::getCode()const @@ -137,8 +135,3 @@ 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 index ad42929c9..2d0712dc4 100644 --- a/ccc/src/model/ModifyPhoneNumberRequest.cc +++ b/ccc/src/model/ModifyPhoneNumberRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ModifyPhoneNumberRequest; ModifyPhoneNumberRequest::ModifyPhoneNumberRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifyPhoneNumber") + RpcServiceRequest("ccc", "2020-07-01", "ModifyPhoneNumber") { setMethod(HttpRequest::Method::Post); } @@ -49,15 +49,15 @@ void ModifyPhoneNumberRequest::setUsage(const std::string& usage) setParameter("Usage", usage); } -std::string ModifyPhoneNumberRequest::getAccessKeyId()const +std::string ModifyPhoneNumberRequest::getNumber()const { - return accessKeyId_; + return number_; } -void ModifyPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) +void ModifyPhoneNumberRequest::setNumber(const std::string& number) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + number_ = number; + setParameter("Number", number); } std::string ModifyPhoneNumberRequest::getInstanceId()const @@ -71,27 +71,3 @@ void ModifyPhoneNumberRequest::setInstanceId(const std::string& 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 index 64f6a9474..abeba16b4 100644 --- a/ccc/src/model/ModifyPhoneNumberResult.cc +++ b/ccc/src/model/ModifyPhoneNumberResult.cc @@ -39,54 +39,12 @@ void ModifyPhoneNumberResult::parse(const std::string &payload) 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()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } @@ -100,18 +58,8 @@ 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/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 index cd362bd28..74e0d5be2 100644 --- a/ccc/src/model/ModifySkillGroupRequest.cc +++ b/ccc/src/model/ModifySkillGroupRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ModifySkillGroupRequest; ModifySkillGroupRequest::ModifySkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifySkillGroup") + RpcServiceRequest("ccc", "2020-07-01", "ModifySkillGroup") { setMethod(HttpRequest::Method::Post); } @@ -27,17 +27,6 @@ ModifySkillGroupRequest::ModifySkillGroupRequest() : 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_; @@ -49,54 +38,6 @@ void ModifySkillGroupRequest::setDescription(const std::string& 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_; @@ -108,19 +49,6 @@ void ModifySkillGroupRequest::setInstanceId(const std::string& 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_; @@ -132,14 +60,14 @@ void ModifySkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) setParameter("SkillGroupId", skillGroupId); } -std::string ModifySkillGroupRequest::getName()const +std::string ModifySkillGroupRequest::getDisplayName()const { - return name_; + return displayName_; } -void ModifySkillGroupRequest::setName(const std::string& name) +void ModifySkillGroupRequest::setDisplayName(const std::string& displayName) { - name_ = name; - setParameter("Name", name); + displayName_ = displayName; + setParameter("DisplayName", displayName); } diff --git a/ccc/src/model/ModifySkillGroupResult.cc b/ccc/src/model/ModifySkillGroupResult.cc index 98818bb7b..d395efcc7 100644 --- a/ccc/src/model/ModifySkillGroupResult.cc +++ b/ccc/src/model/ModifySkillGroupResult.cc @@ -39,14 +39,12 @@ void ModifySkillGroupResult::parse(const std::string &payload) 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["Message"].isNull()) + message_ = value["Message"].asString(); } @@ -65,8 +63,3 @@ std::string ModifySkillGroupResult::getCode()const return code_; } -bool ModifySkillGroupResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ModifySkillLevelsOfUserRequest.cc b/ccc/src/model/ModifySkillLevelsOfUserRequest.cc new file mode 100644 index 000000000..c15f925d3 --- /dev/null +++ b/ccc/src/model/ModifySkillLevelsOfUserRequest.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::ModifySkillLevelsOfUserRequest; + +ModifySkillLevelsOfUserRequest::ModifySkillLevelsOfUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ModifySkillLevelsOfUser") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifySkillLevelsOfUserRequest::~ModifySkillLevelsOfUserRequest() +{} + +std::string ModifySkillLevelsOfUserRequest::getUserId()const +{ + return userId_; +} + +void ModifySkillLevelsOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ModifySkillLevelsOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifySkillLevelsOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifySkillLevelsOfUserRequest::getSkillLevelList()const +{ + return skillLevelList_; +} + +void ModifySkillLevelsOfUserRequest::setSkillLevelList(const std::string& skillLevelList) +{ + skillLevelList_ = skillLevelList; + setParameter("SkillLevelList", skillLevelList); +} + diff --git a/ccc/src/model/AssignJobsResult.cc b/ccc/src/model/ModifySkillLevelsOfUserResult.cc similarity index 62% rename from ccc/src/model/AssignJobsResult.cc rename to ccc/src/model/ModifySkillLevelsOfUserResult.cc index 97072f89f..a64ba3a32 100644 --- a/ccc/src/model/AssignJobsResult.cc +++ b/ccc/src/model/ModifySkillLevelsOfUserResult.cc @@ -14,66 +14,60 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -AssignJobsResult::AssignJobsResult() : +ModifySkillLevelsOfUserResult::ModifySkillLevelsOfUserResult() : ServiceResult() {} -AssignJobsResult::AssignJobsResult(const std::string &payload) : +ModifySkillLevelsOfUserResult::ModifySkillLevelsOfUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -AssignJobsResult::~AssignJobsResult() +ModifySkillLevelsOfUserResult::~ModifySkillLevelsOfUserResult() {} -void AssignJobsResult::parse(const std::string &payload) +void ModifySkillLevelsOfUserResult::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["GroupId"].isNull()) - groupId_ = value["GroupId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string AssignJobsResult::getMessage()const +std::string ModifySkillLevelsOfUserResult::getMessage()const { return message_; } -int AssignJobsResult::getHttpStatusCode()const +int ModifySkillLevelsOfUserResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string AssignJobsResult::getCode()const +std::vector ModifySkillLevelsOfUserResult::getParams()const +{ + return params_; +} + +std::string ModifySkillLevelsOfUserResult::getCode()const { return code_; } -bool AssignJobsResult::getSuccess()const -{ - return success_; -} - -std::string AssignJobsResult::getGroupId()const -{ - return groupId_; -} - 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/ModifyUserLevelsOfSkillGroupRequest.cc b/ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.cc new file mode 100644 index 000000000..6ce1f3211 --- /dev/null +++ b/ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifyUserLevelsOfSkillGroupRequest; + +ModifyUserLevelsOfSkillGroupRequest::ModifyUserLevelsOfSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "ModifyUserLevelsOfSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyUserLevelsOfSkillGroupRequest::~ModifyUserLevelsOfSkillGroupRequest() +{} + +std::string ModifyUserLevelsOfSkillGroupRequest::getUserLevelList()const +{ + return userLevelList_; +} + +void ModifyUserLevelsOfSkillGroupRequest::setUserLevelList(const std::string& userLevelList) +{ + userLevelList_ = userLevelList; + setParameter("UserLevelList", userLevelList); +} + +std::string ModifyUserLevelsOfSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyUserLevelsOfSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyUserLevelsOfSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifyUserLevelsOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + diff --git a/ccc/src/model/ModifySkillGroupOfUserResult.cc b/ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc similarity index 62% rename from ccc/src/model/ModifySkillGroupOfUserResult.cc rename to ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc index 03ba3fc67..2d310e22a 100644 --- a/ccc/src/model/ModifySkillGroupOfUserResult.cc +++ b/ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc @@ -14,59 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ModifySkillGroupOfUserResult::ModifySkillGroupOfUserResult() : +ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult() : ServiceResult() {} -ModifySkillGroupOfUserResult::ModifySkillGroupOfUserResult(const std::string &payload) : +ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifySkillGroupOfUserResult::~ModifySkillGroupOfUserResult() +ModifyUserLevelsOfSkillGroupResult::~ModifyUserLevelsOfSkillGroupResult() {} -void ModifySkillGroupOfUserResult::parse(const std::string &payload) +void ModifyUserLevelsOfSkillGroupResult::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["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 ModifySkillGroupOfUserResult::getMessage()const +std::string ModifyUserLevelsOfSkillGroupResult::getMessage()const { return message_; } -int ModifySkillGroupOfUserResult::getHttpStatusCode()const +int ModifyUserLevelsOfSkillGroupResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string ModifySkillGroupOfUserResult::getCode()const +std::string ModifyUserLevelsOfSkillGroupResult::getData()const +{ + return data_; +} + +std::string ModifyUserLevelsOfSkillGroupResult::getCode()const { return code_; } -bool ModifySkillGroupOfUserResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ModifyUserRequest.cc b/ccc/src/model/ModifyUserRequest.cc index 06f9b1cc8..929ad1dc6 100644 --- a/ccc/src/model/ModifyUserRequest.cc +++ b/ccc/src/model/ModifyUserRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::ModifyUserRequest; ModifyUserRequest::ModifyUserRequest() : - RpcServiceRequest("ccc", "2017-07-05", "ModifyUser") + RpcServiceRequest("ccc", "2020-07-01", "ModifyUser") { setMethod(HttpRequest::Method::Post); } @@ -27,28 +27,37 @@ ModifyUserRequest::ModifyUserRequest() : 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 +std::string ModifyUserRequest::getRoleId()const { return roleId_; } -void ModifyUserRequest::setRoleId(const std::vector& roleId) +void ModifyUserRequest::setRoleId(const std::string& roleId) { roleId_ = roleId; - for(int dep1 = 0; dep1!= roleId.size(); dep1++) { - setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); - } + setParameter("RoleId", roleId); +} + +std::string ModifyUserRequest::getMobile()const +{ + return mobile_; +} + +void ModifyUserRequest::setMobile(const std::string& mobile) +{ + mobile_ = mobile; + setParameter("Mobile", mobile); +} + +std::string ModifyUserRequest::getWorkMode()const +{ + return workMode_; +} + +void ModifyUserRequest::setWorkMode(const std::string& workMode) +{ + workMode_ = workMode; + setParameter("WorkMode", workMode); } std::string ModifyUserRequest::getUserId()const @@ -62,30 +71,6 @@ void ModifyUserRequest::setUserId(const std::string& 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_; @@ -97,49 +82,3 @@ void ModifyUserRequest::setInstanceId(const std::string& 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 index 5f9ec2710..a40a2bd12 100644 --- a/ccc/src/model/ModifyUserResult.cc +++ b/ccc/src/model/ModifyUserResult.cc @@ -39,14 +39,17 @@ void ModifyUserResult::parse(const std::string &payload) 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(); } @@ -60,13 +63,18 @@ int ModifyUserResult::getHttpStatusCode()const return httpStatusCode_; } +std::vector ModifyUserResult::getParams()const +{ + return params_; +} + +std::string ModifyUserResult::getData()const +{ + return data_; +} + std::string ModifyUserResult::getCode()const { return code_; } -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/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/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/DeleteJobGroupResult.cc b/ccc/src/model/RegisterDeviceResult.cc similarity index 66% rename from ccc/src/model/DeleteJobGroupResult.cc rename to ccc/src/model/RegisterDeviceResult.cc index a458973a5..47adb9030 100644 --- a/ccc/src/model/DeleteJobGroupResult.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; -DeleteJobGroupResult::DeleteJobGroupResult() : +RegisterDeviceResult::RegisterDeviceResult() : ServiceResult() {} -DeleteJobGroupResult::DeleteJobGroupResult(const std::string &payload) : +RegisterDeviceResult::RegisterDeviceResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteJobGroupResult::~DeleteJobGroupResult() +RegisterDeviceResult::~RegisterDeviceResult() {} -void DeleteJobGroupResult::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 DeleteJobGroupResult::getMessage()const +std::string RegisterDeviceResult::getMessage()const { return message_; } -int DeleteJobGroupResult::getHttpStatusCode()const +int RegisterDeviceResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string DeleteJobGroupResult::getCode()const +std::vector RegisterDeviceResult::getParams()const +{ + return params_; +} + +std::string RegisterDeviceResult::getCode()const { return code_; } -bool DeleteJobGroupResult::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/RemovePersonalNumbersFromUserRequest.cc b/ccc/src/model/RemovePersonalNumbersFromUserRequest.cc new file mode 100644 index 000000000..f8cebdbe6 --- /dev/null +++ b/ccc/src/model/RemovePersonalNumbersFromUserRequest.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::RemovePersonalNumbersFromUserRequest; + +RemovePersonalNumbersFromUserRequest::RemovePersonalNumbersFromUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "RemovePersonalNumbersFromUser") +{ + setMethod(HttpRequest::Method::Post); +} + +RemovePersonalNumbersFromUserRequest::~RemovePersonalNumbersFromUserRequest() +{} + +std::string RemovePersonalNumbersFromUserRequest::getUserId()const +{ + return userId_; +} + +void RemovePersonalNumbersFromUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string RemovePersonalNumbersFromUserRequest::getNumberList()const +{ + return numberList_; +} + +void RemovePersonalNumbersFromUserRequest::setNumberList(const std::string& numberList) +{ + numberList_ = numberList; + setParameter("NumberList", numberList); +} + +std::string RemovePersonalNumbersFromUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemovePersonalNumbersFromUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/DeleteInstanceResult.cc b/ccc/src/model/RemovePersonalNumbersFromUserResult.cc similarity index 67% rename from ccc/src/model/DeleteInstanceResult.cc rename to ccc/src/model/RemovePersonalNumbersFromUserResult.cc index c348fe364..529600b7b 100644 --- a/ccc/src/model/DeleteInstanceResult.cc +++ b/ccc/src/model/RemovePersonalNumbersFromUserResult.cc @@ -14,59 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -DeleteInstanceResult::DeleteInstanceResult() : +RemovePersonalNumbersFromUserResult::RemovePersonalNumbersFromUserResult() : ServiceResult() {} -DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : +RemovePersonalNumbersFromUserResult::RemovePersonalNumbersFromUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteInstanceResult::~DeleteInstanceResult() +RemovePersonalNumbersFromUserResult::~RemovePersonalNumbersFromUserResult() {} -void DeleteInstanceResult::parse(const std::string &payload) +void RemovePersonalNumbersFromUserResult::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["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string DeleteInstanceResult::getMessage()const +std::string RemovePersonalNumbersFromUserResult::getMessage()const { return message_; } -int DeleteInstanceResult::getHttpStatusCode()const +int RemovePersonalNumbersFromUserResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string DeleteInstanceResult::getCode()const +std::string RemovePersonalNumbersFromUserResult::getCode()const { return code_; } -bool DeleteInstanceResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/RemovePhoneNumberFromSkillGroupsRequest.cc b/ccc/src/model/RemovePhoneNumberFromSkillGroupsRequest.cc new file mode 100644 index 000000000..256fc7f63 --- /dev/null +++ b/ccc/src/model/RemovePhoneNumberFromSkillGroupsRequest.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::RemovePhoneNumberFromSkillGroupsRequest; + +RemovePhoneNumberFromSkillGroupsRequest::RemovePhoneNumberFromSkillGroupsRequest() : + RpcServiceRequest("ccc", "2020-07-01", "RemovePhoneNumberFromSkillGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +RemovePhoneNumberFromSkillGroupsRequest::~RemovePhoneNumberFromSkillGroupsRequest() +{} + +std::string RemovePhoneNumberFromSkillGroupsRequest::getNumber()const +{ + return number_; +} + +void RemovePhoneNumberFromSkillGroupsRequest::setNumber(const std::string& number) +{ + number_ = number; + setParameter("Number", number); +} + +std::string RemovePhoneNumberFromSkillGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemovePhoneNumberFromSkillGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RemovePhoneNumberFromSkillGroupsRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void RemovePhoneNumberFromSkillGroupsRequest::setSkillGroupIdList(const std::string& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + setParameter("SkillGroupIdList", skillGroupIdList); +} + diff --git a/ccc/src/model/AddPhoneTagsResult.cc b/ccc/src/model/RemovePhoneNumberFromSkillGroupsResult.cc similarity index 66% rename from ccc/src/model/AddPhoneTagsResult.cc rename to ccc/src/model/RemovePhoneNumberFromSkillGroupsResult.cc index 56c38b513..8042ad9b0 100644 --- a/ccc/src/model/AddPhoneTagsResult.cc +++ b/ccc/src/model/RemovePhoneNumberFromSkillGroupsResult.cc @@ -14,59 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -AddPhoneTagsResult::AddPhoneTagsResult() : +RemovePhoneNumberFromSkillGroupsResult::RemovePhoneNumberFromSkillGroupsResult() : ServiceResult() {} -AddPhoneTagsResult::AddPhoneTagsResult(const std::string &payload) : +RemovePhoneNumberFromSkillGroupsResult::RemovePhoneNumberFromSkillGroupsResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddPhoneTagsResult::~AddPhoneTagsResult() +RemovePhoneNumberFromSkillGroupsResult::~RemovePhoneNumberFromSkillGroupsResult() {} -void AddPhoneTagsResult::parse(const std::string &payload) +void RemovePhoneNumberFromSkillGroupsResult::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["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string AddPhoneTagsResult::getMessage()const +std::string RemovePhoneNumberFromSkillGroupsResult::getMessage()const { return message_; } -int AddPhoneTagsResult::getHttpStatusCode()const +int RemovePhoneNumberFromSkillGroupsResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string AddPhoneTagsResult::getCode()const +std::string RemovePhoneNumberFromSkillGroupsResult::getCode()const { return code_; } -bool AddPhoneTagsResult::getSuccess()const -{ - return success_; -} - 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/RemovePhoneNumbersFromSkillGroupRequest.cc b/ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc new file mode 100644 index 000000000..36a700cb9 --- /dev/null +++ b/ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::RemovePhoneNumbersFromSkillGroupRequest; + +RemovePhoneNumbersFromSkillGroupRequest::RemovePhoneNumbersFromSkillGroupRequest() : + RpcServiceRequest("ccc", "2020-07-01", "RemovePhoneNumbersFromSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +RemovePhoneNumbersFromSkillGroupRequest::~RemovePhoneNumbersFromSkillGroupRequest() +{} + +std::string RemovePhoneNumbersFromSkillGroupRequest::getNumberList()const +{ + return numberList_; +} + +void RemovePhoneNumbersFromSkillGroupRequest::setNumberList(const std::string& numberList) +{ + numberList_ = numberList; + setParameter("NumberList", numberList); +} + +std::string RemovePhoneNumbersFromSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemovePhoneNumbersFromSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RemovePhoneNumbersFromSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void RemovePhoneNumbersFromSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + diff --git a/ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc b/ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc new file mode 100644 index 000000000..8957c2a81 --- /dev/null +++ b/ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult() : + ServiceResult() +{} + +RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemovePhoneNumbersFromSkillGroupResult::~RemovePhoneNumbersFromSkillGroupResult() +{} + +void RemovePhoneNumbersFromSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string RemovePhoneNumbersFromSkillGroupResult::getMessage()const +{ + return message_; +} + +int RemovePhoneNumbersFromSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemovePhoneNumbersFromSkillGroupResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetUserByExtensionRequest.cc b/ccc/src/model/RemovePhoneNumbersRequest.cc similarity index 54% rename from ccc/src/model/GetUserByExtensionRequest.cc rename to ccc/src/model/RemovePhoneNumbersRequest.cc index 1983d7e0a..43ef324dc 100644 --- a/ccc/src/model/GetUserByExtensionRequest.cc +++ b/ccc/src/model/RemovePhoneNumbersRequest.cc @@ -14,36 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetUserByExtensionRequest; +using AlibabaCloud::CCC::Model::RemovePhoneNumbersRequest; -GetUserByExtensionRequest::GetUserByExtensionRequest() : - RpcServiceRequest("ccc", "2017-07-05", "GetUserByExtension") +RemovePhoneNumbersRequest::RemovePhoneNumbersRequest() : + RpcServiceRequest("ccc", "2020-07-01", "RemovePhoneNumbers") { setMethod(HttpRequest::Method::Post); } -GetUserByExtensionRequest::~GetUserByExtensionRequest() +RemovePhoneNumbersRequest::~RemovePhoneNumbersRequest() {} -std::string GetUserByExtensionRequest::getExtension()const +std::string RemovePhoneNumbersRequest::getNumberList()const { - return extension_; + return numberList_; } -void GetUserByExtensionRequest::setExtension(const std::string& extension) +void RemovePhoneNumbersRequest::setNumberList(const std::string& numberList) { - extension_ = extension; - setParameter("Extension", extension); + numberList_ = numberList; + setParameter("NumberList", numberList); } -std::string GetUserByExtensionRequest::getInstanceId()const +std::string RemovePhoneNumbersRequest::getInstanceId()const { return instanceId_; } -void GetUserByExtensionRequest::setInstanceId(const std::string& instanceId) +void RemovePhoneNumbersRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/SubmitCabRecordingResult.cc b/ccc/src/model/RemovePhoneNumbersResult.cc similarity index 54% rename from ccc/src/model/SubmitCabRecordingResult.cc rename to ccc/src/model/RemovePhoneNumbersResult.cc index 8913bb449..33c06a661 100644 --- a/ccc/src/model/SubmitCabRecordingResult.cc +++ b/ccc/src/model/RemovePhoneNumbersResult.cc @@ -14,59 +14,75 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -SubmitCabRecordingResult::SubmitCabRecordingResult() : +RemovePhoneNumbersResult::RemovePhoneNumbersResult() : ServiceResult() {} -SubmitCabRecordingResult::SubmitCabRecordingResult(const std::string &payload) : +RemovePhoneNumbersResult::RemovePhoneNumbersResult(const std::string &payload) : ServiceResult() { parse(payload); } -SubmitCabRecordingResult::~SubmitCabRecordingResult() +RemovePhoneNumbersResult::~RemovePhoneNumbersResult() {} -void SubmitCabRecordingResult::parse(const std::string &payload) +void RemovePhoneNumbersResult::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()); + auto allFailureList = value["FailureList"]["Failure"]; + for (const auto &item : allFailureList) + failureList_.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 SubmitCabRecordingResult::getMessage()const +std::string RemovePhoneNumbersResult::getMessage()const { return message_; } -int SubmitCabRecordingResult::getHttpStatusCode()const +int RemovePhoneNumbersResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string SubmitCabRecordingResult::getCode()const +std::vector RemovePhoneNumbersResult::getParams()const +{ + return params_; +} + +std::vector RemovePhoneNumbersResult::getFailureList()const +{ + return failureList_; +} + +std::string RemovePhoneNumbersResult::getData()const +{ + return data_; +} + +std::string RemovePhoneNumbersResult::getCode()const { return code_; } -bool SubmitCabRecordingResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/RemoveSkillGroupsFromUserRequest.cc b/ccc/src/model/RemoveSkillGroupsFromUserRequest.cc new file mode 100644 index 000000000..046b3ac81 --- /dev/null +++ b/ccc/src/model/RemoveSkillGroupsFromUserRequest.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::RemoveSkillGroupsFromUserRequest; + +RemoveSkillGroupsFromUserRequest::RemoveSkillGroupsFromUserRequest() : + RpcServiceRequest("ccc", "2020-07-01", "RemoveSkillGroupsFromUser") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveSkillGroupsFromUserRequest::~RemoveSkillGroupsFromUserRequest() +{} + +std::string RemoveSkillGroupsFromUserRequest::getUserId()const +{ + return userId_; +} + +void RemoveSkillGroupsFromUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string RemoveSkillGroupsFromUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemoveSkillGroupsFromUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RemoveSkillGroupsFromUserRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void RemoveSkillGroupsFromUserRequest::setSkillGroupIdList(const std::string& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + setParameter("SkillGroupIdList", skillGroupIdList); +} + diff --git a/ccc/src/model/PublishContactFlowVersionResult.cc b/ccc/src/model/RemoveSkillGroupsFromUserResult.cc similarity index 66% rename from ccc/src/model/PublishContactFlowVersionResult.cc rename to ccc/src/model/RemoveSkillGroupsFromUserResult.cc index 6df346c96..cad0a5d66 100644 --- a/ccc/src/model/PublishContactFlowVersionResult.cc +++ b/ccc/src/model/RemoveSkillGroupsFromUserResult.cc @@ -14,59 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -PublishContactFlowVersionResult::PublishContactFlowVersionResult() : +RemoveSkillGroupsFromUserResult::RemoveSkillGroupsFromUserResult() : ServiceResult() {} -PublishContactFlowVersionResult::PublishContactFlowVersionResult(const std::string &payload) : +RemoveSkillGroupsFromUserResult::RemoveSkillGroupsFromUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -PublishContactFlowVersionResult::~PublishContactFlowVersionResult() +RemoveSkillGroupsFromUserResult::~RemoveSkillGroupsFromUserResult() {} -void PublishContactFlowVersionResult::parse(const std::string &payload) +void RemoveSkillGroupsFromUserResult::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["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 PublishContactFlowVersionResult::getMessage()const +std::string RemoveSkillGroupsFromUserResult::getMessage()const { return message_; } -int PublishContactFlowVersionResult::getHttpStatusCode()const +int RemoveSkillGroupsFromUserResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string PublishContactFlowVersionResult::getCode()const +std::string RemoveSkillGroupsFromUserResult::getData()const +{ + return data_; +} + +std::string RemoveSkillGroupsFromUserResult::getCode()const { return code_; } -bool PublishContactFlowVersionResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc b/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc index b64e6eb9d..10f2c2979 100644 --- a/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc +++ b/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::RemoveUsersFromSkillGroupRequest; RemoveUsersFromSkillGroupRequest::RemoveUsersFromSkillGroupRequest() : - RpcServiceRequest("ccc", "2017-07-05", "RemoveUsersFromSkillGroup") + RpcServiceRequest("ccc", "2020-07-01", "RemoveUsersFromSkillGroup") { setMethod(HttpRequest::Method::Post); } @@ -27,28 +27,15 @@ RemoveUsersFromSkillGroupRequest::RemoveUsersFromSkillGroupRequest() : RemoveUsersFromSkillGroupRequest::~RemoveUsersFromSkillGroupRequest() {} -std::vector RemoveUsersFromSkillGroupRequest::getUserId()const +std::string RemoveUsersFromSkillGroupRequest::getUserIdList()const { - return userId_; + return userIdList_; } -void RemoveUsersFromSkillGroupRequest::setUserId(const std::vector& userId) +void RemoveUsersFromSkillGroupRequest::setUserIdList(const std::string& userIdList) { - 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); + userIdList_ = userIdList; + setParameter("UserIdList", userIdList); } std::string RemoveUsersFromSkillGroupRequest::getInstanceId()const diff --git a/ccc/src/model/RemoveUsersFromSkillGroupResult.cc b/ccc/src/model/RemoveUsersFromSkillGroupResult.cc index e647d948d..312c875c8 100644 --- a/ccc/src/model/RemoveUsersFromSkillGroupResult.cc +++ b/ccc/src/model/RemoveUsersFromSkillGroupResult.cc @@ -39,14 +39,12 @@ void RemoveUsersFromSkillGroupResult::parse(const std::string &payload) 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["Message"].isNull()) + message_ = value["Message"].asString(); } @@ -65,8 +63,3 @@ 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 index 16f5b1e80..5d5b81726 100644 --- a/ccc/src/model/RemoveUsersRequest.cc +++ b/ccc/src/model/RemoveUsersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::RemoveUsersRequest; RemoveUsersRequest::RemoveUsersRequest() : - RpcServiceRequest("ccc", "2017-07-05", "RemoveUsers") + RpcServiceRequest("ccc", "2020-07-01", "RemoveUsers") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ RemoveUsersRequest::RemoveUsersRequest() : RemoveUsersRequest::~RemoveUsersRequest() {} +std::string RemoveUsersRequest::getUserIdList()const +{ + return userIdList_; +} + +void RemoveUsersRequest::setUserIdList(const std::string& userIdList) +{ + userIdList_ = userIdList; + setParameter("UserIdList", userIdList); +} + std::string RemoveUsersRequest::getInstanceId()const { return instanceId_; @@ -38,27 +49,3 @@ void RemoveUsersRequest::setInstanceId(const std::string& 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 index 5ed3d7aeb..0a631bac0 100644 --- a/ccc/src/model/RemoveUsersResult.cc +++ b/ccc/src/model/RemoveUsersResult.cc @@ -39,14 +39,15 @@ void RemoveUsersResult::parse(const std::string &payload) 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(); } @@ -60,13 +61,13 @@ int RemoveUsersResult::getHttpStatusCode()const return httpStatusCode_; } +std::vector RemoveUsersResult::getParams()const +{ + return params_; +} + 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/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/SaveTerminalLogRequest.cc b/ccc/src/model/SaveTerminalLogRequest.cc deleted file mode 100644 index 64a1fc247..000000000 --- a/ccc/src/model/SaveTerminalLogRequest.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::SaveTerminalLogRequest; - -SaveTerminalLogRequest::SaveTerminalLogRequest() : - RpcServiceRequest("ccc", "2017-07-05", "SaveTerminalLog") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveTerminalLogRequest::~SaveTerminalLogRequest() -{} - -std::string SaveTerminalLogRequest::getCallId()const -{ - return callId_; -} - -void SaveTerminalLogRequest::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); -} - -std::string SaveTerminalLogRequest::getContent()const -{ - return content_; -} - -void SaveTerminalLogRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); -} - -std::string SaveTerminalLogRequest::getUniqueRequestId()const -{ - return uniqueRequestId_; -} - -void SaveTerminalLogRequest::setUniqueRequestId(const std::string& uniqueRequestId) -{ - uniqueRequestId_ = uniqueRequestId; - setParameter("UniqueRequestId", uniqueRequestId); -} - -std::string SaveTerminalLogRequest::getJobId()const -{ - return jobId_; -} - -void SaveTerminalLogRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); -} - -std::string SaveTerminalLogRequest::getInstanceId()const -{ - return instanceId_; -} - -void SaveTerminalLogRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string SaveTerminalLogRequest::getAppName()const -{ - return appName_; -} - -void SaveTerminalLogRequest::setAppName(const std::string& appName) -{ - appName_ = appName; - setParameter("AppName", appName); -} - -int SaveTerminalLogRequest::getDataType()const -{ - return dataType_; -} - -void SaveTerminalLogRequest::setDataType(int dataType) -{ - dataType_ = dataType; - setParameter("DataType", std::to_string(dataType)); -} - -std::string SaveTerminalLogRequest::getStatus()const -{ - return status_; -} - -void SaveTerminalLogRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); -} - -std::string SaveTerminalLogRequest::getMethodName()const -{ - return methodName_; -} - -void SaveTerminalLogRequest::setMethodName(const std::string& methodName) -{ - methodName_ = methodName; - setParameter("MethodName", methodName); -} - diff --git a/ccc/src/model/SaveTerminalLogResult.cc b/ccc/src/model/SaveTerminalLogResult.cc deleted file mode 100644 index 42fa75a1c..000000000 --- a/ccc/src/model/SaveTerminalLogResult.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; - -SaveTerminalLogResult::SaveTerminalLogResult() : - ServiceResult() -{} - -SaveTerminalLogResult::SaveTerminalLogResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SaveTerminalLogResult::~SaveTerminalLogResult() -{} - -void SaveTerminalLogResult::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::stol(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["TimeStamp"].isNull()) - timeStamp_ = std::stol(value["TimeStamp"].asString()); - -} - -std::string SaveTerminalLogResult::getMessage()const -{ - return message_; -} - -long SaveTerminalLogResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SaveTerminalLogResult::getCode()const -{ - return code_; -} - -bool SaveTerminalLogResult::getSuccess()const -{ - return success_; -} - -long SaveTerminalLogResult::getTimeStamp()const -{ - return timeStamp_; -} - 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 index b4d203289..983a7cdca 100644 --- a/ccc/src/model/StartBack2BackCallRequest.cc +++ b/ccc/src/model/StartBack2BackCallRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::StartBack2BackCallRequest; StartBack2BackCallRequest::StartBack2BackCallRequest() : - RpcServiceRequest("ccc", "2017-07-05", "StartBack2BackCall") + RpcServiceRequest("ccc", "2020-07-01", "StartBack2BackCall") { setMethod(HttpRequest::Method::Post); } @@ -27,17 +27,6 @@ StartBack2BackCallRequest::StartBack2BackCallRequest() : 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_; @@ -49,15 +38,70 @@ void StartBack2BackCallRequest::setCallee(const std::string& callee) setParameter("Callee", callee); } -std::string StartBack2BackCallRequest::getAccessKeyId()const +std::string StartBack2BackCallRequest::getBroker()const { - return accessKeyId_; + return broker_; } -void StartBack2BackCallRequest::setAccessKeyId(const std::string& accessKeyId) +void StartBack2BackCallRequest::setBroker(const std::string& broker) { - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + broker_ = broker; + setParameter("Broker", broker); +} + +std::string StartBack2BackCallRequest::getUserId()const +{ + return userId_; +} + +void StartBack2BackCallRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string StartBack2BackCallRequest::getDeviceId()const +{ + return deviceId_; +} + +void StartBack2BackCallRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string StartBack2BackCallRequest::getAdditionalBroker()const +{ + return additionalBroker_; +} + +void StartBack2BackCallRequest::setAdditionalBroker(const std::string& additionalBroker) +{ + additionalBroker_ = additionalBroker; + setParameter("AdditionalBroker", additionalBroker); +} + +std::string StartBack2BackCallRequest::getTags()const +{ + return tags_; +} + +void StartBack2BackCallRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +int StartBack2BackCallRequest::getTimeoutSeconds()const +{ + return timeoutSeconds_; +} + +void StartBack2BackCallRequest::setTimeoutSeconds(int timeoutSeconds) +{ + timeoutSeconds_ = timeoutSeconds; + setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); } std::string StartBack2BackCallRequest::getCaller()const @@ -82,14 +126,3 @@ void StartBack2BackCallRequest::setInstanceId(const std::string& 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 index ea19038f6..666188468 100644 --- a/ccc/src/model/StartBack2BackCallResult.cc +++ b/ccc/src/model/StartBack2BackCallResult.cc @@ -39,35 +39,90 @@ void StartBack2BackCallResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + auto dataNode = value["Data"]; + auto callContextNode = dataNode["CallContext"]; + if(!callContextNode["CallType"].isNull()) + data_.callContext.callType = callContextNode["CallType"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].asString(); + if(!callContextNode["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; + for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) + { + Data::CallContext::ChannelContext channelContextObject; + if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) + channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); + if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) + channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) + channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) + channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); + if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) + channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); + if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) + channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); + if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) + channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); + if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) + channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) + channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); + if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) + channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); + if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); + if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) + channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); + if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) + channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); + data_.callContext.channelContexts.push_back(channelContextObject); + } + auto userContextNode = dataNode["UserContext"]; + if(!userContextNode["BreakCode"].isNull()) + data_.userContext.breakCode = userContextNode["BreakCode"].asString(); + if(!userContextNode["DeviceId"].isNull()) + data_.userContext.deviceId = userContextNode["DeviceId"].asString(); + if(!userContextNode["DeviceState"].isNull()) + data_.userContext.deviceState = userContextNode["DeviceState"].asString(); + if(!userContextNode["Extension"].isNull()) + data_.userContext.extension = userContextNode["Extension"].asString(); + if(!userContextNode["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + if(!userContextNode["InstanceId"].isNull()) + data_.userContext.instanceId = userContextNode["InstanceId"].asString(); + if(!userContextNode["JobId"].isNull()) + data_.userContext.jobId = userContextNode["JobId"].asString(); + if(!userContextNode["Mobile"].isNull()) + data_.userContext.mobile = userContextNode["Mobile"].asString(); + if(!userContextNode["OutboundScenario"].isNull()) + data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; + if(!userContextNode["Reserved"].isNull()) + data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); + if(!userContextNode["Uri"].isNull()) + data_.userContext.uri = userContextNode["Uri"].asString(); + if(!userContextNode["UserId"].isNull()) + data_.userContext.userId = userContextNode["UserId"].asString(); + if(!userContextNode["UserState"].isNull()) + data_.userContext.userState = userContextNode["UserState"].asString(); + if(!userContextNode["WorkMode"].isNull()) + data_.userContext.workMode = userContextNode["WorkMode"].asString(); + auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; + for (auto value : allSignedSkillGroupIdList) + data_.userContext.signedSkillGroupIdList.push_back(value.asString()); + auto allParams = value["Params"]["Param"]; + for (const auto &item : allParams) + params_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string StartBack2BackCallResult::getStatusDesc()const -{ - return statusDesc_; -} - -std::string StartBack2BackCallResult::getTaskId()const -{ - return taskId_; -} - std::string StartBack2BackCallResult::getMessage()const { return message_; @@ -78,23 +133,18 @@ int StartBack2BackCallResult::getHttpStatusCode()const return httpStatusCode_; } +std::vector StartBack2BackCallResult::getParams()const +{ + return params_; +} + +StartBack2BackCallResult::Data StartBack2BackCallResult::getData()const +{ + return data_; +} + std::string StartBack2BackCallResult::getCode()const { return code_; } -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/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/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/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_; +} +