diff --git a/CHANGELOG b/CHANGELOG index 21d1f174d..260d3fc9f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-09-28 Version: 1.36.889 +- Add new internal API. + 2021-09-26 Version: 1.36.888 - Support odcap device. diff --git a/VERSION b/VERSION index 2247b1d4e..74ead1097 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.888 \ No newline at end of file +1.36.889 \ No newline at end of file diff --git a/ccc/CMakeLists.txt b/ccc/CMakeLists.txt index 578e8a04d..9f3914a83 100644 --- a/ccc/CMakeLists.txt +++ b/ccc/CMakeLists.txt @@ -21,413 +21,641 @@ set(ccc_public_header include/alibabacloud/ccc/CCCExport.h ) set(ccc_public_header_model - include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h - include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h - include/alibabacloud/ccc/model/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/AbortPredictiveJobsRequest.h + include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h + include/alibabacloud/ccc/model/AddAgentDeviceRequest.h + include/alibabacloud/ccc/model/AddAgentDeviceResult.h + include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h + include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h + include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupRequest.h + include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h + include/alibabacloud/ccc/model/AddPhoneNumberRequest.h + include/alibabacloud/ccc/model/AddPhoneNumberResult.h + include/alibabacloud/ccc/model/AddPhoneTagsRequest.h + include/alibabacloud/ccc/model/AddPhoneTagsResult.h + include/alibabacloud/ccc/model/AssignJobsRequest.h + include/alibabacloud/ccc/model/AssignJobsResult.h include/alibabacloud/ccc/model/AssignUsersRequest.h include/alibabacloud/ccc/model/AssignUsersResult.h - include/alibabacloud/ccc/model/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/CallOnlinePrivacyNumberRequest.h + include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h + include/alibabacloud/ccc/model/CancelJobsRequest.h + include/alibabacloud/ccc/model/CancelJobsResult.h + include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h + include/alibabacloud/ccc/model/CheckNumberAvaliableResult.h + include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h + include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h + include/alibabacloud/ccc/model/CreateBatchJobsRequest.h + include/alibabacloud/ccc/model/CreateBatchJobsResult.h + include/alibabacloud/ccc/model/CreateCabInstanceRequest.h + include/alibabacloud/ccc/model/CreateCabInstanceResult.h + include/alibabacloud/ccc/model/CreateContactFlowRequest.h + include/alibabacloud/ccc/model/CreateContactFlowResult.h + include/alibabacloud/ccc/model/CreateFaultRequest.h + include/alibabacloud/ccc/model/CreateFaultResult.h include/alibabacloud/ccc/model/CreateInstanceRequest.h include/alibabacloud/ccc/model/CreateInstanceResult.h + include/alibabacloud/ccc/model/CreateJobGroupRequest.h + include/alibabacloud/ccc/model/CreateJobGroupResult.h + include/alibabacloud/ccc/model/CreateMediaRequest.h + include/alibabacloud/ccc/model/CreateMediaResult.h + include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h + include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h + include/alibabacloud/ccc/model/CreateScenarioRequest.h + include/alibabacloud/ccc/model/CreateScenarioResult.h + include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h + include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h include/alibabacloud/ccc/model/CreateSkillGroupRequest.h include/alibabacloud/ccc/model/CreateSkillGroupResult.h + include/alibabacloud/ccc/model/CreateSurveyRequest.h + include/alibabacloud/ccc/model/CreateSurveyResult.h include/alibabacloud/ccc/model/CreateUserRequest.h include/alibabacloud/ccc/model/CreateUserResult.h + include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h + include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h + include/alibabacloud/ccc/model/DeleteInstanceRequest.h + include/alibabacloud/ccc/model/DeleteInstanceResult.h + include/alibabacloud/ccc/model/DeleteJobGroupRequest.h + include/alibabacloud/ccc/model/DeleteJobGroupResult.h + include/alibabacloud/ccc/model/DeleteMediaRequest.h + include/alibabacloud/ccc/model/DeleteMediaResult.h + include/alibabacloud/ccc/model/DeletePhoneTagsRequest.h + include/alibabacloud/ccc/model/DeletePhoneTagsResult.h include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h include/alibabacloud/ccc/model/DeleteSkillGroupResult.h - include/alibabacloud/ccc/model/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/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/GetInstanceRequest.h include/alibabacloud/ccc/model/GetInstanceResult.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/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/GetPredictiveJobGroupRequest.h + include/alibabacloud/ccc/model/GetPredictiveJobGroupResult.h + include/alibabacloud/ccc/model/GetPredictiveTaskDataRequest.h + include/alibabacloud/ccc/model/GetPredictiveTaskDataResult.h + include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h + include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h + include/alibabacloud/ccc/model/GetRoutePointRequest.h + include/alibabacloud/ccc/model/GetRoutePointResult.h + include/alibabacloud/ccc/model/GetScenarioRequest.h + include/alibabacloud/ccc/model/GetScenarioResult.h + include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h + include/alibabacloud/ccc/model/GetServiceExtensionsResult.h + include/alibabacloud/ccc/model/GetSmsConfigRequest.h + include/alibabacloud/ccc/model/GetSmsConfigResult.h + include/alibabacloud/ccc/model/GetSurveyRequest.h + include/alibabacloud/ccc/model/GetSurveyResult.h + include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h + include/alibabacloud/ccc/model/GetTURNCredentialsResult.h + include/alibabacloud/ccc/model/GetTURNServerListRequest.h + include/alibabacloud/ccc/model/GetTURNServerListResult.h + include/alibabacloud/ccc/model/GetTaskListRequest.h + include/alibabacloud/ccc/model/GetTaskListResult.h include/alibabacloud/ccc/model/GetUserRequest.h include/alibabacloud/ccc/model/GetUserResult.h - include/alibabacloud/ccc/model/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/GetUserByExtensionRequest.h + include/alibabacloud/ccc/model/GetUserByExtensionResult.h + include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.h + include/alibabacloud/ccc/model/InflightTaskTimeoutResult.h + include/alibabacloud/ccc/model/LaunchAppraiseRequest.h + include/alibabacloud/ccc/model/LaunchAppraiseResult.h + include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h + include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h + include/alibabacloud/ccc/model/ListAgentDevicesRequest.h + include/alibabacloud/ccc/model/ListAgentDevicesResult.h + include/alibabacloud/ccc/model/ListAgentEventsRequest.h + include/alibabacloud/ccc/model/ListAgentEventsResult.h include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h include/alibabacloud/ccc/model/ListAgentStateLogsResult.h - include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h - include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.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/ListCallDetailRecordsRequest.h include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h - include/alibabacloud/ccc/model/ListConfigItemsRequest.h - include/alibabacloud/ccc/model/ListConfigItemsResult.h + include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h + include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h + include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h + include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h + include/alibabacloud/ccc/model/ListConfigRequest.h + include/alibabacloud/ccc/model/ListConfigResult.h include/alibabacloud/ccc/model/ListContactFlowsRequest.h include/alibabacloud/ccc/model/ListContactFlowsResult.h - include/alibabacloud/ccc/model/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/ListInstancesRequest.h - include/alibabacloud/ccc/model/ListInstancesResult.h include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h include/alibabacloud/ccc/model/ListInstancesOfUserResult.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/ListIvrTrackingDetailsRequest.h - include/alibabacloud/ccc/model/ListIvrTrackingDetailsResult.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/ListIvrTrackingDetailRequest.h + include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h + include/alibabacloud/ccc/model/ListJobGroupsRequest.h + include/alibabacloud/ccc/model/ListJobGroupsResult.h + include/alibabacloud/ccc/model/ListJobStatusRequest.h + include/alibabacloud/ccc/model/ListJobStatusResult.h + include/alibabacloud/ccc/model/ListJobsByGroupRequest.h + include/alibabacloud/ccc/model/ListJobsByGroupResult.h + include/alibabacloud/ccc/model/ListMediasRequest.h + include/alibabacloud/ccc/model/ListMediasResult.h + include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h + include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h include/alibabacloud/ccc/model/ListPhoneNumbersResult.h - include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupRequest.h - include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupResult.h - include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h - include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h - include/alibabacloud/ccc/model/ListRamUsersRequest.h - include/alibabacloud/ccc/model/ListRamUsersResult.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/ListPhoneTagsRequest.h + include/alibabacloud/ccc/model/ListPhoneTagsResult.h + include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h + include/alibabacloud/ccc/model/ListRealTimeAgentResult.h + include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h + include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h + include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h + include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h + include/alibabacloud/ccc/model/ListRecordingsRequest.h + include/alibabacloud/ccc/model/ListRecordingsResult.h + include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h + include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h include/alibabacloud/ccc/model/ListRolesRequest.h include/alibabacloud/ccc/model/ListRolesResult.h + include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h + include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h + include/alibabacloud/ccc/model/ListScenariosRequest.h + include/alibabacloud/ccc/model/ListScenariosResult.h + include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h + include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h include/alibabacloud/ccc/model/ListSkillGroupsRequest.h include/alibabacloud/ccc/model/ListSkillGroupsResult.h - include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h - include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h - include/alibabacloud/ccc/model/ListUnassignedNumbersRequest.h - include/alibabacloud/ccc/model/ListUnassignedNumbersResult.h - include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h - include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h + include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h + include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h + include/alibabacloud/ccc/model/ListSurveysRequest.h + include/alibabacloud/ccc/model/ListSurveysResult.h + include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h + include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h + include/alibabacloud/ccc/model/ListTrunkProvidersRequest.h + include/alibabacloud/ccc/model/ListTrunkProvidersResult.h + include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h + include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h + include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h + include/alibabacloud/ccc/model/ListUnreachableContactsResult.h include/alibabacloud/ccc/model/ListUsersRequest.h include/alibabacloud/ccc/model/ListUsersResult.h - include/alibabacloud/ccc/model/MakeCallRequest.h - include/alibabacloud/ccc/model/MakeCallResult.h - include/alibabacloud/ccc/model/ModifyInstanceRequest.h - include/alibabacloud/ccc/model/ModifyInstanceResult.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/ModifyCallRatioRequest.h + include/alibabacloud/ccc/model/ModifyCallRatioResult.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/ModifySkillLevelsOfUserRequest.h - include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h + include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h + include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h + include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h + include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h + include/alibabacloud/ccc/model/ModifySurveyRequest.h + include/alibabacloud/ccc/model/ModifySurveyResult.h include/alibabacloud/ccc/model/ModifyUserRequest.h include/alibabacloud/ccc/model/ModifyUserResult.h - include/alibabacloud/ccc/model/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/PickGlobalOutboundNumbersRequest.h + include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h + include/alibabacloud/ccc/model/PickLocalNumberRequest.h + include/alibabacloud/ccc/model/PickLocalNumberResult.h include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h include/alibabacloud/ccc/model/PickOutboundNumbersResult.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/PublishContactFlowVersionRequest.h + include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h + include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h + include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h + include/alibabacloud/ccc/model/PublishSurveyRequest.h + include/alibabacloud/ccc/model/PublishSurveyResult.h + include/alibabacloud/ccc/model/RefreshTokenRequest.h + include/alibabacloud/ccc/model/RefreshTokenResult.h + include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h + include/alibabacloud/ccc/model/RemovePhoneNumberResult.h include/alibabacloud/ccc/model/RemoveUsersRequest.h include/alibabacloud/ccc/model/RemoveUsersResult.h include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h - include/alibabacloud/ccc/model/ResetAgentStateRequest.h - include/alibabacloud/ccc/model/ResetAgentStateResult.h - include/alibabacloud/ccc/model/ResetUserPasswordRequest.h - include/alibabacloud/ccc/model/ResetUserPasswordResult.h - include/alibabacloud/ccc/model/RetrieveCallRequest.h - include/alibabacloud/ccc/model/RetrieveCallResult.h - include/alibabacloud/ccc/model/SaveRTCStatsV2Request.h - include/alibabacloud/ccc/model/SaveRTCStatsV2Result.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/SaveWebRtcInfoRequest.h - include/alibabacloud/ccc/model/SaveWebRtcInfoResult.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/SendPredefinedShortMessageRequest.h + include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h include/alibabacloud/ccc/model/StartBack2BackCallRequest.h include/alibabacloud/ccc/model/StartBack2BackCallResult.h - include/alibabacloud/ccc/model/StartPredictiveCallRequest.h - include/alibabacloud/ccc/model/StartPredictiveCallResult.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 - include/alibabacloud/ccc/model/UpdateConfigItemsRequest.h - include/alibabacloud/ccc/model/UpdateConfigItemsResult.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 ) set(ccc_src src/CCCClient.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/AbortPredictiveJobsRequest.cc + src/model/AbortPredictiveJobsResult.cc + src/model/AddAgentDeviceRequest.cc + src/model/AddAgentDeviceResult.cc + src/model/AddBulkPhoneNumbersRequest.cc + src/model/AddBulkPhoneNumbersResult.cc + src/model/AddJobsToPredictiveJobGroupRequest.cc + src/model/AddJobsToPredictiveJobGroupResult.cc + src/model/AddPhoneNumberRequest.cc + src/model/AddPhoneNumberResult.cc + src/model/AddPhoneTagsRequest.cc + src/model/AddPhoneTagsResult.cc + src/model/AssignJobsRequest.cc + src/model/AssignJobsResult.cc src/model/AssignUsersRequest.cc src/model/AssignUsersResult.cc - src/model/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/CallOnlinePrivacyNumberRequest.cc + src/model/CallOnlinePrivacyNumberResult.cc + src/model/CancelJobsRequest.cc + src/model/CancelJobsResult.cc + src/model/CheckNumberAvaliableRequest.cc + src/model/CheckNumberAvaliableResult.cc + src/model/CommitContactFlowVersionModificationRequest.cc + src/model/CommitContactFlowVersionModificationResult.cc + src/model/CreateBatchJobsRequest.cc + src/model/CreateBatchJobsResult.cc + src/model/CreateCabInstanceRequest.cc + src/model/CreateCabInstanceResult.cc + src/model/CreateContactFlowRequest.cc + src/model/CreateContactFlowResult.cc + src/model/CreateFaultRequest.cc + src/model/CreateFaultResult.cc src/model/CreateInstanceRequest.cc src/model/CreateInstanceResult.cc + src/model/CreateJobGroupRequest.cc + src/model/CreateJobGroupResult.cc + src/model/CreateMediaRequest.cc + src/model/CreateMediaResult.cc + src/model/CreatePredictiveJobGroupRequest.cc + src/model/CreatePredictiveJobGroupResult.cc + src/model/CreateScenarioRequest.cc + src/model/CreateScenarioResult.cc + src/model/CreateScenarioFromTemplateRequest.cc + src/model/CreateScenarioFromTemplateResult.cc src/model/CreateSkillGroupRequest.cc src/model/CreateSkillGroupResult.cc + src/model/CreateSurveyRequest.cc + src/model/CreateSurveyResult.cc src/model/CreateUserRequest.cc src/model/CreateUserResult.cc + src/model/CreateVoiceAppraiseRequest.cc + src/model/CreateVoiceAppraiseResult.cc + src/model/DeleteInstanceRequest.cc + src/model/DeleteInstanceResult.cc + src/model/DeleteJobGroupRequest.cc + src/model/DeleteJobGroupResult.cc + src/model/DeleteMediaRequest.cc + src/model/DeleteMediaResult.cc + src/model/DeletePhoneTagsRequest.cc + src/model/DeletePhoneTagsResult.cc src/model/DeleteSkillGroupRequest.cc src/model/DeleteSkillGroupResult.cc - src/model/GetCallDetailRecordRequest.cc - src/model/GetCallDetailRecordResult.cc - src/model/GetHistoricalCallerReportRequest.cc - src/model/GetHistoricalCallerReportResult.cc - src/model/GetHistoricalInstanceReportRequest.cc - src/model/GetHistoricalInstanceReportResult.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/GetInstanceRequest.cc src/model/GetInstanceResult.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/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/GetPredictiveJobGroupRequest.cc + src/model/GetPredictiveJobGroupResult.cc + src/model/GetPredictiveTaskDataRequest.cc + src/model/GetPredictiveTaskDataResult.cc + src/model/GetRecordOssUploadParamRequest.cc + src/model/GetRecordOssUploadParamResult.cc + src/model/GetRoutePointRequest.cc + src/model/GetRoutePointResult.cc + src/model/GetScenarioRequest.cc + src/model/GetScenarioResult.cc + src/model/GetServiceExtensionsRequest.cc + src/model/GetServiceExtensionsResult.cc + src/model/GetSmsConfigRequest.cc + src/model/GetSmsConfigResult.cc + src/model/GetSurveyRequest.cc + src/model/GetSurveyResult.cc + src/model/GetTURNCredentialsRequest.cc + src/model/GetTURNCredentialsResult.cc + src/model/GetTURNServerListRequest.cc + src/model/GetTURNServerListResult.cc + src/model/GetTaskListRequest.cc + src/model/GetTaskListResult.cc src/model/GetUserRequest.cc src/model/GetUserResult.cc - src/model/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/GetUserByExtensionRequest.cc + src/model/GetUserByExtensionResult.cc + src/model/InflightTaskTimeoutRequest.cc + src/model/InflightTaskTimeoutResult.cc + src/model/LaunchAppraiseRequest.cc + src/model/LaunchAppraiseResult.cc + src/model/LaunchShortMessageAppraiseRequest.cc + src/model/LaunchShortMessageAppraiseResult.cc + src/model/ListAgentDevicesRequest.cc + src/model/ListAgentDevicesResult.cc + src/model/ListAgentEventsRequest.cc + src/model/ListAgentEventsResult.cc src/model/ListAgentStateLogsRequest.cc src/model/ListAgentStateLogsResult.cc - src/model/ListBriefSkillGroupsRequest.cc - src/model/ListBriefSkillGroupsResult.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/ListCallDetailRecordsRequest.cc src/model/ListCallDetailRecordsResult.cc - src/model/ListConfigItemsRequest.cc - src/model/ListConfigItemsResult.cc + src/model/ListCallEventDetailByContactIdRequest.cc + src/model/ListCallEventDetailByContactIdResult.cc + src/model/ListCallMeasureSummaryReportsRequest.cc + src/model/ListCallMeasureSummaryReportsResult.cc + src/model/ListConfigRequest.cc + src/model/ListConfigResult.cc src/model/ListContactFlowsRequest.cc src/model/ListContactFlowsResult.cc - src/model/ListDevicesRequest.cc - src/model/ListDevicesResult.cc - src/model/ListHistoricalAgentReportRequest.cc - src/model/ListHistoricalAgentReportResult.cc - src/model/ListHistoricalSkillGroupReportRequest.cc - src/model/ListHistoricalSkillGroupReportResult.cc - src/model/ListInstancesRequest.cc - src/model/ListInstancesResult.cc src/model/ListInstancesOfUserRequest.cc src/model/ListInstancesOfUserResult.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/ListIvrTrackingDetailsRequest.cc - src/model/ListIvrTrackingDetailsResult.cc - src/model/ListOutboundNumbersOfUserRequest.cc - src/model/ListOutboundNumbersOfUserResult.cc - src/model/ListPersonalNumbersOfUserRequest.cc - src/model/ListPersonalNumbersOfUserResult.cc + src/model/ListIvrTrackingDetailRequest.cc + src/model/ListIvrTrackingDetailResult.cc + src/model/ListJobGroupsRequest.cc + src/model/ListJobGroupsResult.cc + src/model/ListJobStatusRequest.cc + src/model/ListJobStatusResult.cc + src/model/ListJobsByGroupRequest.cc + src/model/ListJobsByGroupResult.cc + src/model/ListMediasRequest.cc + src/model/ListMediasResult.cc + src/model/ListOutboundPhoneNumberOfUserRequest.cc + src/model/ListOutboundPhoneNumberOfUserResult.cc src/model/ListPhoneNumbersRequest.cc src/model/ListPhoneNumbersResult.cc - src/model/ListPhoneNumbersOfSkillGroupRequest.cc - src/model/ListPhoneNumbersOfSkillGroupResult.cc - src/model/ListPrivilegesOfUserRequest.cc - src/model/ListPrivilegesOfUserResult.cc - src/model/ListRamUsersRequest.cc - src/model/ListRamUsersResult.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/ListPhoneTagsRequest.cc + src/model/ListPhoneTagsResult.cc + src/model/ListRealTimeAgentRequest.cc + src/model/ListRealTimeAgentResult.cc + src/model/ListRecentCallRecordsRequest.cc + src/model/ListRecentCallRecordsResult.cc + src/model/ListRecordingOfDualTrackRequest.cc + src/model/ListRecordingOfDualTrackResult.cc + src/model/ListRecordingsRequest.cc + src/model/ListRecordingsResult.cc + src/model/ListRecordingsByContactIdRequest.cc + src/model/ListRecordingsByContactIdResult.cc src/model/ListRolesRequest.cc src/model/ListRolesResult.cc + src/model/ListScenarioTemplatesRequest.cc + src/model/ListScenarioTemplatesResult.cc + src/model/ListScenariosRequest.cc + src/model/ListScenariosResult.cc + src/model/ListSkillGroupStatesRequest.cc + src/model/ListSkillGroupStatesResult.cc + src/model/ListSkillGroupSummaryReportsRequest.cc + src/model/ListSkillGroupSummaryReportsResult.cc + src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc + src/model/ListSkillGroupSummaryReportsByIntervalResult.cc + src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc + src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc src/model/ListSkillGroupsRequest.cc src/model/ListSkillGroupsResult.cc - src/model/ListSkillLevelsOfUserRequest.cc - src/model/ListSkillLevelsOfUserResult.cc - src/model/ListUnassignedNumbersRequest.cc - src/model/ListUnassignedNumbersResult.cc - src/model/ListUserLevelsOfSkillGroupRequest.cc - src/model/ListUserLevelsOfSkillGroupResult.cc + src/model/ListSkillGroupsOfUserRequest.cc + src/model/ListSkillGroupsOfUserResult.cc + src/model/ListSurveysRequest.cc + src/model/ListSurveysResult.cc + src/model/ListTransferableSkillGroupsRequest.cc + src/model/ListTransferableSkillGroupsResult.cc + src/model/ListTrunkProvidersRequest.cc + src/model/ListTrunkProvidersResult.cc + src/model/ListTrunksOfSkillGroupRequest.cc + src/model/ListTrunksOfSkillGroupResult.cc + src/model/ListUnreachableContactsRequest.cc + src/model/ListUnreachableContactsResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc - src/model/MakeCallRequest.cc - src/model/MakeCallResult.cc - src/model/ModifyInstanceRequest.cc - src/model/ModifyInstanceResult.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/ModifyCallRatioRequest.cc + src/model/ModifyCallRatioResult.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/ModifySkillLevelsOfUserRequest.cc - src/model/ModifySkillLevelsOfUserResult.cc + src/model/ModifySkillGroupOfUserRequest.cc + src/model/ModifySkillGroupOfUserResult.cc + src/model/ModifySkillGroupOutboundNumbersRequest.cc + src/model/ModifySkillGroupOutboundNumbersResult.cc + src/model/ModifySurveyRequest.cc + src/model/ModifySurveyResult.cc src/model/ModifyUserRequest.cc src/model/ModifyUserResult.cc - src/model/ModifyUserLevelsOfSkillGroupRequest.cc - src/model/ModifyUserLevelsOfSkillGroupResult.cc - src/model/MonitorCallRequest.cc - src/model/MonitorCallResult.cc - src/model/MuteCallRequest.cc - src/model/MuteCallResult.cc + src/model/PickGlobalOutboundNumbersRequest.cc + src/model/PickGlobalOutboundNumbersResult.cc + src/model/PickLocalNumberRequest.cc + src/model/PickLocalNumberResult.cc src/model/PickOutboundNumbersRequest.cc src/model/PickOutboundNumbersResult.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/PublishContactFlowVersionRequest.cc + src/model/PublishContactFlowVersionResult.cc + src/model/PublishPredictiveJobGroupRequest.cc + src/model/PublishPredictiveJobGroupResult.cc + src/model/PublishSurveyRequest.cc + src/model/PublishSurveyResult.cc + src/model/RefreshTokenRequest.cc + src/model/RefreshTokenResult.cc + src/model/RemovePhoneNumberRequest.cc + src/model/RemovePhoneNumberResult.cc src/model/RemoveUsersRequest.cc src/model/RemoveUsersResult.cc src/model/RemoveUsersFromSkillGroupRequest.cc src/model/RemoveUsersFromSkillGroupResult.cc - src/model/ResetAgentStateRequest.cc - src/model/ResetAgentStateResult.cc - src/model/ResetUserPasswordRequest.cc - src/model/ResetUserPasswordResult.cc - src/model/RetrieveCallRequest.cc - src/model/RetrieveCallResult.cc - src/model/SaveRTCStatsV2Request.cc - src/model/SaveRTCStatsV2Result.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/SaveWebRtcInfoRequest.cc - src/model/SaveWebRtcInfoResult.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/SendPredefinedShortMessageRequest.cc + src/model/SendPredefinedShortMessageResult.cc src/model/StartBack2BackCallRequest.cc src/model/StartBack2BackCallResult.cc - src/model/StartPredictiveCallRequest.cc - src/model/StartPredictiveCallResult.cc - src/model/TakeBreakRequest.cc - src/model/TakeBreakResult.cc - src/model/UnmuteCallRequest.cc - src/model/UnmuteCallResult.cc - src/model/UpdateConfigItemsRequest.cc - src/model/UpdateConfigItemsResult.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 ) 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 cbbf4fb4c..ace410216 100644 --- a/ccc/include/alibabacloud/ccc/CCCClient.h +++ b/ccc/include/alibabacloud/ccc/CCCClient.h @@ -22,208 +22,322 @@ #include #include #include "CCCExport.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/AbortPredictiveJobsRequest.h" +#include "model/AbortPredictiveJobsResult.h" +#include "model/AddAgentDeviceRequest.h" +#include "model/AddAgentDeviceResult.h" +#include "model/AddBulkPhoneNumbersRequest.h" +#include "model/AddBulkPhoneNumbersResult.h" +#include "model/AddJobsToPredictiveJobGroupRequest.h" +#include "model/AddJobsToPredictiveJobGroupResult.h" +#include "model/AddPhoneNumberRequest.h" +#include "model/AddPhoneNumberResult.h" +#include "model/AddPhoneTagsRequest.h" +#include "model/AddPhoneTagsResult.h" +#include "model/AssignJobsRequest.h" +#include "model/AssignJobsResult.h" #include "model/AssignUsersRequest.h" #include "model/AssignUsersResult.h" -#include "model/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/CallOnlinePrivacyNumberRequest.h" +#include "model/CallOnlinePrivacyNumberResult.h" +#include "model/CancelJobsRequest.h" +#include "model/CancelJobsResult.h" +#include "model/CheckNumberAvaliableRequest.h" +#include "model/CheckNumberAvaliableResult.h" +#include "model/CommitContactFlowVersionModificationRequest.h" +#include "model/CommitContactFlowVersionModificationResult.h" +#include "model/CreateBatchJobsRequest.h" +#include "model/CreateBatchJobsResult.h" +#include "model/CreateCabInstanceRequest.h" +#include "model/CreateCabInstanceResult.h" +#include "model/CreateContactFlowRequest.h" +#include "model/CreateContactFlowResult.h" +#include "model/CreateFaultRequest.h" +#include "model/CreateFaultResult.h" #include "model/CreateInstanceRequest.h" #include "model/CreateInstanceResult.h" +#include "model/CreateJobGroupRequest.h" +#include "model/CreateJobGroupResult.h" +#include "model/CreateMediaRequest.h" +#include "model/CreateMediaResult.h" +#include "model/CreatePredictiveJobGroupRequest.h" +#include "model/CreatePredictiveJobGroupResult.h" +#include "model/CreateScenarioRequest.h" +#include "model/CreateScenarioResult.h" +#include "model/CreateScenarioFromTemplateRequest.h" +#include "model/CreateScenarioFromTemplateResult.h" #include "model/CreateSkillGroupRequest.h" #include "model/CreateSkillGroupResult.h" +#include "model/CreateSurveyRequest.h" +#include "model/CreateSurveyResult.h" #include "model/CreateUserRequest.h" #include "model/CreateUserResult.h" +#include "model/CreateVoiceAppraiseRequest.h" +#include "model/CreateVoiceAppraiseResult.h" +#include "model/DeleteInstanceRequest.h" +#include "model/DeleteInstanceResult.h" +#include "model/DeleteJobGroupRequest.h" +#include "model/DeleteJobGroupResult.h" +#include "model/DeleteMediaRequest.h" +#include "model/DeleteMediaResult.h" +#include "model/DeletePhoneTagsRequest.h" +#include "model/DeletePhoneTagsResult.h" #include "model/DeleteSkillGroupRequest.h" #include "model/DeleteSkillGroupResult.h" -#include "model/GetCallDetailRecordRequest.h" -#include "model/GetCallDetailRecordResult.h" -#include "model/GetHistoricalCallerReportRequest.h" -#include "model/GetHistoricalCallerReportResult.h" -#include "model/GetHistoricalInstanceReportRequest.h" -#include "model/GetHistoricalInstanceReportResult.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/GetInstanceRequest.h" #include "model/GetInstanceResult.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/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/GetPredictiveJobGroupRequest.h" +#include "model/GetPredictiveJobGroupResult.h" +#include "model/GetPredictiveTaskDataRequest.h" +#include "model/GetPredictiveTaskDataResult.h" +#include "model/GetRecordOssUploadParamRequest.h" +#include "model/GetRecordOssUploadParamResult.h" +#include "model/GetRoutePointRequest.h" +#include "model/GetRoutePointResult.h" +#include "model/GetScenarioRequest.h" +#include "model/GetScenarioResult.h" +#include "model/GetServiceExtensionsRequest.h" +#include "model/GetServiceExtensionsResult.h" +#include "model/GetSmsConfigRequest.h" +#include "model/GetSmsConfigResult.h" +#include "model/GetSurveyRequest.h" +#include "model/GetSurveyResult.h" +#include "model/GetTURNCredentialsRequest.h" +#include "model/GetTURNCredentialsResult.h" +#include "model/GetTURNServerListRequest.h" +#include "model/GetTURNServerListResult.h" +#include "model/GetTaskListRequest.h" +#include "model/GetTaskListResult.h" #include "model/GetUserRequest.h" #include "model/GetUserResult.h" -#include "model/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/GetUserByExtensionRequest.h" +#include "model/GetUserByExtensionResult.h" +#include "model/InflightTaskTimeoutRequest.h" +#include "model/InflightTaskTimeoutResult.h" +#include "model/LaunchAppraiseRequest.h" +#include "model/LaunchAppraiseResult.h" +#include "model/LaunchShortMessageAppraiseRequest.h" +#include "model/LaunchShortMessageAppraiseResult.h" +#include "model/ListAgentDevicesRequest.h" +#include "model/ListAgentDevicesResult.h" +#include "model/ListAgentEventsRequest.h" +#include "model/ListAgentEventsResult.h" #include "model/ListAgentStateLogsRequest.h" #include "model/ListAgentStateLogsResult.h" -#include "model/ListBriefSkillGroupsRequest.h" -#include "model/ListBriefSkillGroupsResult.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/ListCallDetailRecordsRequest.h" #include "model/ListCallDetailRecordsResult.h" -#include "model/ListConfigItemsRequest.h" -#include "model/ListConfigItemsResult.h" +#include "model/ListCallEventDetailByContactIdRequest.h" +#include "model/ListCallEventDetailByContactIdResult.h" +#include "model/ListCallMeasureSummaryReportsRequest.h" +#include "model/ListCallMeasureSummaryReportsResult.h" +#include "model/ListConfigRequest.h" +#include "model/ListConfigResult.h" #include "model/ListContactFlowsRequest.h" #include "model/ListContactFlowsResult.h" -#include "model/ListDevicesRequest.h" -#include "model/ListDevicesResult.h" -#include "model/ListHistoricalAgentReportRequest.h" -#include "model/ListHistoricalAgentReportResult.h" -#include "model/ListHistoricalSkillGroupReportRequest.h" -#include "model/ListHistoricalSkillGroupReportResult.h" -#include "model/ListInstancesRequest.h" -#include "model/ListInstancesResult.h" #include "model/ListInstancesOfUserRequest.h" #include "model/ListInstancesOfUserResult.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/ListIvrTrackingDetailsRequest.h" -#include "model/ListIvrTrackingDetailsResult.h" -#include "model/ListOutboundNumbersOfUserRequest.h" -#include "model/ListOutboundNumbersOfUserResult.h" -#include "model/ListPersonalNumbersOfUserRequest.h" -#include "model/ListPersonalNumbersOfUserResult.h" +#include "model/ListIvrTrackingDetailRequest.h" +#include "model/ListIvrTrackingDetailResult.h" +#include "model/ListJobGroupsRequest.h" +#include "model/ListJobGroupsResult.h" +#include "model/ListJobStatusRequest.h" +#include "model/ListJobStatusResult.h" +#include "model/ListJobsByGroupRequest.h" +#include "model/ListJobsByGroupResult.h" +#include "model/ListMediasRequest.h" +#include "model/ListMediasResult.h" +#include "model/ListOutboundPhoneNumberOfUserRequest.h" +#include "model/ListOutboundPhoneNumberOfUserResult.h" #include "model/ListPhoneNumbersRequest.h" #include "model/ListPhoneNumbersResult.h" -#include "model/ListPhoneNumbersOfSkillGroupRequest.h" -#include "model/ListPhoneNumbersOfSkillGroupResult.h" -#include "model/ListPrivilegesOfUserRequest.h" -#include "model/ListPrivilegesOfUserResult.h" -#include "model/ListRamUsersRequest.h" -#include "model/ListRamUsersResult.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/ListPhoneTagsRequest.h" +#include "model/ListPhoneTagsResult.h" +#include "model/ListRealTimeAgentRequest.h" +#include "model/ListRealTimeAgentResult.h" +#include "model/ListRecentCallRecordsRequest.h" +#include "model/ListRecentCallRecordsResult.h" +#include "model/ListRecordingOfDualTrackRequest.h" +#include "model/ListRecordingOfDualTrackResult.h" +#include "model/ListRecordingsRequest.h" +#include "model/ListRecordingsResult.h" +#include "model/ListRecordingsByContactIdRequest.h" +#include "model/ListRecordingsByContactIdResult.h" #include "model/ListRolesRequest.h" #include "model/ListRolesResult.h" +#include "model/ListScenarioTemplatesRequest.h" +#include "model/ListScenarioTemplatesResult.h" +#include "model/ListScenariosRequest.h" +#include "model/ListScenariosResult.h" +#include "model/ListSkillGroupStatesRequest.h" +#include "model/ListSkillGroupStatesResult.h" +#include "model/ListSkillGroupSummaryReportsRequest.h" +#include "model/ListSkillGroupSummaryReportsResult.h" +#include "model/ListSkillGroupSummaryReportsByIntervalRequest.h" +#include "model/ListSkillGroupSummaryReportsByIntervalResult.h" +#include "model/ListSkillGroupSummaryReportsSinceMidnightRequest.h" +#include "model/ListSkillGroupSummaryReportsSinceMidnightResult.h" #include "model/ListSkillGroupsRequest.h" #include "model/ListSkillGroupsResult.h" -#include "model/ListSkillLevelsOfUserRequest.h" -#include "model/ListSkillLevelsOfUserResult.h" -#include "model/ListUnassignedNumbersRequest.h" -#include "model/ListUnassignedNumbersResult.h" -#include "model/ListUserLevelsOfSkillGroupRequest.h" -#include "model/ListUserLevelsOfSkillGroupResult.h" +#include "model/ListSkillGroupsOfUserRequest.h" +#include "model/ListSkillGroupsOfUserResult.h" +#include "model/ListSurveysRequest.h" +#include "model/ListSurveysResult.h" +#include "model/ListTransferableSkillGroupsRequest.h" +#include "model/ListTransferableSkillGroupsResult.h" +#include "model/ListTrunkProvidersRequest.h" +#include "model/ListTrunkProvidersResult.h" +#include "model/ListTrunksOfSkillGroupRequest.h" +#include "model/ListTrunksOfSkillGroupResult.h" +#include "model/ListUnreachableContactsRequest.h" +#include "model/ListUnreachableContactsResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" -#include "model/MakeCallRequest.h" -#include "model/MakeCallResult.h" -#include "model/ModifyInstanceRequest.h" -#include "model/ModifyInstanceResult.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/ModifyCallRatioRequest.h" +#include "model/ModifyCallRatioResult.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/ModifySkillLevelsOfUserRequest.h" -#include "model/ModifySkillLevelsOfUserResult.h" +#include "model/ModifySkillGroupOfUserRequest.h" +#include "model/ModifySkillGroupOfUserResult.h" +#include "model/ModifySkillGroupOutboundNumbersRequest.h" +#include "model/ModifySkillGroupOutboundNumbersResult.h" +#include "model/ModifySurveyRequest.h" +#include "model/ModifySurveyResult.h" #include "model/ModifyUserRequest.h" #include "model/ModifyUserResult.h" -#include "model/ModifyUserLevelsOfSkillGroupRequest.h" -#include "model/ModifyUserLevelsOfSkillGroupResult.h" -#include "model/MonitorCallRequest.h" -#include "model/MonitorCallResult.h" -#include "model/MuteCallRequest.h" -#include "model/MuteCallResult.h" +#include "model/PickGlobalOutboundNumbersRequest.h" +#include "model/PickGlobalOutboundNumbersResult.h" +#include "model/PickLocalNumberRequest.h" +#include "model/PickLocalNumberResult.h" #include "model/PickOutboundNumbersRequest.h" #include "model/PickOutboundNumbersResult.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/PublishContactFlowVersionRequest.h" +#include "model/PublishContactFlowVersionResult.h" +#include "model/PublishPredictiveJobGroupRequest.h" +#include "model/PublishPredictiveJobGroupResult.h" +#include "model/PublishSurveyRequest.h" +#include "model/PublishSurveyResult.h" +#include "model/RefreshTokenRequest.h" +#include "model/RefreshTokenResult.h" +#include "model/RemovePhoneNumberRequest.h" +#include "model/RemovePhoneNumberResult.h" #include "model/RemoveUsersRequest.h" #include "model/RemoveUsersResult.h" #include "model/RemoveUsersFromSkillGroupRequest.h" #include "model/RemoveUsersFromSkillGroupResult.h" -#include "model/ResetAgentStateRequest.h" -#include "model/ResetAgentStateResult.h" -#include "model/ResetUserPasswordRequest.h" -#include "model/ResetUserPasswordResult.h" -#include "model/RetrieveCallRequest.h" -#include "model/RetrieveCallResult.h" -#include "model/SaveRTCStatsV2Request.h" -#include "model/SaveRTCStatsV2Result.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/SaveWebRtcInfoRequest.h" -#include "model/SaveWebRtcInfoResult.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/SendPredefinedShortMessageRequest.h" +#include "model/SendPredefinedShortMessageResult.h" #include "model/StartBack2BackCallRequest.h" #include "model/StartBack2BackCallResult.h" -#include "model/StartPredictiveCallRequest.h" -#include "model/StartPredictiveCallResult.h" -#include "model/TakeBreakRequest.h" -#include "model/TakeBreakResult.h" -#include "model/UnmuteCallRequest.h" -#include "model/UnmuteCallResult.h" -#include "model/UpdateConfigItemsRequest.h" -#include "model/UpdateConfigItemsResult.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" namespace AlibabaCloud @@ -233,617 +347,959 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient { public: - 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 AbortPredictiveJobsOutcome; + typedef std::future AbortPredictiveJobsOutcomeCallable; + typedef std::function&)> AbortPredictiveJobsAsyncHandler; + typedef Outcome AddAgentDeviceOutcome; + typedef std::future AddAgentDeviceOutcomeCallable; + typedef std::function&)> AddAgentDeviceAsyncHandler; + typedef Outcome AddBulkPhoneNumbersOutcome; + typedef std::future AddBulkPhoneNumbersOutcomeCallable; + typedef std::function&)> AddBulkPhoneNumbersAsyncHandler; + typedef Outcome AddJobsToPredictiveJobGroupOutcome; + typedef std::future AddJobsToPredictiveJobGroupOutcomeCallable; + typedef std::function&)> AddJobsToPredictiveJobGroupAsyncHandler; + typedef Outcome AddPhoneNumberOutcome; + typedef std::future AddPhoneNumberOutcomeCallable; + typedef std::function&)> AddPhoneNumberAsyncHandler; + typedef Outcome AddPhoneTagsOutcome; + typedef std::future AddPhoneTagsOutcomeCallable; + typedef std::function&)> AddPhoneTagsAsyncHandler; + typedef Outcome AssignJobsOutcome; + typedef std::future AssignJobsOutcomeCallable; + typedef std::function&)> AssignJobsAsyncHandler; typedef Outcome AssignUsersOutcome; typedef std::future AssignUsersOutcomeCallable; typedef std::function&)> AssignUsersAsyncHandler; - typedef Outcome 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 CallOnlinePrivacyNumberOutcome; + typedef std::future CallOnlinePrivacyNumberOutcomeCallable; + typedef std::function&)> CallOnlinePrivacyNumberAsyncHandler; + typedef Outcome CancelJobsOutcome; + typedef std::future CancelJobsOutcomeCallable; + typedef std::function&)> CancelJobsAsyncHandler; + typedef Outcome CheckNumberAvaliableOutcome; + typedef std::future CheckNumberAvaliableOutcomeCallable; + typedef std::function&)> CheckNumberAvaliableAsyncHandler; + typedef Outcome CommitContactFlowVersionModificationOutcome; + typedef std::future CommitContactFlowVersionModificationOutcomeCallable; + typedef std::function&)> CommitContactFlowVersionModificationAsyncHandler; + typedef Outcome CreateBatchJobsOutcome; + typedef std::future CreateBatchJobsOutcomeCallable; + typedef std::function&)> CreateBatchJobsAsyncHandler; + typedef Outcome CreateCabInstanceOutcome; + typedef std::future CreateCabInstanceOutcomeCallable; + typedef std::function&)> CreateCabInstanceAsyncHandler; + typedef Outcome CreateContactFlowOutcome; + typedef std::future CreateContactFlowOutcomeCallable; + typedef std::function&)> CreateContactFlowAsyncHandler; + typedef Outcome CreateFaultOutcome; + typedef std::future CreateFaultOutcomeCallable; + typedef std::function&)> CreateFaultAsyncHandler; typedef Outcome CreateInstanceOutcome; typedef std::future CreateInstanceOutcomeCallable; typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome CreateJobGroupOutcome; + typedef std::future CreateJobGroupOutcomeCallable; + typedef std::function&)> CreateJobGroupAsyncHandler; + typedef Outcome CreateMediaOutcome; + typedef std::future CreateMediaOutcomeCallable; + typedef std::function&)> CreateMediaAsyncHandler; + typedef Outcome CreatePredictiveJobGroupOutcome; + typedef std::future CreatePredictiveJobGroupOutcomeCallable; + typedef std::function&)> CreatePredictiveJobGroupAsyncHandler; + typedef Outcome CreateScenarioOutcome; + typedef std::future CreateScenarioOutcomeCallable; + typedef std::function&)> CreateScenarioAsyncHandler; + typedef Outcome CreateScenarioFromTemplateOutcome; + typedef std::future CreateScenarioFromTemplateOutcomeCallable; + typedef std::function&)> CreateScenarioFromTemplateAsyncHandler; typedef Outcome CreateSkillGroupOutcome; typedef std::future CreateSkillGroupOutcomeCallable; typedef std::function&)> CreateSkillGroupAsyncHandler; + typedef Outcome CreateSurveyOutcome; + typedef std::future CreateSurveyOutcomeCallable; + typedef std::function&)> CreateSurveyAsyncHandler; typedef Outcome CreateUserOutcome; typedef std::future CreateUserOutcomeCallable; typedef std::function&)> CreateUserAsyncHandler; + typedef Outcome CreateVoiceAppraiseOutcome; + typedef std::future CreateVoiceAppraiseOutcomeCallable; + typedef std::function&)> CreateVoiceAppraiseAsyncHandler; + typedef Outcome DeleteInstanceOutcome; + typedef std::future DeleteInstanceOutcomeCallable; + typedef std::function&)> DeleteInstanceAsyncHandler; + typedef Outcome DeleteJobGroupOutcome; + typedef std::future DeleteJobGroupOutcomeCallable; + typedef std::function&)> DeleteJobGroupAsyncHandler; + typedef Outcome DeleteMediaOutcome; + typedef std::future DeleteMediaOutcomeCallable; + typedef std::function&)> DeleteMediaAsyncHandler; + typedef Outcome DeletePhoneTagsOutcome; + typedef std::future DeletePhoneTagsOutcomeCallable; + typedef std::function&)> DeletePhoneTagsAsyncHandler; typedef Outcome DeleteSkillGroupOutcome; typedef std::future DeleteSkillGroupOutcomeCallable; typedef std::function&)> DeleteSkillGroupAsyncHandler; - typedef Outcome 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 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 GetInstanceOutcome; typedef std::future GetInstanceOutcomeCallable; typedef std::function&)> GetInstanceAsyncHandler; - 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 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 GetPredictiveJobGroupOutcome; + typedef std::future GetPredictiveJobGroupOutcomeCallable; + typedef std::function&)> GetPredictiveJobGroupAsyncHandler; + typedef Outcome GetPredictiveTaskDataOutcome; + typedef std::future GetPredictiveTaskDataOutcomeCallable; + typedef std::function&)> GetPredictiveTaskDataAsyncHandler; + typedef Outcome GetRecordOssUploadParamOutcome; + typedef std::future GetRecordOssUploadParamOutcomeCallable; + typedef std::function&)> GetRecordOssUploadParamAsyncHandler; + typedef Outcome GetRoutePointOutcome; + typedef std::future GetRoutePointOutcomeCallable; + typedef std::function&)> GetRoutePointAsyncHandler; + typedef Outcome GetScenarioOutcome; + typedef std::future GetScenarioOutcomeCallable; + typedef std::function&)> GetScenarioAsyncHandler; + typedef Outcome GetServiceExtensionsOutcome; + typedef std::future GetServiceExtensionsOutcomeCallable; + typedef std::function&)> GetServiceExtensionsAsyncHandler; + typedef Outcome GetSmsConfigOutcome; + typedef std::future GetSmsConfigOutcomeCallable; + typedef std::function&)> GetSmsConfigAsyncHandler; + typedef Outcome GetSurveyOutcome; + typedef std::future GetSurveyOutcomeCallable; + typedef std::function&)> GetSurveyAsyncHandler; + typedef Outcome GetTURNCredentialsOutcome; + typedef std::future GetTURNCredentialsOutcomeCallable; + typedef std::function&)> GetTURNCredentialsAsyncHandler; + typedef Outcome GetTURNServerListOutcome; + typedef std::future GetTURNServerListOutcomeCallable; + typedef std::function&)> GetTURNServerListAsyncHandler; + typedef Outcome GetTaskListOutcome; + typedef std::future GetTaskListOutcomeCallable; + typedef std::function&)> GetTaskListAsyncHandler; typedef Outcome GetUserOutcome; typedef std::future GetUserOutcomeCallable; typedef std::function&)> GetUserAsyncHandler; - typedef Outcome 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 GetUserByExtensionOutcome; + typedef std::future GetUserByExtensionOutcomeCallable; + typedef std::function&)> GetUserByExtensionAsyncHandler; + typedef Outcome InflightTaskTimeoutOutcome; + typedef std::future InflightTaskTimeoutOutcomeCallable; + typedef std::function&)> InflightTaskTimeoutAsyncHandler; + typedef Outcome LaunchAppraiseOutcome; + typedef std::future LaunchAppraiseOutcomeCallable; + typedef std::function&)> LaunchAppraiseAsyncHandler; + typedef Outcome LaunchShortMessageAppraiseOutcome; + typedef std::future LaunchShortMessageAppraiseOutcomeCallable; + typedef std::function&)> LaunchShortMessageAppraiseAsyncHandler; + typedef Outcome ListAgentDevicesOutcome; + typedef std::future ListAgentDevicesOutcomeCallable; + typedef std::function&)> ListAgentDevicesAsyncHandler; + typedef Outcome ListAgentEventsOutcome; + typedef std::future ListAgentEventsOutcomeCallable; + typedef std::function&)> ListAgentEventsAsyncHandler; typedef Outcome ListAgentStateLogsOutcome; typedef std::future ListAgentStateLogsOutcomeCallable; typedef std::function&)> ListAgentStateLogsAsyncHandler; - typedef Outcome ListBriefSkillGroupsOutcome; - typedef std::future ListBriefSkillGroupsOutcomeCallable; - typedef std::function&)> ListBriefSkillGroupsAsyncHandler; + 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 ListCallDetailRecordsOutcome; typedef std::future ListCallDetailRecordsOutcomeCallable; typedef std::function&)> ListCallDetailRecordsAsyncHandler; - typedef Outcome ListConfigItemsOutcome; - typedef std::future ListConfigItemsOutcomeCallable; - typedef std::function&)> ListConfigItemsAsyncHandler; + typedef Outcome ListCallEventDetailByContactIdOutcome; + typedef std::future ListCallEventDetailByContactIdOutcomeCallable; + typedef std::function&)> ListCallEventDetailByContactIdAsyncHandler; + typedef Outcome ListCallMeasureSummaryReportsOutcome; + typedef std::future ListCallMeasureSummaryReportsOutcomeCallable; + typedef std::function&)> ListCallMeasureSummaryReportsAsyncHandler; + typedef Outcome ListConfigOutcome; + typedef std::future ListConfigOutcomeCallable; + typedef std::function&)> ListConfigAsyncHandler; typedef Outcome ListContactFlowsOutcome; typedef std::future ListContactFlowsOutcomeCallable; typedef std::function&)> ListContactFlowsAsyncHandler; - typedef Outcome 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 ListInstancesOutcome; - typedef std::future ListInstancesOutcomeCallable; - typedef std::function&)> ListInstancesAsyncHandler; typedef Outcome ListInstancesOfUserOutcome; typedef std::future ListInstancesOfUserOutcomeCallable; typedef std::function&)> ListInstancesOfUserAsyncHandler; - 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 ListIvrTrackingDetailsOutcome; - typedef std::future ListIvrTrackingDetailsOutcomeCallable; - typedef std::function&)> ListIvrTrackingDetailsAsyncHandler; - typedef Outcome ListOutboundNumbersOfUserOutcome; - typedef std::future ListOutboundNumbersOfUserOutcomeCallable; - typedef std::function&)> ListOutboundNumbersOfUserAsyncHandler; - typedef Outcome ListPersonalNumbersOfUserOutcome; - typedef std::future ListPersonalNumbersOfUserOutcomeCallable; - typedef std::function&)> ListPersonalNumbersOfUserAsyncHandler; + typedef Outcome ListIvrTrackingDetailOutcome; + typedef std::future ListIvrTrackingDetailOutcomeCallable; + typedef std::function&)> ListIvrTrackingDetailAsyncHandler; + typedef Outcome ListJobGroupsOutcome; + typedef std::future ListJobGroupsOutcomeCallable; + typedef std::function&)> ListJobGroupsAsyncHandler; + typedef Outcome ListJobStatusOutcome; + typedef std::future ListJobStatusOutcomeCallable; + typedef std::function&)> ListJobStatusAsyncHandler; + typedef Outcome ListJobsByGroupOutcome; + typedef std::future ListJobsByGroupOutcomeCallable; + typedef std::function&)> ListJobsByGroupAsyncHandler; + typedef Outcome ListMediasOutcome; + typedef std::future ListMediasOutcomeCallable; + typedef std::function&)> ListMediasAsyncHandler; + typedef Outcome ListOutboundPhoneNumberOfUserOutcome; + typedef std::future ListOutboundPhoneNumberOfUserOutcomeCallable; + typedef std::function&)> ListOutboundPhoneNumberOfUserAsyncHandler; typedef Outcome ListPhoneNumbersOutcome; typedef std::future ListPhoneNumbersOutcomeCallable; typedef std::function&)> ListPhoneNumbersAsyncHandler; - typedef Outcome ListPhoneNumbersOfSkillGroupOutcome; - typedef std::future ListPhoneNumbersOfSkillGroupOutcomeCallable; - typedef std::function&)> ListPhoneNumbersOfSkillGroupAsyncHandler; - typedef Outcome ListPrivilegesOfUserOutcome; - typedef std::future ListPrivilegesOfUserOutcomeCallable; - typedef std::function&)> ListPrivilegesOfUserAsyncHandler; - typedef Outcome ListRamUsersOutcome; - typedef std::future ListRamUsersOutcomeCallable; - typedef std::function&)> ListRamUsersAsyncHandler; - 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 ListPhoneTagsOutcome; + typedef std::future ListPhoneTagsOutcomeCallable; + typedef std::function&)> ListPhoneTagsAsyncHandler; + typedef Outcome ListRealTimeAgentOutcome; + typedef std::future ListRealTimeAgentOutcomeCallable; + typedef std::function&)> ListRealTimeAgentAsyncHandler; + typedef Outcome ListRecentCallRecordsOutcome; + typedef std::future ListRecentCallRecordsOutcomeCallable; + typedef std::function&)> ListRecentCallRecordsAsyncHandler; + typedef Outcome ListRecordingOfDualTrackOutcome; + typedef std::future ListRecordingOfDualTrackOutcomeCallable; + typedef std::function&)> ListRecordingOfDualTrackAsyncHandler; + typedef Outcome ListRecordingsOutcome; + typedef std::future ListRecordingsOutcomeCallable; + typedef std::function&)> ListRecordingsAsyncHandler; + typedef Outcome ListRecordingsByContactIdOutcome; + typedef std::future ListRecordingsByContactIdOutcomeCallable; + typedef std::function&)> ListRecordingsByContactIdAsyncHandler; typedef Outcome ListRolesOutcome; typedef std::future ListRolesOutcomeCallable; typedef std::function&)> ListRolesAsyncHandler; + typedef Outcome ListScenarioTemplatesOutcome; + typedef std::future ListScenarioTemplatesOutcomeCallable; + typedef std::function&)> ListScenarioTemplatesAsyncHandler; + typedef Outcome ListScenariosOutcome; + typedef std::future ListScenariosOutcomeCallable; + typedef std::function&)> ListScenariosAsyncHandler; + typedef Outcome ListSkillGroupStatesOutcome; + typedef std::future ListSkillGroupStatesOutcomeCallable; + typedef std::function&)> ListSkillGroupStatesAsyncHandler; + typedef Outcome ListSkillGroupSummaryReportsOutcome; + typedef std::future ListSkillGroupSummaryReportsOutcomeCallable; + typedef std::function&)> ListSkillGroupSummaryReportsAsyncHandler; + typedef Outcome ListSkillGroupSummaryReportsByIntervalOutcome; + typedef std::future ListSkillGroupSummaryReportsByIntervalOutcomeCallable; + typedef std::function&)> ListSkillGroupSummaryReportsByIntervalAsyncHandler; + typedef Outcome ListSkillGroupSummaryReportsSinceMidnightOutcome; + typedef std::future ListSkillGroupSummaryReportsSinceMidnightOutcomeCallable; + typedef std::function&)> ListSkillGroupSummaryReportsSinceMidnightAsyncHandler; typedef Outcome ListSkillGroupsOutcome; typedef std::future ListSkillGroupsOutcomeCallable; typedef std::function&)> ListSkillGroupsAsyncHandler; - typedef Outcome ListSkillLevelsOfUserOutcome; - typedef std::future ListSkillLevelsOfUserOutcomeCallable; - typedef std::function&)> ListSkillLevelsOfUserAsyncHandler; - typedef Outcome ListUnassignedNumbersOutcome; - typedef std::future ListUnassignedNumbersOutcomeCallable; - typedef std::function&)> ListUnassignedNumbersAsyncHandler; - typedef Outcome ListUserLevelsOfSkillGroupOutcome; - typedef std::future ListUserLevelsOfSkillGroupOutcomeCallable; - typedef std::function&)> ListUserLevelsOfSkillGroupAsyncHandler; + typedef Outcome ListSkillGroupsOfUserOutcome; + typedef std::future ListSkillGroupsOfUserOutcomeCallable; + typedef std::function&)> ListSkillGroupsOfUserAsyncHandler; + typedef Outcome ListSurveysOutcome; + typedef std::future ListSurveysOutcomeCallable; + typedef std::function&)> ListSurveysAsyncHandler; + typedef Outcome ListTransferableSkillGroupsOutcome; + typedef std::future ListTransferableSkillGroupsOutcomeCallable; + typedef std::function&)> ListTransferableSkillGroupsAsyncHandler; + typedef Outcome ListTrunkProvidersOutcome; + typedef std::future ListTrunkProvidersOutcomeCallable; + typedef std::function&)> ListTrunkProvidersAsyncHandler; + typedef Outcome ListTrunksOfSkillGroupOutcome; + typedef std::future ListTrunksOfSkillGroupOutcomeCallable; + typedef std::function&)> ListTrunksOfSkillGroupAsyncHandler; + typedef Outcome ListUnreachableContactsOutcome; + typedef std::future ListUnreachableContactsOutcomeCallable; + typedef std::function&)> ListUnreachableContactsAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; - typedef Outcome MakeCallOutcome; - typedef std::future MakeCallOutcomeCallable; - typedef std::function&)> MakeCallAsyncHandler; - typedef Outcome ModifyInstanceOutcome; - typedef std::future ModifyInstanceOutcomeCallable; - typedef std::function&)> ModifyInstanceAsyncHandler; + 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 ModifyCallRatioOutcome; + typedef std::future ModifyCallRatioOutcomeCallable; + typedef std::function&)> ModifyCallRatioAsyncHandler; 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 ModifySkillLevelsOfUserOutcome; - typedef std::future ModifySkillLevelsOfUserOutcomeCallable; - typedef std::function&)> ModifySkillLevelsOfUserAsyncHandler; + typedef Outcome ModifySkillGroupOfUserOutcome; + typedef std::future ModifySkillGroupOfUserOutcomeCallable; + typedef std::function&)> ModifySkillGroupOfUserAsyncHandler; + typedef Outcome ModifySkillGroupOutboundNumbersOutcome; + typedef std::future ModifySkillGroupOutboundNumbersOutcomeCallable; + typedef std::function&)> ModifySkillGroupOutboundNumbersAsyncHandler; + typedef Outcome ModifySurveyOutcome; + typedef std::future ModifySurveyOutcomeCallable; + typedef std::function&)> ModifySurveyAsyncHandler; typedef Outcome ModifyUserOutcome; typedef std::future ModifyUserOutcomeCallable; typedef std::function&)> ModifyUserAsyncHandler; - typedef Outcome 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 PickGlobalOutboundNumbersOutcome; + typedef std::future PickGlobalOutboundNumbersOutcomeCallable; + typedef std::function&)> PickGlobalOutboundNumbersAsyncHandler; + typedef Outcome PickLocalNumberOutcome; + typedef std::future PickLocalNumberOutcomeCallable; + typedef std::function&)> PickLocalNumberAsyncHandler; typedef Outcome PickOutboundNumbersOutcome; typedef std::future PickOutboundNumbersOutcomeCallable; typedef std::function&)> PickOutboundNumbersAsyncHandler; - 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 PublishContactFlowVersionOutcome; + typedef std::future PublishContactFlowVersionOutcomeCallable; + typedef std::function&)> PublishContactFlowVersionAsyncHandler; + typedef Outcome PublishPredictiveJobGroupOutcome; + typedef std::future PublishPredictiveJobGroupOutcomeCallable; + typedef std::function&)> PublishPredictiveJobGroupAsyncHandler; + typedef Outcome PublishSurveyOutcome; + typedef std::future PublishSurveyOutcomeCallable; + typedef std::function&)> PublishSurveyAsyncHandler; + typedef Outcome RefreshTokenOutcome; + typedef std::future RefreshTokenOutcomeCallable; + typedef std::function&)> RefreshTokenAsyncHandler; + typedef Outcome RemovePhoneNumberOutcome; + typedef std::future RemovePhoneNumberOutcomeCallable; + typedef std::function&)> RemovePhoneNumberAsyncHandler; typedef Outcome RemoveUsersOutcome; typedef std::future RemoveUsersOutcomeCallable; typedef std::function&)> RemoveUsersAsyncHandler; typedef Outcome RemoveUsersFromSkillGroupOutcome; typedef std::future RemoveUsersFromSkillGroupOutcomeCallable; typedef std::function&)> RemoveUsersFromSkillGroupAsyncHandler; - typedef Outcome ResetAgentStateOutcome; - typedef std::future ResetAgentStateOutcomeCallable; - typedef std::function&)> ResetAgentStateAsyncHandler; - typedef Outcome ResetUserPasswordOutcome; - typedef std::future ResetUserPasswordOutcomeCallable; - typedef std::function&)> ResetUserPasswordAsyncHandler; - typedef Outcome RetrieveCallOutcome; - typedef std::future RetrieveCallOutcomeCallable; - typedef std::function&)> RetrieveCallAsyncHandler; - typedef Outcome SaveRTCStatsV2Outcome; - typedef std::future SaveRTCStatsV2OutcomeCallable; - typedef std::function&)> SaveRTCStatsV2AsyncHandler; + 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 SaveWebRtcInfoOutcome; - typedef std::future SaveWebRtcInfoOutcomeCallable; - typedef std::function&)> SaveWebRtcInfoAsyncHandler; - 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 SendPredefinedShortMessageOutcome; + typedef std::future SendPredefinedShortMessageOutcomeCallable; + typedef std::function&)> SendPredefinedShortMessageAsyncHandler; typedef Outcome StartBack2BackCallOutcome; typedef std::future StartBack2BackCallOutcomeCallable; typedef std::function&)> StartBack2BackCallAsyncHandler; - typedef Outcome StartPredictiveCallOutcome; - typedef std::future StartPredictiveCallOutcomeCallable; - typedef std::function&)> StartPredictiveCallAsyncHandler; - typedef Outcome TakeBreakOutcome; - typedef std::future TakeBreakOutcomeCallable; - typedef std::function&)> TakeBreakAsyncHandler; - typedef Outcome UnmuteCallOutcome; - typedef std::future UnmuteCallOutcomeCallable; - typedef std::function&)> UnmuteCallAsyncHandler; - typedef Outcome UpdateConfigItemsOutcome; - typedef std::future UpdateConfigItemsOutcomeCallable; - typedef std::function&)> UpdateConfigItemsAsyncHandler; + 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; 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(); - 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; + AbortPredictiveJobsOutcome abortPredictiveJobs(const Model::AbortPredictiveJobsRequest &request)const; + void abortPredictiveJobsAsync(const Model::AbortPredictiveJobsRequest& request, const AbortPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AbortPredictiveJobsOutcomeCallable abortPredictiveJobsCallable(const Model::AbortPredictiveJobsRequest& request) const; + AddAgentDeviceOutcome addAgentDevice(const Model::AddAgentDeviceRequest &request)const; + void addAgentDeviceAsync(const Model::AddAgentDeviceRequest& request, const AddAgentDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddAgentDeviceOutcomeCallable addAgentDeviceCallable(const Model::AddAgentDeviceRequest& request) const; + AddBulkPhoneNumbersOutcome addBulkPhoneNumbers(const Model::AddBulkPhoneNumbersRequest &request)const; + void addBulkPhoneNumbersAsync(const Model::AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBulkPhoneNumbersOutcomeCallable addBulkPhoneNumbersCallable(const Model::AddBulkPhoneNumbersRequest& request) const; + AddJobsToPredictiveJobGroupOutcome addJobsToPredictiveJobGroup(const Model::AddJobsToPredictiveJobGroupRequest &request)const; + void addJobsToPredictiveJobGroupAsync(const Model::AddJobsToPredictiveJobGroupRequest& request, const AddJobsToPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddJobsToPredictiveJobGroupOutcomeCallable addJobsToPredictiveJobGroupCallable(const Model::AddJobsToPredictiveJobGroupRequest& request) const; + AddPhoneNumberOutcome addPhoneNumber(const Model::AddPhoneNumberRequest &request)const; + void addPhoneNumberAsync(const Model::AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPhoneNumberOutcomeCallable addPhoneNumberCallable(const Model::AddPhoneNumberRequest& request) const; + AddPhoneTagsOutcome addPhoneTags(const Model::AddPhoneTagsRequest &request)const; + void addPhoneTagsAsync(const Model::AddPhoneTagsRequest& request, const AddPhoneTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPhoneTagsOutcomeCallable addPhoneTagsCallable(const Model::AddPhoneTagsRequest& request) const; + AssignJobsOutcome assignJobs(const Model::AssignJobsRequest &request)const; + void assignJobsAsync(const Model::AssignJobsRequest& request, const AssignJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssignJobsOutcomeCallable assignJobsCallable(const Model::AssignJobsRequest& request) const; AssignUsersOutcome assignUsers(const Model::AssignUsersRequest &request)const; void assignUsersAsync(const Model::AssignUsersRequest& request, const AssignUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssignUsersOutcomeCallable assignUsersCallable(const Model::AssignUsersRequest& request) const; - 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; + CallOnlinePrivacyNumberOutcome callOnlinePrivacyNumber(const Model::CallOnlinePrivacyNumberRequest &request)const; + void callOnlinePrivacyNumberAsync(const Model::CallOnlinePrivacyNumberRequest& request, const CallOnlinePrivacyNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CallOnlinePrivacyNumberOutcomeCallable callOnlinePrivacyNumberCallable(const Model::CallOnlinePrivacyNumberRequest& request) const; + CancelJobsOutcome cancelJobs(const Model::CancelJobsRequest &request)const; + void cancelJobsAsync(const Model::CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelJobsOutcomeCallable cancelJobsCallable(const Model::CancelJobsRequest& request) const; + CheckNumberAvaliableOutcome checkNumberAvaliable(const Model::CheckNumberAvaliableRequest &request)const; + void checkNumberAvaliableAsync(const Model::CheckNumberAvaliableRequest& request, const CheckNumberAvaliableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckNumberAvaliableOutcomeCallable checkNumberAvaliableCallable(const Model::CheckNumberAvaliableRequest& request) const; + CommitContactFlowVersionModificationOutcome commitContactFlowVersionModification(const Model::CommitContactFlowVersionModificationRequest &request)const; + void commitContactFlowVersionModificationAsync(const Model::CommitContactFlowVersionModificationRequest& request, const CommitContactFlowVersionModificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CommitContactFlowVersionModificationOutcomeCallable commitContactFlowVersionModificationCallable(const Model::CommitContactFlowVersionModificationRequest& request) const; + CreateBatchJobsOutcome createBatchJobs(const Model::CreateBatchJobsRequest &request)const; + void createBatchJobsAsync(const Model::CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBatchJobsOutcomeCallable createBatchJobsCallable(const Model::CreateBatchJobsRequest& request) const; + CreateCabInstanceOutcome createCabInstance(const Model::CreateCabInstanceRequest &request)const; + void createCabInstanceAsync(const Model::CreateCabInstanceRequest& request, const CreateCabInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCabInstanceOutcomeCallable createCabInstanceCallable(const Model::CreateCabInstanceRequest& request) const; + CreateContactFlowOutcome createContactFlow(const Model::CreateContactFlowRequest &request)const; + void createContactFlowAsync(const Model::CreateContactFlowRequest& request, const CreateContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateContactFlowOutcomeCallable createContactFlowCallable(const Model::CreateContactFlowRequest& request) const; + CreateFaultOutcome createFault(const Model::CreateFaultRequest &request)const; + void createFaultAsync(const Model::CreateFaultRequest& request, const CreateFaultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFaultOutcomeCallable createFaultCallable(const Model::CreateFaultRequest& request) const; CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; + CreateJobGroupOutcome createJobGroup(const Model::CreateJobGroupRequest &request)const; + void createJobGroupAsync(const Model::CreateJobGroupRequest& request, const CreateJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobGroupOutcomeCallable createJobGroupCallable(const Model::CreateJobGroupRequest& request) const; + CreateMediaOutcome createMedia(const Model::CreateMediaRequest &request)const; + void createMediaAsync(const Model::CreateMediaRequest& request, const CreateMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMediaOutcomeCallable createMediaCallable(const Model::CreateMediaRequest& request) const; + CreatePredictiveJobGroupOutcome createPredictiveJobGroup(const Model::CreatePredictiveJobGroupRequest &request)const; + void createPredictiveJobGroupAsync(const Model::CreatePredictiveJobGroupRequest& request, const CreatePredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePredictiveJobGroupOutcomeCallable createPredictiveJobGroupCallable(const Model::CreatePredictiveJobGroupRequest& request) const; + CreateScenarioOutcome createScenario(const Model::CreateScenarioRequest &request)const; + void createScenarioAsync(const Model::CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScenarioOutcomeCallable createScenarioCallable(const Model::CreateScenarioRequest& request) const; + CreateScenarioFromTemplateOutcome createScenarioFromTemplate(const Model::CreateScenarioFromTemplateRequest &request)const; + void createScenarioFromTemplateAsync(const Model::CreateScenarioFromTemplateRequest& request, const CreateScenarioFromTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScenarioFromTemplateOutcomeCallable createScenarioFromTemplateCallable(const Model::CreateScenarioFromTemplateRequest& request) const; CreateSkillGroupOutcome createSkillGroup(const Model::CreateSkillGroupRequest &request)const; void createSkillGroupAsync(const Model::CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSkillGroupOutcomeCallable createSkillGroupCallable(const Model::CreateSkillGroupRequest& request) const; + CreateSurveyOutcome createSurvey(const Model::CreateSurveyRequest &request)const; + void createSurveyAsync(const Model::CreateSurveyRequest& request, const CreateSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSurveyOutcomeCallable createSurveyCallable(const Model::CreateSurveyRequest& request) const; CreateUserOutcome createUser(const Model::CreateUserRequest &request)const; void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const; + CreateVoiceAppraiseOutcome createVoiceAppraise(const Model::CreateVoiceAppraiseRequest &request)const; + void createVoiceAppraiseAsync(const Model::CreateVoiceAppraiseRequest& request, const CreateVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVoiceAppraiseOutcomeCallable createVoiceAppraiseCallable(const Model::CreateVoiceAppraiseRequest& request) const; + DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; + void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const; + DeleteJobGroupOutcome deleteJobGroup(const Model::DeleteJobGroupRequest &request)const; + void deleteJobGroupAsync(const Model::DeleteJobGroupRequest& request, const DeleteJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteJobGroupOutcomeCallable deleteJobGroupCallable(const Model::DeleteJobGroupRequest& request) const; + DeleteMediaOutcome deleteMedia(const Model::DeleteMediaRequest &request)const; + void deleteMediaAsync(const Model::DeleteMediaRequest& request, const DeleteMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMediaOutcomeCallable deleteMediaCallable(const Model::DeleteMediaRequest& request) const; + DeletePhoneTagsOutcome deletePhoneTags(const Model::DeletePhoneTagsRequest &request)const; + void deletePhoneTagsAsync(const Model::DeletePhoneTagsRequest& request, const DeletePhoneTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePhoneTagsOutcomeCallable deletePhoneTagsCallable(const Model::DeletePhoneTagsRequest& request) const; DeleteSkillGroupOutcome deleteSkillGroup(const Model::DeleteSkillGroupRequest &request)const; void deleteSkillGroupAsync(const Model::DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSkillGroupOutcomeCallable deleteSkillGroupCallable(const Model::DeleteSkillGroupRequest& request) const; - 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; + 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; 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; - 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; + 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; + GetPredictiveJobGroupOutcome getPredictiveJobGroup(const Model::GetPredictiveJobGroupRequest &request)const; + void getPredictiveJobGroupAsync(const Model::GetPredictiveJobGroupRequest& request, const GetPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPredictiveJobGroupOutcomeCallable getPredictiveJobGroupCallable(const Model::GetPredictiveJobGroupRequest& request) const; + GetPredictiveTaskDataOutcome getPredictiveTaskData(const Model::GetPredictiveTaskDataRequest &request)const; + void getPredictiveTaskDataAsync(const Model::GetPredictiveTaskDataRequest& request, const GetPredictiveTaskDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPredictiveTaskDataOutcomeCallable getPredictiveTaskDataCallable(const Model::GetPredictiveTaskDataRequest& request) const; + GetRecordOssUploadParamOutcome getRecordOssUploadParam(const Model::GetRecordOssUploadParamRequest &request)const; + void getRecordOssUploadParamAsync(const Model::GetRecordOssUploadParamRequest& request, const GetRecordOssUploadParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRecordOssUploadParamOutcomeCallable getRecordOssUploadParamCallable(const Model::GetRecordOssUploadParamRequest& request) const; + GetRoutePointOutcome getRoutePoint(const Model::GetRoutePointRequest &request)const; + void getRoutePointAsync(const Model::GetRoutePointRequest& request, const GetRoutePointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRoutePointOutcomeCallable getRoutePointCallable(const Model::GetRoutePointRequest& request) const; + GetScenarioOutcome getScenario(const Model::GetScenarioRequest &request)const; + void getScenarioAsync(const Model::GetScenarioRequest& request, const GetScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetScenarioOutcomeCallable getScenarioCallable(const Model::GetScenarioRequest& request) const; + GetServiceExtensionsOutcome getServiceExtensions(const Model::GetServiceExtensionsRequest &request)const; + void getServiceExtensionsAsync(const Model::GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceExtensionsOutcomeCallable getServiceExtensionsCallable(const Model::GetServiceExtensionsRequest& request) const; + GetSmsConfigOutcome getSmsConfig(const Model::GetSmsConfigRequest &request)const; + void getSmsConfigAsync(const Model::GetSmsConfigRequest& request, const GetSmsConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSmsConfigOutcomeCallable getSmsConfigCallable(const Model::GetSmsConfigRequest& request) const; + GetSurveyOutcome getSurvey(const Model::GetSurveyRequest &request)const; + void getSurveyAsync(const Model::GetSurveyRequest& request, const GetSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSurveyOutcomeCallable getSurveyCallable(const Model::GetSurveyRequest& request) const; + GetTURNCredentialsOutcome getTURNCredentials(const Model::GetTURNCredentialsRequest &request)const; + void getTURNCredentialsAsync(const Model::GetTURNCredentialsRequest& request, const GetTURNCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTURNCredentialsOutcomeCallable getTURNCredentialsCallable(const Model::GetTURNCredentialsRequest& request) const; + GetTURNServerListOutcome getTURNServerList(const Model::GetTURNServerListRequest &request)const; + void getTURNServerListAsync(const Model::GetTURNServerListRequest& request, const GetTURNServerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTURNServerListOutcomeCallable getTURNServerListCallable(const Model::GetTURNServerListRequest& request) const; + GetTaskListOutcome getTaskList(const Model::GetTaskListRequest &request)const; + void getTaskListAsync(const Model::GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskListOutcomeCallable getTaskListCallable(const Model::GetTaskListRequest& request) const; GetUserOutcome getUser(const Model::GetUserRequest &request)const; void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; - 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; + GetUserByExtensionOutcome getUserByExtension(const Model::GetUserByExtensionRequest &request)const; + void getUserByExtensionAsync(const Model::GetUserByExtensionRequest& request, const GetUserByExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserByExtensionOutcomeCallable getUserByExtensionCallable(const Model::GetUserByExtensionRequest& request) const; + InflightTaskTimeoutOutcome inflightTaskTimeout(const Model::InflightTaskTimeoutRequest &request)const; + void inflightTaskTimeoutAsync(const Model::InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InflightTaskTimeoutOutcomeCallable inflightTaskTimeoutCallable(const Model::InflightTaskTimeoutRequest& request) const; + LaunchAppraiseOutcome launchAppraise(const Model::LaunchAppraiseRequest &request)const; + void launchAppraiseAsync(const Model::LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LaunchAppraiseOutcomeCallable launchAppraiseCallable(const Model::LaunchAppraiseRequest& request) const; + LaunchShortMessageAppraiseOutcome launchShortMessageAppraise(const Model::LaunchShortMessageAppraiseRequest &request)const; + void launchShortMessageAppraiseAsync(const Model::LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LaunchShortMessageAppraiseOutcomeCallable launchShortMessageAppraiseCallable(const Model::LaunchShortMessageAppraiseRequest& request) const; + ListAgentDevicesOutcome listAgentDevices(const Model::ListAgentDevicesRequest &request)const; + void listAgentDevicesAsync(const Model::ListAgentDevicesRequest& request, const ListAgentDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentDevicesOutcomeCallable listAgentDevicesCallable(const Model::ListAgentDevicesRequest& request) const; + ListAgentEventsOutcome listAgentEvents(const Model::ListAgentEventsRequest &request)const; + void listAgentEventsAsync(const Model::ListAgentEventsRequest& request, const ListAgentEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentEventsOutcomeCallable listAgentEventsCallable(const Model::ListAgentEventsRequest& request) const; ListAgentStateLogsOutcome listAgentStateLogs(const Model::ListAgentStateLogsRequest &request)const; void listAgentStateLogsAsync(const Model::ListAgentStateLogsRequest& request, const ListAgentStateLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAgentStateLogsOutcomeCallable listAgentStateLogsCallable(const Model::ListAgentStateLogsRequest& request) const; - 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; + 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; 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; - 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; + ListCallEventDetailByContactIdOutcome listCallEventDetailByContactId(const Model::ListCallEventDetailByContactIdRequest &request)const; + void listCallEventDetailByContactIdAsync(const Model::ListCallEventDetailByContactIdRequest& request, const ListCallEventDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCallEventDetailByContactIdOutcomeCallable listCallEventDetailByContactIdCallable(const Model::ListCallEventDetailByContactIdRequest& request) const; + ListCallMeasureSummaryReportsOutcome listCallMeasureSummaryReports(const Model::ListCallMeasureSummaryReportsRequest &request)const; + void listCallMeasureSummaryReportsAsync(const Model::ListCallMeasureSummaryReportsRequest& request, const ListCallMeasureSummaryReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCallMeasureSummaryReportsOutcomeCallable listCallMeasureSummaryReportsCallable(const Model::ListCallMeasureSummaryReportsRequest& request) const; + ListConfigOutcome listConfig(const Model::ListConfigRequest &request)const; + void listConfigAsync(const Model::ListConfigRequest& request, const ListConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigOutcomeCallable listConfigCallable(const Model::ListConfigRequest& request) const; ListContactFlowsOutcome listContactFlows(const Model::ListContactFlowsRequest &request)const; void listContactFlowsAsync(const Model::ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListContactFlowsOutcomeCallable listContactFlowsCallable(const Model::ListContactFlowsRequest& request) const; - 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; - ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const; - void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& 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; - 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; - ListIvrTrackingDetailsOutcome listIvrTrackingDetails(const Model::ListIvrTrackingDetailsRequest &request)const; - void listIvrTrackingDetailsAsync(const Model::ListIvrTrackingDetailsRequest& request, const ListIvrTrackingDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListIvrTrackingDetailsOutcomeCallable listIvrTrackingDetailsCallable(const Model::ListIvrTrackingDetailsRequest& 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; + ListIvrTrackingDetailOutcome listIvrTrackingDetail(const Model::ListIvrTrackingDetailRequest &request)const; + void listIvrTrackingDetailAsync(const Model::ListIvrTrackingDetailRequest& request, const ListIvrTrackingDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIvrTrackingDetailOutcomeCallable listIvrTrackingDetailCallable(const Model::ListIvrTrackingDetailRequest& request) const; + ListJobGroupsOutcome listJobGroups(const Model::ListJobGroupsRequest &request)const; + void listJobGroupsAsync(const Model::ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobGroupsOutcomeCallable listJobGroupsCallable(const Model::ListJobGroupsRequest& request) const; + ListJobStatusOutcome listJobStatus(const Model::ListJobStatusRequest &request)const; + void listJobStatusAsync(const Model::ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobStatusOutcomeCallable listJobStatusCallable(const Model::ListJobStatusRequest& request) const; + ListJobsByGroupOutcome listJobsByGroup(const Model::ListJobsByGroupRequest &request)const; + void listJobsByGroupAsync(const Model::ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobsByGroupOutcomeCallable listJobsByGroupCallable(const Model::ListJobsByGroupRequest& request) const; + ListMediasOutcome listMedias(const Model::ListMediasRequest &request)const; + void listMediasAsync(const Model::ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMediasOutcomeCallable listMediasCallable(const Model::ListMediasRequest& request) const; + ListOutboundPhoneNumberOfUserOutcome listOutboundPhoneNumberOfUser(const Model::ListOutboundPhoneNumberOfUserRequest &request)const; + void listOutboundPhoneNumberOfUserAsync(const Model::ListOutboundPhoneNumberOfUserRequest& request, const ListOutboundPhoneNumberOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOutboundPhoneNumberOfUserOutcomeCallable listOutboundPhoneNumberOfUserCallable(const Model::ListOutboundPhoneNumberOfUserRequest& request) const; ListPhoneNumbersOutcome listPhoneNumbers(const Model::ListPhoneNumbersRequest &request)const; void listPhoneNumbersAsync(const Model::ListPhoneNumbersRequest& request, const ListPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPhoneNumbersOutcomeCallable listPhoneNumbersCallable(const Model::ListPhoneNumbersRequest& request) const; - 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; - ListRamUsersOutcome listRamUsers(const Model::ListRamUsersRequest &request)const; - void listRamUsersAsync(const Model::ListRamUsersRequest& request, const ListRamUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRamUsersOutcomeCallable listRamUsersCallable(const Model::ListRamUsersRequest& 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; + ListPhoneTagsOutcome listPhoneTags(const Model::ListPhoneTagsRequest &request)const; + void listPhoneTagsAsync(const Model::ListPhoneTagsRequest& request, const ListPhoneTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhoneTagsOutcomeCallable listPhoneTagsCallable(const Model::ListPhoneTagsRequest& request) const; + ListRealTimeAgentOutcome listRealTimeAgent(const Model::ListRealTimeAgentRequest &request)const; + void listRealTimeAgentAsync(const Model::ListRealTimeAgentRequest& request, const ListRealTimeAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRealTimeAgentOutcomeCallable listRealTimeAgentCallable(const Model::ListRealTimeAgentRequest& request) const; + ListRecentCallRecordsOutcome listRecentCallRecords(const Model::ListRecentCallRecordsRequest &request)const; + void listRecentCallRecordsAsync(const Model::ListRecentCallRecordsRequest& request, const ListRecentCallRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecentCallRecordsOutcomeCallable listRecentCallRecordsCallable(const Model::ListRecentCallRecordsRequest& request) const; + ListRecordingOfDualTrackOutcome listRecordingOfDualTrack(const Model::ListRecordingOfDualTrackRequest &request)const; + void listRecordingOfDualTrackAsync(const Model::ListRecordingOfDualTrackRequest& request, const ListRecordingOfDualTrackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecordingOfDualTrackOutcomeCallable listRecordingOfDualTrackCallable(const Model::ListRecordingOfDualTrackRequest& request) const; + ListRecordingsOutcome listRecordings(const Model::ListRecordingsRequest &request)const; + void listRecordingsAsync(const Model::ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecordingsOutcomeCallable listRecordingsCallable(const Model::ListRecordingsRequest& request) const; + ListRecordingsByContactIdOutcome listRecordingsByContactId(const Model::ListRecordingsByContactIdRequest &request)const; + void listRecordingsByContactIdAsync(const Model::ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecordingsByContactIdOutcomeCallable listRecordingsByContactIdCallable(const Model::ListRecordingsByContactIdRequest& request) const; ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const; + ListScenarioTemplatesOutcome listScenarioTemplates(const Model::ListScenarioTemplatesRequest &request)const; + void listScenarioTemplatesAsync(const Model::ListScenarioTemplatesRequest& request, const ListScenarioTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScenarioTemplatesOutcomeCallable listScenarioTemplatesCallable(const Model::ListScenarioTemplatesRequest& request) const; + ListScenariosOutcome listScenarios(const Model::ListScenariosRequest &request)const; + void listScenariosAsync(const Model::ListScenariosRequest& request, const ListScenariosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScenariosOutcomeCallable listScenariosCallable(const Model::ListScenariosRequest& request) const; + ListSkillGroupStatesOutcome listSkillGroupStates(const Model::ListSkillGroupStatesRequest &request)const; + void listSkillGroupStatesAsync(const Model::ListSkillGroupStatesRequest& request, const ListSkillGroupStatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupStatesOutcomeCallable listSkillGroupStatesCallable(const Model::ListSkillGroupStatesRequest& request) const; + ListSkillGroupSummaryReportsOutcome listSkillGroupSummaryReports(const Model::ListSkillGroupSummaryReportsRequest &request)const; + void listSkillGroupSummaryReportsAsync(const Model::ListSkillGroupSummaryReportsRequest& request, const ListSkillGroupSummaryReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupSummaryReportsOutcomeCallable listSkillGroupSummaryReportsCallable(const Model::ListSkillGroupSummaryReportsRequest& request) const; + ListSkillGroupSummaryReportsByIntervalOutcome listSkillGroupSummaryReportsByInterval(const Model::ListSkillGroupSummaryReportsByIntervalRequest &request)const; + void listSkillGroupSummaryReportsByIntervalAsync(const Model::ListSkillGroupSummaryReportsByIntervalRequest& request, const ListSkillGroupSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupSummaryReportsByIntervalOutcomeCallable listSkillGroupSummaryReportsByIntervalCallable(const Model::ListSkillGroupSummaryReportsByIntervalRequest& request) const; + ListSkillGroupSummaryReportsSinceMidnightOutcome listSkillGroupSummaryReportsSinceMidnight(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest &request)const; + void listSkillGroupSummaryReportsSinceMidnightAsync(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest& request, const ListSkillGroupSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupSummaryReportsSinceMidnightOutcomeCallable listSkillGroupSummaryReportsSinceMidnightCallable(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest& request) const; ListSkillGroupsOutcome listSkillGroups(const Model::ListSkillGroupsRequest &request)const; void listSkillGroupsAsync(const Model::ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSkillGroupsOutcomeCallable listSkillGroupsCallable(const Model::ListSkillGroupsRequest& request) const; - 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; - ListUnassignedNumbersOutcome listUnassignedNumbers(const Model::ListUnassignedNumbersRequest &request)const; - void listUnassignedNumbersAsync(const Model::ListUnassignedNumbersRequest& request, const ListUnassignedNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListUnassignedNumbersOutcomeCallable listUnassignedNumbersCallable(const Model::ListUnassignedNumbersRequest& 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; + ListSkillGroupsOfUserOutcome listSkillGroupsOfUser(const Model::ListSkillGroupsOfUserRequest &request)const; + void listSkillGroupsOfUserAsync(const Model::ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupsOfUserOutcomeCallable listSkillGroupsOfUserCallable(const Model::ListSkillGroupsOfUserRequest& request) const; + ListSurveysOutcome listSurveys(const Model::ListSurveysRequest &request)const; + void listSurveysAsync(const Model::ListSurveysRequest& request, const ListSurveysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSurveysOutcomeCallable listSurveysCallable(const Model::ListSurveysRequest& request) const; + ListTransferableSkillGroupsOutcome listTransferableSkillGroups(const Model::ListTransferableSkillGroupsRequest &request)const; + void listTransferableSkillGroupsAsync(const Model::ListTransferableSkillGroupsRequest& request, const ListTransferableSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTransferableSkillGroupsOutcomeCallable listTransferableSkillGroupsCallable(const Model::ListTransferableSkillGroupsRequest& request) const; + ListTrunkProvidersOutcome listTrunkProviders(const Model::ListTrunkProvidersRequest &request)const; + void listTrunkProvidersAsync(const Model::ListTrunkProvidersRequest& request, const ListTrunkProvidersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTrunkProvidersOutcomeCallable listTrunkProvidersCallable(const Model::ListTrunkProvidersRequest& request) const; + ListTrunksOfSkillGroupOutcome listTrunksOfSkillGroup(const Model::ListTrunksOfSkillGroupRequest &request)const; + void listTrunksOfSkillGroupAsync(const Model::ListTrunksOfSkillGroupRequest& request, const ListTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTrunksOfSkillGroupOutcomeCallable listTrunksOfSkillGroupCallable(const Model::ListTrunksOfSkillGroupRequest& request) const; + ListUnreachableContactsOutcome listUnreachableContacts(const Model::ListUnreachableContactsRequest &request)const; + void listUnreachableContactsAsync(const Model::ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUnreachableContactsOutcomeCallable listUnreachableContactsCallable(const Model::ListUnreachableContactsRequest& request) const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; - 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; - ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const; - void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& 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; + ModifyCallRatioOutcome modifyCallRatio(const Model::ModifyCallRatioRequest &request)const; + void modifyCallRatioAsync(const Model::ModifyCallRatioRequest& request, const ModifyCallRatioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCallRatioOutcomeCallable modifyCallRatioCallable(const Model::ModifyCallRatioRequest& 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; - 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; + ModifySkillGroupOfUserOutcome modifySkillGroupOfUser(const Model::ModifySkillGroupOfUserRequest &request)const; + void modifySkillGroupOfUserAsync(const Model::ModifySkillGroupOfUserRequest& request, const ModifySkillGroupOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySkillGroupOfUserOutcomeCallable modifySkillGroupOfUserCallable(const Model::ModifySkillGroupOfUserRequest& request) const; + ModifySkillGroupOutboundNumbersOutcome modifySkillGroupOutboundNumbers(const Model::ModifySkillGroupOutboundNumbersRequest &request)const; + void modifySkillGroupOutboundNumbersAsync(const Model::ModifySkillGroupOutboundNumbersRequest& request, const ModifySkillGroupOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySkillGroupOutboundNumbersOutcomeCallable modifySkillGroupOutboundNumbersCallable(const Model::ModifySkillGroupOutboundNumbersRequest& request) const; + ModifySurveyOutcome modifySurvey(const Model::ModifySurveyRequest &request)const; + void modifySurveyAsync(const Model::ModifySurveyRequest& request, const ModifySurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySurveyOutcomeCallable modifySurveyCallable(const Model::ModifySurveyRequest& request) const; ModifyUserOutcome modifyUser(const Model::ModifyUserRequest &request)const; void modifyUserAsync(const Model::ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyUserOutcomeCallable modifyUserCallable(const Model::ModifyUserRequest& request) const; - 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; + 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; 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; - 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; + PublishContactFlowVersionOutcome publishContactFlowVersion(const Model::PublishContactFlowVersionRequest &request)const; + void publishContactFlowVersionAsync(const Model::PublishContactFlowVersionRequest& request, const PublishContactFlowVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishContactFlowVersionOutcomeCallable publishContactFlowVersionCallable(const Model::PublishContactFlowVersionRequest& request) const; + PublishPredictiveJobGroupOutcome publishPredictiveJobGroup(const Model::PublishPredictiveJobGroupRequest &request)const; + void publishPredictiveJobGroupAsync(const Model::PublishPredictiveJobGroupRequest& request, const PublishPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishPredictiveJobGroupOutcomeCallable publishPredictiveJobGroupCallable(const Model::PublishPredictiveJobGroupRequest& request) const; + PublishSurveyOutcome publishSurvey(const Model::PublishSurveyRequest &request)const; + void publishSurveyAsync(const Model::PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishSurveyOutcomeCallable publishSurveyCallable(const Model::PublishSurveyRequest& request) const; + RefreshTokenOutcome refreshToken(const Model::RefreshTokenRequest &request)const; + void refreshTokenAsync(const Model::RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshTokenOutcomeCallable refreshTokenCallable(const Model::RefreshTokenRequest& request) const; + RemovePhoneNumberOutcome removePhoneNumber(const Model::RemovePhoneNumberRequest &request)const; + void removePhoneNumberAsync(const Model::RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemovePhoneNumberOutcomeCallable removePhoneNumberCallable(const Model::RemovePhoneNumberRequest& request) const; RemoveUsersOutcome removeUsers(const Model::RemoveUsersRequest &request)const; void removeUsersAsync(const Model::RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveUsersOutcomeCallable removeUsersCallable(const Model::RemoveUsersRequest& request) const; RemoveUsersFromSkillGroupOutcome removeUsersFromSkillGroup(const Model::RemoveUsersFromSkillGroupRequest &request)const; void removeUsersFromSkillGroupAsync(const Model::RemoveUsersFromSkillGroupRequest& request, const RemoveUsersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveUsersFromSkillGroupOutcomeCallable removeUsersFromSkillGroupCallable(const Model::RemoveUsersFromSkillGroupRequest& request) const; - 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; - ResetUserPasswordOutcome resetUserPassword(const Model::ResetUserPasswordRequest &request)const; - void resetUserPasswordAsync(const Model::ResetUserPasswordRequest& request, const ResetUserPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResetUserPasswordOutcomeCallable resetUserPasswordCallable(const Model::ResetUserPasswordRequest& 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; - SaveRTCStatsV2Outcome saveRTCStatsV2(const Model::SaveRTCStatsV2Request &request)const; - void saveRTCStatsV2Async(const Model::SaveRTCStatsV2Request& request, const SaveRTCStatsV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveRTCStatsV2OutcomeCallable saveRTCStatsV2Callable(const Model::SaveRTCStatsV2Request& 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; - SaveWebRtcInfoOutcome saveWebRtcInfo(const Model::SaveWebRtcInfoRequest &request)const; - void saveWebRtcInfoAsync(const Model::SaveWebRtcInfoRequest& request, const SaveWebRtcInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveWebRtcInfoOutcomeCallable saveWebRtcInfoCallable(const Model::SaveWebRtcInfoRequest& 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; + SendPredefinedShortMessageOutcome sendPredefinedShortMessage(const Model::SendPredefinedShortMessageRequest &request)const; + void sendPredefinedShortMessageAsync(const Model::SendPredefinedShortMessageRequest& request, const SendPredefinedShortMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendPredefinedShortMessageOutcomeCallable sendPredefinedShortMessageCallable(const Model::SendPredefinedShortMessageRequest& request) const; StartBack2BackCallOutcome startBack2BackCall(const Model::StartBack2BackCallRequest &request)const; void startBack2BackCallAsync(const Model::StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartBack2BackCallOutcomeCallable startBack2BackCallCallable(const Model::StartBack2BackCallRequest& request) const; - StartPredictiveCallOutcome startPredictiveCall(const Model::StartPredictiveCallRequest &request)const; - void startPredictiveCallAsync(const Model::StartPredictiveCallRequest& request, const StartPredictiveCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartPredictiveCallOutcomeCallable startPredictiveCallCallable(const Model::StartPredictiveCallRequest& 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; - UpdateConfigItemsOutcome updateConfigItems(const Model::UpdateConfigItemsRequest &request)const; - void updateConfigItemsAsync(const Model::UpdateConfigItemsRequest& request, const UpdateConfigItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateConfigItemsOutcomeCallable updateConfigItemsCallable(const Model::UpdateConfigItemsRequest& 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; private: std::shared_ptr endpointProvider_; diff --git a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h b/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.h new file mode 100644 index 000000000..6f57c0f81 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsRequest.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_ABORTPREDICTIVEJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AbortPredictiveJobsRequest : public RpcServiceRequest + { + + public: + AbortPredictiveJobsRequest(); + ~AbortPredictiveJobsRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getJobId()const; + void setJobId(const std::vector& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + bool all_; + std::vector jobId_; + std::string instanceId_; + std::string skillGroupId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.h new file mode 100644 index 000000000..20a388db6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AbortPredictiveJobsResult.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_ABORTPREDICTIVEJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AbortPredictiveJobsResult : public ServiceResult + { + public: + + + AbortPredictiveJobsResult(); + explicit AbortPredictiveJobsResult(const std::string &payload); + ~AbortPredictiveJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ABORTPREDICTIVEJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h similarity index 52% rename from ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h rename to ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h index 5b1466656..7ca5bac0b 100644 --- a/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODEREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICEREQUEST_H_ #include #include @@ -28,30 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ChangeWorkModeRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddAgentDeviceRequest : public RpcServiceRequest { public: - ChangeWorkModeRequest(); - ~ChangeWorkModeRequest(); + AddAgentDeviceRequest(); + ~AddAgentDeviceRequest(); - 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 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 workMode_; - std::string userId_; - std::string deviceId_; + std::string remark_; + std::string clientPort_; + std::string accessKeyId_; std::string instanceId_; + std::string clientIp_; + std::string browserVersion_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h new file mode 100644 index 000000000..168433117 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddAgentDeviceResult : public ServiceResult + { + public: + + + AddAgentDeviceResult(); + explicit AddAgentDeviceResult(const std::string &payload); + ~AddAgentDeviceResult(); + std::string getMessage()const; + long getAgentDeviceId()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long agentDeviceId_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationRequest.h b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h similarity index 55% rename from ccc/include/alibabacloud/ccc/model/LaunchAuthenticationRequest.h rename to ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h index 565cd4961..ce0e453e0 100644 --- a/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSREQUEST_H_ #include #include @@ -28,33 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT LaunchAuthenticationRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddBulkPhoneNumbersRequest : public RpcServiceRequest { public: - LaunchAuthenticationRequest(); - ~LaunchAuthenticationRequest(); + AddBulkPhoneNumbersRequest(); + ~AddBulkPhoneNumbersRequest(); 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 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 userId_; - std::string deviceId_; - std::string jobId_; + std::string usage_; + std::vector phoneNumber_; + std::string accessKeyId_; std::string instanceId_; + std::vector skillGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHAUTHENTICATIONREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..535ed8c99 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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 new file mode 100644 index 000000000..fe0062656 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupRequest.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_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/AddPhoneNumberToSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h rename to ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h index 1e72227a3..e02bccc15 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ #include #include @@ -29,17 +29,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberToSkillGroupsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT AddJobsToPredictiveJobGroupResult : public ServiceResult { public: - AddPhoneNumberToSkillGroupsResult(); - explicit AddPhoneNumberToSkillGroupsResult(const std::string &payload); - ~AddPhoneNumberToSkillGroupsResult(); + AddJobsToPredictiveJobGroupResult(); + explicit AddJobsToPredictiveJobGroupResult(const std::string &payload); + ~AddJobsToPredictiveJobGroupResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -47,9 +48,10 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/AddPhoneNumbersRequest.h rename to ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h index 30103bbdd..7025884be 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneNumbersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPhoneNumbersRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberRequest : public RpcServiceRequest { public: - AddPhoneNumbersRequest(); - ~AddPhoneNumbersRequest(); + AddPhoneNumberRequest(); + ~AddPhoneNumberRequest(); std::string getContactFlowId()const; void setContactFlowId(const std::string& contactFlowId); std::string getUsage()const; void setUsage(const std::string& usage); - std::string getNumberGroupId()const; - void setNumberGroupId(const std::string& numberGroupId); - std::string getNumberList()const; - void setNumberList(const std::string& numberList); + std::string getPhoneNumber()const; + void setPhoneNumber(const std::string& phoneNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: std::string contactFlowId_; std::string usage_; - std::string numberGroupId_; - std::string numberList_; + std::string phoneNumber_; + std::string accessKeyId_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_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 new file mode 100644 index 000000000..5d4a3a7c2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberResult : public ServiceResult + { + public: + struct PhoneNumber + { + struct ContactFlow + { + std::string type; + std::string contactFlowId; + std::string instanceId; + std::string contactFlowName; + std::string contactFlowDescription; + }; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + ContactFlow contactFlow; + std::string phoneNumberDescription; + }; + + + AddPhoneNumberResult(); + explicit AddPhoneNumberResult(const std::string &payload); + ~AddPhoneNumberResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + PhoneNumber getPhoneNumber()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + PhoneNumber phoneNumber_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneTagsRequest.h b/ccc/include/alibabacloud/ccc/model/AddPhoneTagsRequest.h new file mode 100644 index 000000000..88baa88ce --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneTagsRequest.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_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/AddUsersToSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h similarity index 73% rename from ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupResult.h rename to ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h index 6a9aa434f..88d2e2505 100644 --- a/ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddPhoneTagsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSRESULT_H_ #include #include @@ -29,17 +29,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddUsersToSkillGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT AddPhoneTagsResult : public ServiceResult { public: - AddUsersToSkillGroupResult(); - explicit AddUsersToSkillGroupResult(const std::string &payload); - ~AddUsersToSkillGroupResult(); + AddPhoneTagsResult(); + explicit AddPhoneTagsResult(const std::string &payload); + ~AddPhoneTagsResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -47,9 +48,10 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONETAGSRESULT_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 deleted file mode 100644 index 8a867f9cf..000000000 --- a/ccc/include/alibabacloud/ccc/model/AnswerCallResult.h +++ /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. - */ - -#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; - long contextId; - 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 new file mode 100644 index 000000000..5e34f9c8c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AssignJobsRequest : public RpcServiceRequest + { + + public: + AssignJobsRequest(); + ~AssignJobsRequest(); + + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::vector getJobsJson()const; + void setJobsJson(const std::vector& jobsJson); + std::vector getCallingNumber()const; + void setCallingNumber(const std::vector& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getStrategyJson()const; + void setStrategyJson(const std::string& strategyJson); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string groupId_; + std::vector jobsJson_; + std::vector callingNumber_; + std::string instanceId_; + std::string strategyJson_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AssignJobsResult.h b/ccc/include/alibabacloud/ccc/model/AssignJobsResult.h new file mode 100644 index 000000000..c6deb0518 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AssignJobsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AssignJobsResult : public ServiceResult + { + public: + + + AssignJobsResult(); + explicit AssignJobsResult(const std::string &payload); + ~AssignJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h b/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h index 0c4122b69..1831d549c 100644 --- a/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h @@ -35,23 +35,26 @@ namespace AlibabaCloud AssignUsersRequest(); ~AssignUsersRequest(); - 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::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::vector getUserRamId()const; + void setUserRamId(const std::vector& userRamId); + std::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getSkillLevelList()const; - void setSkillLevelList(const std::string& skillLevelList); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); private: - std::string ramIdList_; - std::string roleId_; - std::string workMode_; + std::vector roleId_; + std::string accessKeyId_; + std::vector userRamId_; + std::vector skillLevel_; std::string instanceId_; - std::string skillLevelList_; + std::vector skillGroupId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h b/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h index e3f6ecc4c..a49f3f8fa 100644 --- a/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h @@ -39,20 +39,16 @@ 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/BargeInCallResult.h b/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h deleted file mode 100644 index 9e1aa75d7..000000000 --- a/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_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 deleted file mode 100644 index 521289c07..000000000 --- a/ccc/include/alibabacloud/ccc/model/BlindTransferRequest.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_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 deleted file mode 100644 index 9aea570c7..000000000 --- a/ccc/include/alibabacloud/ccc/model/BlindTransferResult.h +++ /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. - */ - -#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/AddPhoneNumberToSkillGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h similarity index 58% rename from ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h rename to ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h index 7c26846c6..a8e8643e5 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberToSkillGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT CallOnlinePrivacyNumberRequest : public RpcServiceRequest { public: - AddPhoneNumberToSkillGroupsRequest(); - ~AddPhoneNumberToSkillGroupsRequest(); + CallOnlinePrivacyNumberRequest(); + ~CallOnlinePrivacyNumberRequest(); - std::string getNumber()const; - void setNumber(const std::string& number); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTelA()const; + void setTelA(const std::string& telA); + std::string getTelB()const; + void setTelB(const std::string& telB); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getSkillGroupIdList()const; - void setSkillGroupIdList(const std::string& skillGroupIdList); private: - std::string number_; + std::string accessKeyId_; + std::string telA_; + std::string telB_; std::string instanceId_; - std::string skillGroupIdList_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h new file mode 100644 index 000000000..fcfd4a2eb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CallOnlinePrivacyNumberResult : public ServiceResult + { + public: + struct Data + { + std::string represent; + std::string callId; + std::string dateCreated; + std::string telX; + std::string statusCode; + }; + + + CallOnlinePrivacyNumberResult(); + explicit CallOnlinePrivacyNumberResult(const std::string &payload); + ~CallOnlinePrivacyNumberResult(); + 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_CALLONLINEPRIVACYNUMBERRESULT_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 deleted file mode 100644 index ed8a12c66..000000000 --- a/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_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; - long contextId; - 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/UnmuteCallRequest.h b/ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h similarity index 52% rename from ccc/include/alibabacloud/ccc/model/UnmuteCallRequest.h rename to ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h index 12a5e6b81..fcbb0ff40 100644 --- a/ccc/include/alibabacloud/ccc/model/UnmuteCallRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_UNMUTECALLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_UNMUTECALLREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CANCELJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CANCELJOBSREQUEST_H_ #include #include @@ -28,33 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT UnmuteCallRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT CancelJobsRequest : public RpcServiceRequest { public: - UnmuteCallRequest(); - ~UnmuteCallRequest(); + CancelJobsRequest(); + ~CancelJobsRequest(); - 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); + 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 getChannelId()const; - void setChannelId(const std::string& channelId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); private: - std::string userId_; - std::string deviceId_; - std::string jobId_; + bool all_; + std::vector jobReferenceId_; + std::string groupId_; + std::vector jobId_; std::string instanceId_; - std::string channelId_; + std::string scenarioId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_UNMUTECALLREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CANCELJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResetUserPasswordResult.h b/ccc/include/alibabacloud/ccc/model/CancelJobsResult.h similarity index 74% rename from ccc/include/alibabacloud/ccc/model/ResetUserPasswordResult.h rename to ccc/include/alibabacloud/ccc/model/CancelJobsResult.h index b3c8490dc..0ab2e9b41 100644 --- a/ccc/include/alibabacloud/ccc/model/ResetUserPasswordResult.h +++ b/ccc/include/alibabacloud/ccc/model/CancelJobsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_RESETUSERPASSWORDRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_RESETUSERPASSWORDRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CANCELJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CANCELJOBSRESULT_H_ #include #include @@ -29,17 +29,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ResetUserPasswordResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT CancelJobsResult : public ServiceResult { public: - ResetUserPasswordResult(); - explicit ResetUserPasswordResult(const std::string &payload); - ~ResetUserPasswordResult(); + 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); @@ -47,9 +48,10 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_RESETUSERPASSWORDRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CANCELJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/MakeCallRequest.h b/ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/MakeCallRequest.h rename to ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h index 052ac7bde..d744eeb60 100644 --- a/ccc/include/alibabacloud/ccc/model/MakeCallRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_MAKECALLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MAKECALLREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CHECKNUMBERAVALIABLEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CHECKNUMBERAVALIABLEREQUEST_H_ #include #include @@ -28,39 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT MakeCallRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT CheckNumberAvaliableRequest : public RpcServiceRequest { public: - MakeCallRequest(); - ~MakeCallRequest(); + CheckNumberAvaliableRequest(); + ~CheckNumberAvaliableRequest(); - 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); - 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 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_; - std::string tags_; - int timeoutSeconds_; std::string caller_; std::string instanceId_; + std::string callee_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_MAKECALLREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CHECKNUMBERAVALIABLEREQUEST_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 new file mode 100644 index 000000000..c63f7d8df --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CheckNumberAvaliableResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 deleted file mode 100644 index c66a3b3af..000000000 --- a/ccc/include/alibabacloud/ccc/model/CoachCallRequest.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_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 deleted file mode 100644 index 493eb9da3..000000000 --- a/ccc/include/alibabacloud/ccc/model/CoachCallResult.h +++ /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. - */ - -#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 new file mode 100644 index 000000000..cacc49f5a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.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_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 new file mode 100644 index 000000000..c8cf51e32 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 deleted file mode 100644 index c819f8c1e..000000000 --- a/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.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_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 deleted file mode 100644 index 14b81b913..000000000 --- a/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h +++ /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. - */ - -#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; - long contextId; - 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 new file mode 100644 index 000000000..999873e6d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateBatchJobsRequest : public RpcServiceRequest + { + + public: + CreateBatchJobsRequest(); + ~CreateBatchJobsRequest(); + + std::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 new file mode 100644 index 000000000..0dde4707d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateBatchJobsResult : public ServiceResult + { + public: + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + std::string jobGroupId; + std::string scenarioId; + std::string jobGroupName; + long creationTime; + Strategy strategy; + std::string jobFilePath; + std::string jobGroupDescription; + std::vector callingNumbers; + }; + + + CreateBatchJobsResult(); + explicit CreateBatchJobsResult(const std::string &payload); + ~CreateBatchJobsResult(); + JobGroup getJobGroup()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + JobGroup jobGroup_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.h new file mode 100644 index 000000000..0b11fd0c5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.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_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/ListDevicesResult.h b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/ListDevicesResult.h rename to ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h index 38e2e6b87..31f8ac821 100644 --- a/ccc/include/alibabacloud/ccc/model/ListDevicesResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTDEVICESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTDEVICESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_H_ #include #include @@ -29,41 +29,41 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListDevicesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT CreateCabInstanceResult : public ServiceResult { public: - struct Device + struct Instance { - std::string extension; + std::string instanceName; + std::string owner; + int maxConcurrentConversation; std::string instanceId; - std::string deviceId; - std::string userId; - std::string callId; - long expires; - std::string contact; + long creationTime; + std::string instanceDescription; + std::string callCenterInstanceId; }; - ListDevicesResult(); - explicit ListDevicesResult(const std::string &payload); - ~ListDevicesResult(); + CreateCabInstanceResult(); + explicit CreateCabInstanceResult(const std::string &payload); + ~CreateCabInstanceResult(); std::string getMessage()const; + Instance getInstance()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::string message_; + Instance instance_; int httpStatusCode_; - std::vector params_; - std::vector data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTDEVICESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_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 new file mode 100644 index 000000000..1708ff835 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.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_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 new file mode 100644 index 000000000..d64f06ac8 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h @@ -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. + */ + +#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 new file mode 100644 index 000000000..0fadc3fcd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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/AddNumbersToSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h rename to ccc/include/alibabacloud/ccc/model/CreateFaultResult.h index 366040577..abd530465 100644 --- a/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ #include #include @@ -29,17 +29,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddNumbersToSkillGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT CreateFaultResult : public ServiceResult { public: - AddNumbersToSkillGroupResult(); - explicit AddNumbersToSkillGroupResult(const std::string &payload); - ~AddNumbersToSkillGroupResult(); + CreateFaultResult(); + explicit CreateFaultResult(const std::string &payload); + ~CreateFaultResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -47,9 +48,10 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h index f6ec4a20e..153845d0f 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h @@ -35,23 +35,41 @@ namespace AlibabaCloud CreateInstanceRequest(); ~CreateInstanceRequest(); - std::string getAdminRamIdList()const; - void setAdminRamIdList(const std::string& adminRamIdList); + 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); - std::string getNumberList()const; - void setNumberList(const std::string& numberList); + 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::string adminRamIdList_; + std::vector phoneNumbers_; + std::vector userObject_; std::string domainName_; + std::string phoneNumber_; std::string description_; - std::string numberList_; + int storageMaxDays_; + std::vector adminRamId_; + std::string accessKeyId_; std::string name_; + int storageMaxSize_; + std::string directoryId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h b/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h index 3b3099385..9753a5dd1 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h @@ -32,25 +32,75 @@ namespace AlibabaCloud 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::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_; + Instance instance_; int httpStatusCode_; - std::vector params_; - std::string data_; std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h new file mode 100644 index 000000000..2ea8c7c7b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateJobGroupRequest : public RpcServiceRequest + { + + public: + CreateJobGroupRequest(); + ~CreateJobGroupRequest(); + + std::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 new file mode 100644 index 000000000..6165cda67 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateJobGroupResult : public ServiceResult + { + public: + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string from; + std::string to; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + std::string jobGroupId; + std::string scenarioId; + std::string jobGroupName; + long creationTime; + Strategy strategy; + std::string jobFilePath; + std::string jobGroupDescription; + std::vector callingNumbers; + }; + + + CreateJobGroupResult(); + explicit CreateJobGroupResult(const std::string &payload); + ~CreateJobGroupResult(); + JobGroup getJobGroup()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + JobGroup jobGroup_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateMediaRequest.h b/ccc/include/alibabacloud/ccc/model/CreateMediaRequest.h new file mode 100644 index 000000000..4b48045b2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateMediaRequest.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_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/ListConfigItemsResult.h b/ccc/include/alibabacloud/ccc/model/CreateMediaResult.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ListConfigItemsResult.h rename to ccc/include/alibabacloud/ccc/model/CreateMediaResult.h index cfaaee686..fa75ef2a6 100644 --- a/ccc/include/alibabacloud/ccc/model/ListConfigItemsResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateMediaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEMEDIARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEMEDIARESULT_H_ #include #include @@ -29,39 +29,40 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListConfigItemsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT CreateMediaResult : public ServiceResult { public: - struct ConfigItem + struct MediaUploadParam { - std::string objectType; - std::string instanceId; - std::string objectId; - std::string value; + std::string instance; + std::string fileName; + std::string ossFileName; + std::string id; std::string name; + std::string ossFilePath; }; - ListConfigItemsResult(); - explicit ListConfigItemsResult(const std::string &payload); - ~ListConfigItemsResult(); + CreateMediaResult(); + explicit CreateMediaResult(const std::string &payload); + ~CreateMediaResult(); + MediaUploadParam getMediaUploadParam()const; 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_LISTCONFIGITEMSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEMEDIARESULT_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 new file mode 100644 index 000000000..2d99a534c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.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_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::string getJobFilePath()const; + void setJobFilePath(const std::string& jobFilePath); + std::vector getJobsJson()const; + void setJobsJson(const std::vector& jobsJson); + 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); + int getRatio()const; + void setRatio(int ratio); + + private: + std::string description_; + bool timingSchedule_; + std::string jobFilePath_; + std::vector jobsJson_; + std::string instanceId_; + bool isDraft_; + std::string skillGroupId_; + std::string strategyJson_; + std::string name_; + int ratio_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserResult.h b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserResult.h rename to ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h index e5e842c8e..fe820fb96 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ #include #include @@ -29,29 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPersonalNumbersToUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobGroupResult : public ServiceResult { public: - AddPersonalNumbersToUserResult(); - explicit AddPersonalNumbersToUserResult(const std::string &payload); - ~AddPersonalNumbersToUserResult(); + CreatePredictiveJobGroupResult(); + explicit CreatePredictiveJobGroupResult(const std::string &payload); + ~CreatePredictiveJobGroupResult(); + std::string getJobGroupId()const; 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_ADDPERSONALNUMBERSTOUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportRequest.h b/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h similarity index 56% rename from ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportRequest.h rename to ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h index 6cb029219..81169564b 100644 --- a/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALINSTANCEREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALINSTANCEREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATEREQUEST_H_ #include #include @@ -28,30 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListIntervalInstanceReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT CreateScenarioFromTemplateRequest : public RpcServiceRequest { public: - ListIntervalInstanceReportRequest(); - ~ListIntervalInstanceReportRequest(); + CreateScenarioFromTemplateRequest(); + ~CreateScenarioFromTemplateRequest(); - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); + 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 getInterval()const; - void setInterval(const std::string& interval); + std::string getName()const; + void setName(const std::string& name); private: - long endTime_; - long startTime_; + std::string variables_; + std::string description_; + std::string templateId_; std::string instanceId_; - std::string interval_; + std::string name_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALINSTANCEREPORTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h b/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h new file mode 100644 index 000000000..28076f68a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateScenarioFromTemplateResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string surveyId; + std::string beebotId; + std::string surveyName; + std::string surveyDescription; + std::vector intents; + int round; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string scenarioId; + std::string scenarioDescription; + Strategy strategy; + std::string scenarioName; + }; + + + CreateScenarioFromTemplateResult(); + explicit CreateScenarioFromTemplateResult(const std::string &payload); + ~CreateScenarioFromTemplateResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + Scenario getScenario()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + Scenario scenario_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h b/ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h new file mode 100644 index 000000000..614ddac55 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESCENARIOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateScenarioRequest : public RpcServiceRequest + { + + public: + CreateScenarioRequest(); + ~CreateScenarioRequest(); + + std::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 new file mode 100644 index 000000000..c59439b2b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateScenarioResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESCENARIORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateScenarioResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string surveyId; + std::string beebotId; + std::string surveyName; + std::string surveyDescription; + std::vector intents; + int round; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string scenarioId; + std::string scenarioDescription; + Strategy strategy; + std::string scenarioName; + }; + + + CreateScenarioResult(); + explicit CreateScenarioResult(const std::string &payload); + ~CreateScenarioResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + Scenario getScenario()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + Scenario scenario_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIORESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h index 15b73d15e..e9f99947d 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h @@ -35,19 +35,34 @@ 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::string getDisplayName()const; - void setDisplayName(const std::string& displayName); + std::vector getOutboundPhoneNumberId()const; + void setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId); std::string getName()const; void setName(const std::string& name); private: + bool allowPrivateOutboundNumber_; std::string description_; + std::string routingStrategy_; + std::vector userId_; + std::string accessKeyId_; + std::vector skillLevel_; std::string instanceId_; - std::string displayName_; + std::vector outboundPhoneNumberId_; std::string name_; }; diff --git a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h index ffeb11507..c594714e9 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h @@ -32,13 +32,6 @@ 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(); @@ -46,16 +39,18 @@ namespace AlibabaCloud ~CreateSkillGroupResult(); std::string getMessage()const; int getHttpStatusCode()const; - Data getData()const; + std::string getSkillGroupId()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Data data_; + std::string skillGroupId_; std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h new file mode 100644 index 000000000..96dfaf6da --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateSurveyRequest : public RpcServiceRequest + { + + public: + CreateSurveyRequest(); + ~CreateSurveyRequest(); + + std::string 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/ListRamUsersResult.h b/ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h similarity index 54% rename from ccc/include/alibabacloud/ccc/model/ListRamUsersResult.h rename to ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h index c5b393d95..31300b817 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRamUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CREATESURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATESURVEYRESULT_H_ #include #include @@ -29,48 +29,56 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRamUsersResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT CreateSurveyResult : public ServiceResult { public: - struct Data + struct Survey { - struct RamUser + struct Flow { - std::string loginName; - std::string email; - long aliyunUid; - bool primary; - std::string displayName; - std::string ramId; - std::string mobile; + std::string flowId; + bool isPublished; + std::string flowJson; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + 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; }; - ListRamUsersResult(); - explicit ListRamUsersResult(const std::string &payload); - ~ListRamUsersResult(); + CreateSurveyResult(); + explicit CreateSurveyResult(const std::string &payload); + ~CreateSurveyResult(); + Survey getSurvey()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: + Survey survey_; std::string message_; int httpStatusCode_; - std::vector params_; - Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSRESULT_H_ \ No newline at end of file +#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 6f3eac9c3..27df9100f 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h @@ -35,34 +35,37 @@ 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::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::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getPhone()const; + void setPhone(const std::string& phone); std::string getDisplayName()const; void setDisplayName(const std::string& displayName); - bool getResetPassword()const; - void setResetPassword(bool resetPassword); - std::string getSkillLevelList()const; - void setSkillLevelList(const std::string& skillLevelList); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); std::string getEmail()const; void setEmail(const std::string& email); private: + std::string privateOutboundNumberId_; std::string loginName_; - std::string roleId_; - std::string mobile_; - std::string workMode_; + std::vector roleId_; + std::string accessKeyId_; + std::vector skillLevel_; std::string instanceId_; + std::string phone_; std::string displayName_; - bool resetPassword_; - std::string skillLevelList_; + std::vector skillGroupId_; std::string email_; }; diff --git a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h index 4633720ad..0117738a0 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h @@ -32,35 +32,25 @@ 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/SaveWebRtcInfoRequest.h b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/SaveWebRtcInfoRequest.h rename to ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h index ab5c5d75f..ac6cb5693 100644 --- a/ccc/include/alibabacloud/ccc/model/SaveWebRtcInfoRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCINFOREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCINFOREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISEREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT SaveWebRtcInfoRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT CreateVoiceAppraiseRequest : public RpcServiceRequest { public: - SaveWebRtcInfoRequest(); - ~SaveWebRtcInfoRequest(); + CreateVoiceAppraiseRequest(); + ~CreateVoiceAppraiseRequest(); - std::string getCallId()const; - void setCallId(const std::string& callId); + bool getIsAppraise()const; + void setIsAppraise(bool isAppraise); std::string getContent()const; void setContent(const std::string& content); - std::string getContentType()const; - void setContentType(const std::string& contentType); - std::string getJobId()const; - void setJobId(const std::string& jobId); + 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 callId_; + bool isAppraise_; std::string content_; - std::string contentType_; - std::string jobId_; + std::string accessKeyId_; std::string instanceId_; + std::string contactFlowVersionId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCINFOREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..2e6f5cd33 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.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_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/ModifyInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ModifyInstanceRequest.h rename to ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h index 58787e46c..1be39ec81 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyInstanceRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYINSTANCEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYINSTANCEREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEINSTANCEREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ModifyInstanceRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT DeleteInstanceRequest : public RpcServiceRequest { public: - ModifyInstanceRequest(); - ~ModifyInstanceRequest(); + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); - std::string getDescription()const; - void setDescription(const std::string& description); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - std::string description_; + std::string accessKeyId_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYINSTANCEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RegisterDeviceResult.h b/ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/RegisterDeviceResult.h rename to ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h index 6ab74d967..b6944364c 100644 --- a/ccc/include/alibabacloud/ccc/model/RegisterDeviceResult.h +++ b/ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REGISTERDEVICERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICERESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DELETEINSTANCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEINSTANCERESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RegisterDeviceResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT DeleteInstanceResult : public ServiceResult { public: - RegisterDeviceResult(); - explicit RegisterDeviceResult(const std::string &payload); - ~RegisterDeviceResult(); + DeleteInstanceResult(); + explicit DeleteInstanceResult(const std::string &payload); + ~DeleteInstanceResult(); 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_REGISTERDEVICERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h new file mode 100644 index 000000000..81318e551 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteJobGroupRequest : public RpcServiceRequest + { + + public: + DeleteJobGroupRequest(); + ~DeleteJobGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h new file mode 100644 index 000000000..91d39927d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteJobGroupResult : public ServiceResult + { + public: + + + DeleteJobGroupResult(); + explicit DeleteJobGroupResult(const std::string &payload); + ~DeleteJobGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h new file mode 100644 index 000000000..3b53abb00 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.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_DELETEMEDIAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteMediaRequest : public RpcServiceRequest + { + + public: + DeleteMediaRequest(); + ~DeleteMediaRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string name_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h b/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h new file mode 100644 index 000000000..3ffe6f252 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.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_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/DeletePhoneTagsRequest.h b/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsRequest.h new file mode 100644 index 000000000..e4e50b3a0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsRequest.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_DELETEPHONETAGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeletePhoneTagsRequest : public RpcServiceRequest + { + + public: + DeletePhoneTagsRequest(); + ~DeletePhoneTagsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getPhoneNumberList()const; + void setPhoneNumberList(const std::vector& phoneNumberList); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::vector phoneNumberList_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddPhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/AddPhoneNumbersResult.h rename to ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h index 461e6683a..af4bfbcce 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPhoneNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/DeletePhoneTagsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSRESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPhoneNumbersResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT DeletePhoneTagsResult : public ServiceResult { public: - AddPhoneNumbersResult(); - explicit AddPhoneNumbersResult(const std::string &payload); - ~AddPhoneNumbersResult(); + DeletePhoneTagsResult(); + explicit DeletePhoneTagsResult(const std::string &payload); + ~DeletePhoneTagsResult(); 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_ADDPHONENUMBERSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEPHONETAGSRESULT_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 ad245f1e0..96945d011 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); - bool getForce()const; - void setForce(bool force); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: std::string instanceId_; std::string skillGroupId_; - bool force_; + std::string accessKeyId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h index 481cbd7fb..a1223b3c2 100644 --- a/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -47,6 +48,7 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/SignOutGroupRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/SignOutGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h index e30a5093e..051dd88bd 100644 --- a/ccc/include/alibabacloud/ccc/model/SignOutGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT SignOutGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT DeleteSurveyRequest : public RpcServiceRequest { public: - SignOutGroupRequest(); - ~SignOutGroupRequest(); + DeleteSurveyRequest(); + ~DeleteSurveyRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getDeviceId()const; - void setDeviceId(const std::string& deviceId); + 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 userId_; - std::string deviceId_; + std::string surveyId_; std::string instanceId_; + std::string scenarioId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_SIGNOUTGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h b/ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h new file mode 100644 index 000000000..924f9f70c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DELETESURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETESURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteSurveyResult : public ServiceResult + { + public: + + + DeleteSurveyResult(); + explicit DeleteSurveyResult(const std::string &payload); + ~DeleteSurveyResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETESURVEYRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/StartPredictiveCallRequest.h b/ccc/include/alibabacloud/ccc/model/DialExRequest.h similarity index 58% rename from ccc/include/alibabacloud/ccc/model/StartPredictiveCallRequest.h rename to ccc/include/alibabacloud/ccc/model/DialExRequest.h index 5499bb729..50d51a772 100644 --- a/ccc/include/alibabacloud/ccc/model/StartPredictiveCallRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DialExRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_STARTPREDICTIVECALLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_STARTPREDICTIVECALLREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DIALEXREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DIALEXREQUEST_H_ #include #include @@ -28,39 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT StartPredictiveCallRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT DialExRequest : public RpcServiceRequest { public: - StartPredictiveCallRequest(); - ~StartPredictiveCallRequest(); + DialExRequest(); + ~DialExRequest(); - std::string getContactFlowId()const; - void setContactFlowId(const std::string& contactFlowId); std::string getCallee()const; void setCallee(const std::string& callee); - std::string getContactFlowVariables()const; - void setContactFlowVariables(const std::string& contactFlowVariables); - std::string getTags()const; - void setTags(const std::string& tags); - int getTimeoutSeconds()const; - void setTimeoutSeconds(int timeoutSeconds); + 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 contactFlowId_; std::string callee_; - std::string contactFlowVariables_; - std::string tags_; - int timeoutSeconds_; + std::string accessKeyId_; + std::string routPoint_; std::string caller_; std::string instanceId_; + std::string provider_; + int answerMode_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_STARTPREDICTIVECALLREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..4690e2fbf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DialExResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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 new file mode 100644 index 000000000..ea0ad3c50 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DialogueRequest.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_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/GetHistoricalCallerReportResult.h b/ccc/include/alibabacloud/ccc/model/DialogueResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h rename to ccc/include/alibabacloud/ccc/model/DialogueResult.h index e7346e58b..d88e02600 100644 --- a/ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h +++ b/ccc/include/alibabacloud/ccc/model/DialogueResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DIALOGUERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DIALOGUERESULT_H_ #include #include @@ -29,34 +29,38 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetHistoricalCallerReportResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT DialogueResult : public ServiceResult { public: - struct Data + struct Feedback { - long lastCallingTime; - long totalCalls; + std::string action; + bool interruptible; + std::string content; + std::string actionParams; }; - GetHistoricalCallerReportResult(); - explicit GetHistoricalCallerReportResult(const std::string &payload); - ~GetHistoricalCallerReportResult(); + DialogueResult(); + explicit DialogueResult(const std::string &payload); + ~DialogueResult(); std::string getMessage()const; + Feedback getFeedback()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_; + Feedback feedback_; int httpStatusCode_; - Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTRESULT_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..8e596a98a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/DisableTrunkProvidersResult.h b/ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersResult.h new file mode 100644 index 000000000..934685b02 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DisableTrunkProvidersResult.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_DISABLETRUNKPROVIDERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DisableTrunkProvidersResult : public ServiceResult + { + public: + + + DisableTrunkProvidersResult(); + explicit DisableTrunkProvidersResult(const std::string &payload); + ~DisableTrunkProvidersResult(); + 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_DISABLETRUNKPROVIDERSRESULT_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 new file mode 100644 index 000000000..ef7549023 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.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_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 new file mode 100644 index 000000000..5614fa161 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadAllTypeRecordingResult : public ServiceResult + { + public: + struct MediaDownloadParam + { + std::string fileName; + std::string signatureUrl; + }; + + + DownloadAllTypeRecordingResult(); + explicit DownloadAllTypeRecordingResult(const std::string &payload); + ~DownloadAllTypeRecordingResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getMediaDownloadParamList()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector mediaDownloadParamList_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h new file mode 100644 index 000000000..b16671bc7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadCabRecordingRequest : public RpcServiceRequest + { + + public: + DownloadCabRecordingRequest(); + ~DownloadCabRecordingRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string instanceId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h new file mode 100644 index 000000000..18f194088 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadCabRecordingResult : public ServiceResult + { + public: + struct MediaDownloadParam + { + std::string fileName; + std::string signatureUrl; + }; + + + DownloadCabRecordingResult(); + explicit DownloadCabRecordingResult(const std::string &payload); + ~DownloadCabRecordingResult(); + MediaDownloadParam getMediaDownloadParam()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + MediaDownloadParam mediaDownloadParam_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h new file mode 100644 index 000000000..69c116d1d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadOriginalStatisticsReportRequest : public RpcServiceRequest + { + + public: + DownloadOriginalStatisticsReportRequest(); + ~DownloadOriginalStatisticsReportRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsResult.h rename to ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h index c9ee82e34..f77d2836e 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsResult.h +++ b/ccc/include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTRESULT_H_ #include #include @@ -29,27 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumberFromSkillGroupsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT DownloadOriginalStatisticsReportResult : public ServiceResult { public: + struct DownloadParams + { + std::string signatureUrl; + }; - RemovePhoneNumberFromSkillGroupsResult(); - explicit RemovePhoneNumberFromSkillGroupsResult(const std::string &payload); - ~RemovePhoneNumberFromSkillGroupsResult(); + 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_REMOVEPHONENUMBERFROMSKILLGROUPSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/UpdateConfigItemsRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadRecordingRequest.h similarity index 59% rename from ccc/include/alibabacloud/ccc/model/UpdateConfigItemsRequest.h rename to ccc/include/alibabacloud/ccc/model/DownloadRecordingRequest.h index 0c592efb3..7e20b3469 100644 --- a/ccc/include/alibabacloud/ccc/model/UpdateConfigItemsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DownloadRecordingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_UPDATECONFIGITEMSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_UPDATECONFIGITEMSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGREQUEST_H_ #include #include @@ -28,30 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT UpdateConfigItemsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT DownloadRecordingRequest : public RpcServiceRequest { public: - UpdateConfigItemsRequest(); - ~UpdateConfigItemsRequest(); + DownloadRecordingRequest(); + ~DownloadRecordingRequest(); - std::string getConfigItems()const; - void setConfigItems(const std::string& configItems); + 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 getObjectType()const; - void setObjectType(const std::string& objectType); - std::string getObjectId()const; - void setObjectId(const std::string& objectId); + std::string getFileName()const; + void setFileName(const std::string& fileName); private: - std::string configItems_; + std::string channel_; + std::string accessKeyId_; std::string instanceId_; - std::string objectType_; - std::string objectId_; + std::string fileName_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_UPDATECONFIGITEMSREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..4e1bfac5c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/GetHistoricalInstanceReportRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h rename to ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h index be749614c..2c3cae1fd 100644 --- a/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETHISTORICALINSTANCEREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETHISTORICALINSTANCEREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ #include #include @@ -28,27 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetHistoricalInstanceReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT DownloadUnreachableContactsRequest : public RpcServiceRequest { public: - GetHistoricalInstanceReportRequest(); - ~GetHistoricalInstanceReportRequest(); + DownloadUnreachableContactsRequest(); + ~DownloadUnreachableContactsRequest(); - 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_GETHISTORICALINSTANCEREPORTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h new file mode 100644 index 000000000..3fa3e3f01 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadUnreachableContactsResult : public ServiceResult + { + public: + struct DownloadParams + { + std::string signatureUrl; + }; + + + DownloadUnreachableContactsResult(); + explicit DownloadUnreachableContactsResult(const std::string &payload); + ~DownloadUnreachableContactsResult(); + DownloadParams getDownloadParams()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DownloadParams downloadParams_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRamUsersRequest.h b/ccc/include/alibabacloud/ccc/model/FindUsersRequest.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/ListRamUsersRequest.h rename to ccc/include/alibabacloud/ccc/model/FindUsersRequest.h index 180d68f61..8c8573583 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRamUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/FindUsersRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ #include #include @@ -28,25 +28,28 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRamUsersRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT FindUsersRequest : public RpcServiceRequest { public: - ListRamUsersRequest(); - ~ListRamUsersRequest(); + FindUsersRequest(); + ~FindUsersRequest(); + std::string getCriteria()const; + void setCriteria(const std::string& criteria); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getSearchPattern()const; - void setSearchPattern(const std::string& searchPattern); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; void setPageSize(int pageSize); private: + std::string criteria_; int pageNumber_; - std::string searchPattern_; + std::string accessKeyId_; std::string instanceId_; int pageSize_; @@ -54,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRAMUSERSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesResult.h b/ccc/include/alibabacloud/ccc/model/FindUsersResult.h similarity index 55% rename from ccc/include/alibabacloud/ccc/model/ListInstancesResult.h rename to ccc/include/alibabacloud/ccc/model/FindUsersResult.h index 4c17843e5..8627d2e18 100644 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesResult.h +++ b/ccc/include/alibabacloud/ccc/model/FindUsersResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINSTANCESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_FINDUSERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_FINDUSERSRESULT_H_ #include #include @@ -29,68 +29,76 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListInstancesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT FindUsersResult : public ServiceResult { public: - struct Data + struct Users { - struct CallCenterInstance + struct User { - struct User + struct Detail { - std::string extension; std::string loginName; - std::string roleName; + std::string department; std::string email; - std::string instanceId; - std::string userId; + std::string phone; std::string displayName; - std::string mobile; - std::string roleId; - std::string workMode; }; - struct PhoneNumber + struct Role { - std::string number; + std::string roleName; + std::string instanceId; + std::string roleDescription; + std::string roleId; }; - std::string status; - std::vector adminList; - std::string description; - std::string consoleUrl; - std::string domainName; - std::string aliyunUid; - long createTime; - std::vector numberList; - std::string id; - std::string name; + 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; + std::vector list; }; - ListInstancesResult(); - explicit ListInstancesResult(const std::string &payload); - ~ListInstancesResult(); + FindUsersResult(); + explicit FindUsersResult(const std::string &payload); + ~FindUsersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; - Data getData()const; + Users getUsers()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - std::vector params_; - Data data_; + Users users_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESRESULT_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..6d3292382 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GenerateAgentStatisticReportRequest : public RpcServiceRequest + { + + public: + GenerateAgentStatisticReportRequest(); + ~GenerateAgentStatisticReportRequest(); + + std::string getAgentId()const; + void setAgentId(const std::string& agentId); + std::string 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/ListHistoricalAgentReportResult.h b/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h similarity index 60% rename from ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h rename to ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h index 02eb9f456..816ed065a 100644 --- a/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h +++ b/ccc/include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_ #include #include @@ -29,128 +29,116 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListHistoricalAgentReportResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GenerateAgentStatisticReportResult : public ServiceResult { public: - struct Data + struct DataList { - struct Items + struct GenerateAgentStatistic { struct Inbound { long totalWorkTime; - long callsRinged; long totalHoldTime; - float averageHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; long callsOffered; long maxRingTime; - long callsHold; float satisfactionIndex; + long callsHandled; + long satisfactionSurveysResponded; long totalRingTime; float handleRate; long totalTalkTime; + long averageRingTime; long maxTalkTime; - float satisfactionRate; - long callsAttendedTransferOut; - float averageTalkTime; - long maxHoldTime; - long satisfactionSurveysOffered; - long callsHandled; - long satisfactionSurveysResponded; - long callsAttendedTransferIn; - float averageRingTime; - float averageWorkTime; - long callsBlindTransferOut; - long callsBlindTransferIn; + long averageWorkTime; long maxWorkTime; + long averageTalkTime; + long maxHoldTime; }; struct Outbound { long totalDialingTime; long totalWorkTime; - long callsRinged; long totalHoldTime; - float averageHoldTime; - long maxRingTime; - long callsHold; + long averageHoldTime; + long satisfactionSurveysOffered; float satisfactionIndex; - long totalRingTime; - float averageDialingTime; + long satisfactionSurveysResponded; + long averageDialingTime; long callsAnswered; - long callsDialed; long totalTalkTime; + long callsDialed; + long totalDialingTime1; long maxDialingTime; long maxTalkTime; - float satisfactionRate; - long callsAttendedTransferOut; - float answerRate; - float averageTalkTime; - long maxHoldTime; - long satisfactionSurveysOffered; - long satisfactionSurveysResponded; - long callsAttendedTransferIn; - float averageRingTime; - float averageWorkTime; - long callsBlindTransferOut; - long callsBlindTransferIn; + long averageWorkTime; long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + float answerRate; }; struct Overall { - long totalReadyTime; - long totalBreakTime; long totalCalls; long totalWorkTime; long totalHoldTime; - float averageHoldTime; + long averageHoldTime; long satisfactionSurveysOffered; float satisfactionIndex; - float averageBreakTime; long satisfactionSurveysResponded; long totalTalkTime; - float averageReadyTime; - long totalLoggedInTime; long maxTalkTime; - float averageWorkTime; - long maxReadyTime; - float satisfactionRate; - long maxBreakTime; + long averageWorkTime; long maxWorkTime; - float averageTalkTime; + long averageTalkTime; long maxHoldTime; - float occupancyRate; }; - Outbound outbound; + 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; - Inbound inbound; + long maxReadyTime; + float occupancyRate; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListHistoricalAgentReportResult(); - explicit ListHistoricalAgentReportResult(const std::string &payload); - ~ListHistoricalAgentReportResult(); + GenerateAgentStatisticReportResult(); + explicit GenerateAgentStatisticReportResult(const std::string &payload); + ~GenerateAgentStatisticReportResult(); + DataList getDataList()const; 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_LISTHISTORICALAGENTREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserRequest.h rename to ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h index 263935105..ab919a011 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_ #include #include @@ -28,36 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListPersonalNumbersOfUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetAgentDataRequest : public RpcServiceRequest { public: - ListPersonalNumbersOfUserRequest(); - ~ListPersonalNumbersOfUserRequest(); + GetAgentDataRequest(); + ~GetAgentDataRequest(); + 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); - bool getIsMember()const; - void setIsMember(bool isMember); - std::string getSearchPattern()const; - void setSearchPattern(const std::string& searchPattern); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); 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_; - bool isMember_; - std::string searchPattern_; + std::string accessKeyId_; std::string instanceId_; + std::string endDay_; int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h b/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h new file mode 100644 index 000000000..19129dc0d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetAgentDataResult : public ServiceResult + { + public: + struct DataList + { + struct GenerateAgentStatistic + { + struct Inbound + { + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsHandled; + long satisfactionSurveysResponded; + long totalRingTime; + float handleRate; + long totalTalkTime; + long averageRingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long totalTalkTime; + long callsDialed; + long totalDialingTime1; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + float answerRate; + }; + struct Overall + { + long totalCalls; + long totalWorkTime; + long totalHoldTime; + long averageHoldTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long maxHoldTime; + }; + long totalReadyTime; + Overall overall; + std::string loginName; + std::string skillGroupIds; + long totalBreakTime; + std::string instanceId; + std::string recordDate; + Inbound inbound; + Outbound outbound; + long averageReadyTime; + std::string skillGroupNames; + long totalLoggedInTime; + std::string agentId; + std::string agentName; + long maxReadyTime; + float occupancyRate; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetAgentDataResult(); + explicit GetAgentDataResult(const std::string &payload); + ~GetAgentDataResult(); + DataList getDataList()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DataList dataList_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordResult.h b/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordResult.h deleted file mode 100644 index 95c759a37..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordResult.h +++ /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. - */ - -#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 AgentEventsItem - { - struct EventSequenceItem - { - long eventTime; - std::string event; - }; - std::vector eventSequence; - std::string agentName; - std::string agentId; - std::string skillGroupId; - }; - struct IvrEventsItem - { - struct EventSequenceItem2 - { - long eventTime; - std::string event; - }; - std::string flowId; - std::vector eventSequence1; - }; - struct QueueEventsItem - { - struct EventSequenceItem4 - { - long eventTime; - std::string event; - }; - std::string flowId; - std::vector eventSequence3; - std::string queueId; - std::string queueName; - int queueType; - }; - std::vector agentEvents; - std::string skillGroupIds; - std::string calledNumber; - std::string contactType; - std::string releaseInitiator; - std::string contactDisposition; - std::string instanceId; - int satisfaction; - long startTime; - std::string contactId; - long callDuration; - std::string callingNumber; - std::vector queueEvents; - std::string calleeLocation; - bool recordingReady; - long releaseTime; - std::string skillGroupNames; - std::string satisfactionSurveyChannel; - std::string agentIds; - bool satisfactionSurveyOffered; - long establishedTime; - std::string callerLocation; - std::string agentNames; - std::vector ivrEvents; - }; - - - 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 new file mode 100644 index 000000000..4314ab532 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.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_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 new file mode 100644 index 000000000..117b84bda --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h @@ -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. + */ + +#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/ListConfigItemsRequest.h b/ccc/include/alibabacloud/ccc/model/GetConfigRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ListConfigItemsRequest.h rename to ccc/include/alibabacloud/ccc/model/GetConfigRequest.h index 55bd5c2e2..e799bc3d7 100644 --- a/ccc/include/alibabacloud/ccc/model/ListConfigItemsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetConfigRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_H_ #include #include @@ -28,22 +28,28 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListConfigItemsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetConfigRequest : public RpcServiceRequest { public: - ListConfigItemsRequest(); - ~ListConfigItemsRequest(); + GetConfigRequest(); + ~GetConfigRequest(); + 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_; @@ -51,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONFIGITEMSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h b/ccc/include/alibabacloud/ccc/model/GetConfigResult.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h rename to ccc/include/alibabacloud/ccc/model/GetConfigResult.h index 0925f0ca5..881af8071 100644 --- a/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetConfigResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_ #include #include @@ -29,34 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetMonoRecordingResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetConfigResult : public ServiceResult { public: - struct Data + struct ConfigItem { - std::string fileUrl; - std::string fileName; + std::string value; + std::string name; }; - GetMonoRecordingResult(); - explicit GetMonoRecordingResult(const std::string &payload); - ~GetMonoRecordingResult(); + GetConfigResult(); + explicit GetConfigResult(const std::string &payload); + ~GetConfigResult(); std::string getMessage()const; int getHttpStatusCode()const; - Data getData()const; + ConfigItem getConfigItem()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Data data_; + ConfigItem configItem_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h b/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h new file mode 100644 index 000000000..1d70c0884 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.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_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetContactInfoByOutboundTaskIdRequest : public RpcServiceRequest + { + + public: + GetContactInfoByOutboundTaskIdRequest(); + ~GetContactInfoByOutboundTaskIdRequest(); + + 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 instanceId_; + std::string outboundTaskId_; + std::string skillGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_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 new file mode 100644 index 000000000..ee5f321ae --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.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_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/ListIvrTrackingDetailsRequest.h b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailsRequest.h rename to ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h index d4ab3601b..72e772667 100644 --- a/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_ #include #include @@ -28,17 +28,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListIvrTrackingDetailsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetConversationDetailByContactIdRequest : public RpcServiceRequest { public: - ListIvrTrackingDetailsRequest(); - ~ListIvrTrackingDetailsRequest(); + GetConversationDetailByContactIdRequest(); + ~GetConversationDetailByContactIdRequest(); std::string getContactId()const; void setContactId(const std::string& contactId); int getPageNumber()const; void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud private: std::string contactId_; int pageNumber_; + std::string accessKeyId_; std::string instanceId_; int pageSize_; @@ -54,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h new file mode 100644 index 000000000..04b5551e8 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetConversationDetailByContactIdResult : public ServiceResult + { + public: + struct DataList + { + struct QualityCheckPhrase + { + std::string role; + std::string words; + long begin; + long end; + std::string identity; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetConversationDetailByContactIdResult(); + explicit GetConversationDetailByContactIdResult(const std::string &payload); + ~GetConversationDetailByContactIdResult(); + DataList getDataList()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DataList dataList_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordRequest.h b/ccc/include/alibabacloud/ccc/model/GetConversationListRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/GetCallDetailRecordRequest.h rename to ccc/include/alibabacloud/ccc/model/GetConversationListRequest.h index bc746d58b..eab0b3ff3 100644 --- a/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetConversationListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetCallDetailRecordRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetConversationListRequest : public RpcServiceRequest { public: - GetCallDetailRecordRequest(); - ~GetCallDetailRecordRequest(); + GetConversationListRequest(); + ~GetConversationListRequest(); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getContactId()const; - void setContactId(const std::string& contactId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); private: std::string instanceId_; - std::string contactId_; + std::string taskId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETCALLDETAILRECORDREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationListResult.h b/ccc/include/alibabacloud/ccc/model/GetConversationListResult.h new file mode 100644 index 000000000..584d60267 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetConversationListResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetConversationListResult : public ServiceResult + { + public: + struct ConversationDetail + { + struct SummaryItem + { + std::string category; + std::string content; + std::string summaryName; + }; + std::string script; + std::vector summary; + long timestamp; + std::string speaker; + }; + + + GetConversationListResult(); + explicit GetConversationListResult(const std::string &payload); + ~GetConversationListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getConversations()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector conversations_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportResult.h b/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportResult.h deleted file mode 100644 index f7f60a9f1..000000000 --- a/ccc/include/alibabacloud/ccc/model/GetHistoricalInstanceReportResult.h +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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 - { - float serviceLevel20; - long totalWorkTime; - long totalHoldTime; - long callsRinged; - long maxAbandonedInIVRTime; - long callsOffered; - float satisfactionIndex; - long callsHold; - long totalRingTime; - float handleRate; - float averageAbandonedInQueueTime; - long totalTalkTime; - float averageWaitTime; - long totalAbandonedInRingTime; - long callsQueuingOverflow; - long totalAbandonTime; - long callsQueuingFailed; - long callsBlindTransferred; - long maxAbandonedInQueueTime; - long satisfactionSurveysOffered; - long callsAbandonedInRing; - long callsAttendedTransferred; - float averageRingTime; - float abandonRate; - long callsIVRException; - long callsAbandonedInQueue; - float averageHoldTime; - long callsAbandoned; - long maxRingTime; - long maxAbandonedInRingTime; - long totalAbandonedInIVRTime; - long callsForwardToOutsideNumber; - long callsQueued; - long maxTalkTime; - float averageAbandonedInIVRTime; - float satisfactionRate; - long callsQueuingTimeout; - float averageTalkTime; - long maxHoldTime; - long callsAbandonedInIVR; - long callsAbandonedInVoiceNavigator; - long callsVoicemail; - long callsHandled; - long maxWaitTime; - long satisfactionSurveysResponded; - long maxAbandonTime; - long totalWaitTime; - float averageAbandonTime; - float averageAbandonedInRingTime; - float averageWorkTime; - long totalAbandonedInQueueTime; - long maxWorkTime; - }; - struct Outbound - { - long totalDialingTime; - long totalWorkTime; - long totalHoldTime; - long callsRinged; - float averageHoldTime; - long maxRingTime; - float satisfactionIndex; - int callsHold; - long totalRingTime; - float averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - float satisfactionRate; - float answerRate; - long maxHoldTime; - float averageTalkTime; - long callsBlindTransferred; - long satisfactionSurveysOffered; - long satisfactionSurveysResponded; - long callsAttendedTransferred; - float averageRingTime; - float averageWorkTime; - long maxWorkTime; - }; - struct Overall - { - long totalReadyTime; - long totalBreakTime; - long totalCalls; - long totalWorkTime; - long totalHoldTime; - long satisfactionSurveysOffered; - float averageHoldTime; - float satisfactionIndex; - float averageBreakTime; - long satisfactionSurveysResponded; - long totalTalkTime; - float averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - float satisfactionRate; - float averageWorkTime; - long maxReadyTime; - long maxWorkTime; - long maxBreakTime; - float occupancyRate; - long maxHoldTime; - float averageTalkTime; - }; - 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 b64d7c689..c12adb119 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h @@ -37,9 +37,12 @@ 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 278108050..7ff018413 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h @@ -32,52 +32,51 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT GetInstanceResult : public ServiceResult { public: - struct Data + struct Instance { struct User { - std::string extension; - std::string loginName; - std::string roleName; - std::string email; + 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 displayName; - std::string mobile; - std::string roleId; - std::string workMode; + 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; + bool testOnly; + bool allowOutbound; std::string number; - std::string contactFlowId; std::string instanceId; - std::string userId; - std::vector skillGroups; - std::string city; - std::string province; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; }; std::string status; - std::vector adminList; - std::string description; - std::string consoleUrl; + std::vector phoneNumbers; + std::string owner; + long createdTime; + std::string instanceId; std::string domainName; - std::string aliyunUid; - std::vector numberList; - std::string id; - std::string name; + 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; }; @@ -85,19 +84,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/GetMonoRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/GetMonoRecordingRequest.h rename to ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h index 7a9ed8647..3ae1f7e49 100644 --- a/ccc/include/alibabacloud/ccc/model/GetMonoRecordingRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETMONORECORDINGREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATEREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetMonoRecordingRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetInstanceStateRequest : public RpcServiceRequest { public: - GetMonoRecordingRequest(); - ~GetMonoRecordingRequest(); + GetInstanceStateRequest(); + ~GetInstanceStateRequest(); - 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_GETMONORECORDINGREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersResult.h rename to ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h index 617d2499a..834e745fd 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTUNASSIGNEDNUMBERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUNASSIGNEDNUMBERSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATERESULT_H_ #include #include @@ -29,44 +29,40 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListUnassignedNumbersResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetInstanceStateResult : public ServiceResult { public: - struct Data + struct RealTimeInstanceState { - struct PhoneNumber + struct AgentStateCount { - bool active; - bool usage; - std::string number; - std::string city; - std::string province; + std::string state; + long count; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + std::vector agentStateDistributions; }; - ListUnassignedNumbersResult(); - explicit ListUnassignedNumbersResult(const std::string &payload); - ~ListUnassignedNumbersResult(); + GetInstanceStateResult(); + explicit GetInstanceStateResult(const std::string &payload); + ~GetInstanceStateResult(); std::string getMessage()const; int getHttpStatusCode()const; - Data getData()const; std::string getCode()const; + RealTimeInstanceState getRealTimeInstanceState()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Data data_; std::string code_; + RealTimeInstanceState realTimeInstanceState_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUNASSIGNEDNUMBERSRESULT_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..6ce7a13cf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.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_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 new file mode 100644 index 000000000..3d61bfd80 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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 totalBreakTime; + long totalCalls; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long averageWorkTime; + long maxReadyTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + float serviceLevel20; + long callsAbandonedInQueue; + long totalWorkTime; + long callsIncomingLine; + long satisfactionSurveysOffered; + long maxRingTime; + long callsOffered; + float satisfactionIndex; + long callsIncomingQueue; + long callsHandled; + long callsIncomingIVR; + long maxWaitTime; + long totalRingTime; + long satisfactionSurveysResponded; + float handleRate; + long averageRingTime; + long averageWaitTime; + long totalTalkTime; + 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 totalTalkTime; + long callsDialed; + 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/ListHistoricalSkillGroupReportRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportRequest.h rename to ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h index d0cfd72ad..d6ea93aa2 100644 --- a/ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTREQUEST_H_ #include #include @@ -28,31 +28,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListHistoricalSkillGroupReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportRequest : public RpcServiceRequest { public: - ListHistoricalSkillGroupReportRequest(); - ~ListHistoricalSkillGroupReportRequest(); + GetInstanceSummaryReportRequest(); + ~GetInstanceSummaryReportRequest(); - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); + 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 getSkillGroupIdList()const; - void setSkillGroupIdList(const std::string& skillGroupIdList); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; void setPageSize(int pageSize); private: - long endTime_; - long startTime_; + std::string endTime_; + std::string startTime_; int pageNumber_; - std::string skillGroupIdList_; + std::string accessKeyId_; std::string instanceId_; int pageSize_; @@ -60,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h similarity index 57% rename from ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportResult.h rename to ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h index 4590685fc..1df0396db 100644 --- a/ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ #include #include @@ -29,122 +29,102 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListIntervalAgentReportResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportResult : public ServiceResult { public: - struct DataItem + 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 callsRinged; - long totalHoldTime; - float averageHoldTime; + long callsIncomingLine; + long satisfactionSurveysOffered; long callsOffered; long maxRingTime; - long callsHold; float satisfactionIndex; - long totalRingTime; - float handleRate; - long totalTalkTime; - long maxTalkTime; - float satisfactionRate; - long callsAttendedTransferOut; - float averageTalkTime; - long maxHoldTime; - long satisfactionSurveysOffered; + long callsIncomingQueue; + long callsIncomingIVR; long callsHandled; + long maxWaitTime; + long totalRingTime; long satisfactionSurveysResponded; - long callsAttendedTransferIn; - float averageRingTime; - float averageWorkTime; - long callsBlindTransferOut; - long callsBlindTransferIn; + 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 callsRinged; - long totalHoldTime; - float averageHoldTime; - long maxRingTime; - long callsHold; + long satisfactionSurveysOffered; float satisfactionIndex; - long totalRingTime; - float averageDialingTime; + long satisfactionSurveysResponded; + long averageDialingTime; long callsAnswered; long callsDialed; long totalTalkTime; long maxDialingTime; long maxTalkTime; - float satisfactionRate; - long callsAttendedTransferOut; + long averageWorkTime; + long maxWorkTime; float answerRate; - float averageTalkTime; - long maxHoldTime; - long satisfactionSurveysOffered; - long satisfactionSurveysResponded; - long callsAttendedTransferIn; - float averageRingTime; - float averageWorkTime; - long callsBlindTransferOut; - long callsBlindTransferIn; - long maxWorkTime; + long averageTalkTime; }; - struct Overall - { - long totalReadyTime; - long lastCheckoutTime; - long totalBreakTime; - long totalCalls; - long totalWorkTime; - long totalHoldTime; - float averageHoldTime; - long satisfactionSurveysOffered; - float satisfactionIndex; - float averageBreakTime; - long firstCheckInTime; - long satisfactionSurveysResponded; - long totalTalkTime; - float averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - float averageWorkTime; - long maxReadyTime; - float satisfactionRate; - long maxBreakTime; - long maxWorkTime; - float averageTalkTime; - long maxHoldTime; - float occupancyRate; - }; - Outbound outbound; Overall overall; + Outbound outbound; + std::string instanceId; Inbound inbound; - long statsTime; }; - ListIntervalAgentReportResult(); - explicit ListIntervalAgentReportResult(const std::string &payload); - ~ListIntervalAgentReportResult(); + GetInstanceSummaryReportResult(); + explicit GetInstanceSummaryReportResult(const std::string &payload); + ~GetInstanceSummaryReportResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getData()const; + InstanceSummaryReport getInstanceSummaryReport()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - std::vector data_; + InstanceSummaryReport instanceSummaryReport_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesRequest.h rename to ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h index b2d5e7d36..d119ec9eb 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ #include #include @@ -28,17 +28,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRealtimeSkillGroupStatesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportSinceMidnightRequest : public RpcServiceRequest { public: - ListRealtimeSkillGroupStatesRequest(); - ~ListRealtimeSkillGroupStatesRequest(); + GetInstanceSummaryReportSinceMidnightRequest(); + ~GetInstanceSummaryReportSinceMidnightRequest(); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getSkillGroupIdList()const; - void setSkillGroupIdList(const std::string& skillGroupIdList); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; @@ -46,7 +46,7 @@ namespace AlibabaCloud private: int pageNumber_; - std::string skillGroupIdList_; + std::string accessKeyId_; std::string instanceId_; int pageSize_; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h similarity index 52% rename from ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportResult.h rename to ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h index bedc6ed87..c48903e79 100644 --- a/ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ #include #include @@ -29,140 +29,103 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListIntervalSkillGroupReportResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportSinceMidnightResult : public ServiceResult { public: - struct DataItem + 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 callsRinged; - long totalHoldTime; - float averageHoldTime; - long callsAbandoned; + long callsIncomingLine; + long satisfactionSurveysOffered; long callsOffered; long maxRingTime; - long callsHold; float satisfactionIndex; - long maxAbandonedInRingTime; - long totalRingTime; - float handleRate; - float averageAbandonedInQueueTime; - float averageWaitTime; - long totalTalkTime; - long totalAbandonedInRingTime; - long callsQueued; - long maxTalkTime; - float satisfactionRate; - long callsAttendedTransferOut; - long totalAbandonTime; - float averageTalkTime; - long maxHoldTime; - long maxAbandonedInQueueTime; - long callsTimeout; - long satisfactionSurveysOffered; - long callsAbandonedInRing; + long callsIncomingQueue; + long callsIncomingIVR; long callsHandled; - long callsOverflow; long maxWaitTime; + long totalRingTime; long satisfactionSurveysResponded; - long callsAttendedTransferIn; - float averageRingTime; - long maxAbandonTime; + float handleRate; + long averageRingTime; + long totalTalkTime; + long averageWaitTime; long totalWaitTime; - float averageAbandonTime; - float averageAbandonedInRingTime; - float averageWorkTime; - long callsBlindTransferOut; - long totalAbandonedInQueueTime; - long callsBlindTransferIn; + std::string maxTalkTime; + long averageWorkTime; long maxWorkTime; - float abandonRate; + long averageTalkTime; + long callsAbandonedInIVR; }; struct Outbound { long totalDialingTime; long totalWorkTime; - long callsRinged; - long totalHoldTime; - float averageHoldTime; - long maxRingTime; - long callsHold; + long satisfactionSurveysOffered; float satisfactionIndex; - long totalRingTime; - float averageDialingTime; + long satisfactionSurveysResponded; + long averageDialingTime; long callsAnswered; long callsDialed; long totalTalkTime; long maxDialingTime; long maxTalkTime; - float satisfactionRate; - long callsAttendedTransferOut; + long averageWorkTime; + long maxWorkTime; float answerRate; - float averageTalkTime; - long maxHoldTime; - long satisfactionSurveysOffered; - long satisfactionSurveysResponded; - long callsAttendedTransferIn; - float averageRingTime; - float averageWorkTime; - long callsBlindTransferOut; - long callsBlindTransferIn; - long maxWorkTime; + long 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; - float satisfactionRate; - long maxBreakTime; - long maxWorkTime; - float averageTalkTime; - long maxHoldTime; - float occupancyRate; - }; - Outbound outbound; Overall overall; + Outbound outbound; + std::string instanceId; Inbound inbound; - long statsTime; + std::string timestamp; }; - ListIntervalSkillGroupReportResult(); - explicit ListIntervalSkillGroupReportResult(const std::string &payload); - ~ListIntervalSkillGroupReportResult(); + GetInstanceSummaryReportSinceMidnightResult(); + explicit GetInstanceSummaryReportSinceMidnightResult(const std::string &payload); + ~GetInstanceSummaryReportSinceMidnightResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getData()const; + InstanceSummaryReport getInstanceSummaryReport()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - std::vector data_; + InstanceSummaryReport instanceSummaryReport_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h new file mode 100644 index 000000000..a26dc098b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobDataUploadParamsRequest : public RpcServiceRequest + { + + public: + GetJobDataUploadParamsRequest(); + ~GetJobDataUploadParamsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + + private: + std::string instanceId_; + std::string fileName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetLoginDetailsResult.h b/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/GetLoginDetailsResult.h rename to ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h index f86509a25..314c08170 100644 --- a/ccc/include/alibabacloud/ccc/model/GetLoginDetailsResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSRESULT_H_ #include #include @@ -29,42 +29,40 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetLoginDetailsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetJobDataUploadParamsResult : public ServiceResult { public: - struct Data + struct UploadParams { - std::string extension; - std::string agentServerUrl; - std::string deviceId; - std::string sipServerUrl; - std::string userId; + std::string policy; + int expire; + std::string accessId; std::string signature; - std::string userKey; - std::string displayName; + std::string host; + std::string folder; }; - GetLoginDetailsResult(); - explicit GetLoginDetailsResult(const std::string &payload); - ~GetLoginDetailsResult(); + GetJobDataUploadParamsResult(); + explicit GetJobDataUploadParamsResult(const std::string &payload); + ~GetJobDataUploadParamsResult(); + UploadParams getUploadParams()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: + UploadParams uploadParams_; std::string message_; int httpStatusCode_; - std::vector params_; - Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h new file mode 100644 index 000000000..8f6da70c0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobFileUploadUrlRequest : public RpcServiceRequest + { + + public: + GetJobFileUploadUrlRequest(); + ~GetJobFileUploadUrlRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + + private: + std::string instanceId_; + std::string fileName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h new file mode 100644 index 000000000..0619be30c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobFileUploadUrlResult : public ServiceResult + { + public: + + + GetJobFileUploadUrlResult(); + explicit GetJobFileUploadUrlResult(const std::string &payload); + ~GetJobFileUploadUrlResult(); + std::string getFilePath()const; + std::string getUploadUrl()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string filePath_; + std::string uploadUrl_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h new file mode 100644 index 000000000..2b15e1f9f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobGroupRequest : public RpcServiceRequest + { + + public: + GetJobGroupRequest(); + ~GetJobGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h new file mode 100644 index 000000000..23ec7ffd4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobGroupResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobGroupResult : public ServiceResult + { + public: + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string description; + std::string repeatBy; + int minAttemptInterval; + long endTime; + long startTime; + std::string name; + std::string followUpStrategy; + std::string type; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + std::string id; + }; + struct Progress + { + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::string status; + std::vector categories; + long startTime; + int duration; + int totalCompleted; + int totalNotAnswered; + int totalJobs; + }; + Progress progress; + std::string description; + std::string scenarioId; + long creationTime; + Strategy strategy; + std::string jobFilePath; + std::string id; + std::string name; + std::vector callingNumbers; + }; + + + GetJobGroupResult(); + explicit GetJobGroupResult(const std::string &payload); + ~GetJobGroupResult(); + JobGroup getJobGroup()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + JobGroup jobGroup_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobListRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobListRequest.h new file mode 100644 index 000000000..020e68704 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobListRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBLISTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobListRequest : public RpcServiceRequest + { + + public: + GetJobListRequest(); + ~GetJobListRequest(); + + 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 new file mode 100644 index 000000000..0ff0021a2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobListResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBLISTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobListResult : public ServiceResult + { + public: + struct Jobs + { + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct SummaryItem + { + std::string taskId; + std::string category; + std::string conversationDetailId; + std::string content; + std::string summaryId; + std::string summaryName; + std::string jobId; + std::string groupId; + }; + std::string status; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + int systemPriority; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetJobListResult(); + explicit GetJobListResult(const std::string &payload); + ~GetJobListResult(); + std::string getMessage()const; + Jobs getJobs()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Jobs jobs_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBLISTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobRequest.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesRequest.h rename to ccc/include/alibabacloud/ccc/model/GetJobRequest.h index 41979ec1d..75a07085f 100644 --- a/ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetJobRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ #include #include @@ -28,21 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetRealtimeInstanceStatesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetJobRequest : public RpcServiceRequest { public: - GetRealtimeInstanceStatesRequest(); - ~GetRealtimeInstanceStatesRequest(); + GetJobRequest(); + ~GetJobRequest(); + std::string getJobId()const; + void setJobId(const std::string& jobId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: + std::string jobId_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobResult.h b/ccc/include/alibabacloud/ccc/model/GetJobResult.h new file mode 100644 index 000000000..c2210bbf5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobResult.h @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobResult : public ServiceResult + { + public: + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct Task + { + struct Contact2 + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + }; + struct ConversationDetail + { + struct SummaryItem + { + std::string category; + std::string content; + std::string summaryName; + }; + std::string script; + std::vector summary1; + long timestamp; + std::string speaker; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + std::vector conversation; + int duration; + std::string brief; + std::string callingNumber; + Contact2 contact2; + std::string jobId; + }; + struct SummaryItem3 + { + std::string category; + std::string content; + std::string summaryName; + }; + std::string status; + std::vector tasks; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + int systemPriority; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + + + GetJobResult(); + explicit GetJobResult(const std::string &payload); + ~GetJobResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Job getJob()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Job job_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h new file mode 100644 index 000000000..c7fce5597 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBSTATUSBYCALLIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBSTATUSBYCALLIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobStatusByCallIdRequest : public RpcServiceRequest + { + + public: + GetJobStatusByCallIdRequest(); + ~GetJobStatusByCallIdRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string callId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBSTATUSBYCALLIDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h new file mode 100644 index 000000000..67377840c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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 new file mode 100644 index 000000000..068dea5f2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobTemplateDownloadParamsRequest : public RpcServiceRequest + { + + public: + GetJobTemplateDownloadParamsRequest(); + ~GetJobTemplateDownloadParamsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h rename to ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h index f53ab160e..1e7100401 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSRESULT_H_ #include #include @@ -29,29 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ModifyUserLevelsOfSkillGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetJobTemplateDownloadParamsResult : public ServiceResult { public: + struct DownloadParams + { + std::string signatureUrl; + }; - ModifyUserLevelsOfSkillGroupResult(); - explicit ModifyUserLevelsOfSkillGroupResult(const std::string &payload); - ~ModifyUserLevelsOfSkillGroupResult(); + GetJobTemplateDownloadParamsResult(); + explicit GetJobTemplateDownloadParamsResult(const std::string &payload); + ~GetJobTemplateDownloadParamsResult(); + DownloadParams getDownloadParams()const; 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: + DownloadParams downloadParams_; std::string message_; int httpStatusCode_; - std::string data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBTEMPLATEDOWNLOADPARAMSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetNumberLocationRequest.h b/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/GetNumberLocationRequest.h rename to ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h index 7ba6a979a..7128a513c 100644 --- a/ccc/include/alibabacloud/ccc/model/GetNumberLocationRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFOREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetNumberLocationRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetNumberRegionInfoRequest : public RpcServiceRequest { public: - GetNumberLocationRequest(); - ~GetNumberLocationRequest(); + GetNumberRegionInfoRequest(); + ~GetNumberRegionInfoRequest(); std::string getNumber()const; void setNumber(const std::string& number); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: std::string number_; std::string instanceId_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SaveRTCStatsV2Result.h b/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/SaveRTCStatsV2Result.h rename to ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h index 638695482..dfb3b6a2b 100644 --- a/ccc/include/alibabacloud/ccc/model/SaveRTCStatsV2Result.h +++ b/ccc/include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_SAVERTCSTATSV2RESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SAVERTCSTATSV2RESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFORESULT_H_ #include #include @@ -29,33 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT SaveRTCStatsV2Result : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetNumberRegionInfoResult : public ServiceResult { public: + struct PhoneNumber + { + std::string number; + std::string city; + std::string province; + }; - SaveRTCStatsV2Result(); - explicit SaveRTCStatsV2Result(const std::string &payload); - ~SaveRTCStatsV2Result(); + GetNumberRegionInfoResult(); + explicit GetNumberRegionInfoResult(const std::string &payload); + ~GetNumberRegionInfoResult(); std::string getMessage()const; - long getHttpStatusCode()const; - long getRowCount()const; + PhoneNumber getPhoneNumber()const; std::string getCode()const; bool getSuccess()const; - long getTimeStamp()const; protected: void parse(const std::string &payload); private: std::string message_; - long httpStatusCode_; - long rowCount_; + PhoneNumber phoneNumber_; std::string code_; bool success_; - long timeStamp_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_SAVERTCSTATSV2RESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETNUMBERREGIONINFORESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/GetPredictiveJobGroupRequest.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/GetPredictiveJobGroupRequest.h index 8403649f7..4f80ee2c1 100644 --- a/ccc/include/alibabacloud/ccc/model/AddUsersToSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetPredictiveJobGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDUSERSTOSKILLGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBGROUPREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddUsersToSkillGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetPredictiveJobGroupRequest : public RpcServiceRequest { public: - AddUsersToSkillGroupRequest(); - ~AddUsersToSkillGroupRequest(); + GetPredictiveJobGroupRequest(); + ~GetPredictiveJobGroupRequest(); 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_ADDUSERSTOSKILLGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetPredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/GetPredictiveJobGroupResult.h new file mode 100644 index 000000000..2c4d6e6b4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetPredictiveJobGroupResult.h @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetPredictiveJobGroupResult : public ServiceResult + { + public: + struct JobGroup + { + 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; + }; + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + int minAttemptInterval; + long endTime; + long startTime; + std::string strategyId; + int maxAttemptsPerDay; + }; + Progress progress; + std::string jobGroupId; + std::string description; + std::string skillGroupName; + std::string instanceId; + long creationTime; + Strategy strategy; + long ratio; + std::string skillGroupId; + std::string name; + }; + + + GetPredictiveJobGroupResult(); + explicit GetPredictiveJobGroupResult(const std::string &payload); + ~GetPredictiveJobGroupResult(); + 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_GETPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/GetPredictiveTaskDataRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/GetPredictiveTaskDataRequest.h index ee398ad88..eb39024db 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetPredictiveTaskDataRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETPREDICTIVETASKDATAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETPREDICTIVETASKDATAREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ModifyUserLevelsOfSkillGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetPredictiveTaskDataRequest : public RpcServiceRequest { public: - ModifyUserLevelsOfSkillGroupRequest(); - ~ModifyUserLevelsOfSkillGroupRequest(); + GetPredictiveTaskDataRequest(); + ~GetPredictiveTaskDataRequest(); - std::string getUserLevelList()const; - void setUserLevelList(const std::string& userLevelList); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSkillGroupId()const; void setSkillGroupId(const std::string& skillGroupId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); private: - std::string userLevelList_; std::string instanceId_; std::string skillGroupId_; + std::string taskId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETPREDICTIVETASKDATAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetPredictiveTaskDataResult.h b/ccc/include/alibabacloud/ccc/model/GetPredictiveTaskDataResult.h new file mode 100644 index 000000000..42adeccff --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetPredictiveTaskDataResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETPREDICTIVETASKDATARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETPREDICTIVETASKDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetPredictiveTaskDataResult : public ServiceResult + { + public: + struct Data + { + std::string jobGroupId; + std::string taskId; + long endTime; + bool connected; + long talkDuration; + long startTime; + long dialDuration; + long queueDuration; + std::string contactId; + bool abandoned; + bool answered; + }; + + + GetPredictiveTaskDataResult(); + explicit GetPredictiveTaskDataResult(const std::string &payload); + ~GetPredictiveTaskDataResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + Data data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETPREDICTIVETASKDATARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserRequest.h rename to ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h index 3a47a4ed8..ec8569e0b 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ModifySkillLevelsOfUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetRecordOssUploadParamRequest : public RpcServiceRequest { public: - ModifySkillLevelsOfUserRequest(); - ~ModifySkillLevelsOfUserRequest(); + GetRecordOssUploadParamRequest(); + ~GetRecordOssUploadParamRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getSkillLevelList()const; - void setSkillLevelList(const std::string& skillLevelList); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - std::string userId_; std::string instanceId_; - std::string skillLevelList_; + std::string fileName_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h similarity index 56% rename from ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h rename to ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h index f567f4e12..6a9a38fcd 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMRESULT_H_ #include #include @@ -29,29 +29,43 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ModifySkillLevelsOfUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetRecordOssUploadParamResult : public ServiceResult { public: - ModifySkillLevelsOfUserResult(); - explicit ModifySkillLevelsOfUserResult(const std::string &payload); - ~ModifySkillLevelsOfUserResult(); + GetRecordOssUploadParamResult(); + explicit GetRecordOssUploadParamResult(const std::string &payload); + ~GetRecordOssUploadParamResult(); + std::string getPolicy()const; std::string getMessage()const; + std::string getSignature()const; int getHttpStatusCode()const; - std::vector getParams()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::vector params_; + std::string ossFileName_; + std::string host_; + std::string expires_; + std::string dir_; std::string code_; + std::string ossAccessKeyId_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLLEVELSOFUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/GetRoutePointRequest.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/LaunchSurveyRequest.h rename to ccc/include/alibabacloud/ccc/model/GetRoutePointRequest.h index 14f64eaf3..b78cddb80 100644 --- a/ccc/include/alibabacloud/ccc/model/LaunchSurveyRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetRoutePointRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHSURVEYREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LAUNCHSURVEYREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETROUTEPOINTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETROUTEPOINTREQUEST_H_ #include #include @@ -28,33 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT LaunchSurveyRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetRoutePointRequest : public RpcServiceRequest { public: - LaunchSurveyRequest(); - ~LaunchSurveyRequest(); + GetRoutePointRequest(); + ~GetRoutePointRequest(); 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_LAUNCHSURVEYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETROUTEPOINTREQUEST_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 new file mode 100644 index 000000000..99b888f6c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetRoutePointResult.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_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 new file mode 100644 index 000000000..081487d12 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetScenarioRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETSCENARIOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSCENARIOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetScenarioRequest : public RpcServiceRequest + { + + public: + GetScenarioRequest(); + ~GetScenarioRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSCENARIOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetScenarioResult.h b/ccc/include/alibabacloud/ccc/model/GetScenarioResult.h new file mode 100644 index 000000000..32e359fb0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetScenarioResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETSCENARIORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetScenarioResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string description; + std::string repeatBy; + int minAttemptInterval; + long endTime; + long startTime; + std::string name; + std::string followUpStrategy; + std::string type; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + std::string id; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string description; + std::string beebotId; + std::vector intents; + int round; + std::string id; + std::string name; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string description; + Strategy strategy; + std::string id; + std::string name; + }; + + + GetScenarioResult(); + explicit GetScenarioResult(const std::string &payload); + ~GetScenarioResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + Scenario getScenario()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + Scenario scenario_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSCENARIORESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h b/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h rename to ccc/include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h index 2701bf41b..294993a6a 100644 --- a/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddSkillGroupsToUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetServiceExtensionsRequest : public RpcServiceRequest { public: - AddSkillGroupsToUserRequest(); - ~AddSkillGroupsToUserRequest(); + GetServiceExtensionsRequest(); + ~GetServiceExtensionsRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); + std::string getServiceType()const; + void setServiceType(const std::string& serviceType); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getSkillLevelList()const; - void setSkillLevelList(const std::string& skillLevelList); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - std::string userId_; + std::string serviceType_; std::string instanceId_; - std::string skillLevelList_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..4b5ff1306 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetServiceExtensionsResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/GetInstanceTrendingReportRequest.h b/ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportRequest.h rename to ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h index e89113256..d02ae161f 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetInstanceTrendingReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetSmsConfigRequest : public RpcServiceRequest { public: - GetInstanceTrendingReportRequest(); - ~GetInstanceTrendingReportRequest(); + GetSmsConfigRequest(); + ~GetSmsConfigRequest(); - 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 getScenario()const; + void setScenario(const std::vector& scenario); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - long endTime_; - long startTime_; std::string instanceId_; + std::vector scenario_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..5761b05ac --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.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_GETSMSCONFIGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetSmsConfigResult : public ServiceResult + { + public: + struct SmsConfig + { + std::string templateCode; + std::string gmtCreate; + std::string description; + std::string extra; + std::string instance; + std::string gmtModified; + long id; + std::string signName; + int scenario; + std::string name; + }; + + + GetSmsConfigResult(); + explicit GetSmsConfigResult(const std::string &payload); + ~GetSmsConfigResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getSmsConfigs()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector smsConfigs_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h new file mode 100644 index 000000000..6bc39fc06 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetSurveyRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETSURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetSurveyRequest : public RpcServiceRequest + { + + public: + GetSurveyRequest(); + ~GetSurveyRequest(); + + std::string getSurveyId()const; + void setSurveyId(const std::string& surveyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string surveyId_; + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportResult.h b/ccc/include/alibabacloud/ccc/model/GetSurveyResult.h similarity index 55% rename from ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportResult.h rename to ccc/include/alibabacloud/ccc/model/GetSurveyResult.h index e863b2ec2..1f557b150 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceTrendingReportResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetSurveyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETSURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSURVEYRESULT_H_ #include #include @@ -29,50 +29,56 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetInstanceTrendingReportResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetSurveyResult : public ServiceResult { public: - struct Data + struct Survey { - struct InboundItem + struct Flow { - long totalCalls; - long callsAbandonedInQueue; - long callsQueued; - long callsAbandonedInRing; - long callsHandled; - long callsAbandonedInIVR; - long statsTime; + std::string flowId; + bool isPublished; + std::string flowJson; }; - struct OutboundItem + struct AsrCustomModel { - long callsAnswered; - long totalCalls; - long statsTime; + int customModelStatus; + std::string corpora; }; - std::vector outbound; - std::vector inbound; + 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; }; - GetInstanceTrendingReportResult(); - explicit GetInstanceTrendingReportResult(const std::string &payload); - ~GetInstanceTrendingReportResult(); + GetSurveyResult(); + explicit GetSurveyResult(const std::string &payload); + ~GetSurveyResult(); + Survey getSurvey()const; 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: + Survey survey_; std::string message_; int httpStatusCode_; - Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCETRENDINGREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETSURVEYRESULT_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 34f2bda74..98d13208a 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h @@ -28,21 +28,24 @@ 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 aa06c9bcf..eed5c9d12 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsResult.h @@ -29,33 +29,30 @@ 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 910b32b28..bad764108 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTurnServerListRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetTURNServerListRequest.h @@ -28,18 +28,21 @@ 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 e4b8a72db..8e4879fc8 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/ListDevicesRequest.h b/ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/ListDevicesRequest.h rename to ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h index 8d98abea9..c36b02b26 100644 --- a/ccc/include/alibabacloud/ccc/model/ListDevicesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetTaskListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTDEVICESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTDEVICESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETTASKLISTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETTASKLISTREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListDevicesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetTaskListRequest : public RpcServiceRequest { public: - ListDevicesRequest(); - ~ListDevicesRequest(); + GetTaskListRequest(); + ~GetTaskListRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); + 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 jobId_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTDEVICESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETTASKLISTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetTaskListResult.h b/ccc/include/alibabacloud/ccc/model/GetTaskListResult.h new file mode 100644 index 000000000..9778faf46 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetTaskListResult.h @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETTASKLISTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETTASKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetTaskListResult : public ServiceResult + { + public: + struct Task + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct ConversationDetail + { + struct SummaryItem + { + std::string category; + std::string content; + std::string summaryName; + }; + std::string script; + std::vector summary; + long timestamp; + std::string speaker; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + std::vector conversation; + int duration; + std::string brief; + std::string callingNumber; + Contact contact; + std::string jobId; + }; + + + GetTaskListResult(); + explicit GetTaskListResult(const std::string &payload); + ~GetTaskListResult(); + std::vector getTasks()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tasks_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETTASKLISTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersRequest.h rename to ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h index a528b5e45..9309b0fb8 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetUserByExtensionRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT GetUserByExtensionRequest : public RpcServiceRequest { public: - RemovePhoneNumbersRequest(); - ~RemovePhoneNumbersRequest(); + GetUserByExtensionRequest(); + ~GetUserByExtensionRequest(); - std::string getNumberList()const; - void setNumberList(const std::string& numberList); + std::string getExtension()const; + void setExtension(const std::string& extension); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - std::string numberList_; + std::string extension_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetUserByExtensionResult.h b/ccc/include/alibabacloud/ccc/model/GetUserByExtensionResult.h new file mode 100644 index 000000000..2d3176944 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetUserByExtensionResult.h @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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 a6df00598..1ce1c43e1 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 getExtension()const; - void setExtension(const std::string& extension); - std::string getUserId()const; - void setUserId(const std::string& userId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - std::string extension_; - std::string userId_; std::string instanceId_; + std::string userId_; + std::string accessKeyId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetUserResult.h b/ccc/include/alibabacloud/ccc/model/GetUserResult.h index a539830a2..95b6c033a 100644 --- a/ccc/include/alibabacloud/ccc/model/GetUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetUserResult.h @@ -32,38 +32,62 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT GetUserResult : public ServiceResult { public: - struct Data + struct User { - std::string extension; - std::string loginName; - std::string roleName; - std::string email; + struct Detail + { + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; + }; + struct Role + { + std::string roleName; + std::string instanceId; + std::string roleDescription; + std::string roleId; + }; + struct SkillLevel + { + struct Skill + { + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + std::string skillGroupDescription; + }; + Skill skill; + std::string skillLevelId; + int level; + }; + std::vector skillLevels; std::string instanceId; std::string userId; - std::string displayName; - std::string mobile; - std::string roleId; - std::string workMode; + std::string ramId; + std::vector roles; + Detail detail; }; GetUserResult(); explicit GetUserResult(const std::string &payload); ~GetUserResult(); + User getUser()const; std::string getMessage()const; int getHttpStatusCode()const; - std::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/HoldCallResult.h b/ccc/include/alibabacloud/ccc/model/HoldCallResult.h deleted file mode 100644 index 26c9ab81e..000000000 --- a/ccc/include/alibabacloud/ccc/model/HoldCallResult.h +++ /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. - */ - -#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 new file mode 100644 index 000000000..946648d46 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.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_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 new file mode 100644 index 000000000..d194e9580 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/InflightTaskTimeoutResult.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_INFLIGHTTASKTIMEOUTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_INFLIGHTTASKTIMEOUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT InflightTaskTimeoutResult : public ServiceResult + { + public: + + + InflightTaskTimeoutResult(); + explicit InflightTaskTimeoutResult(const std::string &payload); + ~InflightTaskTimeoutResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_INFLIGHTTASKTIMEOUTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h deleted file mode 100644 index 160aec044..000000000 --- a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.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_INITIATEATTENDEDTRANSFERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT InitiateAttendedTransferRequest : public RpcServiceRequest - { - - public: - InitiateAttendedTransferRequest(); - ~InitiateAttendedTransferRequest(); - - std::string getTransferee()const; - void setTransferee(const std::string& transferee); - std::string getTransferor()const; - void setTransferor(const std::string& transferor); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getDeviceId()const; - void setDeviceId(const std::string& deviceId); - int getTimeoutSeconds()const; - void setTimeoutSeconds(int timeoutSeconds); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string transferee_; - std::string transferor_; - std::string userId_; - std::string deviceId_; - int timeoutSeconds_; - std::string jobId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_INITIATEATTENDEDTRANSFERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h deleted file mode 100644 index 80846a1ef..000000000 --- a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h +++ /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. - */ - -#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; - long contextId; - 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/InterceptCallRequest.h b/ccc/include/alibabacloud/ccc/model/InterceptCallRequest.h deleted file mode 100644 index 2591fc278..000000000 --- a/ccc/include/alibabacloud/ccc/model/InterceptCallRequest.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_INTERCEPTCALLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT InterceptCallRequest : public RpcServiceRequest - { - - public: - 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); - - private: - std::string interceptedUserId_; - std::string userId_; - std::string deviceId_; - std::string jobId_; - int timeoutSeconds_; - std::string instanceId_; - - }; - } - } -} -#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 deleted file mode 100644 index d648b2421..000000000 --- a/ccc/include/alibabacloud/ccc/model/InterceptCallResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT InterceptCallResult : public ServiceResult - { - public: - struct Data - { - struct CallContext - { - struct ChannelContext - { - std::string destination; - std::string channelState; - std::string releaseInitiator; - std::string callType; - int index; - std::string associatedData; - std::string skillGroupId; - std::string channelId; - long timestamp; - std::string releaseReason; - std::string channelFlags; - std::string originator; - std::string userId; - std::string userExtension; - std::string jobId; - }; - std::string instanceId; - std::string callType; - std::string jobId; - std::vector channelContexts; - }; - struct UserContext - { - std::string userState; - std::string instanceId; - std::string breakCode; - std::string deviceId; - bool outboundScenario; - std::string mobile; - std::vector signedSkillGroupIdList; - std::string extension; - std::string userId; - long heartbeat; - std::string jobId; - std::string workMode; - long reserved; - }; - UserContext userContext; - CallContext callContext; - }; - - - InterceptCallResult(); - explicit InterceptCallResult(const std::string &payload); - ~InterceptCallResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getParams()const; - Data getData()const; - std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector params_; - Data data_; - std::string code_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_INTERCEPTCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h new file mode 100644 index 000000000..4f7260461 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchAppraiseRequest : public RpcServiceRequest + { + + public: + LaunchAppraiseRequest(); + ~LaunchAppraiseRequest(); + + std::string getAcid()const; + void setAcid(const std::string& acid); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string acid_; + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.h new file mode 100644 index 000000000..8175a8eff --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchAppraiseResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchAppraiseResult : public ServiceResult + { + public: + + + LaunchAppraiseResult(); + explicit LaunchAppraiseResult(const std::string &payload); + ~LaunchAppraiseResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHAPPRAISERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h deleted file mode 100644 index 7d7f6cc90..000000000 --- a/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_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 new file mode 100644 index 000000000..73c610d8c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.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_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/AddSkillGroupsToUserResult.h b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h rename to ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h index 799e37848..355684d26 100644 --- a/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISERESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddSkillGroupsToUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT LaunchShortMessageAppraiseResult : public ServiceResult { public: - AddSkillGroupsToUserResult(); - explicit AddSkillGroupsToUserResult(const std::string &payload); - ~AddSkillGroupsToUserResult(); + LaunchShortMessageAppraiseResult(); + explicit LaunchShortMessageAppraiseResult(const std::string &payload); + ~LaunchShortMessageAppraiseResult(); 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_ADDSKILLGROUPSTOUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISERESULT_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 deleted file mode 100644 index 9f96a79de..000000000 --- a/ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_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/GetHistoricalCallerReportRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h rename to ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h index b36cec1e0..b6fb0914b 100644 --- a/ccc/include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ #include #include @@ -28,30 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetHistoricalCallerReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListAgentDevicesRequest : public RpcServiceRequest { public: - GetHistoricalCallerReportRequest(); - ~GetHistoricalCallerReportRequest(); + ListAgentDevicesRequest(); + ~ListAgentDevicesRequest(); - long getStopTime()const; - void setStopTime(long stopTime); + std::string getRamIds()const; + void setRamIds(const std::string& ramIds); long getStartTime()const; void setStartTime(long startTime); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); + long getStopTime()const; + void setStopTime(long stopTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - long stopTime_; + std::string ramIds_; long startTime_; - std::string callingNumber_; + long stopTime_; + std::string accessKeyId_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETHISTORICALCALLERREPORTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesResult.h rename to ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h index 6fe870441..03cf1a516 100644 --- a/ccc/include/alibabacloud/ccc/model/GetRealtimeInstanceStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESRESULT_H_ #include #include @@ -29,42 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetRealtimeInstanceStatesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListAgentDevicesResult : public ServiceResult { public: - struct Data + struct AgentDevice { - long breakingAgents; - long talkingAgents; - long longestWaitingTime; + long loginTime; std::string instanceId; - long loggedInAgents; - long readyAgents; - long waitingCalls; - long interactiveCalls; - long totalAgents; - long workingAgents; + long ramId; + int isLogin; + std::string clientPort; + std::string clientIp; + std::string browserVersion; + std::string remark; }; - GetRealtimeInstanceStatesResult(); - explicit GetRealtimeInstanceStatesResult(const std::string &payload); - ~GetRealtimeInstanceStatesResult(); + ListAgentDevicesResult(); + explicit ListAgentDevicesResult(const std::string &payload); + ~ListAgentDevicesResult(); std::string getMessage()const; int getHttpStatusCode()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_; - Data data_; std::string code_; + std::vector agentDeviceList_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETREALTIMEINSTANCESTATESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESRESULT_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 new file mode 100644 index 000000000..fbefb126e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.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_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/ListSkillLevelsOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h rename to ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h index 6c2e64249..193951d24 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ #include #include @@ -29,42 +29,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListSkillLevelsOfUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListAgentEventsResult : public ServiceResult { public: - struct Data + struct AgentEvent { - struct UserSkillLevel + struct SkillGroup { std::string skillGroupName; - std::string skillLevel; std::string skillGroupId; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + std::vector skillGroupIds; + std::string loginName; + std::string instanceId; + long eventTime; + long ramId; + std::string event; }; - ListSkillLevelsOfUserResult(); - explicit ListSkillLevelsOfUserResult(const std::string &payload); - ~ListSkillLevelsOfUserResult(); + ListAgentEventsResult(); + explicit ListAgentEventsResult(const std::string &payload); + ~ListAgentEventsResult(); + std::vector getAgentEventList()const; 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_LISTSKILLLEVELSOFUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_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 64f48bc23..630e62801 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h @@ -35,20 +35,29 @@ 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 b6cfb0ad8..f8c85074b 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStateLogsResult.h @@ -32,12 +32,24 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListAgentStateLogsResult : public ServiceResult { public: - struct DataItem + struct AgentStateLogPage { - std::string state; - long startTime; - std::string stateCode; - long duration; + 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; }; @@ -46,16 +58,18 @@ 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/ListPhoneNumbersOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h index 16763eeb7..0b63e2b4c 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ #include #include @@ -28,39 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListPhoneNumbersOfSkillGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListAgentStatesRequest : public RpcServiceRequest { public: - ListPhoneNumbersOfSkillGroupRequest(); - ~ListPhoneNumbersOfSkillGroupRequest(); + ListAgentStatesRequest(); + ~ListAgentStatesRequest(); - bool getActive()const; - void setActive(bool active); + std::string getAgentIds()const; + void setAgentIds(const std::string& agentIds); int getPageNumber()const; void setPageNumber(int pageNumber); - bool getIsMember()const; - void setIsMember(bool isMember); - std::string getSearchPattern()const; - void setSearchPattern(const std::string& searchPattern); + 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 getState()const; + void setState(const std::string& state); private: - bool active_; + std::string agentIds_; int pageNumber_; - bool isMember_; - std::string searchPattern_; + std::string accessKeyId_; std::string instanceId_; std::string skillGroupId_; int pageSize_; + std::string state_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h rename to ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h index 99997ff2c..9cb11843a 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESRESULT_H_ #include #include @@ -29,37 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRealtimeAgentStatesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListAgentStatesResult : public ServiceResult { public: struct Data { - struct AgentState + struct RealTimeAgentState { - std::string extension; - std::string counterParty; - long stateTime; + std::string loginName; + std::string stateDuration; std::string instanceId; std::string state; - std::string stateCode; + std::string dn; std::string agentId; std::string agentName; - std::vector skillGroupIdList; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListRealtimeAgentStatesResult(); - explicit ListRealtimeAgentStatesResult(const std::string &payload); - ~ListRealtimeAgentStatesResult(); + ListAgentStatesResult(); + explicit ListAgentStatesResult(const std::string &payload); + ~ListAgentStatesResult(); std::string getMessage()const; int getHttpStatusCode()const; Data getData()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -68,9 +67,10 @@ namespace AlibabaCloud int httpStatusCode_; Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h new file mode 100644 index 000000000..8056499e6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.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_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 new file mode 100644 index 000000000..27f5a382c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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 new file mode 100644 index 000000000..68bcc44cf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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 new file mode 100644 index 000000000..a8608cf2f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/ListRealtimeAgentStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h rename to ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h index fb7fa1efd..1a832aef8 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTSTATESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ #include #include @@ -28,39 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRealtimeAgentStatesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsSinceMidnightRequest : public RpcServiceRequest { public: - ListRealtimeAgentStatesRequest(); - ~ListRealtimeAgentStatesRequest(); + ListAgentSummaryReportsSinceMidnightRequest(); + ~ListAgentSummaryReportsSinceMidnightRequest(); + std::string getAgentIds()const; + void setAgentIds(const std::string& agentIds); int getPageNumber()const; void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string 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_LISTREALTIMEAGENTSTATESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h new file mode 100644 index 000000000..4e79b7fab --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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 new file mode 100644 index 000000000..33d322ba7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListBasicStatisticsReportSubItemsRequest : public RpcServiceRequest + { + + public: + ListBasicStatisticsReportSubItemsRequest(); + ~ListBasicStatisticsReportSubItemsRequest(); + + std::string 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 new file mode 100644 index 000000000..aa242bdcf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListBasicStatisticsReportSubItemsResult : public ServiceResult + { + public: + struct SubItems + { + struct BasicStatisticsReportSubItem + { + struct KeyValuePair + { + std::string value; + std::string key; + }; + int percentage; + std::string basicStatisticsReportSubItemName; + std::string value; + std::vector row; + int count; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListBasicStatisticsReportSubItemsResult(); + explicit ListBasicStatisticsReportSubItemsResult(const std::string &payload); + ~ListBasicStatisticsReportSubItemsResult(); + SubItems getSubItems()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + SubItems subItems_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h index 98c71feb2..b46e29642 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h @@ -35,62 +35,47 @@ 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 getOrderByField()const; - void setOrderByField(const std::string& orderByField); + std::string getPhoneNumber()const; + void setPhoneNumber(const std::string& phoneNumber); + std::string getOrderBy()const; + void setOrderBy(const std::string& orderBy); long getStartTime()const; void setStartTime(long startTime); + long getStopTime()const; + void setStopTime(long stopTime); int getPageNumber()const; void setPageNumber(int pageNumber); - 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); - std::string getSortOrder()const; - void setSortOrder(const std::string& sortOrder); - std::string getSatisfactionDescriptionList()const; - void setSatisfactionDescriptionList(const std::string& satisfactionDescriptionList); - 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 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); + std::string getContactDisposition()const; + void setContactDisposition(const std::string& contactDisposition); + int getPageSize()const; + void setPageSize(int pageSize); + bool getWithRecording()const; + void setWithRecording(bool withRecording); private: + std::string contactType_; std::string contactId_; std::string criteria_; - std::string orderByField_; + std::string phoneNumber_; + std::string orderBy_; long startTime_; + long stopTime_; int pageNumber_; - std::string calledNumber_; - std::string satisfactionList_; - int pageSize_; - std::string sortOrder_; - std::string satisfactionDescriptionList_; - std::string agentId_; - std::string contactType_; - std::string satisfactionSurveyChannel_; - long endTime_; - std::string callingNumber_; - std::string contactDisposition_; + std::string accessKeyId_; std::string instanceId_; - std::string skillGroupId_; + std::string contactDisposition_; + int pageSize_; + bool withRecording_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h index 49414ecc1..3a92b5fff 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h @@ -32,39 +32,44 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListCallDetailRecordsResult : public ServiceResult { public: - struct Data + struct CallDetailRecords { 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 calledNumber; - long ivrTime; std::string contactType; std::string contactDisposition; - int satisfactionIndex; - std::string contactId; - std::string callingNumber; - bool recordingReady; - std::string skillGroupNames; - bool satisfactionSurveyOffered; - long establishedTime; - long queueTime; - std::string skillGroupIds; - std::string broker; - std::string releaseInitiator; std::string instanceId; + int satisfaction; + std::vector agents; long startTime; - long ringTime; - std::string callDuration; - std::string calleeLocation; - long releaseTime; - std::string satisfactionSurveyChannel; - std::string additionalBroker; - std::string satisfactionDescription; - std::string agentIds; - long waitTime; - std::string callerLocation; + int duration; + std::vector recordings; + std::string contactId; + std::string satisfactionDesc; + std::string callingNumber; + std::string feedback; + std::string skillGroupNames; std::string agentNames; - long recordingDuration; + std::string skillGroupIdList; }; int totalCount; int pageSize; @@ -77,17 +82,19 @@ 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 new file mode 100644 index 000000000..51de6c04d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.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_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 new file mode 100644 index 000000000..5af106d0b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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/RemovePersonalNumbersFromUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h similarity index 56% rename from ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserRequest.h rename to ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h index 5020e4b2a..01d90f10a 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSREQUEST_H_ #include #include @@ -28,27 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemovePersonalNumbersFromUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListCallMeasureSummaryReportsRequest : public RpcServiceRequest { public: - RemovePersonalNumbersFromUserRequest(); - ~RemovePersonalNumbersFromUserRequest(); + ListCallMeasureSummaryReportsRequest(); + ~ListCallMeasureSummaryReportsRequest(); - 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 getIntervalType()const; + void setIntervalType(const std::string& intervalType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - std::string userId_; - std::string numberList_; - std::string instanceId_; + std::string intervalType_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..c04a614f4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/ListConfigRequest.h b/ccc/include/alibabacloud/ccc/model/ListConfigRequest.h new file mode 100644 index 000000000..e9433425f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListConfigRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONFIGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListConfigRequest : public RpcServiceRequest + { + + public: + ListConfigRequest(); + ~ListConfigRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getConfigItem()const; + void setConfigItem(const std::vector& configItem); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::vector configItem_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListConfigResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h rename to ccc/include/alibabacloud/ccc/model/ListConfigResult.h index b32ceb07b..36b767103 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListConfigResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONFIGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCONFIGRESULT_H_ #include #include @@ -29,35 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListPrivilegesOfUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListConfigResult : public ServiceResult { public: - struct DataItem + struct ConfigItem { - std::string scope; - std::string instanceId; + std::string value; std::string name; }; - ListPrivilegesOfUserResult(); - explicit ListPrivilegesOfUserResult(const std::string &payload); - ~ListPrivilegesOfUserResult(); + ListConfigResult(); + explicit ListConfigResult(const std::string &payload); + ~ListConfigResult(); + std::vector getConfigItems()const; 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::vector configItems_; std::string message_; int httpStatusCode_; - std::vector data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONFIGRESULT_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 170e58e65..921dc7a24 100644 --- a/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListContactFlowsRequest.h @@ -35,20 +35,14 @@ 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); - int getPageSize()const; - void setPageSize(int pageSize); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - std::string type_; - int pageNumber_; std::string instanceId_; - int pageSize_; + std::string accessKeyId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h b/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h index d36ae6edb..4e8e490d1 100644 --- a/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListContactFlowsResult.h @@ -32,27 +32,38 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListContactFlowsResult : public ServiceResult { public: - struct Data + struct ContactFlow { - struct ContactFlow + struct ContactFlowVersion { - std::string type; - std::string createdTime; - std::string description; - std::string contactFlowId; - std::string instanceId; - std::string definition; - bool published; - std::vector numberList; - std::string draftId; - std::string updatedTime; - std::string editor; - std::string name; + std::string lastModified; + std::string status; + std::string lastModifiedBy; + std::string lockedBy; + std::string contactFlowVersionId; + std::string version; + std::string contactFlowVersionDescription; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + 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; }; @@ -60,17 +71,19 @@ 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/ListInstancesOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h index 82ea563f5..5174233a4 100644 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h @@ -35,14 +35,11 @@ namespace AlibabaCloud ListInstancesOfUserRequest(); ~ListInstancesOfUserRequest(); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - int pageNumber_; - int pageSize_; + std::string accessKeyId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h index ee103f12d..3856f11aa 100644 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h @@ -32,79 +32,71 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserResult : public ServiceResult { public: - struct Data + struct CallCenterInstance { - struct CallCenterInstance + struct User { - struct User + struct Detail { - std::string extension; std::string loginName; - std::string roleName; + std::string department; std::string email; - std::string instanceId; - std::string userId; + std::string phone; std::string displayName; - std::string mobile; - std::string roleId; - std::string workMode; }; - struct PhoneNumber - { - struct SkillGroup - { - std::string description; - std::string instanceId; - int phoneNumberCount; - int userCount; - std::string displayName; - std::string skillGroupId; - std::string name; - }; - bool active; - std::string usage; - std::string number; - std::string contactFlowId; - std::string instanceId; - std::string userId; - std::vector skillGroups; - std::string city; - std::string province; - }; - std::string status; - std::vector adminList; - std::string description; - std::string consoleUrl; - std::string domainName; - std::string aliyunUid; - std::vector numberList; - std::string id; - std::string name; + std::string instanceId; + std::string userId; + std::string ramId; + Detail detail; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + struct PhoneNumber + { + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; + }; + std::string status; + std::vector phoneNumbers; + std::string owner; + long createdTime; + std::string instanceId; + std::string domainName; + std::string consoleUrl; + int storageMaxSize; + std::vector admin; + std::string instanceName; + int maxOnlineAgents; + std::string tenantId; + std::string directoryId; + std::string storageBucket; + std::string instanceDescription; + int storageMaxDays; }; ListInstancesOfUserResult(); explicit ListInstancesOfUserResult(const std::string &payload); ~ListInstancesOfUserResult(); + std::vector getInstances()const; std::string getMessage()const; int getHttpStatusCode()const; - std::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/ListIntervalInstanceReportResult.h b/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportResult.h deleted file mode 100644 index 665d031f9..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListIntervalInstanceReportResult.h +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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 - { - float serviceLevel20; - long totalWorkTime; - long totalHoldTime; - long callsRinged; - long maxAbandonedInIVRTime; - long callsOffered; - float satisfactionIndex; - long callsHold; - long totalRingTime; - float handleRate; - float averageAbandonedInQueueTime; - long totalTalkTime; - float averageWaitTime; - long totalAbandonedInRingTime; - long callsQueuingOverflow; - long totalAbandonTime; - long callsQueuingFailed; - long callsBlindTransferred; - long maxAbandonedInQueueTime; - long satisfactionSurveysOffered; - long callsAbandonedInRing; - long callsAttendedTransferred; - float averageRingTime; - long callsIVRException; - long callsAbandonedInQueue; - float averageHoldTime; - long callsAbandoned; - long maxRingTime; - long maxAbandonedInRingTime; - long totalAbandonedInIVRTime; - long callsForwardToOutsideNumber; - long callsQueued; - long maxTalkTime; - float averageAbandonedInIVRTime; - float satisfactionRate; - long callsQueuingTimeout; - float averageTalkTime; - long maxHoldTime; - long callsAbandonedInIVR; - long callsAbandonedInVoiceNavigator; - long callsVoicemail; - long callsHandled; - long maxWaitTime; - long satisfactionSurveysResponded; - 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 callsRinged; - float averageHoldTime; - long maxRingTime; - float satisfactionIndex; - long callsHold; - long totalRingTime; - float averageDialingTime; - long callsAnswered; - long callsDialed; - long totalTalkTime; - long maxDialingTime; - long maxTalkTime; - float satisfactionRate; - float answerRate; - long maxHoldTime; - float averageTalkTime; - long callsBlindTransferred; - long satisfactionSurveysOffered; - long satisfactionSurveysResponded; - long callsAttendedTransferred; - float averageRingTime; - float averageWorkTime; - long maxWorkTime; - }; - struct Overall - { - long totalReadyTime; - long totalBreakTime; - long totalCalls; - long totalWorkTime; - long totalHoldTime; - long satisfactionSurveysOffered; - float averageHoldTime; - float satisfactionIndex; - float averageBreakTime; - long satisfactionSurveysResponded; - long totalTalkTime; - float averageReadyTime; - long totalLoggedInTime; - long maxTalkTime; - float satisfactionRate; - float averageWorkTime; - long maxReadyTime; - long maxWorkTime; - long maxBreakTime; - float occupancyRate; - long maxHoldTime; - float averageTalkTime; - }; - 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/ListIvrTrackingDetailRequest.h b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h new file mode 100644 index 000000000..d1fa5d340 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.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_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/ListIvrTrackingDetailsResult.h b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h similarity index 58% rename from ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailsResult.h rename to ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h index 4f5e31fa3..a7ed3a438 100644 --- a/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILRESULT_H_ #include #include @@ -29,55 +29,55 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListIvrTrackingDetailsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListIvrTrackingDetailResult : public ServiceResult { public: - struct Data + struct IvrTrackingDetails { - struct IvrTracking + struct IvrTrackingDetail { - std::string callee; - std::string instance; + std::string status; + std::string calledNumber; + std::string description; std::string nodeName; - long enterTime; + std::string deviceID; + long startTime; std::string contactId; - std::string nodeExitCode; - std::string channelId; - std::string channelVariables; - std::string flowId; - long leaveTime; - std::string nodeProperties; - std::string caller; + std::string callingNumber; + std::string tenantId; std::string flowName; std::string nodeType; - std::string nodeId; - std::string nodeVariables; + std::string outputData; + std::string inputData; + long stopTime; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListIvrTrackingDetailsResult(); - explicit ListIvrTrackingDetailsResult(const std::string &payload); - ~ListIvrTrackingDetailsResult(); + ListIvrTrackingDetailResult(); + explicit ListIvrTrackingDetailResult(const std::string &payload); + ~ListIvrTrackingDetailResult(); std::string getMessage()const; + IvrTrackingDetails getIvrTrackingDetails()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_; + IvrTrackingDetails ivrTrackingDetails_; int httpStatusCode_; - Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h b/ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h index 2c120d817..9a69287d8 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListJobGroupsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSREQUEST_H_ #include #include @@ -28,15 +28,13 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRecentCallDetailRecordsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListJobGroupsRequest : public RpcServiceRequest { public: - ListRecentCallDetailRecordsRequest(); - ~ListRecentCallDetailRecordsRequest(); + ListJobGroupsRequest(); + ~ListJobGroupsRequest(); - std::string getCriteria()const; - void setCriteria(const std::string& criteria); long getEndTime()const; void setEndTime(long endTime); long getStartTime()const; @@ -49,7 +47,6 @@ namespace AlibabaCloud void setPageSize(int pageSize); private: - std::string criteria_; long endTime_; long startTime_; int pageNumber_; @@ -60,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h new file mode 100644 index 000000000..a74ad7963 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobGroupsResult.h @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobGroupsResult : public ServiceResult + { + public: + struct JobGroups + { + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string description; + std::string repeatBy; + int minAttemptInterval; + long endTime; + long startTime; + std::string name; + std::string followUpStrategy; + std::string type; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + std::string id; + }; + struct Progress + { + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::string status; + std::vector categories; + long startTime; + int duration; + int totalCompleted; + int totalNotAnswered; + int totalJobs; + }; + Progress progress; + std::string description; + std::string scenarioId; + long creationTime; + Strategy strategy; + std::string jobFilePath; + std::string id; + std::string name; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListJobGroupsResult(); + explicit ListJobGroupsResult(const std::string &payload); + ~ListJobGroupsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + JobGroups getJobGroups()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + JobGroups jobGroups_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBGROUPSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.h b/ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.h new file mode 100644 index 000000000..a427c5cec --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobStatusRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobStatusRequest : public RpcServiceRequest + { + + public: + ListJobStatusRequest(); + ~ListJobStatusRequest(); + + std::string 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 new file mode 100644 index 000000000..0ec06d5d2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobStatusResult.h @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobStatusResult : public ServiceResult + { + public: + struct Jobs + { + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct Task + { + struct Contact1 + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + int duration; + std::string brief; + std::string callingNumber; + Contact1 contact1; + std::string jobId; + }; + struct SummaryItem + { + std::string taskId; + std::string category; + std::string conversationDetailId; + std::string content; + std::string summaryId; + std::string summaryName; + std::string jobId; + std::string groupId; + }; + std::string status; + std::vector tasks; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListJobStatusResult(); + explicit ListJobStatusResult(const std::string &payload); + ~ListJobStatusResult(); + std::string getMessage()const; + Jobs getJobs()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Jobs jobs_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBSTATUSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h new file mode 100644 index 000000000..7a83b4a29 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobsByGroupRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobsByGroupRequest : public RpcServiceRequest + { + + public: + ListJobsByGroupRequest(); + ~ListJobsByGroupRequest(); + + std::string getJobStatus()const; + void setJobStatus(const std::string& jobStatus); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobFailureReason()const; + void setJobFailureReason(const std::string& jobFailureReason); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string jobStatus_; + int pageNumber_; + std::string instanceId_; + std::string jobFailureReason_; + std::string jobGroupId_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h new file mode 100644 index 000000000..c7a807f7b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListJobsByGroupResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListJobsByGroupResult : public ServiceResult + { + public: + struct Jobs + { + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + struct SummaryItem + { + std::string taskId; + std::string category; + std::string conversationDetailId; + std::string content; + std::string summaryId; + std::string summaryName; + std::string jobId; + std::string groupId; + }; + std::string status; + std::string scenarioId; + int priority; + std::string strategyId; + std::vector extras; + std::string groupId; + std::vector contacts; + std::string referenceId; + int systemPriority; + std::string failureReason; + std::vector summary; + std::string jobId; + std::vector callingNumbers; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListJobsByGroupResult(); + explicit ListJobsByGroupResult(const std::string &payload); + ~ListJobsByGroupResult(); + std::string getMessage()const; + Jobs getJobs()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Jobs jobs_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTJOBSBYGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/ListMediasRequest.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersRequest.h rename to ccc/include/alibabacloud/ccc/model/ListMediasRequest.h index 274380245..6869a45fc 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListMediasRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTUNASSIGNEDNUMBERSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUNASSIGNEDNUMBERSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTMEDIASREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTMEDIASREQUEST_H_ #include #include @@ -28,30 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListUnassignedNumbersRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListMediasRequest : public RpcServiceRequest { public: - ListUnassignedNumbersRequest(); - ~ListUnassignedNumbersRequest(); + ListMediasRequest(); + ~ListMediasRequest(); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getSearchPattern()const; - void setSearchPattern(const std::string& searchPattern); + 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 searchPattern_; + std::string accessKeyId_; std::string instanceId_; int pageSize_; + std::string namePrefix_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUNASSIGNEDNUMBERSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTMEDIASREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListMediasResult.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h rename to ccc/include/alibabacloud/ccc/model/ListMediasResult.h index 6cc586de4..7bfd0748a 100644 --- a/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListMediasResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ #include #include @@ -29,46 +29,50 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListBriefSkillGroupsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListMediasResult : public ServiceResult { public: - struct Data + struct Medias { - struct SkillGroup + struct Media { + std::string filePath; + std::string status; + std::string type; std::string description; - std::string skillGroupName; - std::string instanceId; - int phoneNumberCount; - int userCount; - std::string displayName; - std::string skillGroupId; + std::string instance; + std::string content; + std::string fileName; + std::string ossFileName; + std::string name; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListBriefSkillGroupsResult(); - explicit ListBriefSkillGroupsResult(const std::string &payload); - ~ListBriefSkillGroupsResult(); + ListMediasResult(); + explicit ListMediasResult(const std::string &payload); + ~ListMediasResult(); std::string getMessage()const; int getHttpStatusCode()const; - Data getData()const; + Medias getMedias()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Data data_; + Medias medias_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h rename to ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h index af6a65f59..d82cd7ef1 100644 --- a/ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListOutboundNumbersOfUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListOutboundPhoneNumberOfUserRequest : public RpcServiceRequest { public: - ListOutboundNumbersOfUserRequest(); - ~ListOutboundNumbersOfUserRequest(); + ListOutboundPhoneNumberOfUserRequest(); + ~ListOutboundPhoneNumberOfUserRequest(); 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_LISTOUTBOUNDNUMBERSOFUSERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_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 new file mode 100644 index 000000000..441fd57d7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListOutboundPhoneNumberOfUserResult : public ServiceResult + { + public: + struct PhoneNumber + { + struct PrivacyNumber + { + std::string regionNameCity; + std::string type; + std::string subId; + std::string poolId; + std::string extra; + std::string poolName; + std::string phoneNumber; + std::string telX; + std::string bizId; + }; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string instanceId; + int remainingTime; + bool privateFlag; + int trunks; + std::string city; + std::string phoneNumberId; + std::string province; + std::string phoneNumberDescription; + std::string sipTelX; + std::string number; + PrivacyNumber privacyNumber; + }; + + + ListOutboundPhoneNumberOfUserResult(); + explicit ListOutboundPhoneNumberOfUserResult(const std::string &payload); + ~ListOutboundPhoneNumberOfUserResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getNumberList()const; + std::vector getOutboundPhoneNumbers()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector numberList_; + std::vector outboundPhoneNumbers_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h index f134442e2..5e05613ea 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h @@ -35,26 +35,17 @@ namespace AlibabaCloud ListPhoneNumbersRequest(); ~ListPhoneNumbersRequest(); - 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); + bool getOutboundOnly()const; + void setOutboundOnly(bool outboundOnly); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - std::string usage_; - bool active_; - int pageNumber_; - std::string searchPattern_; + bool outboundOnly_; std::string instanceId_; - int pageSize_; + std::string accessKeyId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h index ca2e08fe8..c1aca59ab 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h @@ -32,57 +32,70 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListPhoneNumbersResult : public ServiceResult { public: - struct Data + struct PhoneNumber { - struct PhoneNumber + struct ContactFlow { - struct SkillGroup - { - std::string instanceId; - std::string displayName; - std::string skillGroupId; - std::string name; - }; - std::string usage; + std::string type; 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 tags; + std::string contactFlowDescription; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + struct PrivacyNumber + { + std::string regionNameCity; + std::string type; + std::string subId; + std::string poolId; + std::string extra; + std::string poolName; + std::string phoneNumber; + std::string telX; + std::string bizId; + }; + struct SkillGroup + { + std::string skillGroupName; + std::string skillGroupId; + }; + std::string assignee; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string instanceId; + int remainingTime; + std::vector skillGroups; + int trunks; + std::string city; + std::string phoneNumberId; + std::string province; + std::string phoneNumberDescription; + std::string sipTelX; + std::string number; + PrivacyNumber privacyNumber; + int numberCommodityStatus; + ContactFlow contactFlow; }; ListPhoneNumbersResult(); explicit ListPhoneNumbersResult(const std::string &payload); ~ListPhoneNumbersResult(); + std::vector getPhoneNumbers()const; std::string getMessage()const; - int 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/RemovePhoneNumberFromSkillGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/ListPhoneTagsRequest.h similarity index 54% rename from ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListPhoneTagsRequest.h index 733458150..f9087ce6e 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberFromSkillGroupsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneTagsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSREQUEST_H_ #include #include @@ -28,27 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumberFromSkillGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListPhoneTagsRequest : public RpcServiceRequest { public: - RemovePhoneNumberFromSkillGroupsRequest(); - ~RemovePhoneNumberFromSkillGroupsRequest(); + 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); - std::string getSkillGroupIdList()const; - void setSkillGroupIdList(const std::string& skillGroupIdList); + int getPageSize()const; + void setPageSize(int pageSize); private: + std::vector numberGroupIds_; + int currentPage_; + std::string accessKeyId_; + bool outboundOnly_; std::string number_; std::string instanceId_; - std::string skillGroupIdList_; + int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERFROMSKILLGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h similarity index 65% rename from ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupResult.h rename to ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h index 7142901f6..ad002c9ca 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersOfSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneTagsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSOFSKILLGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSRESULT_H_ #include #include @@ -29,20 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListPhoneNumbersOfSkillGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListPhoneTagsResult : public ServiceResult { public: - struct Data + struct PhoneNumbers { struct PhoneNumber { - bool active; std::string usage; - std::string number; - std::string contactFlowId; std::string instanceId; + std::string contactFlowId; + std::string serviceTag; + long createTime; std::string city; + std::string phoneNumberId; std::string province; + std::string phoneNumberDescription; + std::string provider; + int type; + std::string number; + int concurrency; + std::vector skillGroupIdList; }; int totalCount; int pageSize; @@ -51,24 +58,26 @@ namespace AlibabaCloud }; - ListPhoneNumbersOfSkillGroupResult(); - explicit ListPhoneNumbersOfSkillGroupResult(const std::string &payload); - ~ListPhoneNumbersOfSkillGroupResult(); + ListPhoneTagsResult(); + explicit ListPhoneTagsResult(const std::string &payload); + ~ListPhoneTagsResult(); + PhoneNumbers getPhoneNumbers()const; 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_LISTPHONENUMBERSOFSKILLGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONETAGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h b/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h new file mode 100644 index 000000000..6dbcf9905 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListRealTimeAgentRequest : public RpcServiceRequest + { + + public: + ListRealTimeAgentRequest(); + ~ListRealTimeAgentRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h b/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h new file mode 100644 index 000000000..715eda223 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRealTimeAgentResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListRealTimeAgentResult : public ServiceResult + { + public: + struct User + { + struct SkillLevel + { + struct Skill + { + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + std::string skillGroupDescription; + }; + Skill skill; + std::string skillLevelId; + int level; + }; + std::vector skillLevels; + std::string stateDesc; + std::string phone; + std::string state; + std::string ramId; + std::string displayName; + std::string dn; + }; + + + ListRealTimeAgentResult(); + explicit ListRealTimeAgentResult(const std::string &payload); + ~ListRealTimeAgentResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMEAGENTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h rename to ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h index 22b9b3d6d..0c8a8bb40 100644 --- a/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALAGENTREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_H_ #include #include @@ -28,36 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListHistoricalAgentReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListRecentCallRecordsRequest : public RpcServiceRequest { public: - ListHistoricalAgentReportRequest(); - ~ListHistoricalAgentReportRequest(); + ListRecentCallRecordsRequest(); + ~ListRecentCallRecordsRequest(); + 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_LISTHISTORICALAGENTREPORTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_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 new file mode 100644 index 000000000..10da7eb1f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.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_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 new file mode 100644 index 000000000..c01fa5180 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.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_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 new file mode 100644 index 000000000..72dcb8780 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/GetMultiChannelRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingRequest.h rename to ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h index 11dd4fde5..d0d35dd8a 100644 --- a/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetMultiChannelRecordingRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListRecordingsByContactIdRequest : public RpcServiceRequest { public: - GetMultiChannelRecordingRequest(); - ~GetMultiChannelRecordingRequest(); + ListRecordingsByContactIdRequest(); + ~ListRecordingsByContactIdRequest(); - std::string getContactId()const; - void setContactId(const std::string& contactId); 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 contactId_; std::string instanceId_; + std::string contactId_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_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 new file mode 100644 index 000000000..3a3ddd987 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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/ListIntervalAgentReportRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h similarity index 55% rename from ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportRequest.h rename to ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h index fba66fafe..305424749 100644 --- a/ccc/include/alibabacloud/ccc/model/ListIntervalAgentReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSREQUEST_H_ #include #include @@ -28,33 +28,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListIntervalAgentReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListRecordingsRequest : public RpcServiceRequest { public: - ListIntervalAgentReportRequest(); - ~ListIntervalAgentReportRequest(); + ListRecordingsRequest(); + ~ListRecordingsRequest(); std::string getAgentId()const; void setAgentId(const std::string& agentId); - long getEndTime()const; - void setEndTime(long endTime); + 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); - std::string getInterval()const; - void setInterval(const std::string& interval); + int getPageSize()const; + void setPageSize(int pageSize); private: std::string agentId_; - long endTime_; + std::string criteria_; + std::string phoneNumber_; + long stopTime_; long startTime_; + int pageNumber_; + std::string accessKeyId_; std::string instanceId_; - std::string interval_; + int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALAGENTREPORTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h b/ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h rename to ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h index 027c714a8..c823d649f 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_H_ #include #include @@ -29,50 +29,54 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRecentCallDetailRecordsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListRecordingsResult : public ServiceResult { public: - struct Data + struct Recordings { - struct CallDetailRecord + struct Recording { - std::string skillGroupIds; + std::string filePath; std::string calledNumber; std::string contactType; - std::string contactDisposition; std::string instanceId; - std::string agentIds; + std::string fileName; + std::string channel; long startTime; - long duration; + int 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; }; - ListRecentCallDetailRecordsResult(); - explicit ListRecentCallDetailRecordsResult(const std::string &payload); - ~ListRecentCallDetailRecordsResult(); + ListRecordingsResult(); + explicit ListRecordingsResult(const std::string &payload); + ~ListRecordingsResult(); std::string getMessage()const; int getHttpStatusCode()const; - Data getData()const; + Recordings getRecordings()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Data data_; + Recordings recordings_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLDETAILRECORDSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_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 be5979417..9ec631c8b 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRolesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRolesRequest.h @@ -37,9 +37,12 @@ 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 5ecc86871..8958f4eca 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRolesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRolesResult.h @@ -34,8 +34,10 @@ namespace AlibabaCloud public: struct Role { + std::string roleName; + std::string instanceId; + std::string roleDescription; std::string roleId; - std::string name; }; @@ -44,16 +46,18 @@ namespace AlibabaCloud ~ListRolesResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getData()const; + std::vector getRoles()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - std::vector data_; + std::vector roles_; std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesRequest.h b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/ListInstancesRequest.h rename to ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h index c31c87684..ea3eb8ff9 100644 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESREQUEST_H_ #include #include @@ -28,24 +28,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListInstancesRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListScenarioTemplatesRequest : public RpcServiceRequest { public: - ListInstancesRequest(); - ~ListInstancesRequest(); + ListScenarioTemplatesRequest(); + ~ListScenarioTemplatesRequest(); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); private: - int pageNumber_; - int pageSize_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h new file mode 100644 index 000000000..b10f46fcb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListScenarioTemplatesResult : public ServiceResult + { + public: + struct Scenario + { + struct Survey + { + struct Flow + { + std::string flowId; + bool isPublished; + std::string flowJson; + }; + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string description; + std::string beebotId; + std::vector intents; + int round; + std::string id; + std::string globalQuestions; + Flow flow; + std::string name; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string description; + std::string id; + std::string name; + }; + + + ListScenarioTemplatesResult(); + explicit ListScenarioTemplatesResult(const std::string &payload); + ~ListScenarioTemplatesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getScenarioTemplates()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector scenarioTemplates_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h similarity index 74% rename from ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h rename to ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h index da7a852c6..0323d91da 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListScenariosRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListPrivilegesOfUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListScenariosRequest : public RpcServiceRequest { public: - ListPrivilegesOfUserRequest(); - ~ListPrivilegesOfUserRequest(); + ListScenariosRequest(); + ~ListScenariosRequest(); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVILEGESOFUSERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListScenariosResult.h b/ccc/include/alibabacloud/ccc/model/ListScenariosResult.h new file mode 100644 index 000000000..134bb7efa --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListScenariosResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListScenariosResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string description; + std::string repeatBy; + int minAttemptInterval; + long endTime; + long startTime; + std::string name; + std::string followUpStrategy; + std::string type; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + std::string id; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string description; + std::string beebotId; + std::vector intents; + int round; + std::string id; + std::string name; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string description; + Strategy strategy; + std::string id; + std::string name; + }; + + + ListScenariosResult(); + explicit ListScenariosResult(const std::string &payload); + ~ListScenariosResult(); + std::string getMessage()const; + std::vector getScenarios()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector scenarios_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSCENARIOSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h new file mode 100644 index 000000000..ac19e0dbd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.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_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/ListRealtimeSkillGroupStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h rename to ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h index d1e3cfbc6..9cbcbd3a9 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_H_ #include #include @@ -29,38 +29,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListRealtimeSkillGroupStatesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupStatesResult : public ServiceResult { public: struct Data { - struct SkillGroupState + struct RealTimeSkillGroupState { 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; }; - ListRealtimeSkillGroupStatesResult(); - explicit ListRealtimeSkillGroupStatesResult(const std::string &payload); - ~ListRealtimeSkillGroupStatesResult(); + ListSkillGroupStatesResult(); + explicit ListSkillGroupStatesResult(const std::string &payload); + ~ListSkillGroupStatesResult(); std::string getMessage()const; int getHttpStatusCode()const; Data getData()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -69,9 +70,10 @@ namespace AlibabaCloud int httpStatusCode_; Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTREALTIMESKILLGROUPSTATESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_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 new file mode 100644 index 000000000..c2a3b3424 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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 new file mode 100644 index 000000000..03d1aaffa --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h @@ -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. + */ + +#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 new file mode 100644 index 000000000..4c5532e1d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.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_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/ListHistoricalSkillGroupReportResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h similarity index 51% rename from ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportResult.h rename to ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h index 30a357aa9..08a509284 100644 --- a/ccc/include/alibabacloud/ccc/model/ListHistoricalSkillGroupReportResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTHISTORICALSKILLGROUPREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSRESULT_H_ #include #include @@ -29,148 +29,112 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListHistoricalSkillGroupReportResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsResult : public ServiceResult { public: - struct Data + struct PagedSkillGroupSummaryReport { - struct Items + 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 { - long callsAbandonedInQueue; float serviceLevel20; long totalWorkTime; - long callsRinged; - long totalHoldTime; - float averageHoldTime; - long callsAbandoned; + long abandonedInQueueOfQueueCount; + long answeredByAgentOfQueueCount; + long giveUpByAgentOfQueueCount; long callsOffered; long maxRingTime; - long callsHold; float satisfactionIndex; - long maxAbandonedInRingTime; long totalRingTime; float handleRate; - float averageAbandonedInQueueTime; - float averageWaitTime; long totalTalkTime; - long totalAbandonedInRingTime; - long callsQueued; - long maxTalkTime; - float satisfactionRate; - long callsAttendedTransferOut; - long totalAbandonTime; - float averageTalkTime; - long maxHoldTime; - long maxAbandonedInQueueTime; - long callsTimeout; + long overFlowInQueueOfQueueCount; + std::string maxTalkTime; + long averageTalkTime; + long answeredByAgentOfQueueWaitTimeDuration; long satisfactionSurveysOffered; - long callsAbandonedInRing; + long queueWaitTimeDuration; long callsHandled; - long callsOverflow; - long maxWaitTime; long satisfactionSurveysResponded; - long callsAttendedTransferIn; - float averageRingTime; - long maxAbandonTime; - long totalWaitTime; - float averageAbandonTime; - float averageAbandonedInRingTime; - float averageWorkTime; - long callsBlindTransferOut; - long totalAbandonedInQueueTime; - long callsBlindTransferIn; + long queueMaxWaitTimeDuration; + long averageRingTime; + long answeredByAgentOfQueueMaxWaitTimeDuration; + long averageWorkTime; long maxWorkTime; - float abandonRate; + long inComingQueueOfQueueCount; }; struct Outbound { long totalDialingTime; long totalWorkTime; - long callsRinged; - long totalHoldTime; - float averageHoldTime; - long maxRingTime; - long callsHold; + long satisfactionSurveysOffered; float satisfactionIndex; - long totalRingTime; - float averageDialingTime; + long satisfactionSurveysResponded; + long averageDialingTime; long callsAnswered; long callsDialed; long totalTalkTime; long maxDialingTime; long maxTalkTime; - float satisfactionRate; - long callsAttendedTransferOut; + long averageWorkTime; + long maxWorkTime; float answerRate; - float averageTalkTime; - long maxHoldTime; - long satisfactionSurveysOffered; - long satisfactionSurveysResponded; - long callsAttendedTransferIn; - float averageRingTime; - float averageWorkTime; - long callsBlindTransferOut; - long callsBlindTransferIn; - long maxWorkTime; + long 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; - float satisfactionRate; - long maxBreakTime; - long maxWorkTime; - float averageTalkTime; - long maxHoldTime; - float occupancyRate; - }; - Outbound outbound; Overall overall; + Outbound outbound; std::string skillGroupName; + std::string instanceId; std::string skillGroupId; Inbound inbound; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; - ListHistoricalSkillGroupReportResult(); - explicit ListHistoricalSkillGroupReportResult(const std::string &payload); - ~ListHistoricalSkillGroupReportResult(); + ListSkillGroupSummaryReportsResult(); + explicit ListSkillGroupSummaryReportsResult(const std::string &payload); + ~ListSkillGroupSummaryReportsResult(); + PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; 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_LISTHISTORICALSKILLGROUPREPORTRESULT_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..28bd0fe18 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.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_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsSinceMidnightRequest : public RpcServiceRequest + { + + public: + ListSkillGroupSummaryReportsSinceMidnightRequest(); + ~ListSkillGroupSummaryReportsSinceMidnightRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroups()const; + void setSkillGroups(const std::string& skillGroups); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + int pageNumber_; + std::string accessKeyId_; + std::string instanceId_; + std::string skillGroups_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h new file mode 100644 index 000000000..14a315f1a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsSinceMidnightResult : public ServiceResult + { + public: + struct PagedSkillGroupSummaryReport + { + struct SkillGroupSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + float serviceLevel20; + long totalWorkTime; + long abandonedInQueueOfQueueCount; + long answeredByAgentOfQueueCount; + long giveUpByAgentOfQueueCount; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long totalRingTime; + float handleRate; + long totalTalkTime; + long overFlowInQueueOfQueueCount; + std::string maxTalkTime; + long averageTalkTime; + long answeredByAgentOfQueueWaitTimeDuration; + long satisfactionSurveysOffered; + long queueWaitTimeDuration; + long callsHandled; + long satisfactionSurveysResponded; + long queueMaxWaitTimeDuration; + long averageRingTime; + long answeredByAgentOfQueueMaxWaitTimeDuration; + long averageWorkTime; + long maxWorkTime; + long inComingQueueOfQueueCount; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + Inbound inbound; + std::string timestamp; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListSkillGroupSummaryReportsSinceMidnightResult(); + explicit ListSkillGroupSummaryReportsSinceMidnightResult(const std::string &payload); + ~ListSkillGroupSummaryReportsSinceMidnightResult(); + PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + PagedSkillGroupSummaryReport pagedSkillGroupSummaryReport_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.h rename to ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h index 1003df506..3345f9c9c 100644 --- a/ccc/include/alibabacloud/ccc/model/PollUserStatusRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT PollUserStatusRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupsOfUserRequest : public RpcServiceRequest { public: - PollUserStatusRequest(); - ~PollUserStatusRequest(); + ListSkillGroupsOfUserRequest(); + ~ListSkillGroupsOfUserRequest(); - 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 getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - std::string userId_; - std::string deviceId_; std::string instanceId_; + std::string userId_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_POLLUSERSTATUSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_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 new file mode 100644 index 000000000..f1d73ae26 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 6f0d23757..9cc6d59d5 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsRequest.h @@ -35,20 +35,14 @@ 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); - int getPageSize()const; - void setPageSize(int pageSize); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - int pageNumber_; - std::string searchPattern_; std::string instanceId_; - int pageSize_; + std::string accessKeyId_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h index 79f4a19d3..011265772 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h @@ -32,22 +32,29 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListSkillGroupsResult : public ServiceResult { public: - struct Data + struct SkillGroup { - struct SkillGroup + struct PhoneNumber { - std::string description; - std::string skillGroupName; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; std::string instanceId; - int phoneNumberCount; - int userCount; - std::string displayName; - std::string skillGroupId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + 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; }; @@ -56,16 +63,18 @@ namespace AlibabaCloud ~ListSkillGroupsResult(); std::string getMessage()const; int getHttpStatusCode()const; - Data getData()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_; - Data data_; + std::vector skillGroups_; std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h deleted file mode 100644 index e50506e03..000000000 --- a/ccc/include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.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_LISTSKILLLEVELSOFUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ListSkillLevelsOfUserRequest : public RpcServiceRequest - { - - public: - ListSkillLevelsOfUserRequest(); - ~ListSkillLevelsOfUserRequest(); - - 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 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 userId_; - bool isMember_; - int pageNumber_; - std::string searchPattern_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLLEVELSOFUSERREQUEST_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 new file mode 100644 index 000000000..7b986d293 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSurveysRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSURVEYSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSURVEYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSurveysRequest : public RpcServiceRequest + { + + public: + ListSurveysRequest(); + ~ListSurveysRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSURVEYSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSurveysResult.h b/ccc/include/alibabacloud/ccc/model/ListSurveysResult.h new file mode 100644 index 000000000..f4ddfbd0b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSurveysResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSURVEYSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSURVEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSurveysResult : public ServiceResult + { + public: + struct Survey + { + struct Flow + { + std::string flowId; + bool isPublished; + std::string flowJson; + }; + struct AsrCustomModel + { + int customModelStatus; + std::string corpora; + }; + std::string role; + std::string description; + std::string hotWords; + AsrCustomModel asrCustomModel; + int round; + std::string speechOptimizationParam; + std::string id; + std::string globalQuestions; + Flow flow; + std::string scenarioUuid; + std::string name; + }; + + + ListSurveysResult(); + explicit ListSurveysResult(const std::string &payload); + ~ListSurveysResult(); + std::vector getSurveys()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector surveys_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSURVEYSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h new file mode 100644 index 000000000..7a4e3a7cd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListTransferableSkillGroupsRequest : public RpcServiceRequest + { + + public: + ListTransferableSkillGroupsRequest(); + ~ListTransferableSkillGroupsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ChangeWorkModeResult.h b/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h similarity index 56% rename from ccc/include/alibabacloud/ccc/model/ChangeWorkModeResult.h rename to ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h index b727c1aeb..e629f813a 100644 --- a/ccc/include/alibabacloud/ccc/model/ChangeWorkModeResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODERESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSRESULT_H_ #include #include @@ -29,44 +29,43 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ChangeWorkModeResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListTransferableSkillGroupsResult : public ServiceResult { public: - struct Data + struct SkillGroup { - std::string extension; - std::string userState; + bool allowPrivateOutboundNumber; + std::string skillGroupName; + std::string accSkillGroupName; std::string instanceId; - std::string breakCode; - std::string deviceId; - std::string userId; - bool outboundScenario; - std::string jobId; - std::string workMode; - std::vector signedSkillGroupIdList; + int userCount; + std::string routingStrategy; + std::string skillGroupId; + std::string accQueueName; + std::string skillGroupDescription; }; - ChangeWorkModeResult(); - explicit ChangeWorkModeResult(const std::string &payload); - ~ChangeWorkModeResult(); + ListTransferableSkillGroupsResult(); + explicit ListTransferableSkillGroupsResult(const std::string &payload); + ~ListTransferableSkillGroupsResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; - Data getData()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 params_; - Data data_; + std::vector skillGroups_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CHANGEWORKMODERESULT_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..8bc961656 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/RemovePhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersResult.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h rename to ccc/include/alibabacloud/ccc/model/ListTrunkProvidersResult.h index fdec006d9..33c9f6919 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListTrunkProvidersResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSRESULT_H_ #include #include @@ -29,33 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ListTrunkProvidersResult : public ServiceResult { public: + struct TrunkProvider + { + std::string status; + std::string providerName; + }; - RemovePhoneNumbersResult(); - explicit RemovePhoneNumbersResult(const std::string &payload); - ~RemovePhoneNumbersResult(); + ListTrunkProvidersResult(); + explicit ListTrunkProvidersResult(const std::string &payload); + ~ListTrunkProvidersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; - std::vector getFailureList()const; - std::string getData()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 params_; - std::vector failureList_; - std::string data_; + std::vector trunkProviders_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h similarity index 71% rename from ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h index 3f1ee45d5..8083cc160 100644 --- a/ccc/include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddNumbersToSkillGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListTrunksOfSkillGroupRequest : public RpcServiceRequest { public: - AddNumbersToSkillGroupRequest(); - ~AddNumbersToSkillGroupRequest(); + ListTrunksOfSkillGroupRequest(); + ~ListTrunksOfSkillGroupRequest(); - 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_ADDNUMBERSTOSKILLGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h new file mode 100644 index 000000000..8fd09c686 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/ListBriefSkillGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h rename to ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h index 12c84271b..91e75d899 100644 --- a/ccc/include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTBRIEFSKILLGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_ #include #include @@ -28,30 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListBriefSkillGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListUnreachableContactsRequest : public RpcServiceRequest { public: - ListBriefSkillGroupsRequest(); - ~ListBriefSkillGroupsRequest(); + ListUnreachableContactsRequest(); + ~ListUnreachableContactsRequest(); 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_LISTBRIEFSKILLGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h b/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h new file mode 100644 index 000000000..e8f1c855a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListUnreachableContactsResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListUnreachableContactsResult : public ServiceResult + { + public: + struct UnreachableContacts + { + struct UnreachableContact + { + struct Contact + { + std::string role; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + }; + std::vector contacts; + int totalAttempts; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListUnreachableContactsResult(); + explicit ListUnreachableContactsResult(const std::string &payload); + ~ListUnreachableContactsResult(); + UnreachableContacts getUnreachableContacts()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + UnreachableContacts unreachableContacts_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUNREACHABLECONTACTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h index 1cc8ab72b..b39183f74 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_ #include #include @@ -28,19 +28,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListUserLevelsOfSkillGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ListUsersOfSkillGroupRequest : public RpcServiceRequest { public: - ListUserLevelsOfSkillGroupRequest(); - ~ListUserLevelsOfSkillGroupRequest(); + ListUsersOfSkillGroupRequest(); + ~ListUsersOfSkillGroupRequest(); - bool getIsMember()const; - void setIsMember(bool isMember); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getSearchPattern()const; - void setSearchPattern(const std::string& searchPattern); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSkillGroupId()const; @@ -49,9 +47,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); private: - bool isMember_; int pageNumber_; - std::string searchPattern_; + std::string accessKeyId_; std::string instanceId_; std::string skillGroupId_; int pageSize_; @@ -60,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h new file mode 100644 index 000000000..5df48ab78 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 c7d79f04f..5af0614b4 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 getSearchPattern()const; - void setSearchPattern(const std::string& searchPattern); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; @@ -46,7 +46,7 @@ namespace AlibabaCloud private: int pageNumber_; - std::string searchPattern_; + std::string accessKeyId_; std::string instanceId_; int pageSize_; diff --git a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h index 60f110896..6af04c8b1 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h @@ -32,40 +32,51 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT ListUsersResult : public ServiceResult { public: - struct Data + struct Users { - struct UserDetail + struct User { - struct PhoneNumber + struct Detail { - bool active; - std::string usage; - std::string number; - std::string city; - std::string province; + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; }; - struct UserSkillLevel + struct Role { - std::string skillGroupName; - int skillLevel; - std::string skillGroupId; + std::string roleName; + std::string instanceId; + std::string roleDescription; + std::string roleId; }; - std::string loginName; - std::string roleName; - std::string email; + 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::vector skillLevelList; - bool primaryAccount; - std::string displayName; - std::vector personalOutboundNumberList; - std::string mobile; - std::string roleId; - std::string workMode; + bool primary; + std::string ramId; + std::vector roles; + Detail detail; }; int totalCount; int pageSize; int pageNumber; - std::vector list; + std::vector list; }; @@ -74,18 +85,18 @@ namespace AlibabaCloud ~ListUsersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; - Data getData()const; + Users getUsers()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - std::vector params_; - Data data_; + Users users_; std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h new file mode 100644 index 000000000..ea6f85a02 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListVoiceAppraiseRequest : public RpcServiceRequest + { + + public: + ListVoiceAppraiseRequest(); + ~ListVoiceAppraiseRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h new file mode 100644 index 000000000..6a7b1f57a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h @@ -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. + */ + +#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/MakeCallResult.h b/ccc/include/alibabacloud/ccc/model/MakeCallResult.h deleted file mode 100644 index b1d04c39e..000000000 --- a/ccc/include/alibabacloud/ccc/model/MakeCallResult.h +++ /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. - */ - -#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 deviceId; - std::string userId; - std::string breakCode; - bool outboundScenario; - std::string workMode; - std::string jobId; - std::vector signedSkillGroupIdList; - }; - UserContext userContext; - long contextId; - 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 new file mode 100644 index 000000000..d66b95daf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.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_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/UpdateConfigItemsResult.h b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h similarity index 71% rename from ccc/include/alibabacloud/ccc/model/UpdateConfigItemsResult.h rename to ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h index d5f5d2ce0..440f94623 100644 --- a/ccc/include/alibabacloud/ccc/model/UpdateConfigItemsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_UPDATECONFIGITEMSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_UPDATECONFIGITEMSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICERESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT UpdateConfigItemsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ModifyAgentDeviceResult : public ServiceResult { public: - UpdateConfigItemsResult(); - explicit UpdateConfigItemsResult(const std::string &payload); - ~UpdateConfigItemsResult(); + ModifyAgentDeviceResult(); + explicit ModifyAgentDeviceResult(const std::string &payload); + ~ModifyAgentDeviceResult(); 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_UPDATECONFIGITEMSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h similarity index 52% rename from ccc/include/alibabacloud/ccc/model/SendDtmfSignalingRequest.h rename to ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h index 02720844b..2e5123eaf 100644 --- a/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_SENDDTMFSIGNALINGREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SENDDTMFSIGNALINGREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCEREQUEST_H_ #include #include @@ -28,36 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT SendDtmfSignalingRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ModifyCabInstanceRequest : public RpcServiceRequest { public: - SendDtmfSignalingRequest(); - ~SendDtmfSignalingRequest(); + ModifyCabInstanceRequest(); + ~ModifyCabInstanceRequest(); - 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); + int getMaxConcurrentConversation()const; + void setMaxConcurrentConversation(int maxConcurrentConversation); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); + 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: - std::string dtmf_; - std::string userId_; - std::string deviceId_; - std::string jobId_; + int maxConcurrentConversation_; std::string instanceId_; - std::string channelId_; + std::string instanceName_; + std::string callCenterInstanceId_; + std::string instanceDescription_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_SENDDTMFSIGNALINGREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..06c7c70b4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/RemovePhoneNumbersFromSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyCallRatioRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h rename to ccc/include/alibabacloud/ccc/model/ModifyCallRatioRequest.h index 0f48cd426..22027ac19 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyCallRatioRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYCALLRATIOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYCALLRATIOREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersFromSkillGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ModifyCallRatioRequest : public RpcServiceRequest { public: - RemovePhoneNumbersFromSkillGroupRequest(); - ~RemovePhoneNumbersFromSkillGroupRequest(); + ModifyCallRatioRequest(); + ~ModifyCallRatioRequest(); - 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 getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + int getRatio()const; + void setRatio(int ratio); private: - std::string numberList_; std::string instanceId_; std::string skillGroupId_; + std::string jobGroupId_; + int ratio_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYCALLRATIOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyCallRatioResult.h b/ccc/include/alibabacloud/ccc/model/ModifyCallRatioResult.h new file mode 100644 index 000000000..659cd8f5f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyCallRatioResult.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_MODIFYCALLRATIORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYCALLRATIORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyCallRatioResult : public ServiceResult + { + public: + + + ModifyCallRatioResult(); + explicit ModifyCallRatioResult(const std::string &payload); + ~ModifyCallRatioResult(); + 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_MODIFYCALLRATIORESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyInstanceResult.h b/ccc/include/alibabacloud/ccc/model/ModifyInstanceResult.h deleted file mode 100644 index b94881f68..000000000 --- a/ccc/include/alibabacloud/ccc/model/ModifyInstanceResult.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_MODIFYINSTANCERESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_MODIFYINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT ModifyInstanceResult : public ServiceResult - { - public: - - - ModifyInstanceResult(); - explicit ModifyInstanceResult(const std::string &payload); - ~ModifyInstanceResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::vector getParams()const; - std::string getData()const; - std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::vector params_; - std::string data_; - std::string code_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYINSTANCERESULT_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 699c79e6d..64c03b953 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h @@ -39,16 +39,22 @@ namespace AlibabaCloud void setContactFlowId(const std::string& contactFlowId); std::string getUsage()const; void setUsage(const std::string& usage); - std::string getNumber()const; - void setNumber(const std::string& number); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getPhoneNumberId()const; + void setPhoneNumberId(const std::string& phoneNumberId); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); private: std::string contactFlowId_; std::string usage_; - std::string number_; + std::string accessKeyId_; 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 ab4047766..65f041ee3 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h @@ -32,6 +32,33 @@ 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(); @@ -39,14 +66,18 @@ 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/ReadyForServiceRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h similarity index 57% rename from ccc/include/alibabacloud/ccc/model/ReadyForServiceRequest.h rename to ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h index 3a115f60a..5b5eca3cc 100644 --- a/ccc/include/alibabacloud/ccc/model/ReadyForServiceRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_READYFORSERVICEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_READYFORSERVICEREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYPHONETAGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYPHONETAGSREQUEST_H_ #include #include @@ -28,30 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ReadyForServiceRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ModifyPhoneTagsRequest : public RpcServiceRequest { public: - ReadyForServiceRequest(); - ~ReadyForServiceRequest(); + ModifyPhoneTagsRequest(); + ~ModifyPhoneTagsRequest(); - 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 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: - bool outboundScenario_; - std::string userId_; - std::string deviceId_; std::string instanceId_; + std::vector skillGroupIdList_; + std::string serviceTag_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_READYFORSERVICEREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..6ea7490c3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneTagsResult.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_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 new file mode 100644 index 000000000..a10126360 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupRequest.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_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 new file mode 100644 index 000000000..da57c4d5c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupResult.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_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 new file mode 100644 index 000000000..1e51bfe47 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.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_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/RemovePersonalNumbersFromUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h similarity index 72% rename from ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserResult.h rename to ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h index 49636e661..25391a9ef 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ #include #include @@ -29,17 +29,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemovePersonalNumbersFromUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT ModifyPrivacyNumberCallDetailResult : public ServiceResult { public: - RemovePersonalNumbersFromUserResult(); - explicit RemovePersonalNumbersFromUserResult(const std::string &payload); - ~RemovePersonalNumbersFromUserResult(); + ModifyPrivacyNumberCallDetailResult(); + explicit ModifyPrivacyNumberCallDetailResult(const std::string &payload); + ~ModifyPrivacyNumberCallDetailResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -47,9 +48,10 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPERSONALNUMBERSFROMUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h similarity index 56% rename from ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.h rename to ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h index 27d47bd12..33ea621d8 100644 --- a/ccc/include/alibabacloud/ccc/model/RegisterDeviceRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyScenarioRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REGISTERDEVICEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICEREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIOREQUEST_H_ #include #include @@ -28,30 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RegisterDeviceRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ModifyScenarioRequest : public RpcServiceRequest { public: - RegisterDeviceRequest(); - ~RegisterDeviceRequest(); + ModifyScenarioRequest(); + ~ModifyScenarioRequest(); - 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 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 userId_; - std::string deviceId_; - std::string password_; + std::string variables_; + std::string description_; std::string instanceId_; + std::string name_; + std::string scenarioId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REGISTERDEVICEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.h b/ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.h new file mode 100644 index 000000000..6e8d47ee6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyScenarioResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyScenarioResult : public ServiceResult + { + public: + struct Scenario + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + bool isTemplate; + std::string repeatBy; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + std::string followUpStrategy; + std::string type; + std::string strategyName; + std::string strategyDescription; + std::string customized; + int maxAttemptsPerDay; + std::string routingStrategy; + std::vector repeatDays; + }; + struct Survey + { + struct IntentNode + { + std::string nodeId; + std::string intentId; + }; + std::string role; + std::string surveyId; + std::string beebotId; + std::string surveyName; + std::string surveyDescription; + std::vector intents; + int round; + }; + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::vector surveys; + std::vector variables; + bool isTemplate; + std::string type; + std::string scenarioId; + std::string scenarioDescription; + Strategy strategy; + std::string scenarioName; + }; + + + ModifyScenarioResult(); + explicit ModifyScenarioResult(const std::string &payload); + ~ModifyScenarioResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + Scenario getScenario()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + Scenario scenario_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSCENARIORESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h similarity index 55% rename from ccc/include/alibabacloud/ccc/model/CancelAttendedTransferRequest.h rename to ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h index edb66c180..64ec18813 100644 --- a/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_CANCELATTENDEDTRANSFERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_CANCELATTENDEDTRANSFERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ #include #include @@ -28,30 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT CancelAttendedTransferRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOfUserRequest : public RpcServiceRequest { public: - CancelAttendedTransferRequest(); - ~CancelAttendedTransferRequest(); + ModifySkillGroupOfUserRequest(); + ~ModifySkillGroupOfUserRequest(); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); 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 getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); private: + std::vector roleId_; std::string userId_; - std::string deviceId_; - std::string jobId_; + std::string accessKeyId_; + std::vector skillLevel_; std::string instanceId_; + std::vector skillGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_CANCELATTENDEDTRANSFERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h new file mode 100644 index 000000000..36f42da74 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.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_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 new file mode 100644 index 000000000..5f21c01c7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.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_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 new file mode 100644 index 000000000..4572d1605 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.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_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 f051b234a..a31a8e279 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h @@ -35,20 +35,38 @@ 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 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 skillGroupId_; - std::string displayName_; + std::string name_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h index 0da149c17..52905d804 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -47,6 +48,7 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string code_; + bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ModifySurveyRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySurveyRequest.h new file mode 100644 index 000000000..ba2184ac9 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySurveyRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySurveyRequest : public RpcServiceRequest + { + + public: + ModifySurveyRequest(); + ~ModifySurveyRequest(); + + std::string 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 new file mode 100644 index 000000000..dac8eb3bb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySurveyResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySurveyResult : public ServiceResult + { + public: + struct Survey + { + struct Flow + { + std::string flowId; + bool isPublished; + std::string flowJson; + }; + struct AsrCustomModel + { + int customModelStatus; + std::string corpora; + }; + std::string role; + std::string description; + std::string hotWords; + AsrCustomModel asrCustomModel; + int round; + std::string speechOptimizationParam; + std::string id; + std::string globalQuestions; + Flow flow; + std::string scenarioUuid; + std::string name; + }; + + + ModifySurveyResult(); + explicit ModifySurveyResult(const std::string &payload); + ~ModifySurveyResult(); + Survey getSurvey()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Survey survey_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSURVEYRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h index 98b71f0d0..982a30cad 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h @@ -35,23 +35,38 @@ namespace AlibabaCloud ModifyUserRequest(); ~ModifyUserRequest(); - std::string getRoleId()const; - void setRoleId(const std::string& roleId); - std::string getMobile()const; - void setMobile(const std::string& mobile); - std::string getWorkMode()const; - void setWorkMode(const std::string& workMode); + std::string getPrivateOutboundNumberId()const; + void setPrivateOutboundNumberId(const std::string& privateOutboundNumberId); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); std::string getUserId()const; void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getPhone()const; + void setPhone(const std::string& phone); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + std::string getEmail()const; + void setEmail(const std::string& email); private: - std::string roleId_; - std::string mobile_; - std::string workMode_; + std::string privateOutboundNumberId_; + std::vector roleId_; std::string userId_; + std::string accessKeyId_; + std::vector skillLevel_; std::string instanceId_; + std::string phone_; + std::string displayName_; + std::vector skillGroupId_; + std::string email_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h index 5c612e529..8ec1130e0 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h @@ -39,18 +39,16 @@ 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/MonitorCallRequest.h b/ccc/include/alibabacloud/ccc/model/MonitorCallRequest.h deleted file mode 100644 index 7f3e3b60b..000000000 --- a/ccc/include/alibabacloud/ccc/model/MonitorCallRequest.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_MONITORCALLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_MONITORCALLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT MonitorCallRequest : public RpcServiceRequest - { - - public: - MonitorCallRequest(); - ~MonitorCallRequest(); - - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getDeviceId()const; - void setDeviceId(const std::string& deviceId); - int getTimeoutSeconds()const; - void setTimeoutSeconds(int timeoutSeconds); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getMonitoredUserId()const; - void setMonitoredUserId(const std::string& monitoredUserId); - - private: - std::string userId_; - std::string deviceId_; - int timeoutSeconds_; - std::string instanceId_; - std::string monitoredUserId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_MONITORCALLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h b/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h deleted file mode 100644 index f75bb2f44..000000000 --- a/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_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 deleted file mode 100644 index 6fc89efee..000000000 --- a/ccc/include/alibabacloud/ccc/model/MuteCallRequest.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_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 deleted file mode 100644 index c0c6bb7b2..000000000 --- a/ccc/include/alibabacloud/ccc/model/MuteCallResult.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_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 new file mode 100644 index 000000000..73f255d78 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.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_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/ListPersonalNumbersOfUserResult.h b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h similarity index 62% rename from ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserResult.h rename to ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h index 80adfbfb2..9a3559332 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPersonalNumbersOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTPERSONALNUMBERSOFUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ #include #include @@ -29,45 +29,48 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListPersonalNumbersOfUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT PickGlobalOutboundNumbersResult : public ServiceResult { public: - struct Data + struct DialNumberPair { - struct PhoneNumber + struct Callee { - bool active; std::string number; - std::string contactFlowId; - std::string instanceId; std::string city; std::string province; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + struct Caller + { + std::string number; + std::string city; + std::string province; + }; + Callee callee; + Caller caller; }; - ListPersonalNumbersOfUserResult(); - explicit ListPersonalNumbersOfUserResult(const std::string &payload); - ~ListPersonalNumbersOfUserResult(); + PickGlobalOutboundNumbersResult(); + explicit PickGlobalOutboundNumbersResult(const std::string &payload); + ~PickGlobalOutboundNumbersResult(); 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_LISTPERSONALNUMBERSOFUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickLocalNumberRequest.h b/ccc/include/alibabacloud/ccc/model/PickLocalNumberRequest.h new file mode 100644 index 000000000..6a06569a5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickLocalNumberRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickLocalNumberRequest : public RpcServiceRequest + { + + public: + PickLocalNumberRequest(); + ~PickLocalNumberRequest(); + + std::string 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/ListOutboundNumbersOfUserResult.h b/ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h similarity index 66% rename from ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h rename to ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h index ff7d4f878..fae3afb58 100644 --- a/ccc/include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/PickLocalNumberResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDNUMBERSOFUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERRESULT_H_ #include #include @@ -29,42 +29,46 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListOutboundNumbersOfUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT PickLocalNumberResult : public ServiceResult { public: struct Data { - struct PhoneNumber + struct Callee { std::string number; std::string city; std::string province; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + struct Caller + { + std::string number; + std::string city; + std::string province; + }; + Callee callee; + Caller caller; }; - ListOutboundNumbersOfUserResult(); - explicit ListOutboundNumbersOfUserResult(const std::string &payload); - ~ListOutboundNumbersOfUserResult(); + PickLocalNumberResult(); + explicit PickLocalNumberResult(const std::string &payload); + ~PickLocalNumberResult(); 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_LISTOUTBOUNDNUMBERSOFUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_PICKLOCALNUMBERRESULT_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 dfdb376ec..68919bee1 100644 --- a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h @@ -37,18 +37,21 @@ 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::string getSkillGroupIdList()const; - void setSkillGroupIdList(const std::string& skillGroupIdList); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); + std::vector getCandidateNumber()const; + void setCandidateNumber(const std::vector& candidateNumber); + std::string getCalleeNumber()const; + void setCalleeNumber(const std::string& calleeNumber); private: int count_; + std::string accessKeyId_; std::string instanceId_; - std::string skillGroupIdList_; - std::string calledNumber_; + std::vector candidateNumber_; + std::string calleeNumber_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h index ab232ac99..1252ad792 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 NumberPair + struct DialNumberPair { struct Callee { @@ -56,16 +56,18 @@ 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/PollUserStatusResult.h b/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h deleted file mode 100644 index 58c3b9a8c..000000000 --- a/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h +++ /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. - */ - -#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 skillGroupId; - std::string associatedData; - 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 deviceId; - std::string breakCode; - bool outboundScenario; - std::string mobile; - std::vector signedSkillGroupIdList; - std::string extension; - std::string userId; - long heartbeat; - std::string workMode; - std::string jobId; - long reserved; - }; - UserContext userContext; - long contextId; - 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/RemoveSkillGroupsFromUserRequest.h b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h similarity index 58% rename from ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserRequest.h rename to ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h index 9d0f75567..88f0d8462 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemoveSkillGroupsFromUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT PublishContactFlowVersionRequest : public RpcServiceRequest { public: - RemoveSkillGroupsFromUserRequest(); - ~RemoveSkillGroupsFromUserRequest(); + PublishContactFlowVersionRequest(); + ~PublishContactFlowVersionRequest(); - 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); - std::string getSkillGroupIdList()const; - void setSkillGroupIdList(const std::string& skillGroupIdList); + std::string getContactFlowVersionId()const; + void setContactFlowVersionId(const std::string& contactFlowVersionId); + bool getUseTianGong()const; + void setUseTianGong(bool useTianGong); private: - std::string userId_; + std::string accessKeyId_; std::string instanceId_; - std::string skillGroupIdList_; + std::string contactFlowVersionId_; + bool useTianGong_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserResult.h b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h similarity index 71% rename from ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserResult.h rename to ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h index 8004c9411..80a31ad27 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveSkillGroupsFromUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVESKILLGROUPSFROMUSERRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT RemoveSkillGroupsFromUserResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT PublishContactFlowVersionResult : public ServiceResult { public: - RemoveSkillGroupsFromUserResult(); - explicit RemoveSkillGroupsFromUserResult(const std::string &payload); - ~RemoveSkillGroupsFromUserResult(); + PublishContactFlowVersionResult(); + explicit PublishContactFlowVersionResult(const std::string &payload); + ~PublishContactFlowVersionResult(); 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_REMOVESKILLGROUPSFROMUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h new file mode 100644 index 000000000..81de5faec --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.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_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupRequest : public RpcServiceRequest + { + + public: + PublishPredictiveJobGroupRequest(); + ~PublishPredictiveJobGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string skillGroupId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h new file mode 100644 index 000000000..63982c551 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.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_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupResult : public ServiceResult + { + public: + + + PublishPredictiveJobGroupResult(); + explicit PublishPredictiveJobGroupResult(const std::string &payload); + ~PublishPredictiveJobGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.h b/ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.h new file mode 100644 index 000000000..92b9cbf2a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishSurveyRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishSurveyRequest : public RpcServiceRequest + { + + public: + PublishSurveyRequest(); + ~PublishSurveyRequest(); + + std::string getSurveyId()const; + void setSurveyId(const std::string& surveyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + + private: + std::string surveyId_; + std::string instanceId_; + std::string scenarioId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishSurveyResult.h b/ccc/include/alibabacloud/ccc/model/PublishSurveyResult.h new file mode 100644 index 000000000..6dca13e09 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishSurveyResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishSurveyResult : public ServiceResult + { + public: + + + PublishSurveyResult(); + explicit PublishSurveyResult(const std::string &payload); + ~PublishSurveyResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHSURVEYRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ReadyForServiceResult.h b/ccc/include/alibabacloud/ccc/model/ReadyForServiceResult.h deleted file mode 100644 index 8b3000e1e..000000000 --- a/ccc/include/alibabacloud/ccc/model/ReadyForServiceResult.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_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/RefreshTokenRequest.h b/ccc/include/alibabacloud/ccc/model/RefreshTokenRequest.h new file mode 100644 index 000000000..c0e102110 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RefreshTokenRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_REFRESHTOKENREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REFRESHTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RefreshTokenRequest : public RpcServiceRequest + { + + public: + RefreshTokenRequest(); + ~RefreshTokenRequest(); + + 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_REFRESHTOKENREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetNumberLocationResult.h b/ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h similarity index 68% rename from ccc/include/alibabacloud/ccc/model/GetNumberLocationResult.h rename to ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h index 7a28d784f..5104ecdd1 100644 --- a/ccc/include/alibabacloud/ccc/model/GetNumberLocationResult.h +++ b/ccc/include/alibabacloud/ccc/model/RefreshTokenResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_H_ #include #include @@ -29,35 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetNumberLocationResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT RefreshTokenResult : public ServiceResult { public: - struct Data + struct Token { - std::string number; - std::string city; - std::string province; + std::string signData; + std::string signature; }; - GetNumberLocationResult(); - explicit GetNumberLocationResult(const std::string &payload); - ~GetNumberLocationResult(); + RefreshTokenResult(); + explicit RefreshTokenResult(const std::string &payload); + ~RefreshTokenResult(); std::string getMessage()const; int getHttpStatusCode()const; - Data getData()const; + Token getToken()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; int httpStatusCode_; - Data data_; + Token token_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETNUMBERLOCATIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_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 deleted file mode 100644 index 1ead1d5df..000000000 --- a/ccc/include/alibabacloud/ccc/model/ReleaseCallRequest.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_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 deleted file mode 100644 index 434a92b9f..000000000 --- a/ccc/include/alibabacloud/ccc/model/ReleaseCallResult.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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/ResetUserPasswordRequest.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h similarity index 63% rename from ccc/include/alibabacloud/ccc/model/ResetUserPasswordRequest.h rename to ccc/include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h index a51d0e02b..9d2c3f802 100644 --- a/ccc/include/alibabacloud/ccc/model/ResetUserPasswordRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_RESETUSERPASSWORDREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_RESETUSERPASSWORDREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ResetUserPasswordRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumberRequest : public RpcServiceRequest { public: - ResetUserPasswordRequest(); - ~ResetUserPasswordRequest(); + RemovePhoneNumberRequest(); + ~RemovePhoneNumberRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getPassword()const; - void setPassword(const std::string& password); 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 userId_; - std::string password_; std::string instanceId_; + std::string phoneNumberId_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_RESETUSERPASSWORDREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.h new file mode 100644 index 000000000..c23aec746 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumberResult.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_REMOVEPHONENUMBERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumberResult : public ServiceResult + { + public: + + + RemovePhoneNumberResult(); + explicit RemovePhoneNumberResult(const std::string &payload); + ~RemovePhoneNumberResult(); + 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_REMOVEPHONENUMBERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h deleted file mode 100644 index d21407d64..000000000 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersFromSkillGroupResult : public ServiceResult - { - public: - - - RemovePhoneNumbersFromSkillGroupResult(); - explicit RemovePhoneNumbersFromSkillGroupResult(const std::string &payload); - ~RemovePhoneNumbersFromSkillGroupResult(); - std::string getMessage()const; - int getHttpStatusCode()const; - std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - int httpStatusCode_; - std::string code_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h index ead9611bb..65ed989c8 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h @@ -35,15 +35,18 @@ namespace AlibabaCloud RemoveUsersFromSkillGroupRequest(); ~RemoveUsersFromSkillGroupRequest(); - std::string getUserIdList()const; - void setUserIdList(const std::string& userIdList); + std::vector getUserId()const; + void setUserId(const std::vector& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSkillGroupId()const; void setSkillGroupId(const std::string& skillGroupId); private: - std::string userIdList_; + std::vector userId_; + std::string accessKeyId_; 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 878a124b2..8461d846c 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); @@ -47,6 +48,7 @@ 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 24b115ac8..c29b4d962 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h @@ -35,14 +35,17 @@ 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 eb3e6c5c1..85f577d26 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/GetLoginDetailsRequest.h b/ccc/include/alibabacloud/ccc/model/RequestLoginInfoRequest.h similarity index 70% rename from ccc/include/alibabacloud/ccc/model/GetLoginDetailsRequest.h rename to ccc/include/alibabacloud/ccc/model/RequestLoginInfoRequest.h index e5d42cbf9..0f8d76b8a 100644 --- a/ccc/include/alibabacloud/ccc/model/GetLoginDetailsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RequestLoginInfoRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetLoginDetailsRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT RequestLoginInfoRequest : public RpcServiceRequest { public: - GetLoginDetailsRequest(); - ~GetLoginDetailsRequest(); + RequestLoginInfoRequest(); + ~RequestLoginInfoRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: - std::string userId_; std::string instanceId_; + std::string userId_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETLOGINDETAILSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h similarity index 57% rename from ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h rename to ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h index f2e1bfe26..14bbe80db 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFORESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFORESULT_H_ #include #include @@ -29,47 +29,52 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListUserLevelsOfSkillGroupResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT RequestLoginInfoResult : public ServiceResult { public: - struct Data + struct LoginInfo { - struct UserSkillLevel + struct Role { - std::string loginName; std::string roleName; - std::string skillGroupName; - int skillLevel; - std::string userId; - std::string displayName; - std::string skillGroupId; + std::string instanceId; + std::string roleDescription; std::string roleId; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector list; + 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; }; - ListUserLevelsOfSkillGroupResult(); - explicit ListUserLevelsOfSkillGroupResult(const std::string &payload); - ~ListUserLevelsOfSkillGroupResult(); + RequestLoginInfoResult(); + explicit RequestLoginInfoResult(const std::string &payload); + ~RequestLoginInfoResult(); + LoginInfo getLoginInfo()const; 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: + LoginInfo loginInfo_; std::string message_; int httpStatusCode_; - Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFORESULT_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 deleted file mode 100644 index 9201d01d5..000000000 --- a/ccc/include/alibabacloud/ccc/model/ResetAgentStateResult.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_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/ResetAgentStateRequest.h b/ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/ResetAgentStateRequest.h rename to ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h index 727442bf5..3671f3533 100644 --- a/ccc/include/alibabacloud/ccc/model/ResetAgentStateRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ResetUserStatusRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATEREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATEREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ResetAgentStateRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT ResetUserStatusRequest : public RpcServiceRequest { public: - ResetAgentStateRequest(); - ~ResetAgentStateRequest(); + ResetUserStatusRequest(); + ~ResetUserStatusRequest(); - 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: - std::string userId_; - std::string deviceId_; std::string instanceId_; + std::vector ramIdList_; + std::string accessKeyId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_RESETAGENTSTATEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_RESETUSERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResetUserStatusResult.h b/ccc/include/alibabacloud/ccc/model/ResetUserStatusResult.h new file mode 100644 index 000000000..b048b65c1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ResetUserStatusResult.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_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 new file mode 100644 index 000000000..fd37fadfb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ResumeJobsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_RESUMEJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RESUMEJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ResumeJobsRequest : public RpcServiceRequest + { + + public: + ResumeJobsRequest(); + ~ResumeJobsRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector 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 new file mode 100644 index 000000000..228542741 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ResumeJobsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_RESUMEJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_RESUMEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ResumeJobsResult : public ServiceResult + { + public: + + + ResumeJobsResult(); + explicit ResumeJobsResult(const std::string &payload); + ~ResumeJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RESUMEJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsRequest.h b/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsRequest.h new file mode 100644 index 000000000..fc5b153d2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsRequest.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_RESUMEPREDICTIVEJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ResumePredictiveJobsRequest : public RpcServiceRequest + { + + public: + ResumePredictiveJobsRequest(); + ~ResumePredictiveJobsRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getJobId()const; + void setJobId(const std::vector& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + bool all_; + std::vector jobId_; + std::string instanceId_; + std::string skillGroupId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h b/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.h new file mode 100644 index 000000000..78dfccfbf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ResumePredictiveJobsResult.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_RESUMEPREDICTIVEJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ResumePredictiveJobsResult : public ServiceResult + { + public: + + + ResumePredictiveJobsResult(); + explicit ResumePredictiveJobsResult(const std::string &payload); + ~ResumePredictiveJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_RESUMEPREDICTIVEJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RetrieveCallRequest.h b/ccc/include/alibabacloud/ccc/model/RetrieveCallRequest.h deleted file mode 100644 index 4dcaa41c7..000000000 --- a/ccc/include/alibabacloud/ccc/model/RetrieveCallRequest.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_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 deleted file mode 100644 index 85f5c0ce4..000000000 --- a/ccc/include/alibabacloud/ccc/model/RetrieveCallResult.h +++ /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. - */ - -#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/SaveRTCStatsV2Request.h b/ccc/include/alibabacloud/ccc/model/SaveRTCStatsV2Request.h deleted file mode 100644 index e994782e8..000000000 --- a/ccc/include/alibabacloud/ccc/model/SaveRTCStatsV2Request.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_SAVERTCSTATSV2REQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_SAVERTCSTATSV2REQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SaveRTCStatsV2Request : public RpcServiceRequest - { - - public: - SaveRTCStatsV2Request(); - ~SaveRTCStatsV2Request(); - - std::string getCallId()const; - void setCallId(const std::string& callId); - std::string getSenderReport()const; - void setSenderReport(const std::string& senderReport); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getReceiverReport()const; - void setReceiverReport(const std::string& receiverReport); - std::string getGoogAddress()const; - void setGoogAddress(const std::string& googAddress); - std::string getGeneralInfo()const; - void setGeneralInfo(const std::string& generalInfo); - - private: - std::string callId_; - std::string senderReport_; - std::string instanceId_; - std::string receiverReport_; - std::string googAddress_; - std::string generalInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SAVERTCSTATSV2REQUEST_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 index c13970750..9a0807c61 100644 --- a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h @@ -37,24 +37,36 @@ namespace AlibabaCloud std::string getCallId()const; void setCallId(const std::string& callId); - std::string getSenderReport()const; - void setSenderReport(const std::string& senderReport); + 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 getReceiverReport()const; - void setReceiverReport(const std::string& receiverReport); - std::string getGoogAddress()const; - void setGoogAddress(const std::string& googAddress); - std::string getGeneralInfo()const; - void setGeneralInfo(const std::string& generalInfo); + 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_; - std::string senderReport_; + long recordTime_; + long callStartTime_; + std::string accessKeyId_; + std::string uid_; std::string instanceId_; - std::string receiverReport_; - std::string googAddress_; - std::string generalInfo_; + std::string stats_; + std::string tenantId_; + std::string calleeNumber_; + std::string callerNumber_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h index d77a60296..8f540d06c 100644 --- a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h +++ b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h @@ -38,21 +38,19 @@ namespace AlibabaCloud explicit SaveWebRTCStatsResult(const std::string &payload); ~SaveWebRTCStatsResult(); std::string getMessage()const; - long getHttpStatusCode()const; + int getHttpStatusCode()const; long getRowCount()const; std::string getCode()const; bool getSuccess()const; - long getTimeStamp()const; protected: void parse(const std::string &payload); private: std::string message_; - long httpStatusCode_; + int httpStatusCode_; long rowCount_; std::string code_; bool success_; - long timeStamp_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/SaveWebRtcInfoResult.h b/ccc/include/alibabacloud/ccc/model/SaveWebRtcInfoResult.h deleted file mode 100644 index e1c0dbdc6..000000000 --- a/ccc/include/alibabacloud/ccc/model/SaveWebRtcInfoResult.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_SAVEWEBRTCINFORESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SaveWebRtcInfoResult : public ServiceResult - { - public: - - - SaveWebRtcInfoResult(); - explicit SaveWebRtcInfoResult(const std::string &payload); - ~SaveWebRtcInfoResult(); - std::string getMessage()const; - long getHttpStatusCode()const; - long getRowCount()const; - std::string getCode()const; - bool getSuccess()const; - long getTimeStamp()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - long httpStatusCode_; - long rowCount_; - std::string code_; - bool success_; - long timeStamp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCINFORESULT_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 deleted file mode 100644 index cb86fbdda..000000000 --- a/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CCC_MODEL_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/AddPersonalNumbersToUserRequest.h b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h similarity index 53% rename from ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserRequest.h rename to ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h index c7087f90d..d79327b27 100644 --- a/ccc/include/alibabacloud/ccc/model/AddPersonalNumbersToUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGEREQUEST_H_ #include #include @@ -28,27 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AddPersonalNumbersToUserRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT SendPredefinedShortMessageRequest : public RpcServiceRequest { public: - AddPersonalNumbersToUserRequest(); - ~AddPersonalNumbersToUserRequest(); + SendPredefinedShortMessageRequest(); + ~SendPredefinedShortMessageRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getNumberList()const; - void setNumberList(const std::string& numberList); + 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 userId_; - std::string numberList_; + std::string phoneNumbers_; + std::string accessKeyId_; std::string instanceId_; + long configId_; + std::string templateParam_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ADDPERSONALNUMBERSTOUSERREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..a994a4cdc --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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 deleted file mode 100644 index 37a494d2a..000000000 --- a/ccc/include/alibabacloud/ccc/model/SignInGroupRequest.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_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/SignInGroupResult.h b/ccc/include/alibabacloud/ccc/model/SignInGroupResult.h deleted file mode 100644 index 0f74f76ea..000000000 --- a/ccc/include/alibabacloud/ccc/model/SignInGroupResult.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_SIGNINGROUPRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_SIGNINGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT SignInGroupResult : 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; - }; - - - 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; - - 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_SIGNINGROUPRESULT_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 deleted file mode 100644 index e066a4714..000000000 --- a/ccc/include/alibabacloud/ccc/model/SignOutGroupResult.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_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 e3217580c..bdc3731ae 100644 --- a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallRequest.h @@ -35,29 +35,26 @@ 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 getBroker()const; - void setBroker(const std::string& broker); - 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 getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getCaller()const; void setCaller(const std::string& caller); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getWorkflowId()const; + void setWorkflowId(const std::string& workflowId); private: + std::string callCenterNumber_; std::string callee_; - std::string broker_; - std::string additionalBroker_; - std::string tags_; - int timeoutSeconds_; + std::string accessKeyId_; 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 131711ae4..57f9b4383 100644 --- a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h @@ -32,71 +32,31 @@ 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/HoldCallRequest.h b/ccc/include/alibabacloud/ccc/model/StartJobRequest.h similarity index 52% rename from ccc/include/alibabacloud/ccc/model/HoldCallRequest.h rename to ccc/include/alibabacloud/ccc/model/StartJobRequest.h index 6107e7922..75a549530 100644 --- a/ccc/include/alibabacloud/ccc/model/HoldCallRequest.h +++ b/ccc/include/alibabacloud/ccc/model/StartJobRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_HOLDCALLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_HOLDCALLREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_STARTJOBREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTJOBREQUEST_H_ #include #include @@ -28,36 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT HoldCallRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT StartJobRequest : public RpcServiceRequest { public: - HoldCallRequest(); - ~HoldCallRequest(); + StartJobRequest(); + ~StartJobRequest(); - 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 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); - std::string getMusic()const; - void setMusic(const std::string& music); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); + bool getSelfHostedCallCenter()const; + void setSelfHostedCallCenter(bool selfHostedCallCenter); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); private: - std::string userId_; - std::string deviceId_; - std::string jobId_; + std::string groupId_; + std::string jobJson_; + std::vector callingNumber_; std::string instanceId_; - std::string music_; - std::string channelId_; + bool selfHostedCallCenter_; + std::string scenarioId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_HOLDCALLREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_STARTJOBREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h b/ccc/include/alibabacloud/ccc/model/StartJobResult.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h rename to ccc/include/alibabacloud/ccc/model/StartJobResult.h index 9ad1977d7..22e8c1627 100644 --- a/ccc/include/alibabacloud/ccc/model/GetMultiChannelRecordingResult.h +++ b/ccc/include/alibabacloud/ccc/model/StartJobResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_STARTJOBRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTJOBRESULT_H_ #include #include @@ -29,34 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT GetMultiChannelRecordingResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT StartJobResult : public ServiceResult { public: - struct Data + struct KeyValuePair { - std::string fileUrl; - std::string fileName; + std::string value; + std::string key; }; - GetMultiChannelRecordingResult(); - explicit GetMultiChannelRecordingResult(const std::string &payload); - ~GetMultiChannelRecordingResult(); + StartJobResult(); + explicit StartJobResult(const std::string &payload); + ~StartJobResult(); + std::vector getTaskIds()const; 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 taskIds_; std::string message_; int httpStatusCode_; - Data data_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_GETMULTICHANNELRECORDINGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_STARTJOBRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/StartPredictiveCallResult.h b/ccc/include/alibabacloud/ccc/model/StartPredictiveCallResult.h deleted file mode 100644 index eea4fd6dd..000000000 --- a/ccc/include/alibabacloud/ccc/model/StartPredictiveCallResult.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_STARTPREDICTIVECALLRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_STARTPREDICTIVECALLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT StartPredictiveCallResult : 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 deviceId; - std::string breakCode; - bool outboundScenario; - std::string mobile; - std::vector signedSkillGroupIdList; - std::string extension; - std::string deviceState; - std::string userId; - long heartbeat; - std::string workMode; - std::string jobId; - long reserved; - }; - UserContext userContext; - CallContext callContext; - }; - - - StartPredictiveCallResult(); - explicit StartPredictiveCallResult(const std::string &payload); - ~StartPredictiveCallResult(); - 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_STARTPREDICTIVECALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h b/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h new file mode 100644 index 000000000..7aa78c8ca --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SubmitBatchJobsRequest : public RpcServiceRequest + { + + public: + SubmitBatchJobsRequest(); + ~SubmitBatchJobsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.h b/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.h new file mode 100644 index 000000000..b83c9f616 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SubmitBatchJobsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SubmitBatchJobsResult : public ServiceResult + { + public: + + + SubmitBatchJobsResult(); + explicit SubmitBatchJobsResult(const std::string &payload); + ~SubmitBatchJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITBATCHJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h new file mode 100644 index 000000000..a4880c744 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.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_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 getEarlyMediaRecording()const; + void setEarlyMediaRecording(const std::string& earlyMediaRecording); + 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 earlyMediaRecording_; + std::string instanceId_; + long instanceOwnerId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h new file mode 100644 index 000000000..2c44ee9a4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.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_SUBMITCABRECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SubmitCabRecordingResult : public ServiceResult + { + public: + + + SubmitCabRecordingResult(); + explicit SubmitCabRecordingResult(const std::string &payload); + ~SubmitCabRecordingResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/BargeInCallRequest.h b/ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.h similarity index 52% rename from ccc/include/alibabacloud/ccc/model/BargeInCallRequest.h rename to ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.h index 67335d24a..3c47ea0fc 100644 --- a/ccc/include/alibabacloud/ccc/model/BargeInCallRequest.h +++ b/ccc/include/alibabacloud/ccc/model/SuspendJobsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_BARGEINCALLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_BARGEINCALLREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSREQUEST_H_ #include #include @@ -28,36 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT BargeInCallRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT SuspendJobsRequest : public RpcServiceRequest { public: - BargeInCallRequest(); - ~BargeInCallRequest(); + SuspendJobsRequest(); + ~SuspendJobsRequest(); - 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); + 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: - std::string userId_; - std::string deviceId_; - std::string bargedUserId_; - std::string jobId_; - int timeoutSeconds_; + bool all_; + std::vector jobReferenceId_; + std::string groupId_; + std::vector jobId_; std::string instanceId_; + std::string scenarioId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_BARGEINCALLREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SuspendJobsResult.h b/ccc/include/alibabacloud/ccc/model/SuspendJobsResult.h new file mode 100644 index 000000000..76017e879 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SuspendJobsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SuspendJobsResult : public ServiceResult + { + public: + + + SuspendJobsResult(); + explicit SuspendJobsResult(const std::string &payload); + ~SuspendJobsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUSPENDJOBSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportRequest.h b/ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsRequest.h similarity index 61% rename from ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportRequest.h rename to ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsRequest.h index 3cf51c330..352e2bcb6 100644 --- a/ccc/include/alibabacloud/ccc/model/ListIntervalSkillGroupReportRequest.h +++ b/ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_SUSPENDPREDICTIVEJOBSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SUSPENDPREDICTIVEJOBSREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListIntervalSkillGroupReportRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT SuspendPredictiveJobsRequest : public RpcServiceRequest { public: - ListIntervalSkillGroupReportRequest(); - ~ListIntervalSkillGroupReportRequest(); + SuspendPredictiveJobsRequest(); + ~SuspendPredictiveJobsRequest(); - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); + 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 getInterval()const; - void setInterval(const std::string& interval); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); private: - long endTime_; - long startTime_; + bool all_; + std::vector jobId_; std::string instanceId_; std::string skillGroupId_; - std::string interval_; + std::string jobGroupId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTINTERVALSKILLGROUPREPORTREQUEST_H_ \ No newline at end of file +#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 new file mode 100644 index 000000000..3ad8da1d6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SuspendPredictiveJobsResult.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_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/TakeBreakRequest.h b/ccc/include/alibabacloud/ccc/model/TakeBreakRequest.h deleted file mode 100644 index c80f82a59..000000000 --- a/ccc/include/alibabacloud/ccc/model/TakeBreakRequest.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_TAKEBREAKREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_TAKEBREAKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CCC - { - namespace Model - { - class ALIBABACLOUD_CCC_EXPORT TakeBreakRequest : public RpcServiceRequest - { - - public: - TakeBreakRequest(); - ~TakeBreakRequest(); - - std::string getCode()const; - void setCode(const std::string& code); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getDeviceId()const; - void setDeviceId(const std::string& deviceId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string code_; - std::string userId_; - std::string deviceId_; - std::string instanceId_; - - }; - } - } -} -#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 deleted file mode 100644 index 651563d82..000000000 --- a/ccc/include/alibabacloud/ccc/model/TakeBreakResult.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_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/AnswerCallRequest.h b/ccc/include/alibabacloud/ccc/model/TaskPreparingRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/AnswerCallRequest.h rename to ccc/include/alibabacloud/ccc/model/TaskPreparingRequest.h index 487b49876..e2f6c7530 100644 --- a/ccc/include/alibabacloud/ccc/model/AnswerCallRequest.h +++ b/ccc/include/alibabacloud/ccc/model/TaskPreparingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_ANSWERCALLREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_ANSWERCALLREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_TASKPREPARINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_TASKPREPARINGREQUEST_H_ #include #include @@ -28,30 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT AnswerCallRequest : public RpcServiceRequest + class ALIBABACLOUD_CCC_EXPORT TaskPreparingRequest : public RpcServiceRequest { public: - AnswerCallRequest(); - ~AnswerCallRequest(); + TaskPreparingRequest(); + ~TaskPreparingRequest(); - 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); + long getInstanceOwnerId()const; + void setInstanceOwnerId(long instanceOwnerId); private: - std::string userId_; - std::string deviceId_; std::string jobId_; std::string instanceId_; + long instanceOwnerId_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_ANSWERCALLREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_TASKPREPARINGREQUEST_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 new file mode 100644 index 000000000..d3a2290ac --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/TaskPreparingResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_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/UnmuteCallResult.h b/ccc/include/alibabacloud/ccc/model/UnmuteCallResult.h deleted file mode 100644 index 1d2b648a5..000000000 --- a/ccc/include/alibabacloud/ccc/model/UnmuteCallResult.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_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 02c14b63e..b602b315c 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::AddNumbersToSkillGroupOutcome CCCClient::addNumbersToSkillGroup(const AddNumbersToSkillGroupRequest &request) const +CCCClient::AbortPredictiveJobsOutcome CCCClient::abortPredictiveJobs(const AbortPredictiveJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddNumbersToSkillGroupOutcome(endpointOutcome.error()); + return AbortPredictiveJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddNumbersToSkillGroupOutcome(AddNumbersToSkillGroupResult(outcome.result())); + return AbortPredictiveJobsOutcome(AbortPredictiveJobsResult(outcome.result())); else - return AddNumbersToSkillGroupOutcome(outcome.error()); + return AbortPredictiveJobsOutcome(outcome.error()); } -void CCCClient::addNumbersToSkillGroupAsync(const AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::abortPredictiveJobsAsync(const AbortPredictiveJobsRequest& request, const AbortPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addNumbersToSkillGroup(request), context); + handler(this, request, abortPredictiveJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddNumbersToSkillGroupOutcomeCallable CCCClient::addNumbersToSkillGroupCallable(const AddNumbersToSkillGroupRequest &request) const +CCCClient::AbortPredictiveJobsOutcomeCallable CCCClient::abortPredictiveJobsCallable(const AbortPredictiveJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addNumbersToSkillGroup(request); + return this->abortPredictiveJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddPersonalNumbersToUserOutcome CCCClient::addPersonalNumbersToUser(const AddPersonalNumbersToUserRequest &request) const +CCCClient::AddAgentDeviceOutcome CCCClient::addAgentDevice(const AddAgentDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddPersonalNumbersToUserOutcome(endpointOutcome.error()); + return AddAgentDeviceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddPersonalNumbersToUserOutcome(AddPersonalNumbersToUserResult(outcome.result())); + return AddAgentDeviceOutcome(AddAgentDeviceResult(outcome.result())); else - return AddPersonalNumbersToUserOutcome(outcome.error()); + return AddAgentDeviceOutcome(outcome.error()); } -void CCCClient::addPersonalNumbersToUserAsync(const AddPersonalNumbersToUserRequest& request, const AddPersonalNumbersToUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addAgentDeviceAsync(const AddAgentDeviceRequest& request, const AddAgentDeviceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addPersonalNumbersToUser(request), context); + handler(this, request, addAgentDevice(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddPersonalNumbersToUserOutcomeCallable CCCClient::addPersonalNumbersToUserCallable(const AddPersonalNumbersToUserRequest &request) const +CCCClient::AddAgentDeviceOutcomeCallable CCCClient::addAgentDeviceCallable(const AddAgentDeviceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addPersonalNumbersToUser(request); + return this->addAgentDevice(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddPhoneNumberToSkillGroupsOutcome CCCClient::addPhoneNumberToSkillGroups(const AddPhoneNumberToSkillGroupsRequest &request) const +CCCClient::AddBulkPhoneNumbersOutcome CCCClient::addBulkPhoneNumbers(const AddBulkPhoneNumbersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddPhoneNumberToSkillGroupsOutcome(endpointOutcome.error()); + return AddBulkPhoneNumbersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddPhoneNumberToSkillGroupsOutcome(AddPhoneNumberToSkillGroupsResult(outcome.result())); + return AddBulkPhoneNumbersOutcome(AddBulkPhoneNumbersResult(outcome.result())); else - return AddPhoneNumberToSkillGroupsOutcome(outcome.error()); + return AddBulkPhoneNumbersOutcome(outcome.error()); } -void CCCClient::addPhoneNumberToSkillGroupsAsync(const AddPhoneNumberToSkillGroupsRequest& request, const AddPhoneNumberToSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addBulkPhoneNumbersAsync(const AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addPhoneNumberToSkillGroups(request), context); + handler(this, request, addBulkPhoneNumbers(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddPhoneNumberToSkillGroupsOutcomeCallable CCCClient::addPhoneNumberToSkillGroupsCallable(const AddPhoneNumberToSkillGroupsRequest &request) const +CCCClient::AddBulkPhoneNumbersOutcomeCallable CCCClient::addBulkPhoneNumbersCallable(const AddBulkPhoneNumbersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addPhoneNumberToSkillGroups(request); + return this->addBulkPhoneNumbers(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddPhoneNumbersOutcome CCCClient::addPhoneNumbers(const AddPhoneNumbersRequest &request) const +CCCClient::AddJobsToPredictiveJobGroupOutcome CCCClient::addJobsToPredictiveJobGroup(const AddJobsToPredictiveJobGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddPhoneNumbersOutcome(endpointOutcome.error()); + return AddJobsToPredictiveJobGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddPhoneNumbersOutcome(AddPhoneNumbersResult(outcome.result())); + return AddJobsToPredictiveJobGroupOutcome(AddJobsToPredictiveJobGroupResult(outcome.result())); else - return AddPhoneNumbersOutcome(outcome.error()); + return AddJobsToPredictiveJobGroupOutcome(outcome.error()); } -void CCCClient::addPhoneNumbersAsync(const AddPhoneNumbersRequest& request, const AddPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addJobsToPredictiveJobGroupAsync(const AddJobsToPredictiveJobGroupRequest& request, const AddJobsToPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addPhoneNumbers(request), context); + handler(this, request, addJobsToPredictiveJobGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddPhoneNumbersOutcomeCallable CCCClient::addPhoneNumbersCallable(const AddPhoneNumbersRequest &request) const +CCCClient::AddJobsToPredictiveJobGroupOutcomeCallable CCCClient::addJobsToPredictiveJobGroupCallable(const AddJobsToPredictiveJobGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addPhoneNumbers(request); + return this->addJobsToPredictiveJobGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddSkillGroupsToUserOutcome CCCClient::addSkillGroupsToUser(const AddSkillGroupsToUserRequest &request) const +CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddSkillGroupsToUserOutcome(endpointOutcome.error()); + return AddPhoneNumberOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddSkillGroupsToUserOutcome(AddSkillGroupsToUserResult(outcome.result())); + return AddPhoneNumberOutcome(AddPhoneNumberResult(outcome.result())); else - return AddSkillGroupsToUserOutcome(outcome.error()); + return AddPhoneNumberOutcome(outcome.error()); } -void CCCClient::addSkillGroupsToUserAsync(const AddSkillGroupsToUserRequest& request, const AddSkillGroupsToUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addPhoneNumberAsync(const AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addSkillGroupsToUser(request), context); + handler(this, request, addPhoneNumber(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddSkillGroupsToUserOutcomeCallable CCCClient::addSkillGroupsToUserCallable(const AddSkillGroupsToUserRequest &request) const +CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const AddPhoneNumberRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addSkillGroupsToUser(request); + return this->addPhoneNumber(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AddUsersToSkillGroupOutcome CCCClient::addUsersToSkillGroup(const AddUsersToSkillGroupRequest &request) const +CCCClient::AddPhoneTagsOutcome CCCClient::addPhoneTags(const AddPhoneTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddUsersToSkillGroupOutcome(endpointOutcome.error()); + return AddPhoneTagsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddUsersToSkillGroupOutcome(AddUsersToSkillGroupResult(outcome.result())); + return AddPhoneTagsOutcome(AddPhoneTagsResult(outcome.result())); else - return AddUsersToSkillGroupOutcome(outcome.error()); + return AddPhoneTagsOutcome(outcome.error()); } -void CCCClient::addUsersToSkillGroupAsync(const AddUsersToSkillGroupRequest& request, const AddUsersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addPhoneTagsAsync(const AddPhoneTagsRequest& request, const AddPhoneTagsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addUsersToSkillGroup(request), context); + handler(this, request, addPhoneTags(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AddUsersToSkillGroupOutcomeCallable CCCClient::addUsersToSkillGroupCallable(const AddUsersToSkillGroupRequest &request) const +CCCClient::AddPhoneTagsOutcomeCallable CCCClient::addPhoneTagsCallable(const AddPhoneTagsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addUsersToSkillGroup(request); + return this->addPhoneTags(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::AnswerCallOutcome CCCClient::answerCall(const AnswerCallRequest &request) const +CCCClient::AssignJobsOutcome CCCClient::assignJobs(const AssignJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AnswerCallOutcome(endpointOutcome.error()); + return AssignJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AnswerCallOutcome(AnswerCallResult(outcome.result())); + return AssignJobsOutcome(AssignJobsResult(outcome.result())); else - return AnswerCallOutcome(outcome.error()); + return AssignJobsOutcome(outcome.error()); } -void CCCClient::answerCallAsync(const AnswerCallRequest& request, const AnswerCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::assignJobsAsync(const AssignJobsRequest& request, const AssignJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, answerCall(request), context); + handler(this, request, assignJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::AnswerCallOutcomeCallable CCCClient::answerCallCallable(const AnswerCallRequest &request) const +CCCClient::AssignJobsOutcomeCallable CCCClient::assignJobsCallable(const AssignJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->answerCall(request); + return this->assignJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -339,216 +339,288 @@ CCCClient::AssignUsersOutcomeCallable CCCClient::assignUsersCallable(const Assig return task->get_future(); } -CCCClient::BargeInCallOutcome CCCClient::bargeInCall(const BargeInCallRequest &request) const +CCCClient::CallOnlinePrivacyNumberOutcome CCCClient::callOnlinePrivacyNumber(const CallOnlinePrivacyNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BargeInCallOutcome(endpointOutcome.error()); + return CallOnlinePrivacyNumberOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BargeInCallOutcome(BargeInCallResult(outcome.result())); + return CallOnlinePrivacyNumberOutcome(CallOnlinePrivacyNumberResult(outcome.result())); else - return BargeInCallOutcome(outcome.error()); + return CallOnlinePrivacyNumberOutcome(outcome.error()); } -void CCCClient::bargeInCallAsync(const BargeInCallRequest& request, const BargeInCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::callOnlinePrivacyNumberAsync(const CallOnlinePrivacyNumberRequest& request, const CallOnlinePrivacyNumberAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, bargeInCall(request), context); + handler(this, request, callOnlinePrivacyNumber(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::BargeInCallOutcomeCallable CCCClient::bargeInCallCallable(const BargeInCallRequest &request) const +CCCClient::CallOnlinePrivacyNumberOutcomeCallable CCCClient::callOnlinePrivacyNumberCallable(const CallOnlinePrivacyNumberRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->bargeInCall(request); + return this->callOnlinePrivacyNumber(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::BlindTransferOutcome CCCClient::blindTransfer(const BlindTransferRequest &request) const +CCCClient::CancelJobsOutcome CCCClient::cancelJobs(const CancelJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BlindTransferOutcome(endpointOutcome.error()); + return CancelJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BlindTransferOutcome(BlindTransferResult(outcome.result())); + return CancelJobsOutcome(CancelJobsResult(outcome.result())); else - return BlindTransferOutcome(outcome.error()); + return CancelJobsOutcome(outcome.error()); } -void CCCClient::blindTransferAsync(const BlindTransferRequest& request, const BlindTransferAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::cancelJobsAsync(const CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, blindTransfer(request), context); + handler(this, request, cancelJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::BlindTransferOutcomeCallable CCCClient::blindTransferCallable(const BlindTransferRequest &request) const +CCCClient::CancelJobsOutcomeCallable CCCClient::cancelJobsCallable(const CancelJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->blindTransfer(request); + return this->cancelJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CancelAttendedTransferOutcome CCCClient::cancelAttendedTransfer(const CancelAttendedTransferRequest &request) const +CCCClient::CheckNumberAvaliableOutcome CCCClient::checkNumberAvaliable(const CheckNumberAvaliableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CancelAttendedTransferOutcome(endpointOutcome.error()); + return CheckNumberAvaliableOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CancelAttendedTransferOutcome(CancelAttendedTransferResult(outcome.result())); + return CheckNumberAvaliableOutcome(CheckNumberAvaliableResult(outcome.result())); else - return CancelAttendedTransferOutcome(outcome.error()); + return CheckNumberAvaliableOutcome(outcome.error()); } -void CCCClient::cancelAttendedTransferAsync(const CancelAttendedTransferRequest& request, const CancelAttendedTransferAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::checkNumberAvaliableAsync(const CheckNumberAvaliableRequest& request, const CheckNumberAvaliableAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, cancelAttendedTransfer(request), context); + handler(this, request, checkNumberAvaliable(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CancelAttendedTransferOutcomeCallable CCCClient::cancelAttendedTransferCallable(const CancelAttendedTransferRequest &request) const +CCCClient::CheckNumberAvaliableOutcomeCallable CCCClient::checkNumberAvaliableCallable(const CheckNumberAvaliableRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->cancelAttendedTransfer(request); + return this->checkNumberAvaliable(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ChangeWorkModeOutcome CCCClient::changeWorkMode(const ChangeWorkModeRequest &request) const +CCCClient::CommitContactFlowVersionModificationOutcome CCCClient::commitContactFlowVersionModification(const CommitContactFlowVersionModificationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ChangeWorkModeOutcome(endpointOutcome.error()); + return CommitContactFlowVersionModificationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ChangeWorkModeOutcome(ChangeWorkModeResult(outcome.result())); + return CommitContactFlowVersionModificationOutcome(CommitContactFlowVersionModificationResult(outcome.result())); else - return ChangeWorkModeOutcome(outcome.error()); + return CommitContactFlowVersionModificationOutcome(outcome.error()); } -void CCCClient::changeWorkModeAsync(const ChangeWorkModeRequest& request, const ChangeWorkModeAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::commitContactFlowVersionModificationAsync(const CommitContactFlowVersionModificationRequest& request, const CommitContactFlowVersionModificationAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, changeWorkMode(request), context); + handler(this, request, commitContactFlowVersionModification(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ChangeWorkModeOutcomeCallable CCCClient::changeWorkModeCallable(const ChangeWorkModeRequest &request) const +CCCClient::CommitContactFlowVersionModificationOutcomeCallable CCCClient::commitContactFlowVersionModificationCallable(const CommitContactFlowVersionModificationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->changeWorkMode(request); + return this->commitContactFlowVersionModification(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CoachCallOutcome CCCClient::coachCall(const CoachCallRequest &request) const +CCCClient::CreateBatchJobsOutcome CCCClient::createBatchJobs(const CreateBatchJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CoachCallOutcome(endpointOutcome.error()); + return CreateBatchJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CoachCallOutcome(CoachCallResult(outcome.result())); + return CreateBatchJobsOutcome(CreateBatchJobsResult(outcome.result())); else - return CoachCallOutcome(outcome.error()); + return CreateBatchJobsOutcome(outcome.error()); } -void CCCClient::coachCallAsync(const CoachCallRequest& request, const CoachCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::createBatchJobsAsync(const CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, coachCall(request), context); + handler(this, request, createBatchJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CoachCallOutcomeCallable CCCClient::coachCallCallable(const CoachCallRequest &request) const +CCCClient::CreateBatchJobsOutcomeCallable CCCClient::createBatchJobsCallable(const CreateBatchJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->coachCall(request); + return this->createBatchJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CompleteAttendedTransferOutcome CCCClient::completeAttendedTransfer(const CompleteAttendedTransferRequest &request) const +CCCClient::CreateCabInstanceOutcome CCCClient::createCabInstance(const CreateCabInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CompleteAttendedTransferOutcome(endpointOutcome.error()); + return CreateCabInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CompleteAttendedTransferOutcome(CompleteAttendedTransferResult(outcome.result())); + return CreateCabInstanceOutcome(CreateCabInstanceResult(outcome.result())); else - return CompleteAttendedTransferOutcome(outcome.error()); + return CreateCabInstanceOutcome(outcome.error()); } -void CCCClient::completeAttendedTransferAsync(const CompleteAttendedTransferRequest& request, const CompleteAttendedTransferAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::createCabInstanceAsync(const CreateCabInstanceRequest& request, const CreateCabInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, completeAttendedTransfer(request), context); + handler(this, request, createCabInstance(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CompleteAttendedTransferOutcomeCallable CCCClient::completeAttendedTransferCallable(const CompleteAttendedTransferRequest &request) const +CCCClient::CreateCabInstanceOutcomeCallable CCCClient::createCabInstanceCallable(const CreateCabInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->completeAttendedTransfer(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)(); })); @@ -591,6 +663,186 @@ CCCClient::CreateInstanceOutcomeCallable CCCClient::createInstanceCallable(const 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); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::CreateSkillGroupOutcome CCCClient::createSkillGroup(const CreateSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +879,42 @@ 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(); @@ -663,6 +951,186 @@ 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(); @@ -699,108 +1167,612 @@ CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(c return task->get_future(); } -CCCClient::GetCallDetailRecordOutcome CCCClient::getCallDetailRecord(const GetCallDetailRecordRequest &request) const +CCCClient::DeleteSurveyOutcome CCCClient::deleteSurvey(const DeleteSurveyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetCallDetailRecordOutcome(endpointOutcome.error()); + return DeleteSurveyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetCallDetailRecordOutcome(GetCallDetailRecordResult(outcome.result())); + return DeleteSurveyOutcome(DeleteSurveyResult(outcome.result())); else - return GetCallDetailRecordOutcome(outcome.error()); + return DeleteSurveyOutcome(outcome.error()); } -void CCCClient::getCallDetailRecordAsync(const GetCallDetailRecordRequest& request, const GetCallDetailRecordAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::deleteSurveyAsync(const DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getCallDetailRecord(request), context); + handler(this, request, deleteSurvey(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetCallDetailRecordOutcomeCallable CCCClient::getCallDetailRecordCallable(const GetCallDetailRecordRequest &request) const +CCCClient::DeleteSurveyOutcomeCallable CCCClient::deleteSurveyCallable(const DeleteSurveyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getCallDetailRecord(request); + return this->deleteSurvey(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetHistoricalCallerReportOutcome CCCClient::getHistoricalCallerReport(const GetHistoricalCallerReportRequest &request) const +CCCClient::DialExOutcome CCCClient::dialEx(const DialExRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetHistoricalCallerReportOutcome(endpointOutcome.error()); + return DialExOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetHistoricalCallerReportOutcome(GetHistoricalCallerReportResult(outcome.result())); + return DialExOutcome(DialExResult(outcome.result())); else - return GetHistoricalCallerReportOutcome(outcome.error()); + return DialExOutcome(outcome.error()); } -void CCCClient::getHistoricalCallerReportAsync(const GetHistoricalCallerReportRequest& request, const GetHistoricalCallerReportAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::dialExAsync(const DialExRequest& request, const DialExAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getHistoricalCallerReport(request), context); + handler(this, request, dialEx(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetHistoricalCallerReportOutcomeCallable CCCClient::getHistoricalCallerReportCallable(const GetHistoricalCallerReportRequest &request) const +CCCClient::DialExOutcomeCallable CCCClient::dialExCallable(const DialExRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getHistoricalCallerReport(request); + return this->dialEx(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetHistoricalInstanceReportOutcome CCCClient::getHistoricalInstanceReport(const GetHistoricalInstanceReportRequest &request) const +CCCClient::DialogueOutcome CCCClient::dialogue(const DialogueRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetHistoricalInstanceReportOutcome(endpointOutcome.error()); + return DialogueOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetHistoricalInstanceReportOutcome(GetHistoricalInstanceReportResult(outcome.result())); + return DialogueOutcome(DialogueResult(outcome.result())); else - return GetHistoricalInstanceReportOutcome(outcome.error()); + return DialogueOutcome(outcome.error()); } -void CCCClient::getHistoricalInstanceReportAsync(const GetHistoricalInstanceReportRequest& request, const GetHistoricalInstanceReportAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::dialogueAsync(const DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getHistoricalInstanceReport(request), context); + handler(this, request, dialogue(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetHistoricalInstanceReportOutcomeCallable CCCClient::getHistoricalInstanceReportCallable(const GetHistoricalInstanceReportRequest &request) const +CCCClient::DialogueOutcomeCallable CCCClient::dialogueCallable(const DialogueRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getHistoricalInstanceReport(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); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -843,288 +1815,828 @@ CCCClient::GetInstanceOutcomeCallable CCCClient::getInstanceCallable(const GetIn return task->get_future(); } -CCCClient::GetInstanceTrendingReportOutcome CCCClient::getInstanceTrendingReport(const GetInstanceTrendingReportRequest &request) const +CCCClient::GetInstanceStateOutcome CCCClient::getInstanceState(const GetInstanceStateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetInstanceTrendingReportOutcome(endpointOutcome.error()); + return GetInstanceStateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetInstanceTrendingReportOutcome(GetInstanceTrendingReportResult(outcome.result())); + return GetInstanceStateOutcome(GetInstanceStateResult(outcome.result())); else - return GetInstanceTrendingReportOutcome(outcome.error()); + return GetInstanceStateOutcome(outcome.error()); } -void CCCClient::getInstanceTrendingReportAsync(const GetInstanceTrendingReportRequest& request, const GetInstanceTrendingReportAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getInstanceStateAsync(const GetInstanceStateRequest& request, const GetInstanceStateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getInstanceTrendingReport(request), context); + handler(this, request, getInstanceState(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetInstanceTrendingReportOutcomeCallable CCCClient::getInstanceTrendingReportCallable(const GetInstanceTrendingReportRequest &request) const +CCCClient::GetInstanceStateOutcomeCallable CCCClient::getInstanceStateCallable(const GetInstanceStateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getInstanceTrendingReport(request); + return this->getInstanceState(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetLoginDetailsOutcome CCCClient::getLoginDetails(const GetLoginDetailsRequest &request) const +CCCClient::GetInstanceSummaryReportOutcome CCCClient::getInstanceSummaryReport(const GetInstanceSummaryReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetLoginDetailsOutcome(endpointOutcome.error()); + return GetInstanceSummaryReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetLoginDetailsOutcome(GetLoginDetailsResult(outcome.result())); + return GetInstanceSummaryReportOutcome(GetInstanceSummaryReportResult(outcome.result())); else - return GetLoginDetailsOutcome(outcome.error()); + return GetInstanceSummaryReportOutcome(outcome.error()); } -void CCCClient::getLoginDetailsAsync(const GetLoginDetailsRequest& request, const GetLoginDetailsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getInstanceSummaryReportAsync(const GetInstanceSummaryReportRequest& request, const GetInstanceSummaryReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getLoginDetails(request), context); + handler(this, request, getInstanceSummaryReport(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetLoginDetailsOutcomeCallable CCCClient::getLoginDetailsCallable(const GetLoginDetailsRequest &request) const +CCCClient::GetInstanceSummaryReportOutcomeCallable CCCClient::getInstanceSummaryReportCallable(const GetInstanceSummaryReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getLoginDetails(request); + return this->getInstanceSummaryReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetMonoRecordingOutcome CCCClient::getMonoRecording(const GetMonoRecordingRequest &request) const +CCCClient::GetInstanceSummaryReportByIntervalOutcome CCCClient::getInstanceSummaryReportByInterval(const GetInstanceSummaryReportByIntervalRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetMonoRecordingOutcome(endpointOutcome.error()); + return GetInstanceSummaryReportByIntervalOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetMonoRecordingOutcome(GetMonoRecordingResult(outcome.result())); + return GetInstanceSummaryReportByIntervalOutcome(GetInstanceSummaryReportByIntervalResult(outcome.result())); else - return GetMonoRecordingOutcome(outcome.error()); + return GetInstanceSummaryReportByIntervalOutcome(outcome.error()); } -void CCCClient::getMonoRecordingAsync(const GetMonoRecordingRequest& request, const GetMonoRecordingAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getInstanceSummaryReportByIntervalAsync(const GetInstanceSummaryReportByIntervalRequest& request, const GetInstanceSummaryReportByIntervalAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getMonoRecording(request), context); + handler(this, request, getInstanceSummaryReportByInterval(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetMonoRecordingOutcomeCallable CCCClient::getMonoRecordingCallable(const GetMonoRecordingRequest &request) const +CCCClient::GetInstanceSummaryReportByIntervalOutcomeCallable CCCClient::getInstanceSummaryReportByIntervalCallable(const GetInstanceSummaryReportByIntervalRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getMonoRecording(request); + return this->getInstanceSummaryReportByInterval(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetMultiChannelRecordingOutcome CCCClient::getMultiChannelRecording(const GetMultiChannelRecordingRequest &request) const +CCCClient::GetInstanceSummaryReportSinceMidnightOutcome CCCClient::getInstanceSummaryReportSinceMidnight(const GetInstanceSummaryReportSinceMidnightRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetMultiChannelRecordingOutcome(endpointOutcome.error()); + return GetInstanceSummaryReportSinceMidnightOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetMultiChannelRecordingOutcome(GetMultiChannelRecordingResult(outcome.result())); + return GetInstanceSummaryReportSinceMidnightOutcome(GetInstanceSummaryReportSinceMidnightResult(outcome.result())); else - return GetMultiChannelRecordingOutcome(outcome.error()); + return GetInstanceSummaryReportSinceMidnightOutcome(outcome.error()); } -void CCCClient::getMultiChannelRecordingAsync(const GetMultiChannelRecordingRequest& request, const GetMultiChannelRecordingAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getInstanceSummaryReportSinceMidnightAsync(const GetInstanceSummaryReportSinceMidnightRequest& request, const GetInstanceSummaryReportSinceMidnightAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getMultiChannelRecording(request), context); + handler(this, request, getInstanceSummaryReportSinceMidnight(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetMultiChannelRecordingOutcomeCallable CCCClient::getMultiChannelRecordingCallable(const GetMultiChannelRecordingRequest &request) const +CCCClient::GetInstanceSummaryReportSinceMidnightOutcomeCallable CCCClient::getInstanceSummaryReportSinceMidnightCallable(const GetInstanceSummaryReportSinceMidnightRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getMultiChannelRecording(request); + return this->getInstanceSummaryReportSinceMidnight(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetNumberLocationOutcome CCCClient::getNumberLocation(const GetNumberLocationRequest &request) const +CCCClient::GetJobOutcome CCCClient::getJob(const GetJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetNumberLocationOutcome(endpointOutcome.error()); + return GetJobOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetNumberLocationOutcome(GetNumberLocationResult(outcome.result())); + return GetJobOutcome(GetJobResult(outcome.result())); else - return GetNumberLocationOutcome(outcome.error()); + return GetJobOutcome(outcome.error()); } -void CCCClient::getNumberLocationAsync(const GetNumberLocationRequest& request, const GetNumberLocationAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getJobAsync(const GetJobRequest& request, const GetJobAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getNumberLocation(request), context); + handler(this, request, getJob(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetNumberLocationOutcomeCallable CCCClient::getNumberLocationCallable(const GetNumberLocationRequest &request) const +CCCClient::GetJobOutcomeCallable CCCClient::getJobCallable(const GetJobRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getNumberLocation(request); + return this->getJob(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetRealtimeInstanceStatesOutcome CCCClient::getRealtimeInstanceStates(const GetRealtimeInstanceStatesRequest &request) const +CCCClient::GetJobDataUploadParamsOutcome CCCClient::getJobDataUploadParams(const GetJobDataUploadParamsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetRealtimeInstanceStatesOutcome(endpointOutcome.error()); + return GetJobDataUploadParamsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetRealtimeInstanceStatesOutcome(GetRealtimeInstanceStatesResult(outcome.result())); + return GetJobDataUploadParamsOutcome(GetJobDataUploadParamsResult(outcome.result())); else - return GetRealtimeInstanceStatesOutcome(outcome.error()); + return GetJobDataUploadParamsOutcome(outcome.error()); } -void CCCClient::getRealtimeInstanceStatesAsync(const GetRealtimeInstanceStatesRequest& request, const GetRealtimeInstanceStatesAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getJobDataUploadParamsAsync(const GetJobDataUploadParamsRequest& request, const GetJobDataUploadParamsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getRealtimeInstanceStates(request), context); + handler(this, request, getJobDataUploadParams(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetRealtimeInstanceStatesOutcomeCallable CCCClient::getRealtimeInstanceStatesCallable(const GetRealtimeInstanceStatesRequest &request) const +CCCClient::GetJobDataUploadParamsOutcomeCallable CCCClient::getJobDataUploadParamsCallable(const GetJobDataUploadParamsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getRealtimeInstanceStates(request); + return this->getJobDataUploadParams(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetTurnCredentialsOutcome CCCClient::getTurnCredentials(const GetTurnCredentialsRequest &request) const +CCCClient::GetJobFileUploadUrlOutcome CCCClient::getJobFileUploadUrl(const GetJobFileUploadUrlRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetTurnCredentialsOutcome(endpointOutcome.error()); + return GetJobFileUploadUrlOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetTurnCredentialsOutcome(GetTurnCredentialsResult(outcome.result())); + return GetJobFileUploadUrlOutcome(GetJobFileUploadUrlResult(outcome.result())); else - return GetTurnCredentialsOutcome(outcome.error()); + return GetJobFileUploadUrlOutcome(outcome.error()); } -void CCCClient::getTurnCredentialsAsync(const GetTurnCredentialsRequest& request, const GetTurnCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getJobFileUploadUrlAsync(const GetJobFileUploadUrlRequest& request, const GetJobFileUploadUrlAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getTurnCredentials(request), context); + handler(this, request, getJobFileUploadUrl(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetTurnCredentialsOutcomeCallable CCCClient::getTurnCredentialsCallable(const GetTurnCredentialsRequest &request) const +CCCClient::GetJobFileUploadUrlOutcomeCallable CCCClient::getJobFileUploadUrlCallable(const GetJobFileUploadUrlRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getTurnCredentials(request); + return this->getJobFileUploadUrl(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetTurnServerListOutcome CCCClient::getTurnServerList(const GetTurnServerListRequest &request) const +CCCClient::GetJobGroupOutcome CCCClient::getJobGroup(const GetJobGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetTurnServerListOutcome(endpointOutcome.error()); + return GetJobGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetTurnServerListOutcome(GetTurnServerListResult(outcome.result())); + return GetJobGroupOutcome(GetJobGroupResult(outcome.result())); else - return GetTurnServerListOutcome(outcome.error()); + return GetJobGroupOutcome(outcome.error()); } -void CCCClient::getTurnServerListAsync(const GetTurnServerListRequest& request, const GetTurnServerListAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getJobGroupAsync(const GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getTurnServerList(request), context); + handler(this, request, getJobGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetTurnServerListOutcomeCallable CCCClient::getTurnServerListCallable(const GetTurnServerListRequest &request) const +CCCClient::GetJobGroupOutcomeCallable CCCClient::getJobGroupCallable(const GetJobGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getTurnServerList(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::GetPredictiveJobGroupOutcome CCCClient::getPredictiveJobGroup(const GetPredictiveJobGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPredictiveJobGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPredictiveJobGroupOutcome(GetPredictiveJobGroupResult(outcome.result())); + else + return GetPredictiveJobGroupOutcome(outcome.error()); +} + +void CCCClient::getPredictiveJobGroupAsync(const GetPredictiveJobGroupRequest& request, const GetPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPredictiveJobGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetPredictiveJobGroupOutcomeCallable CCCClient::getPredictiveJobGroupCallable(const GetPredictiveJobGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPredictiveJobGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetPredictiveTaskDataOutcome CCCClient::getPredictiveTaskData(const GetPredictiveTaskDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPredictiveTaskDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPredictiveTaskDataOutcome(GetPredictiveTaskDataResult(outcome.result())); + else + return GetPredictiveTaskDataOutcome(outcome.error()); +} + +void CCCClient::getPredictiveTaskDataAsync(const GetPredictiveTaskDataRequest& request, const GetPredictiveTaskDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPredictiveTaskData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetPredictiveTaskDataOutcomeCallable CCCClient::getPredictiveTaskDataCallable(const GetPredictiveTaskDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPredictiveTaskData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetRecordOssUploadParamOutcome CCCClient::getRecordOssUploadParam(const GetRecordOssUploadParamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRecordOssUploadParamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRecordOssUploadParamOutcome(GetRecordOssUploadParamResult(outcome.result())); + else + return GetRecordOssUploadParamOutcome(outcome.error()); +} + +void CCCClient::getRecordOssUploadParamAsync(const GetRecordOssUploadParamRequest& request, const GetRecordOssUploadParamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRecordOssUploadParam(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetRecordOssUploadParamOutcomeCallable CCCClient::getRecordOssUploadParamCallable(const GetRecordOssUploadParamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRecordOssUploadParam(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetRoutePointOutcome CCCClient::getRoutePoint(const GetRoutePointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRoutePointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRoutePointOutcome(GetRoutePointResult(outcome.result())); + else + return GetRoutePointOutcome(outcome.error()); +} + +void CCCClient::getRoutePointAsync(const GetRoutePointRequest& request, const GetRoutePointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRoutePoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetRoutePointOutcomeCallable CCCClient::getRoutePointCallable(const GetRoutePointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRoutePoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetScenarioOutcome CCCClient::getScenario(const GetScenarioRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetScenarioOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetScenarioOutcome(GetScenarioResult(outcome.result())); + else + return GetScenarioOutcome(outcome.error()); +} + +void CCCClient::getScenarioAsync(const GetScenarioRequest& request, const GetScenarioAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getScenario(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetScenarioOutcomeCallable CCCClient::getScenarioCallable(const GetScenarioRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getScenario(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetServiceExtensionsOutcome CCCClient::getServiceExtensions(const GetServiceExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceExtensionsOutcome(GetServiceExtensionsResult(outcome.result())); + else + return GetServiceExtensionsOutcome(outcome.error()); +} + +void CCCClient::getServiceExtensionsAsync(const GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetServiceExtensionsOutcomeCallable CCCClient::getServiceExtensionsCallable(const GetServiceExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetSmsConfigOutcome CCCClient::getSmsConfig(const GetSmsConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSmsConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSmsConfigOutcome(GetSmsConfigResult(outcome.result())); + else + return GetSmsConfigOutcome(outcome.error()); +} + +void CCCClient::getSmsConfigAsync(const GetSmsConfigRequest& request, const GetSmsConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSmsConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetSmsConfigOutcomeCallable CCCClient::getSmsConfigCallable(const GetSmsConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSmsConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetSurveyOutcome CCCClient::getSurvey(const GetSurveyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSurveyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSurveyOutcome(GetSurveyResult(outcome.result())); + else + return GetSurveyOutcome(outcome.error()); +} + +void CCCClient::getSurveyAsync(const GetSurveyRequest& request, const GetSurveyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSurvey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetSurveyOutcomeCallable CCCClient::getSurveyCallable(const GetSurveyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSurvey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetTURNCredentialsOutcome CCCClient::getTURNCredentials(const GetTURNCredentialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTURNCredentialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTURNCredentialsOutcome(GetTURNCredentialsResult(outcome.result())); + else + return GetTURNCredentialsOutcome(outcome.error()); +} + +void CCCClient::getTURNCredentialsAsync(const GetTURNCredentialsRequest& request, const GetTURNCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTURNCredentials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetTURNCredentialsOutcomeCallable CCCClient::getTURNCredentialsCallable(const GetTURNCredentialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTURNCredentials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetTURNServerListOutcome CCCClient::getTURNServerList(const GetTURNServerListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTURNServerListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTURNServerListOutcome(GetTURNServerListResult(outcome.result())); + else + return GetTURNServerListOutcome(outcome.error()); +} + +void CCCClient::getTURNServerListAsync(const GetTURNServerListRequest& request, const GetTURNServerListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTURNServerList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetTURNServerListOutcomeCallable CCCClient::getTURNServerListCallable(const GetTURNServerListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTURNServerList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetTaskListOutcome CCCClient::getTaskList(const GetTaskListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskListOutcome(GetTaskListResult(outcome.result())); + else + return GetTaskListOutcome(outcome.error()); +} + +void CCCClient::getTaskListAsync(const GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetTaskListOutcomeCallable CCCClient::getTaskListCallable(const GetTaskListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1167,180 +2679,216 @@ CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserReques return task->get_future(); } -CCCClient::HoldCallOutcome CCCClient::holdCall(const HoldCallRequest &request) const +CCCClient::GetUserByExtensionOutcome CCCClient::getUserByExtension(const GetUserByExtensionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return HoldCallOutcome(endpointOutcome.error()); + return GetUserByExtensionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return HoldCallOutcome(HoldCallResult(outcome.result())); + return GetUserByExtensionOutcome(GetUserByExtensionResult(outcome.result())); else - return HoldCallOutcome(outcome.error()); + return GetUserByExtensionOutcome(outcome.error()); } -void CCCClient::holdCallAsync(const HoldCallRequest& request, const HoldCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getUserByExtensionAsync(const GetUserByExtensionRequest& request, const GetUserByExtensionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, holdCall(request), context); + handler(this, request, getUserByExtension(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::HoldCallOutcomeCallable CCCClient::holdCallCallable(const HoldCallRequest &request) const +CCCClient::GetUserByExtensionOutcomeCallable CCCClient::getUserByExtensionCallable(const GetUserByExtensionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->holdCall(request); + return this->getUserByExtension(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::InitiateAttendedTransferOutcome CCCClient::initiateAttendedTransfer(const InitiateAttendedTransferRequest &request) const +CCCClient::InflightTaskTimeoutOutcome CCCClient::inflightTaskTimeout(const InflightTaskTimeoutRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return InitiateAttendedTransferOutcome(endpointOutcome.error()); + return InflightTaskTimeoutOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return InitiateAttendedTransferOutcome(InitiateAttendedTransferResult(outcome.result())); + return InflightTaskTimeoutOutcome(InflightTaskTimeoutResult(outcome.result())); else - return InitiateAttendedTransferOutcome(outcome.error()); + return InflightTaskTimeoutOutcome(outcome.error()); } -void CCCClient::initiateAttendedTransferAsync(const InitiateAttendedTransferRequest& request, const InitiateAttendedTransferAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::inflightTaskTimeoutAsync(const InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, initiateAttendedTransfer(request), context); + handler(this, request, inflightTaskTimeout(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::InitiateAttendedTransferOutcomeCallable CCCClient::initiateAttendedTransferCallable(const InitiateAttendedTransferRequest &request) const +CCCClient::InflightTaskTimeoutOutcomeCallable CCCClient::inflightTaskTimeoutCallable(const InflightTaskTimeoutRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->initiateAttendedTransfer(request); + return this->inflightTaskTimeout(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::InterceptCallOutcome CCCClient::interceptCall(const InterceptCallRequest &request) const +CCCClient::LaunchAppraiseOutcome CCCClient::launchAppraise(const LaunchAppraiseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return InterceptCallOutcome(endpointOutcome.error()); + return LaunchAppraiseOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return InterceptCallOutcome(InterceptCallResult(outcome.result())); + return LaunchAppraiseOutcome(LaunchAppraiseResult(outcome.result())); else - return InterceptCallOutcome(outcome.error()); + return LaunchAppraiseOutcome(outcome.error()); } -void CCCClient::interceptCallAsync(const InterceptCallRequest& request, const InterceptCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::launchAppraiseAsync(const LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, interceptCall(request), context); + handler(this, request, launchAppraise(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::InterceptCallOutcomeCallable CCCClient::interceptCallCallable(const InterceptCallRequest &request) const +CCCClient::LaunchAppraiseOutcomeCallable CCCClient::launchAppraiseCallable(const LaunchAppraiseRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->interceptCall(request); + return this->launchAppraise(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::LaunchAuthenticationOutcome CCCClient::launchAuthentication(const LaunchAuthenticationRequest &request) const +CCCClient::LaunchShortMessageAppraiseOutcome CCCClient::launchShortMessageAppraise(const LaunchShortMessageAppraiseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return LaunchAuthenticationOutcome(endpointOutcome.error()); + return LaunchShortMessageAppraiseOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return LaunchAuthenticationOutcome(LaunchAuthenticationResult(outcome.result())); + return LaunchShortMessageAppraiseOutcome(LaunchShortMessageAppraiseResult(outcome.result())); else - return LaunchAuthenticationOutcome(outcome.error()); + return LaunchShortMessageAppraiseOutcome(outcome.error()); } -void CCCClient::launchAuthenticationAsync(const LaunchAuthenticationRequest& request, const LaunchAuthenticationAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::launchShortMessageAppraiseAsync(const LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, launchAuthentication(request), context); + handler(this, request, launchShortMessageAppraise(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::LaunchAuthenticationOutcomeCallable CCCClient::launchAuthenticationCallable(const LaunchAuthenticationRequest &request) const +CCCClient::LaunchShortMessageAppraiseOutcomeCallable CCCClient::launchShortMessageAppraiseCallable(const LaunchShortMessageAppraiseRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->launchAuthentication(request); + return this->launchShortMessageAppraise(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::LaunchSurveyOutcome CCCClient::launchSurvey(const LaunchSurveyRequest &request) const +CCCClient::ListAgentDevicesOutcome CCCClient::listAgentDevices(const ListAgentDevicesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return LaunchSurveyOutcome(endpointOutcome.error()); + return ListAgentDevicesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return LaunchSurveyOutcome(LaunchSurveyResult(outcome.result())); + return ListAgentDevicesOutcome(ListAgentDevicesResult(outcome.result())); else - return LaunchSurveyOutcome(outcome.error()); + return ListAgentDevicesOutcome(outcome.error()); } -void CCCClient::launchSurveyAsync(const LaunchSurveyRequest& request, const LaunchSurveyAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listAgentDevicesAsync(const ListAgentDevicesRequest& request, const ListAgentDevicesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, launchSurvey(request), context); + handler(this, request, listAgentDevices(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::LaunchSurveyOutcomeCallable CCCClient::launchSurveyCallable(const LaunchSurveyRequest &request) const +CCCClient::ListAgentDevicesOutcomeCallable CCCClient::listAgentDevicesCallable(const ListAgentDevicesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->launchSurvey(request); + return this->listAgentDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListAgentEventsOutcome CCCClient::listAgentEvents(const ListAgentEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentEventsOutcome(ListAgentEventsResult(outcome.result())); + else + return ListAgentEventsOutcome(outcome.error()); +} + +void CCCClient::listAgentEventsAsync(const ListAgentEventsRequest& request, const ListAgentEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListAgentEventsOutcomeCallable CCCClient::listAgentEventsCallable(const ListAgentEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentEvents(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1383,36 +2931,180 @@ CCCClient::ListAgentStateLogsOutcomeCallable CCCClient::listAgentStateLogsCallab return task->get_future(); } -CCCClient::ListBriefSkillGroupsOutcome CCCClient::listBriefSkillGroups(const ListBriefSkillGroupsRequest &request) const +CCCClient::ListAgentStatesOutcome CCCClient::listAgentStates(const ListAgentStatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListBriefSkillGroupsOutcome(endpointOutcome.error()); + return ListAgentStatesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListBriefSkillGroupsOutcome(ListBriefSkillGroupsResult(outcome.result())); + return ListAgentStatesOutcome(ListAgentStatesResult(outcome.result())); else - return ListBriefSkillGroupsOutcome(outcome.error()); + return ListAgentStatesOutcome(outcome.error()); } -void CCCClient::listBriefSkillGroupsAsync(const ListBriefSkillGroupsRequest& request, const ListBriefSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listAgentStatesAsync(const ListAgentStatesRequest& request, const ListAgentStatesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listBriefSkillGroups(request), context); + handler(this, request, listAgentStates(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListBriefSkillGroupsOutcomeCallable CCCClient::listBriefSkillGroupsCallable(const ListBriefSkillGroupsRequest &request) const +CCCClient::ListAgentStatesOutcomeCallable CCCClient::listAgentStatesCallable(const ListAgentStatesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listBriefSkillGroups(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); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1455,36 +3147,108 @@ CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecords return task->get_future(); } -CCCClient::ListConfigItemsOutcome CCCClient::listConfigItems(const ListConfigItemsRequest &request) const +CCCClient::ListCallEventDetailByContactIdOutcome CCCClient::listCallEventDetailByContactId(const ListCallEventDetailByContactIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListConfigItemsOutcome(endpointOutcome.error()); + return ListCallEventDetailByContactIdOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListConfigItemsOutcome(ListConfigItemsResult(outcome.result())); + return ListCallEventDetailByContactIdOutcome(ListCallEventDetailByContactIdResult(outcome.result())); else - return ListConfigItemsOutcome(outcome.error()); + return ListCallEventDetailByContactIdOutcome(outcome.error()); } -void CCCClient::listConfigItemsAsync(const ListConfigItemsRequest& request, const ListConfigItemsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listCallEventDetailByContactIdAsync(const ListCallEventDetailByContactIdRequest& request, const ListCallEventDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listConfigItems(request), context); + handler(this, request, listCallEventDetailByContactId(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListConfigItemsOutcomeCallable CCCClient::listConfigItemsCallable(const ListConfigItemsRequest &request) const +CCCClient::ListCallEventDetailByContactIdOutcomeCallable CCCClient::listCallEventDetailByContactIdCallable(const ListCallEventDetailByContactIdRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listConfigItems(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); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1527,150 +3291,6 @@ 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::ListInstancesOutcome CCCClient::listInstances(const ListInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListInstancesOutcome(ListInstancesResult(outcome.result())); - else - return ListInstancesOutcome(outcome.error()); -} - -void CCCClient::listInstancesAsync(const ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListInstancesOutcomeCallable CCCClient::listInstancesCallable(const ListInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CCCClient::ListInstancesOfUserOutcome CCCClient::listInstancesOfUser(const ListInstancesOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,216 +3327,216 @@ CCCClient::ListInstancesOfUserOutcomeCallable CCCClient::listInstancesOfUserCall return task->get_future(); } -CCCClient::ListIntervalAgentReportOutcome CCCClient::listIntervalAgentReport(const ListIntervalAgentReportRequest &request) const +CCCClient::ListIvrTrackingDetailOutcome CCCClient::listIvrTrackingDetail(const ListIvrTrackingDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListIntervalAgentReportOutcome(endpointOutcome.error()); + return ListIvrTrackingDetailOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListIntervalAgentReportOutcome(ListIntervalAgentReportResult(outcome.result())); + return ListIvrTrackingDetailOutcome(ListIvrTrackingDetailResult(outcome.result())); else - return ListIntervalAgentReportOutcome(outcome.error()); + return ListIvrTrackingDetailOutcome(outcome.error()); } -void CCCClient::listIntervalAgentReportAsync(const ListIntervalAgentReportRequest& request, const ListIntervalAgentReportAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listIvrTrackingDetailAsync(const ListIvrTrackingDetailRequest& request, const ListIvrTrackingDetailAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listIntervalAgentReport(request), context); + handler(this, request, listIvrTrackingDetail(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListIntervalAgentReportOutcomeCallable CCCClient::listIntervalAgentReportCallable(const ListIntervalAgentReportRequest &request) const +CCCClient::ListIvrTrackingDetailOutcomeCallable CCCClient::listIvrTrackingDetailCallable(const ListIvrTrackingDetailRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listIntervalAgentReport(request); + return this->listIvrTrackingDetail(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListIntervalInstanceReportOutcome CCCClient::listIntervalInstanceReport(const ListIntervalInstanceReportRequest &request) const +CCCClient::ListJobGroupsOutcome CCCClient::listJobGroups(const ListJobGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListIntervalInstanceReportOutcome(endpointOutcome.error()); + return ListJobGroupsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListIntervalInstanceReportOutcome(ListIntervalInstanceReportResult(outcome.result())); + return ListJobGroupsOutcome(ListJobGroupsResult(outcome.result())); else - return ListIntervalInstanceReportOutcome(outcome.error()); + return ListJobGroupsOutcome(outcome.error()); } -void CCCClient::listIntervalInstanceReportAsync(const ListIntervalInstanceReportRequest& request, const ListIntervalInstanceReportAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listJobGroupsAsync(const ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listIntervalInstanceReport(request), context); + handler(this, request, listJobGroups(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListIntervalInstanceReportOutcomeCallable CCCClient::listIntervalInstanceReportCallable(const ListIntervalInstanceReportRequest &request) const +CCCClient::ListJobGroupsOutcomeCallable CCCClient::listJobGroupsCallable(const ListJobGroupsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listIntervalInstanceReport(request); + return this->listJobGroups(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListIntervalSkillGroupReportOutcome CCCClient::listIntervalSkillGroupReport(const ListIntervalSkillGroupReportRequest &request) const +CCCClient::ListJobStatusOutcome CCCClient::listJobStatus(const ListJobStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListIntervalSkillGroupReportOutcome(endpointOutcome.error()); + return ListJobStatusOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListIntervalSkillGroupReportOutcome(ListIntervalSkillGroupReportResult(outcome.result())); + return ListJobStatusOutcome(ListJobStatusResult(outcome.result())); else - return ListIntervalSkillGroupReportOutcome(outcome.error()); + return ListJobStatusOutcome(outcome.error()); } -void CCCClient::listIntervalSkillGroupReportAsync(const ListIntervalSkillGroupReportRequest& request, const ListIntervalSkillGroupReportAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listJobStatusAsync(const ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listIntervalSkillGroupReport(request), context); + handler(this, request, listJobStatus(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListIntervalSkillGroupReportOutcomeCallable CCCClient::listIntervalSkillGroupReportCallable(const ListIntervalSkillGroupReportRequest &request) const +CCCClient::ListJobStatusOutcomeCallable CCCClient::listJobStatusCallable(const ListJobStatusRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listIntervalSkillGroupReport(request); + return this->listJobStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListIvrTrackingDetailsOutcome CCCClient::listIvrTrackingDetails(const ListIvrTrackingDetailsRequest &request) const +CCCClient::ListJobsByGroupOutcome CCCClient::listJobsByGroup(const ListJobsByGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListIvrTrackingDetailsOutcome(endpointOutcome.error()); + return ListJobsByGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListIvrTrackingDetailsOutcome(ListIvrTrackingDetailsResult(outcome.result())); + return ListJobsByGroupOutcome(ListJobsByGroupResult(outcome.result())); else - return ListIvrTrackingDetailsOutcome(outcome.error()); + return ListJobsByGroupOutcome(outcome.error()); } -void CCCClient::listIvrTrackingDetailsAsync(const ListIvrTrackingDetailsRequest& request, const ListIvrTrackingDetailsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listJobsByGroupAsync(const ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listIvrTrackingDetails(request), context); + handler(this, request, listJobsByGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListIvrTrackingDetailsOutcomeCallable CCCClient::listIvrTrackingDetailsCallable(const ListIvrTrackingDetailsRequest &request) const +CCCClient::ListJobsByGroupOutcomeCallable CCCClient::listJobsByGroupCallable(const ListJobsByGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listIvrTrackingDetails(request); + return this->listJobsByGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListOutboundNumbersOfUserOutcome CCCClient::listOutboundNumbersOfUser(const ListOutboundNumbersOfUserRequest &request) const +CCCClient::ListMediasOutcome CCCClient::listMedias(const ListMediasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListOutboundNumbersOfUserOutcome(endpointOutcome.error()); + return ListMediasOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListOutboundNumbersOfUserOutcome(ListOutboundNumbersOfUserResult(outcome.result())); + return ListMediasOutcome(ListMediasResult(outcome.result())); else - return ListOutboundNumbersOfUserOutcome(outcome.error()); + return ListMediasOutcome(outcome.error()); } -void CCCClient::listOutboundNumbersOfUserAsync(const ListOutboundNumbersOfUserRequest& request, const ListOutboundNumbersOfUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listMediasAsync(const ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listOutboundNumbersOfUser(request), context); + handler(this, request, listMedias(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListOutboundNumbersOfUserOutcomeCallable CCCClient::listOutboundNumbersOfUserCallable(const ListOutboundNumbersOfUserRequest &request) const +CCCClient::ListMediasOutcomeCallable CCCClient::listMediasCallable(const ListMediasRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listOutboundNumbersOfUser(request); + return this->listMedias(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListPersonalNumbersOfUserOutcome CCCClient::listPersonalNumbersOfUser(const ListPersonalNumbersOfUserRequest &request) const +CCCClient::ListOutboundPhoneNumberOfUserOutcome CCCClient::listOutboundPhoneNumberOfUser(const ListOutboundPhoneNumberOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListPersonalNumbersOfUserOutcome(endpointOutcome.error()); + return ListOutboundPhoneNumberOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListPersonalNumbersOfUserOutcome(ListPersonalNumbersOfUserResult(outcome.result())); + return ListOutboundPhoneNumberOfUserOutcome(ListOutboundPhoneNumberOfUserResult(outcome.result())); else - return ListPersonalNumbersOfUserOutcome(outcome.error()); + return ListOutboundPhoneNumberOfUserOutcome(outcome.error()); } -void CCCClient::listPersonalNumbersOfUserAsync(const ListPersonalNumbersOfUserRequest& request, const ListPersonalNumbersOfUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listOutboundPhoneNumberOfUserAsync(const ListOutboundPhoneNumberOfUserRequest& request, const ListOutboundPhoneNumberOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listPersonalNumbersOfUser(request), context); + handler(this, request, listOutboundPhoneNumberOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListPersonalNumbersOfUserOutcomeCallable CCCClient::listPersonalNumbersOfUserCallable(const ListPersonalNumbersOfUserRequest &request) const +CCCClient::ListOutboundPhoneNumberOfUserOutcomeCallable CCCClient::listOutboundPhoneNumberOfUserCallable(const ListOutboundPhoneNumberOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listPersonalNumbersOfUser(request); + return this->listOutboundPhoneNumberOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1959,216 +3579,216 @@ CCCClient::ListPhoneNumbersOutcomeCallable CCCClient::listPhoneNumbersCallable(c return task->get_future(); } -CCCClient::ListPhoneNumbersOfSkillGroupOutcome CCCClient::listPhoneNumbersOfSkillGroup(const ListPhoneNumbersOfSkillGroupRequest &request) const +CCCClient::ListPhoneTagsOutcome CCCClient::listPhoneTags(const ListPhoneTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListPhoneNumbersOfSkillGroupOutcome(endpointOutcome.error()); + return ListPhoneTagsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListPhoneNumbersOfSkillGroupOutcome(ListPhoneNumbersOfSkillGroupResult(outcome.result())); + return ListPhoneTagsOutcome(ListPhoneTagsResult(outcome.result())); else - return ListPhoneNumbersOfSkillGroupOutcome(outcome.error()); + return ListPhoneTagsOutcome(outcome.error()); } -void CCCClient::listPhoneNumbersOfSkillGroupAsync(const ListPhoneNumbersOfSkillGroupRequest& request, const ListPhoneNumbersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listPhoneTagsAsync(const ListPhoneTagsRequest& request, const ListPhoneTagsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listPhoneNumbersOfSkillGroup(request), context); + handler(this, request, listPhoneTags(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListPhoneNumbersOfSkillGroupOutcomeCallable CCCClient::listPhoneNumbersOfSkillGroupCallable(const ListPhoneNumbersOfSkillGroupRequest &request) const +CCCClient::ListPhoneTagsOutcomeCallable CCCClient::listPhoneTagsCallable(const ListPhoneTagsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listPhoneNumbersOfSkillGroup(request); + return this->listPhoneTags(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListPrivilegesOfUserOutcome CCCClient::listPrivilegesOfUser(const ListPrivilegesOfUserRequest &request) const +CCCClient::ListRealTimeAgentOutcome CCCClient::listRealTimeAgent(const ListRealTimeAgentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListPrivilegesOfUserOutcome(endpointOutcome.error()); + return ListRealTimeAgentOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListPrivilegesOfUserOutcome(ListPrivilegesOfUserResult(outcome.result())); + return ListRealTimeAgentOutcome(ListRealTimeAgentResult(outcome.result())); else - return ListPrivilegesOfUserOutcome(outcome.error()); + return ListRealTimeAgentOutcome(outcome.error()); } -void CCCClient::listPrivilegesOfUserAsync(const ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listRealTimeAgentAsync(const ListRealTimeAgentRequest& request, const ListRealTimeAgentAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listPrivilegesOfUser(request), context); + handler(this, request, listRealTimeAgent(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListPrivilegesOfUserOutcomeCallable CCCClient::listPrivilegesOfUserCallable(const ListPrivilegesOfUserRequest &request) const +CCCClient::ListRealTimeAgentOutcomeCallable CCCClient::listRealTimeAgentCallable(const ListRealTimeAgentRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listPrivilegesOfUser(request); + return this->listRealTimeAgent(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListRamUsersOutcome CCCClient::listRamUsers(const ListRamUsersRequest &request) const +CCCClient::ListRecentCallRecordsOutcome CCCClient::listRecentCallRecords(const ListRecentCallRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRamUsersOutcome(endpointOutcome.error()); + return ListRecentCallRecordsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRamUsersOutcome(ListRamUsersResult(outcome.result())); + return ListRecentCallRecordsOutcome(ListRecentCallRecordsResult(outcome.result())); else - return ListRamUsersOutcome(outcome.error()); + return ListRecentCallRecordsOutcome(outcome.error()); } -void CCCClient::listRamUsersAsync(const ListRamUsersRequest& request, const ListRamUsersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listRecentCallRecordsAsync(const ListRecentCallRecordsRequest& request, const ListRecentCallRecordsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRamUsers(request), context); + handler(this, request, listRecentCallRecords(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRamUsersOutcomeCallable CCCClient::listRamUsersCallable(const ListRamUsersRequest &request) const +CCCClient::ListRecentCallRecordsOutcomeCallable CCCClient::listRecentCallRecordsCallable(const ListRecentCallRecordsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRamUsers(request); + return this->listRecentCallRecords(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListRealtimeAgentStatesOutcome CCCClient::listRealtimeAgentStates(const ListRealtimeAgentStatesRequest &request) const +CCCClient::ListRecordingOfDualTrackOutcome CCCClient::listRecordingOfDualTrack(const ListRecordingOfDualTrackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRealtimeAgentStatesOutcome(endpointOutcome.error()); + return ListRecordingOfDualTrackOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRealtimeAgentStatesOutcome(ListRealtimeAgentStatesResult(outcome.result())); + return ListRecordingOfDualTrackOutcome(ListRecordingOfDualTrackResult(outcome.result())); else - return ListRealtimeAgentStatesOutcome(outcome.error()); + return ListRecordingOfDualTrackOutcome(outcome.error()); } -void CCCClient::listRealtimeAgentStatesAsync(const ListRealtimeAgentStatesRequest& request, const ListRealtimeAgentStatesAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listRecordingOfDualTrackAsync(const ListRecordingOfDualTrackRequest& request, const ListRecordingOfDualTrackAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRealtimeAgentStates(request), context); + handler(this, request, listRecordingOfDualTrack(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRealtimeAgentStatesOutcomeCallable CCCClient::listRealtimeAgentStatesCallable(const ListRealtimeAgentStatesRequest &request) const +CCCClient::ListRecordingOfDualTrackOutcomeCallable CCCClient::listRecordingOfDualTrackCallable(const ListRecordingOfDualTrackRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRealtimeAgentStates(request); + return this->listRecordingOfDualTrack(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListRealtimeSkillGroupStatesOutcome CCCClient::listRealtimeSkillGroupStates(const ListRealtimeSkillGroupStatesRequest &request) const +CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRealtimeSkillGroupStatesOutcome(endpointOutcome.error()); + return ListRecordingsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRealtimeSkillGroupStatesOutcome(ListRealtimeSkillGroupStatesResult(outcome.result())); + return ListRecordingsOutcome(ListRecordingsResult(outcome.result())); else - return ListRealtimeSkillGroupStatesOutcome(outcome.error()); + return ListRecordingsOutcome(outcome.error()); } -void CCCClient::listRealtimeSkillGroupStatesAsync(const ListRealtimeSkillGroupStatesRequest& request, const ListRealtimeSkillGroupStatesAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listRecordingsAsync(const ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRealtimeSkillGroupStates(request), context); + handler(this, request, listRecordings(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRealtimeSkillGroupStatesOutcomeCallable CCCClient::listRealtimeSkillGroupStatesCallable(const ListRealtimeSkillGroupStatesRequest &request) const +CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const ListRecordingsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRealtimeSkillGroupStates(request); + return this->listRecordings(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListRecentCallDetailRecordsOutcome CCCClient::listRecentCallDetailRecords(const ListRecentCallDetailRecordsRequest &request) const +CCCClient::ListRecordingsByContactIdOutcome CCCClient::listRecordingsByContactId(const ListRecordingsByContactIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRecentCallDetailRecordsOutcome(endpointOutcome.error()); + return ListRecordingsByContactIdOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRecentCallDetailRecordsOutcome(ListRecentCallDetailRecordsResult(outcome.result())); + return ListRecordingsByContactIdOutcome(ListRecordingsByContactIdResult(outcome.result())); else - return ListRecentCallDetailRecordsOutcome(outcome.error()); + return ListRecordingsByContactIdOutcome(outcome.error()); } -void CCCClient::listRecentCallDetailRecordsAsync(const ListRecentCallDetailRecordsRequest& request, const ListRecentCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listRecordingsByContactIdAsync(const ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRecentCallDetailRecords(request), context); + handler(this, request, listRecordingsByContactId(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRecentCallDetailRecordsOutcomeCallable CCCClient::listRecentCallDetailRecordsCallable(const ListRecentCallDetailRecordsRequest &request) const +CCCClient::ListRecordingsByContactIdOutcomeCallable CCCClient::listRecordingsByContactIdCallable(const ListRecordingsByContactIdRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRecentCallDetailRecords(request); + return this->listRecordingsByContactId(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2211,6 +3831,222 @@ 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(); @@ -2247,108 +4083,216 @@ CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(con return task->get_future(); } -CCCClient::ListSkillLevelsOfUserOutcome CCCClient::listSkillLevelsOfUser(const ListSkillLevelsOfUserRequest &request) const +CCCClient::ListSkillGroupsOfUserOutcome CCCClient::listSkillGroupsOfUser(const ListSkillGroupsOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListSkillLevelsOfUserOutcome(endpointOutcome.error()); + return ListSkillGroupsOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListSkillLevelsOfUserOutcome(ListSkillLevelsOfUserResult(outcome.result())); + return ListSkillGroupsOfUserOutcome(ListSkillGroupsOfUserResult(outcome.result())); else - return ListSkillLevelsOfUserOutcome(outcome.error()); + return ListSkillGroupsOfUserOutcome(outcome.error()); } -void CCCClient::listSkillLevelsOfUserAsync(const ListSkillLevelsOfUserRequest& request, const ListSkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listSkillGroupsOfUserAsync(const ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listSkillLevelsOfUser(request), context); + handler(this, request, listSkillGroupsOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListSkillLevelsOfUserOutcomeCallable CCCClient::listSkillLevelsOfUserCallable(const ListSkillLevelsOfUserRequest &request) const +CCCClient::ListSkillGroupsOfUserOutcomeCallable CCCClient::listSkillGroupsOfUserCallable(const ListSkillGroupsOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listSkillLevelsOfUser(request); + return this->listSkillGroupsOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListUnassignedNumbersOutcome CCCClient::listUnassignedNumbers(const ListUnassignedNumbersRequest &request) const +CCCClient::ListSurveysOutcome CCCClient::listSurveys(const ListSurveysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListUnassignedNumbersOutcome(endpointOutcome.error()); + return ListSurveysOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListUnassignedNumbersOutcome(ListUnassignedNumbersResult(outcome.result())); + return ListSurveysOutcome(ListSurveysResult(outcome.result())); else - return ListUnassignedNumbersOutcome(outcome.error()); + return ListSurveysOutcome(outcome.error()); } -void CCCClient::listUnassignedNumbersAsync(const ListUnassignedNumbersRequest& request, const ListUnassignedNumbersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listSurveysAsync(const ListSurveysRequest& request, const ListSurveysAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listUnassignedNumbers(request), context); + handler(this, request, listSurveys(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListUnassignedNumbersOutcomeCallable CCCClient::listUnassignedNumbersCallable(const ListUnassignedNumbersRequest &request) const +CCCClient::ListSurveysOutcomeCallable CCCClient::listSurveysCallable(const ListSurveysRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listUnassignedNumbers(request); + return this->listSurveys(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListUserLevelsOfSkillGroupOutcome CCCClient::listUserLevelsOfSkillGroup(const ListUserLevelsOfSkillGroupRequest &request) const +CCCClient::ListTransferableSkillGroupsOutcome CCCClient::listTransferableSkillGroups(const ListTransferableSkillGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListUserLevelsOfSkillGroupOutcome(endpointOutcome.error()); + return ListTransferableSkillGroupsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListUserLevelsOfSkillGroupOutcome(ListUserLevelsOfSkillGroupResult(outcome.result())); + return ListTransferableSkillGroupsOutcome(ListTransferableSkillGroupsResult(outcome.result())); else - return ListUserLevelsOfSkillGroupOutcome(outcome.error()); + return ListTransferableSkillGroupsOutcome(outcome.error()); } -void CCCClient::listUserLevelsOfSkillGroupAsync(const ListUserLevelsOfSkillGroupRequest& request, const ListUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listTransferableSkillGroupsAsync(const ListTransferableSkillGroupsRequest& request, const ListTransferableSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listUserLevelsOfSkillGroup(request), context); + handler(this, request, listTransferableSkillGroups(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListUserLevelsOfSkillGroupOutcomeCallable CCCClient::listUserLevelsOfSkillGroupCallable(const ListUserLevelsOfSkillGroupRequest &request) const +CCCClient::ListTransferableSkillGroupsOutcomeCallable CCCClient::listTransferableSkillGroupsCallable(const ListTransferableSkillGroupsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listUserLevelsOfSkillGroup(request); + return this->listTransferableSkillGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListTrunkProvidersOutcome CCCClient::listTrunkProviders(const ListTrunkProvidersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTrunkProvidersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTrunkProvidersOutcome(ListTrunkProvidersResult(outcome.result())); + else + return ListTrunkProvidersOutcome(outcome.error()); +} + +void CCCClient::listTrunkProvidersAsync(const ListTrunkProvidersRequest& request, const ListTrunkProvidersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTrunkProviders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListTrunkProvidersOutcomeCallable CCCClient::listTrunkProvidersCallable(const ListTrunkProvidersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTrunkProviders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListTrunksOfSkillGroupOutcome CCCClient::listTrunksOfSkillGroup(const ListTrunksOfSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTrunksOfSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTrunksOfSkillGroupOutcome(ListTrunksOfSkillGroupResult(outcome.result())); + else + return ListTrunksOfSkillGroupOutcome(outcome.error()); +} + +void CCCClient::listTrunksOfSkillGroupAsync(const ListTrunksOfSkillGroupRequest& request, const ListTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTrunksOfSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListTrunksOfSkillGroupOutcomeCallable CCCClient::listTrunksOfSkillGroupCallable(const ListTrunksOfSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTrunksOfSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListUnreachableContactsOutcome CCCClient::listUnreachableContacts(const ListUnreachableContactsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUnreachableContactsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUnreachableContactsOutcome(ListUnreachableContactsResult(outcome.result())); + else + return ListUnreachableContactsOutcome(outcome.error()); +} + +void CCCClient::listUnreachableContactsAsync(const ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUnreachableContacts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListUnreachableContactsOutcomeCallable CCCClient::listUnreachableContactsCallable(const ListUnreachableContactsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUnreachableContacts(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2391,72 +4335,180 @@ CCCClient::ListUsersOutcomeCallable CCCClient::listUsersCallable(const ListUsers return task->get_future(); } -CCCClient::MakeCallOutcome CCCClient::makeCall(const MakeCallRequest &request) const +CCCClient::ListUsersOfSkillGroupOutcome CCCClient::listUsersOfSkillGroup(const ListUsersOfSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return MakeCallOutcome(endpointOutcome.error()); + return ListUsersOfSkillGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return MakeCallOutcome(MakeCallResult(outcome.result())); + return ListUsersOfSkillGroupOutcome(ListUsersOfSkillGroupResult(outcome.result())); else - return MakeCallOutcome(outcome.error()); + return ListUsersOfSkillGroupOutcome(outcome.error()); } -void CCCClient::makeCallAsync(const MakeCallRequest& request, const MakeCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listUsersOfSkillGroupAsync(const ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, makeCall(request), context); + handler(this, request, listUsersOfSkillGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::MakeCallOutcomeCallable CCCClient::makeCallCallable(const MakeCallRequest &request) const +CCCClient::ListUsersOfSkillGroupOutcomeCallable CCCClient::listUsersOfSkillGroupCallable(const ListUsersOfSkillGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->makeCall(request); + return this->listUsersOfSkillGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ModifyInstanceOutcome CCCClient::modifyInstance(const ModifyInstanceRequest &request) const +CCCClient::ListVoiceAppraiseOutcome CCCClient::listVoiceAppraise(const ListVoiceAppraiseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyInstanceOutcome(endpointOutcome.error()); + return ListVoiceAppraiseOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyInstanceOutcome(ModifyInstanceResult(outcome.result())); + return ListVoiceAppraiseOutcome(ListVoiceAppraiseResult(outcome.result())); else - return ModifyInstanceOutcome(outcome.error()); + return ListVoiceAppraiseOutcome(outcome.error()); } -void CCCClient::modifyInstanceAsync(const ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listVoiceAppraiseAsync(const ListVoiceAppraiseRequest& request, const ListVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyInstance(request), context); + handler(this, request, listVoiceAppraise(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ModifyInstanceOutcomeCallable CCCClient::modifyInstanceCallable(const ModifyInstanceRequest &request) const +CCCClient::ListVoiceAppraiseOutcomeCallable CCCClient::listVoiceAppraiseCallable(const ListVoiceAppraiseRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyInstance(request); + return this->listVoiceAppraise(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyAgentDeviceOutcome CCCClient::modifyAgentDevice(const ModifyAgentDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAgentDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAgentDeviceOutcome(ModifyAgentDeviceResult(outcome.result())); + else + return ModifyAgentDeviceOutcome(outcome.error()); +} + +void CCCClient::modifyAgentDeviceAsync(const ModifyAgentDeviceRequest& request, const ModifyAgentDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAgentDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyAgentDeviceOutcomeCallable CCCClient::modifyAgentDeviceCallable(const ModifyAgentDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAgentDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyCabInstanceOutcome CCCClient::modifyCabInstance(const ModifyCabInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCabInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCabInstanceOutcome(ModifyCabInstanceResult(outcome.result())); + else + return ModifyCabInstanceOutcome(outcome.error()); +} + +void CCCClient::modifyCabInstanceAsync(const ModifyCabInstanceRequest& request, const ModifyCabInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCabInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyCabInstanceOutcomeCallable CCCClient::modifyCabInstanceCallable(const ModifyCabInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCabInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyCallRatioOutcome CCCClient::modifyCallRatio(const ModifyCallRatioRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCallRatioOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCallRatioOutcome(ModifyCallRatioResult(outcome.result())); + else + return ModifyCallRatioOutcome(outcome.error()); +} + +void CCCClient::modifyCallRatioAsync(const ModifyCallRatioRequest& request, const ModifyCallRatioAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCallRatio(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyCallRatioOutcomeCallable CCCClient::modifyCallRatioCallable(const ModifyCallRatioRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCallRatio(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2499,6 +4551,150 @@ 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(); @@ -2535,36 +4731,108 @@ CCCClient::ModifySkillGroupOutcomeCallable CCCClient::modifySkillGroupCallable(c return task->get_future(); } -CCCClient::ModifySkillLevelsOfUserOutcome CCCClient::modifySkillLevelsOfUser(const ModifySkillLevelsOfUserRequest &request) const +CCCClient::ModifySkillGroupOfUserOutcome CCCClient::modifySkillGroupOfUser(const ModifySkillGroupOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifySkillLevelsOfUserOutcome(endpointOutcome.error()); + return ModifySkillGroupOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifySkillLevelsOfUserOutcome(ModifySkillLevelsOfUserResult(outcome.result())); + return ModifySkillGroupOfUserOutcome(ModifySkillGroupOfUserResult(outcome.result())); else - return ModifySkillLevelsOfUserOutcome(outcome.error()); + return ModifySkillGroupOfUserOutcome(outcome.error()); } -void CCCClient::modifySkillLevelsOfUserAsync(const ModifySkillLevelsOfUserRequest& request, const ModifySkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::modifySkillGroupOfUserAsync(const ModifySkillGroupOfUserRequest& request, const ModifySkillGroupOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifySkillLevelsOfUser(request), context); + handler(this, request, modifySkillGroupOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ModifySkillLevelsOfUserOutcomeCallable CCCClient::modifySkillLevelsOfUserCallable(const ModifySkillLevelsOfUserRequest &request) const +CCCClient::ModifySkillGroupOfUserOutcomeCallable CCCClient::modifySkillGroupOfUserCallable(const ModifySkillGroupOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifySkillLevelsOfUser(request); + return this->modifySkillGroupOfUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifySkillGroupOutboundNumbersOutcome CCCClient::modifySkillGroupOutboundNumbers(const ModifySkillGroupOutboundNumbersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySkillGroupOutboundNumbersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySkillGroupOutboundNumbersOutcome(ModifySkillGroupOutboundNumbersResult(outcome.result())); + else + return ModifySkillGroupOutboundNumbersOutcome(outcome.error()); +} + +void CCCClient::modifySkillGroupOutboundNumbersAsync(const ModifySkillGroupOutboundNumbersRequest& request, const ModifySkillGroupOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySkillGroupOutboundNumbers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifySkillGroupOutboundNumbersOutcomeCallable CCCClient::modifySkillGroupOutboundNumbersCallable(const ModifySkillGroupOutboundNumbersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySkillGroupOutboundNumbers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifySurveyOutcome CCCClient::modifySurvey(const ModifySurveyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySurveyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySurveyOutcome(ModifySurveyResult(outcome.result())); + else + return ModifySurveyOutcome(outcome.error()); +} + +void CCCClient::modifySurveyAsync(const ModifySurveyRequest& request, const ModifySurveyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySurvey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifySurveyOutcomeCallable CCCClient::modifySurveyCallable(const ModifySurveyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySurvey(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2607,108 +4875,72 @@ CCCClient::ModifyUserOutcomeCallable CCCClient::modifyUserCallable(const ModifyU return task->get_future(); } -CCCClient::ModifyUserLevelsOfSkillGroupOutcome CCCClient::modifyUserLevelsOfSkillGroup(const ModifyUserLevelsOfSkillGroupRequest &request) const +CCCClient::PickGlobalOutboundNumbersOutcome CCCClient::pickGlobalOutboundNumbers(const PickGlobalOutboundNumbersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyUserLevelsOfSkillGroupOutcome(endpointOutcome.error()); + return PickGlobalOutboundNumbersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyUserLevelsOfSkillGroupOutcome(ModifyUserLevelsOfSkillGroupResult(outcome.result())); + return PickGlobalOutboundNumbersOutcome(PickGlobalOutboundNumbersResult(outcome.result())); else - return ModifyUserLevelsOfSkillGroupOutcome(outcome.error()); + return PickGlobalOutboundNumbersOutcome(outcome.error()); } -void CCCClient::modifyUserLevelsOfSkillGroupAsync(const ModifyUserLevelsOfSkillGroupRequest& request, const ModifyUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::pickGlobalOutboundNumbersAsync(const PickGlobalOutboundNumbersRequest& request, const PickGlobalOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyUserLevelsOfSkillGroup(request), context); + handler(this, request, pickGlobalOutboundNumbers(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ModifyUserLevelsOfSkillGroupOutcomeCallable CCCClient::modifyUserLevelsOfSkillGroupCallable(const ModifyUserLevelsOfSkillGroupRequest &request) const +CCCClient::PickGlobalOutboundNumbersOutcomeCallable CCCClient::pickGlobalOutboundNumbersCallable(const PickGlobalOutboundNumbersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyUserLevelsOfSkillGroup(request); + return this->pickGlobalOutboundNumbers(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::MonitorCallOutcome CCCClient::monitorCall(const MonitorCallRequest &request) const +CCCClient::PickLocalNumberOutcome CCCClient::pickLocalNumber(const PickLocalNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return MonitorCallOutcome(endpointOutcome.error()); + return PickLocalNumberOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return MonitorCallOutcome(MonitorCallResult(outcome.result())); + return PickLocalNumberOutcome(PickLocalNumberResult(outcome.result())); else - return MonitorCallOutcome(outcome.error()); + return PickLocalNumberOutcome(outcome.error()); } -void CCCClient::monitorCallAsync(const MonitorCallRequest& request, const MonitorCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::pickLocalNumberAsync(const PickLocalNumberRequest& request, const PickLocalNumberAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, monitorCall(request), context); + handler(this, request, pickLocalNumber(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::MonitorCallOutcomeCallable CCCClient::monitorCallCallable(const MonitorCallRequest &request) const +CCCClient::PickLocalNumberOutcomeCallable CCCClient::pickLocalNumberCallable(const PickLocalNumberRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, 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); + return this->pickLocalNumber(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2751,324 +4983,180 @@ CCCClient::PickOutboundNumbersOutcomeCallable CCCClient::pickOutboundNumbersCall return task->get_future(); } -CCCClient::PollUserStatusOutcome CCCClient::pollUserStatus(const PollUserStatusRequest &request) const +CCCClient::PublishContactFlowVersionOutcome CCCClient::publishContactFlowVersion(const PublishContactFlowVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PollUserStatusOutcome(endpointOutcome.error()); + return PublishContactFlowVersionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PollUserStatusOutcome(PollUserStatusResult(outcome.result())); + return PublishContactFlowVersionOutcome(PublishContactFlowVersionResult(outcome.result())); else - return PollUserStatusOutcome(outcome.error()); + return PublishContactFlowVersionOutcome(outcome.error()); } -void CCCClient::pollUserStatusAsync(const PollUserStatusRequest& request, const PollUserStatusAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::publishContactFlowVersionAsync(const PublishContactFlowVersionRequest& request, const PublishContactFlowVersionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, pollUserStatus(request), context); + handler(this, request, publishContactFlowVersion(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::PollUserStatusOutcomeCallable CCCClient::pollUserStatusCallable(const PollUserStatusRequest &request) const +CCCClient::PublishContactFlowVersionOutcomeCallable CCCClient::publishContactFlowVersionCallable(const PublishContactFlowVersionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->pollUserStatus(request); + return this->publishContactFlowVersion(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ReadyForServiceOutcome CCCClient::readyForService(const ReadyForServiceRequest &request) const +CCCClient::PublishPredictiveJobGroupOutcome CCCClient::publishPredictiveJobGroup(const PublishPredictiveJobGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ReadyForServiceOutcome(endpointOutcome.error()); + return PublishPredictiveJobGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ReadyForServiceOutcome(ReadyForServiceResult(outcome.result())); + return PublishPredictiveJobGroupOutcome(PublishPredictiveJobGroupResult(outcome.result())); else - return ReadyForServiceOutcome(outcome.error()); + return PublishPredictiveJobGroupOutcome(outcome.error()); } -void CCCClient::readyForServiceAsync(const ReadyForServiceRequest& request, const ReadyForServiceAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::publishPredictiveJobGroupAsync(const PublishPredictiveJobGroupRequest& request, const PublishPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, readyForService(request), context); + handler(this, request, publishPredictiveJobGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ReadyForServiceOutcomeCallable CCCClient::readyForServiceCallable(const ReadyForServiceRequest &request) const +CCCClient::PublishPredictiveJobGroupOutcomeCallable CCCClient::publishPredictiveJobGroupCallable(const PublishPredictiveJobGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->readyForService(request); + return this->publishPredictiveJobGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::RegisterDeviceOutcome CCCClient::registerDevice(const RegisterDeviceRequest &request) const +CCCClient::PublishSurveyOutcome CCCClient::publishSurvey(const PublishSurveyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RegisterDeviceOutcome(endpointOutcome.error()); + return PublishSurveyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RegisterDeviceOutcome(RegisterDeviceResult(outcome.result())); + return PublishSurveyOutcome(PublishSurveyResult(outcome.result())); else - return RegisterDeviceOutcome(outcome.error()); + return PublishSurveyOutcome(outcome.error()); } -void CCCClient::registerDeviceAsync(const RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::publishSurveyAsync(const PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, registerDevice(request), context); + handler(this, request, publishSurvey(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RegisterDeviceOutcomeCallable CCCClient::registerDeviceCallable(const RegisterDeviceRequest &request) const +CCCClient::PublishSurveyOutcomeCallable CCCClient::publishSurveyCallable(const PublishSurveyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->registerDevice(request); + return this->publishSurvey(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ReleaseCallOutcome CCCClient::releaseCall(const ReleaseCallRequest &request) const +CCCClient::RefreshTokenOutcome CCCClient::refreshToken(const RefreshTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ReleaseCallOutcome(endpointOutcome.error()); + return RefreshTokenOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ReleaseCallOutcome(ReleaseCallResult(outcome.result())); + return RefreshTokenOutcome(RefreshTokenResult(outcome.result())); else - return ReleaseCallOutcome(outcome.error()); + return RefreshTokenOutcome(outcome.error()); } -void CCCClient::releaseCallAsync(const ReleaseCallRequest& request, const ReleaseCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::refreshTokenAsync(const RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, releaseCall(request), context); + handler(this, request, refreshToken(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ReleaseCallOutcomeCallable CCCClient::releaseCallCallable(const ReleaseCallRequest &request) const +CCCClient::RefreshTokenOutcomeCallable CCCClient::refreshTokenCallable(const RefreshTokenRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->releaseCall(request); + return this->refreshToken(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::RemovePersonalNumbersFromUserOutcome CCCClient::removePersonalNumbersFromUser(const RemovePersonalNumbersFromUserRequest &request) const +CCCClient::RemovePhoneNumberOutcome CCCClient::removePhoneNumber(const RemovePhoneNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RemovePersonalNumbersFromUserOutcome(endpointOutcome.error()); + return RemovePhoneNumberOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RemovePersonalNumbersFromUserOutcome(RemovePersonalNumbersFromUserResult(outcome.result())); + return RemovePhoneNumberOutcome(RemovePhoneNumberResult(outcome.result())); else - return RemovePersonalNumbersFromUserOutcome(outcome.error()); + return RemovePhoneNumberOutcome(outcome.error()); } -void CCCClient::removePersonalNumbersFromUserAsync(const RemovePersonalNumbersFromUserRequest& request, const RemovePersonalNumbersFromUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::removePhoneNumberAsync(const RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, removePersonalNumbersFromUser(request), context); + handler(this, request, removePhoneNumber(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RemovePersonalNumbersFromUserOutcomeCallable CCCClient::removePersonalNumbersFromUserCallable(const RemovePersonalNumbersFromUserRequest &request) const +CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable(const RemovePhoneNumberRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, 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); + return this->removePhoneNumber(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3147,144 +5235,144 @@ CCCClient::RemoveUsersFromSkillGroupOutcomeCallable CCCClient::removeUsersFromSk return task->get_future(); } -CCCClient::ResetAgentStateOutcome CCCClient::resetAgentState(const ResetAgentStateRequest &request) const +CCCClient::RequestLoginInfoOutcome CCCClient::requestLoginInfo(const RequestLoginInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ResetAgentStateOutcome(endpointOutcome.error()); + return RequestLoginInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ResetAgentStateOutcome(ResetAgentStateResult(outcome.result())); + return RequestLoginInfoOutcome(RequestLoginInfoResult(outcome.result())); else - return ResetAgentStateOutcome(outcome.error()); + return RequestLoginInfoOutcome(outcome.error()); } -void CCCClient::resetAgentStateAsync(const ResetAgentStateRequest& request, const ResetAgentStateAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::requestLoginInfoAsync(const RequestLoginInfoRequest& request, const RequestLoginInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, resetAgentState(request), context); + handler(this, request, requestLoginInfo(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ResetAgentStateOutcomeCallable CCCClient::resetAgentStateCallable(const ResetAgentStateRequest &request) const +CCCClient::RequestLoginInfoOutcomeCallable CCCClient::requestLoginInfoCallable(const RequestLoginInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->resetAgentState(request); + return this->requestLoginInfo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ResetUserPasswordOutcome CCCClient::resetUserPassword(const ResetUserPasswordRequest &request) const +CCCClient::ResetUserStatusOutcome CCCClient::resetUserStatus(const ResetUserStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ResetUserPasswordOutcome(endpointOutcome.error()); + return ResetUserStatusOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ResetUserPasswordOutcome(ResetUserPasswordResult(outcome.result())); + return ResetUserStatusOutcome(ResetUserStatusResult(outcome.result())); else - return ResetUserPasswordOutcome(outcome.error()); + return ResetUserStatusOutcome(outcome.error()); } -void CCCClient::resetUserPasswordAsync(const ResetUserPasswordRequest& request, const ResetUserPasswordAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::resetUserStatusAsync(const ResetUserStatusRequest& request, const ResetUserStatusAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, resetUserPassword(request), context); + handler(this, request, resetUserStatus(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ResetUserPasswordOutcomeCallable CCCClient::resetUserPasswordCallable(const ResetUserPasswordRequest &request) const +CCCClient::ResetUserStatusOutcomeCallable CCCClient::resetUserStatusCallable(const ResetUserStatusRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->resetUserPassword(request); + return this->resetUserStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::RetrieveCallOutcome CCCClient::retrieveCall(const RetrieveCallRequest &request) const +CCCClient::ResumeJobsOutcome CCCClient::resumeJobs(const ResumeJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RetrieveCallOutcome(endpointOutcome.error()); + return ResumeJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RetrieveCallOutcome(RetrieveCallResult(outcome.result())); + return ResumeJobsOutcome(ResumeJobsResult(outcome.result())); else - return RetrieveCallOutcome(outcome.error()); + return ResumeJobsOutcome(outcome.error()); } -void CCCClient::retrieveCallAsync(const RetrieveCallRequest& request, const RetrieveCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::resumeJobsAsync(const ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, retrieveCall(request), context); + handler(this, request, resumeJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RetrieveCallOutcomeCallable CCCClient::retrieveCallCallable(const RetrieveCallRequest &request) const +CCCClient::ResumeJobsOutcomeCallable CCCClient::resumeJobsCallable(const ResumeJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->retrieveCall(request); + return this->resumeJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::SaveRTCStatsV2Outcome CCCClient::saveRTCStatsV2(const SaveRTCStatsV2Request &request) const +CCCClient::ResumePredictiveJobsOutcome CCCClient::resumePredictiveJobs(const ResumePredictiveJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SaveRTCStatsV2Outcome(endpointOutcome.error()); + return ResumePredictiveJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SaveRTCStatsV2Outcome(SaveRTCStatsV2Result(outcome.result())); + return ResumePredictiveJobsOutcome(ResumePredictiveJobsResult(outcome.result())); else - return SaveRTCStatsV2Outcome(outcome.error()); + return ResumePredictiveJobsOutcome(outcome.error()); } -void CCCClient::saveRTCStatsV2Async(const SaveRTCStatsV2Request& request, const SaveRTCStatsV2AsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::resumePredictiveJobsAsync(const ResumePredictiveJobsRequest& request, const ResumePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, saveRTCStatsV2(request), context); + handler(this, request, resumePredictiveJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::SaveRTCStatsV2OutcomeCallable CCCClient::saveRTCStatsV2Callable(const SaveRTCStatsV2Request &request) const +CCCClient::ResumePredictiveJobsOutcomeCallable CCCClient::resumePredictiveJobsCallable(const ResumePredictiveJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->saveRTCStatsV2(request); + return this->resumePredictiveJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3363,144 +5451,36 @@ CCCClient::SaveWebRTCStatsOutcomeCallable CCCClient::saveWebRTCStatsCallable(con return task->get_future(); } -CCCClient::SaveWebRtcInfoOutcome CCCClient::saveWebRtcInfo(const SaveWebRtcInfoRequest &request) const +CCCClient::SendPredefinedShortMessageOutcome CCCClient::sendPredefinedShortMessage(const SendPredefinedShortMessageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SaveWebRtcInfoOutcome(endpointOutcome.error()); + return SendPredefinedShortMessageOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SaveWebRtcInfoOutcome(SaveWebRtcInfoResult(outcome.result())); + return SendPredefinedShortMessageOutcome(SendPredefinedShortMessageResult(outcome.result())); else - return SaveWebRtcInfoOutcome(outcome.error()); + return SendPredefinedShortMessageOutcome(outcome.error()); } -void CCCClient::saveWebRtcInfoAsync(const SaveWebRtcInfoRequest& request, const SaveWebRtcInfoAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::sendPredefinedShortMessageAsync(const SendPredefinedShortMessageRequest& request, const SendPredefinedShortMessageAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, saveWebRtcInfo(request), context); + handler(this, request, sendPredefinedShortMessage(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::SaveWebRtcInfoOutcomeCallable CCCClient::saveWebRtcInfoCallable(const SaveWebRtcInfoRequest &request) const +CCCClient::SendPredefinedShortMessageOutcomeCallable CCCClient::sendPredefinedShortMessageCallable(const SendPredefinedShortMessageRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->saveWebRtcInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::SendDtmfSignalingOutcome CCCClient::sendDtmfSignaling(const SendDtmfSignalingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SendDtmfSignalingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SendDtmfSignalingOutcome(SendDtmfSignalingResult(outcome.result())); - else - return SendDtmfSignalingOutcome(outcome.error()); -} - -void CCCClient::sendDtmfSignalingAsync(const SendDtmfSignalingRequest& request, const SendDtmfSignalingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, sendDtmfSignaling(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::SendDtmfSignalingOutcomeCallable CCCClient::sendDtmfSignalingCallable(const SendDtmfSignalingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->sendDtmfSignaling(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::SignInGroupOutcome CCCClient::signInGroup(const SignInGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SignInGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SignInGroupOutcome(SignInGroupResult(outcome.result())); - else - return SignInGroupOutcome(outcome.error()); -} - -void CCCClient::signInGroupAsync(const SignInGroupRequest& request, const SignInGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, signInGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::SignInGroupOutcomeCallable CCCClient::signInGroupCallable(const SignInGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->signInGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::SignOutGroupOutcome CCCClient::signOutGroup(const SignOutGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SignOutGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SignOutGroupOutcome(SignOutGroupResult(outcome.result())); - else - return SignOutGroupOutcome(outcome.error()); -} - -void CCCClient::signOutGroupAsync(const SignOutGroupRequest& request, const SignOutGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, signOutGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::SignOutGroupOutcomeCallable CCCClient::signOutGroupCallable(const SignOutGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->signOutGroup(request); + return this->sendPredefinedShortMessage(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3543,144 +5523,216 @@ CCCClient::StartBack2BackCallOutcomeCallable CCCClient::startBack2BackCallCallab return task->get_future(); } -CCCClient::StartPredictiveCallOutcome CCCClient::startPredictiveCall(const StartPredictiveCallRequest &request) const +CCCClient::StartJobOutcome CCCClient::startJob(const StartJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartPredictiveCallOutcome(endpointOutcome.error()); + return StartJobOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartPredictiveCallOutcome(StartPredictiveCallResult(outcome.result())); + return StartJobOutcome(StartJobResult(outcome.result())); else - return StartPredictiveCallOutcome(outcome.error()); + return StartJobOutcome(outcome.error()); } -void CCCClient::startPredictiveCallAsync(const StartPredictiveCallRequest& request, const StartPredictiveCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::startJobAsync(const StartJobRequest& request, const StartJobAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, startPredictiveCall(request), context); + handler(this, request, startJob(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::StartPredictiveCallOutcomeCallable CCCClient::startPredictiveCallCallable(const StartPredictiveCallRequest &request) const +CCCClient::StartJobOutcomeCallable CCCClient::startJobCallable(const StartJobRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->startPredictiveCall(request); + return this->startJob(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::TakeBreakOutcome CCCClient::takeBreak(const TakeBreakRequest &request) const +CCCClient::SubmitBatchJobsOutcome CCCClient::submitBatchJobs(const SubmitBatchJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return TakeBreakOutcome(endpointOutcome.error()); + return SubmitBatchJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return TakeBreakOutcome(TakeBreakResult(outcome.result())); + return SubmitBatchJobsOutcome(SubmitBatchJobsResult(outcome.result())); else - return TakeBreakOutcome(outcome.error()); + return SubmitBatchJobsOutcome(outcome.error()); } -void CCCClient::takeBreakAsync(const TakeBreakRequest& request, const TakeBreakAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::submitBatchJobsAsync(const SubmitBatchJobsRequest& request, const SubmitBatchJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, takeBreak(request), context); + handler(this, request, submitBatchJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::TakeBreakOutcomeCallable CCCClient::takeBreakCallable(const TakeBreakRequest &request) const +CCCClient::SubmitBatchJobsOutcomeCallable CCCClient::submitBatchJobsCallable(const SubmitBatchJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->takeBreak(request); + return this->submitBatchJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::UnmuteCallOutcome CCCClient::unmuteCall(const UnmuteCallRequest &request) const +CCCClient::SubmitCabRecordingOutcome CCCClient::submitCabRecording(const SubmitCabRecordingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UnmuteCallOutcome(endpointOutcome.error()); + return SubmitCabRecordingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UnmuteCallOutcome(UnmuteCallResult(outcome.result())); + return SubmitCabRecordingOutcome(SubmitCabRecordingResult(outcome.result())); else - return UnmuteCallOutcome(outcome.error()); + return SubmitCabRecordingOutcome(outcome.error()); } -void CCCClient::unmuteCallAsync(const UnmuteCallRequest& request, const UnmuteCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::submitCabRecordingAsync(const SubmitCabRecordingRequest& request, const SubmitCabRecordingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, unmuteCall(request), context); + handler(this, request, submitCabRecording(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::UnmuteCallOutcomeCallable CCCClient::unmuteCallCallable(const UnmuteCallRequest &request) const +CCCClient::SubmitCabRecordingOutcomeCallable CCCClient::submitCabRecordingCallable(const SubmitCabRecordingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->unmuteCall(request); + return this->submitCabRecording(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::UpdateConfigItemsOutcome CCCClient::updateConfigItems(const UpdateConfigItemsRequest &request) const +CCCClient::SuspendJobsOutcome CCCClient::suspendJobs(const SuspendJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateConfigItemsOutcome(endpointOutcome.error()); + return SuspendJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateConfigItemsOutcome(UpdateConfigItemsResult(outcome.result())); + return SuspendJobsOutcome(SuspendJobsResult(outcome.result())); else - return UpdateConfigItemsOutcome(outcome.error()); + return SuspendJobsOutcome(outcome.error()); } -void CCCClient::updateConfigItemsAsync(const UpdateConfigItemsRequest& request, const UpdateConfigItemsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::suspendJobsAsync(const SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateConfigItems(request), context); + handler(this, request, suspendJobs(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::UpdateConfigItemsOutcomeCallable CCCClient::updateConfigItemsCallable(const UpdateConfigItemsRequest &request) const +CCCClient::SuspendJobsOutcomeCallable CCCClient::suspendJobsCallable(const SuspendJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateConfigItems(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); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/ccc/src/model/AbortPredictiveJobsRequest.cc b/ccc/src/model/AbortPredictiveJobsRequest.cc new file mode 100644 index 000000000..4d5033db1 --- /dev/null +++ b/ccc/src/model/AbortPredictiveJobsRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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/RegisterDeviceResult.cc b/ccc/src/model/AbortPredictiveJobsResult.cc similarity index 65% rename from ccc/src/model/RegisterDeviceResult.cc rename to ccc/src/model/AbortPredictiveJobsResult.cc index 47adb9030..7a459f8dd 100644 --- a/ccc/src/model/RegisterDeviceResult.cc +++ b/ccc/src/model/AbortPredictiveJobsResult.cc @@ -14,60 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -RegisterDeviceResult::RegisterDeviceResult() : +AbortPredictiveJobsResult::AbortPredictiveJobsResult() : ServiceResult() {} -RegisterDeviceResult::RegisterDeviceResult(const std::string &payload) : +AbortPredictiveJobsResult::AbortPredictiveJobsResult(const std::string &payload) : ServiceResult() { parse(payload); } -RegisterDeviceResult::~RegisterDeviceResult() +AbortPredictiveJobsResult::~AbortPredictiveJobsResult() {} -void RegisterDeviceResult::parse(const std::string &payload) +void AbortPredictiveJobsResult::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 RegisterDeviceResult::getMessage()const +std::string AbortPredictiveJobsResult::getMessage()const { return message_; } -int RegisterDeviceResult::getHttpStatusCode()const +int AbortPredictiveJobsResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector RegisterDeviceResult::getParams()const -{ - return params_; -} - -std::string RegisterDeviceResult::getCode()const +std::string AbortPredictiveJobsResult::getCode()const { return code_; } +bool AbortPredictiveJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/AddAgentDeviceRequest.cc b/ccc/src/model/AddAgentDeviceRequest.cc new file mode 100644 index 000000000..bb3275539 --- /dev/null +++ b/ccc/src/model/AddAgentDeviceRequest.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::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/ModifyInstanceResult.cc b/ccc/src/model/AddAgentDeviceResult.cc similarity index 62% rename from ccc/src/model/ModifyInstanceResult.cc rename to ccc/src/model/AddAgentDeviceResult.cc index c512c002f..9530721e1 100644 --- a/ccc/src/model/ModifyInstanceResult.cc +++ b/ccc/src/model/AddAgentDeviceResult.cc @@ -14,67 +14,66 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ModifyInstanceResult::ModifyInstanceResult() : +AddAgentDeviceResult::AddAgentDeviceResult() : ServiceResult() {} -ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) : +AddAgentDeviceResult::AddAgentDeviceResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyInstanceResult::~ModifyInstanceResult() +AddAgentDeviceResult::~AddAgentDeviceResult() {} -void ModifyInstanceResult::parse(const std::string &payload) +void AddAgentDeviceResult::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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AgentDeviceId"].isNull()) + agentDeviceId_ = std::stol(value["AgentDeviceId"].asString()); } -std::string ModifyInstanceResult::getMessage()const +std::string AddAgentDeviceResult::getMessage()const { return message_; } -int ModifyInstanceResult::getHttpStatusCode()const +long AddAgentDeviceResult::getAgentDeviceId()const +{ + return agentDeviceId_; +} + +int AddAgentDeviceResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector ModifyInstanceResult::getParams()const -{ - return params_; -} - -std::string ModifyInstanceResult::getData()const -{ - return data_; -} - -std::string ModifyInstanceResult::getCode()const +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 new file mode 100644 index 000000000..1b8041d36 --- /dev/null +++ b/ccc/src/model/AddBulkPhoneNumbersRequest.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 + +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 new file mode 100644 index 000000000..9757880ee --- /dev/null +++ b/ccc/src/model/AddBulkPhoneNumbersResult.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; + +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 new file mode 100644 index 000000000..ee9853267 --- /dev/null +++ b/ccc/src/model/AddJobsToPredictiveJobGroupRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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/ModifyUserLevelsOfSkillGroupResult.cc b/ccc/src/model/AddJobsToPredictiveJobGroupResult.cc similarity index 62% rename from ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc rename to ccc/src/model/AddJobsToPredictiveJobGroupResult.cc index 2d310e22a..bdaeaa444 100644 --- a/ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc +++ b/ccc/src/model/AddJobsToPredictiveJobGroupResult.cc @@ -14,59 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult() : +AddJobsToPredictiveJobGroupResult::AddJobsToPredictiveJobGroupResult() : ServiceResult() {} -ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult(const std::string &payload) : +AddJobsToPredictiveJobGroupResult::AddJobsToPredictiveJobGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyUserLevelsOfSkillGroupResult::~ModifyUserLevelsOfSkillGroupResult() +AddJobsToPredictiveJobGroupResult::~AddJobsToPredictiveJobGroupResult() {} -void ModifyUserLevelsOfSkillGroupResult::parse(const std::string &payload) +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["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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ModifyUserLevelsOfSkillGroupResult::getMessage()const +std::string AddJobsToPredictiveJobGroupResult::getMessage()const { return message_; } -int ModifyUserLevelsOfSkillGroupResult::getHttpStatusCode()const +int AddJobsToPredictiveJobGroupResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string ModifyUserLevelsOfSkillGroupResult::getData()const -{ - return data_; -} - -std::string ModifyUserLevelsOfSkillGroupResult::getCode()const +std::string AddJobsToPredictiveJobGroupResult::getCode()const { return code_; } +bool AddJobsToPredictiveJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/AddPersonalNumbersToUserRequest.cc b/ccc/src/model/AddPersonalNumbersToUserRequest.cc deleted file mode 100644 index 7e45b937e..000000000 --- a/ccc/src/model/AddPersonalNumbersToUserRequest.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::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/AddPhoneNumberRequest.cc b/ccc/src/model/AddPhoneNumberRequest.cc new file mode 100644 index 000000000..4c7a489d4 --- /dev/null +++ b/ccc/src/model/AddPhoneNumberRequest.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::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 new file mode 100644 index 000000000..b8d49443b --- /dev/null +++ b/ccc/src/model/AddPhoneNumberResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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 deleted file mode 100644 index 7b8f4fe58..000000000 --- a/ccc/src/model/AddPhoneNumberToSkillGroupsRequest.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::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/AddPhoneNumbersRequest.cc b/ccc/src/model/AddPhoneNumbersRequest.cc deleted file mode 100644 index 998db81a6..000000000 --- a/ccc/src/model/AddPhoneNumbersRequest.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::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/AddPhoneTagsRequest.cc b/ccc/src/model/AddPhoneTagsRequest.cc new file mode 100644 index 000000000..56a765569 --- /dev/null +++ b/ccc/src/model/AddPhoneTagsRequest.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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/AddPhoneNumberToSkillGroupsResult.cc b/ccc/src/model/AddPhoneTagsResult.cc similarity index 68% rename from ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc rename to ccc/src/model/AddPhoneTagsResult.cc index 9083a789a..56c38b513 100644 --- a/ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc +++ b/ccc/src/model/AddPhoneTagsResult.cc @@ -14,52 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult() : +AddPhoneTagsResult::AddPhoneTagsResult() : ServiceResult() {} -AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult(const std::string &payload) : +AddPhoneTagsResult::AddPhoneTagsResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddPhoneNumberToSkillGroupsResult::~AddPhoneNumberToSkillGroupsResult() +AddPhoneTagsResult::~AddPhoneTagsResult() {} -void AddPhoneNumberToSkillGroupsResult::parse(const std::string &payload) +void AddPhoneTagsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string AddPhoneNumberToSkillGroupsResult::getMessage()const +std::string AddPhoneTagsResult::getMessage()const { return message_; } -int AddPhoneNumberToSkillGroupsResult::getHttpStatusCode()const +int AddPhoneTagsResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string AddPhoneNumberToSkillGroupsResult::getCode()const +std::string AddPhoneTagsResult::getCode()const { return code_; } +bool AddPhoneTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/AddSkillGroupsToUserRequest.cc b/ccc/src/model/AddSkillGroupsToUserRequest.cc deleted file mode 100644 index bc6a5e5d2..000000000 --- a/ccc/src/model/AddSkillGroupsToUserRequest.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::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/AddUsersToSkillGroupRequest.cc b/ccc/src/model/AddUsersToSkillGroupRequest.cc deleted file mode 100644 index 9e41d4c05..000000000 --- a/ccc/src/model/AddUsersToSkillGroupRequest.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::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/AnswerCallRequest.cc b/ccc/src/model/AnswerCallRequest.cc deleted file mode 100644 index db3123b52..000000000 --- a/ccc/src/model/AnswerCallRequest.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::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 deleted file mode 100644 index 3bc949a1e..000000000 --- a/ccc/src/model/AnswerCallResult.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; - -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"]; - if(!dataNode["ContextId"].isNull()) - data_.contextId = std::stol(dataNode["ContextId"].asString()); - 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 new file mode 100644 index 000000000..2d4c9fc5c --- /dev/null +++ b/ccc/src/model/AssignJobsRequest.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 + +using AlibabaCloud::CCC::Model::AssignJobsRequest; + +AssignJobsRequest::AssignJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "AssignJobs") +{ + setMethod(HttpRequest::Method::Post); +} + +AssignJobsRequest::~AssignJobsRequest() +{} + +std::string AssignJobsRequest::getGroupId()const +{ + return groupId_; +} + +void AssignJobsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::vector AssignJobsRequest::getJobsJson()const +{ + return jobsJson_; +} + +void AssignJobsRequest::setJobsJson(const std::vector& jobsJson) +{ + jobsJson_ = jobsJson; + for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) { + setParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1)); + } +} + +std::vector AssignJobsRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void AssignJobsRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) { + setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); + } +} + +std::string AssignJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void AssignJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AssignJobsRequest::getStrategyJson()const +{ + return strategyJson_; +} + +void AssignJobsRequest::setStrategyJson(const std::string& strategyJson) +{ + strategyJson_ = strategyJson; + setParameter("StrategyJson", strategyJson); +} + +std::string AssignJobsRequest::getScenarioId()const +{ + return scenarioId_; +} + +void AssignJobsRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/AssignJobsResult.cc b/ccc/src/model/AssignJobsResult.cc new file mode 100644 index 000000000..97072f89f --- /dev/null +++ b/ccc/src/model/AssignJobsResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AssignJobsResult::AssignJobsResult() : + ServiceResult() +{} + +AssignJobsResult::AssignJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssignJobsResult::~AssignJobsResult() +{} + +void AssignJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string AssignJobsResult::getMessage()const +{ + return message_; +} + +int AssignJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AssignJobsResult::getCode()const +{ + return code_; +} + +bool AssignJobsResult::getSuccess()const +{ + return success_; +} + +std::string AssignJobsResult::getGroupId()const +{ + return groupId_; +} + diff --git a/ccc/src/model/AssignUsersRequest.cc b/ccc/src/model/AssignUsersRequest.cc index 005efb897..2c3fdfafa 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", "2020-07-01", "AssignUsers") + RpcServiceRequest("ccc", "2017-07-05", "AssignUsers") { setMethod(HttpRequest::Method::Post); } @@ -27,37 +27,54 @@ AssignUsersRequest::AssignUsersRequest() : AssignUsersRequest::~AssignUsersRequest() {} -std::string AssignUsersRequest::getRamIdList()const -{ - return ramIdList_; -} - -void AssignUsersRequest::setRamIdList(const std::string& ramIdList) -{ - ramIdList_ = ramIdList; - setParameter("RamIdList", ramIdList); -} - -std::string AssignUsersRequest::getRoleId()const +std::vector AssignUsersRequest::getRoleId()const { return roleId_; } -void AssignUsersRequest::setRoleId(const std::string& roleId) +void AssignUsersRequest::setRoleId(const std::vector& roleId) { roleId_ = roleId; - setParameter("RoleId", roleId); + for(int dep1 = 0; dep1!= roleId.size(); dep1++) { + setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); + } } -std::string AssignUsersRequest::getWorkMode()const +std::string AssignUsersRequest::getAccessKeyId()const { - return workMode_; + return accessKeyId_; } -void AssignUsersRequest::setWorkMode(const std::string& workMode) +void AssignUsersRequest::setAccessKeyId(const std::string& accessKeyId) { - workMode_ = workMode; - setParameter("WorkMode", 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))); + } } std::string AssignUsersRequest::getInstanceId()const @@ -71,14 +88,16 @@ void AssignUsersRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string AssignUsersRequest::getSkillLevelList()const +std::vector AssignUsersRequest::getSkillGroupId()const { - return skillLevelList_; + return skillGroupId_; } -void AssignUsersRequest::setSkillLevelList(const std::string& skillLevelList) +void AssignUsersRequest::setSkillGroupId(const std::vector& skillGroupId) { - skillLevelList_ = skillLevelList; - setParameter("SkillLevelList", skillLevelList); + skillGroupId_ = skillGroupId; + for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { + setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); + } } diff --git a/ccc/src/model/AssignUsersResult.cc b/ccc/src/model/AssignUsersResult.cc index 4ce236c73..eb6c57c0e 100644 --- a/ccc/src/model/AssignUsersResult.cc +++ b/ccc/src/model/AssignUsersResult.cc @@ -39,18 +39,14 @@ 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["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(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -64,23 +60,13 @@ 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 deleted file mode 100644 index 08cde1672..000000000 --- a/ccc/src/model/BargeInCallRequest.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::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 deleted file mode 100644 index e666fe0b5..000000000 --- a/ccc/src/model/BargeInCallResult.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 -#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 deleted file mode 100644 index 4177bcff5..000000000 --- a/ccc/src/model/BlindTransferRequest.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::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 deleted file mode 100644 index 7be26e68d..000000000 --- a/ccc/src/model/BlindTransferResult.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; - -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 new file mode 100644 index 000000000..70c65a04d --- /dev/null +++ b/ccc/src/model/CallOnlinePrivacyNumberRequest.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::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/GetHistoricalCallerReportResult.cc b/ccc/src/model/CallOnlinePrivacyNumberResult.cc similarity index 51% rename from ccc/src/model/GetHistoricalCallerReportResult.cc rename to ccc/src/model/CallOnlinePrivacyNumberResult.cc index 37e6bb057..b73d77cd8 100644 --- a/ccc/src/model/GetHistoricalCallerReportResult.cc +++ b/ccc/src/model/CallOnlinePrivacyNumberResult.cc @@ -14,62 +14,75 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -GetHistoricalCallerReportResult::GetHistoricalCallerReportResult() : +CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult() : ServiceResult() {} -GetHistoricalCallerReportResult::GetHistoricalCallerReportResult(const std::string &payload) : +CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetHistoricalCallerReportResult::~GetHistoricalCallerReportResult() +CallOnlinePrivacyNumberResult::~CallOnlinePrivacyNumberResult() {} -void GetHistoricalCallerReportResult::parse(const std::string &payload) +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["LastCallingTime"].isNull()) - data_.lastCallingTime = std::stol(dataNode["LastCallingTime"].asString()); - if(!dataNode["TotalCalls"].isNull()) - data_.totalCalls = std::stol(dataNode["TotalCalls"].asString()); + 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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string GetHistoricalCallerReportResult::getMessage()const +std::string CallOnlinePrivacyNumberResult::getMessage()const { return message_; } -int GetHistoricalCallerReportResult::getHttpStatusCode()const +int CallOnlinePrivacyNumberResult::getHttpStatusCode()const { return httpStatusCode_; } -GetHistoricalCallerReportResult::Data GetHistoricalCallerReportResult::getData()const +CallOnlinePrivacyNumberResult::Data CallOnlinePrivacyNumberResult::getData()const { return data_; } -std::string GetHistoricalCallerReportResult::getCode()const +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 deleted file mode 100644 index 580fded28..000000000 --- a/ccc/src/model/CancelAttendedTransferRequest.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::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 deleted file mode 100644 index 06d453af4..000000000 --- a/ccc/src/model/CancelAttendedTransferResult.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 -#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"]; - if(!dataNode["ContextId"].isNull()) - data_.contextId = std::stol(dataNode["ContextId"].asString()); - 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 new file mode 100644 index 000000000..aec738df3 --- /dev/null +++ b/ccc/src/model/CancelJobsRequest.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 + +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/AddNumbersToSkillGroupResult.cc b/ccc/src/model/CancelJobsResult.cc similarity index 69% rename from ccc/src/model/AddNumbersToSkillGroupResult.cc rename to ccc/src/model/CancelJobsResult.cc index 6f977221b..3e006ac90 100644 --- a/ccc/src/model/AddNumbersToSkillGroupResult.cc +++ b/ccc/src/model/CancelJobsResult.cc @@ -14,52 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult() : +CancelJobsResult::CancelJobsResult() : ServiceResult() {} -AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult(const std::string &payload) : +CancelJobsResult::CancelJobsResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddNumbersToSkillGroupResult::~AddNumbersToSkillGroupResult() +CancelJobsResult::~CancelJobsResult() {} -void AddNumbersToSkillGroupResult::parse(const std::string &payload) +void CancelJobsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string AddNumbersToSkillGroupResult::getMessage()const +std::string CancelJobsResult::getMessage()const { return message_; } -int AddNumbersToSkillGroupResult::getHttpStatusCode()const +int CancelJobsResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string AddNumbersToSkillGroupResult::getCode()const +std::string CancelJobsResult::getCode()const { return code_; } +bool CancelJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ChangeWorkModeRequest.cc b/ccc/src/model/ChangeWorkModeRequest.cc deleted file mode 100644 index 1ea753495..000000000 --- a/ccc/src/model/ChangeWorkModeRequest.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::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 deleted file mode 100644 index e52c6119d..000000000 --- a/ccc/src/model/ChangeWorkModeResult.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; - -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 new file mode 100644 index 000000000..69fac5852 --- /dev/null +++ b/ccc/src/model/CheckNumberAvaliableRequest.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::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 new file mode 100644 index 000000000..63cf6a6c2 --- /dev/null +++ b/ccc/src/model/CheckNumberAvaliableResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 deleted file mode 100644 index 1eeb59ca2..000000000 --- a/ccc/src/model/CoachCallRequest.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::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 deleted file mode 100644 index 750d56f55..000000000 --- a/ccc/src/model/CoachCallResult.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; - -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 new file mode 100644 index 000000000..a361fbbb8 --- /dev/null +++ b/ccc/src/model/CommitContactFlowVersionModificationRequest.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::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 new file mode 100644 index 000000000..64c87016c --- /dev/null +++ b/ccc/src/model/CommitContactFlowVersionModificationResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 deleted file mode 100644 index 97dda9ec5..000000000 --- a/ccc/src/model/CompleteAttendedTransferRequest.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::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 deleted file mode 100644 index 0c4c3b252..000000000 --- a/ccc/src/model/CompleteAttendedTransferResult.cc +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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"]; - if(!dataNode["ContextId"].isNull()) - data_.contextId = std::stol(dataNode["ContextId"].asString()); - 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 new file mode 100644 index 000000000..a8430042c --- /dev/null +++ b/ccc/src/model/CreateBatchJobsRequest.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 new file mode 100644 index 000000000..d1fc98d54 --- /dev/null +++ b/ccc/src/model/CreateBatchJobsResult.cc @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..27acfeb00 --- /dev/null +++ b/ccc/src/model/CreateCabInstanceRequest.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::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 new file mode 100644 index 000000000..60d302ba4 --- /dev/null +++ b/ccc/src/model/CreateCabInstanceResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..b0bd1ed78 --- /dev/null +++ b/ccc/src/model/CreateContactFlowRequest.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::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 new file mode 100644 index 000000000..50bc167a5 --- /dev/null +++ b/ccc/src/model/CreateContactFlowResult.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..dd810ff10 --- /dev/null +++ b/ccc/src/model/CreateFaultRequest.cc @@ -0,0 +1,260 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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/ResetUserPasswordResult.cc b/ccc/src/model/CreateFaultResult.cc similarity index 69% rename from ccc/src/model/ResetUserPasswordResult.cc rename to ccc/src/model/CreateFaultResult.cc index c862adbf8..940d90ed7 100644 --- a/ccc/src/model/ResetUserPasswordResult.cc +++ b/ccc/src/model/CreateFaultResult.cc @@ -14,52 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ResetUserPasswordResult::ResetUserPasswordResult() : +CreateFaultResult::CreateFaultResult() : ServiceResult() {} -ResetUserPasswordResult::ResetUserPasswordResult(const std::string &payload) : +CreateFaultResult::CreateFaultResult(const std::string &payload) : ServiceResult() { parse(payload); } -ResetUserPasswordResult::~ResetUserPasswordResult() +CreateFaultResult::~CreateFaultResult() {} -void ResetUserPasswordResult::parse(const std::string &payload) +void CreateFaultResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ResetUserPasswordResult::getMessage()const +std::string CreateFaultResult::getMessage()const { return message_; } -int ResetUserPasswordResult::getHttpStatusCode()const +int CreateFaultResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string ResetUserPasswordResult::getCode()const +std::string CreateFaultResult::getCode()const { return code_; } +bool CreateFaultResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateInstanceRequest.cc b/ccc/src/model/CreateInstanceRequest.cc index f9751e993..a0f2cc354 100644 --- a/ccc/src/model/CreateInstanceRequest.cc +++ b/ccc/src/model/CreateInstanceRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::CreateInstanceRequest; CreateInstanceRequest::CreateInstanceRequest() : - RpcServiceRequest("ccc", "2020-07-01", "CreateInstance") + RpcServiceRequest("ccc", "2017-07-05", "CreateInstance") { setMethod(HttpRequest::Method::Post); } @@ -27,15 +27,30 @@ CreateInstanceRequest::CreateInstanceRequest() : CreateInstanceRequest::~CreateInstanceRequest() {} -std::string CreateInstanceRequest::getAdminRamIdList()const +std::vector CreateInstanceRequest::getPhoneNumbers()const { - return adminRamIdList_; + return phoneNumbers_; } -void CreateInstanceRequest::setAdminRamIdList(const std::string& adminRamIdList) +void CreateInstanceRequest::setPhoneNumbers(const std::vector& phoneNumbers) { - adminRamIdList_ = adminRamIdList; - setParameter("AdminRamIdList", adminRamIdList); + 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 @@ -49,6 +64,17 @@ void CreateInstanceRequest::setDomainName(const std::string& 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_; @@ -60,15 +86,39 @@ void CreateInstanceRequest::setDescription(const std::string& description) setParameter("Description", description); } -std::string CreateInstanceRequest::getNumberList()const +int CreateInstanceRequest::getStorageMaxDays()const { - return numberList_; + return storageMaxDays_; } -void CreateInstanceRequest::setNumberList(const std::string& numberList) +void CreateInstanceRequest::setStorageMaxDays(int storageMaxDays) { - numberList_ = numberList; - setParameter("NumberList", numberList); + 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 @@ -82,3 +132,25 @@ void CreateInstanceRequest::setName(const std::string& 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 index eb9ea4463..dca0e7180 100644 --- a/ccc/src/model/CreateInstanceResult.cc +++ b/ccc/src/model/CreateInstanceResult.cc @@ -39,17 +39,102 @@ void CreateInstanceResult::parse(const std::string &payload) 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()); + 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["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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -58,23 +143,23 @@ std::string CreateInstanceResult::getMessage()const return message_; } +CreateInstanceResult::Instance CreateInstanceResult::getInstance()const +{ + return instance_; +} + int CreateInstanceResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector CreateInstanceResult::getParams()const -{ - return params_; -} - -std::string CreateInstanceResult::getData()const -{ - return data_; -} - 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 new file mode 100644 index 000000000..b2444c00b --- /dev/null +++ b/ccc/src/model/CreateJobGroupRequest.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..87dfecc3f --- /dev/null +++ b/ccc/src/model/CreateJobGroupResult.cc @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..eaa9e89b1 --- /dev/null +++ b/ccc/src/model/CreateMediaRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 new file mode 100644 index 000000000..5f6bb1e52 --- /dev/null +++ b/ccc/src/model/CreateMediaResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..3c85c74a5 --- /dev/null +++ b/ccc/src/model/CreatePredictiveJobGroupRequest.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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::string CreatePredictiveJobGroupRequest::getJobFilePath()const +{ + return jobFilePath_; +} + +void CreatePredictiveJobGroupRequest::setJobFilePath(const std::string& jobFilePath) +{ + jobFilePath_ = jobFilePath; + setParameter("JobFilePath", jobFilePath); +} + +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::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); +} + +int CreatePredictiveJobGroupRequest::getRatio()const +{ + return ratio_; +} + +void CreatePredictiveJobGroupRequest::setRatio(int ratio) +{ + ratio_ = ratio; + setParameter("Ratio", std::to_string(ratio)); +} + diff --git a/ccc/src/model/GetMultiChannelRecordingResult.cc b/ccc/src/model/CreatePredictiveJobGroupResult.cc similarity index 60% rename from ccc/src/model/GetMultiChannelRecordingResult.cc rename to ccc/src/model/CreatePredictiveJobGroupResult.cc index afb8e73be..dc6646d3f 100644 --- a/ccc/src/model/GetMultiChannelRecordingResult.cc +++ b/ccc/src/model/CreatePredictiveJobGroupResult.cc @@ -14,62 +14,66 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -GetMultiChannelRecordingResult::GetMultiChannelRecordingResult() : +CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult() : ServiceResult() {} -GetMultiChannelRecordingResult::GetMultiChannelRecordingResult(const std::string &payload) : +CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetMultiChannelRecordingResult::~GetMultiChannelRecordingResult() +CreatePredictiveJobGroupResult::~CreatePredictiveJobGroupResult() {} -void GetMultiChannelRecordingResult::parse(const std::string &payload) +void CreatePredictiveJobGroupResult::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["JobGroupId"].isNull()) + jobGroupId_ = value["JobGroupId"].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 GetMultiChannelRecordingResult::getMessage()const +std::string CreatePredictiveJobGroupResult::getJobGroupId()const +{ + return jobGroupId_; +} + +std::string CreatePredictiveJobGroupResult::getMessage()const { return message_; } -int GetMultiChannelRecordingResult::getHttpStatusCode()const +int CreatePredictiveJobGroupResult::getHttpStatusCode()const { return httpStatusCode_; } -GetMultiChannelRecordingResult::Data GetMultiChannelRecordingResult::getData()const -{ - return data_; -} - -std::string GetMultiChannelRecordingResult::getCode()const +std::string CreatePredictiveJobGroupResult::getCode()const { return code_; } +bool CreatePredictiveJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateScenarioFromTemplateRequest.cc b/ccc/src/model/CreateScenarioFromTemplateRequest.cc new file mode 100644 index 000000000..2dbab6052 --- /dev/null +++ b/ccc/src/model/CreateScenarioFromTemplateRequest.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::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 new file mode 100644 index 000000000..3b3d1bd4a --- /dev/null +++ b/ccc/src/model/CreateScenarioFromTemplateResult.cc @@ -0,0 +1,166 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..529143b45 --- /dev/null +++ b/ccc/src/model/CreateScenarioRequest.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..b0b90c2b8 --- /dev/null +++ b/ccc/src/model/CreateScenarioResult.cc @@ -0,0 +1,166 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 621eb65a7..201d957b6 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", "2020-07-01", "CreateSkillGroup") + RpcServiceRequest("ccc", "2017-07-05", "CreateSkillGroup") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ 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_; @@ -38,6 +49,54 @@ 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_; @@ -49,15 +108,17 @@ void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string CreateSkillGroupRequest::getDisplayName()const +std::vector CreateSkillGroupRequest::getOutboundPhoneNumberId()const { - return displayName_; + return outboundPhoneNumberId_; } -void CreateSkillGroupRequest::setDisplayName(const std::string& displayName) +void CreateSkillGroupRequest::setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId) { - displayName_ = displayName; - setParameter("DisplayName", displayName); + outboundPhoneNumberId_ = outboundPhoneNumberId; + for(int dep1 = 0; dep1!= outboundPhoneNumberId.size(); dep1++) { + setParameter("OutboundPhoneNumberId."+ std::to_string(dep1), outboundPhoneNumberId.at(dep1)); + } } std::string CreateSkillGroupRequest::getName()const diff --git a/ccc/src/model/CreateSkillGroupResult.cc b/ccc/src/model/CreateSkillGroupResult.cc index 6e54dc696..da09f8ea9 100644 --- a/ccc/src/model/CreateSkillGroupResult.cc +++ b/ccc/src/model/CreateSkillGroupResult.cc @@ -39,21 +39,16 @@ void CreateSkillGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["Description"].isNull()) - data_.description = dataNode["Description"].asString(); - if(!dataNode["InstanceId"].isNull()) - data_.instanceId = dataNode["InstanceId"].asString(); - if(!dataNode["Name"].isNull()) - data_.name = dataNode["Name"].asString(); - if(!dataNode["SkillGroupId"].isNull()) - data_.skillGroupId = dataNode["SkillGroupId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["SkillGroupId"].isNull()) + skillGroupId_ = value["SkillGroupId"].asString(); } @@ -67,9 +62,9 @@ int CreateSkillGroupResult::getHttpStatusCode()const return httpStatusCode_; } -CreateSkillGroupResult::Data CreateSkillGroupResult::getData()const +std::string CreateSkillGroupResult::getSkillGroupId()const { - return data_; + return skillGroupId_; } std::string CreateSkillGroupResult::getCode()const @@ -77,3 +72,8 @@ std::string CreateSkillGroupResult::getCode()const return code_; } +bool CreateSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateSurveyRequest.cc b/ccc/src/model/CreateSurveyRequest.cc new file mode 100644 index 000000000..d71bcc0ea --- /dev/null +++ b/ccc/src/model/CreateSurveyRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 new file mode 100644 index 000000000..47b290d7a --- /dev/null +++ b/ccc/src/model/CreateSurveyResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 4bce8637d..99ce3a5e5 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", "2020-07-01", "CreateUser") + RpcServiceRequest("ccc", "2017-07-05", "CreateUser") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ 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_; @@ -38,37 +49,41 @@ void CreateUserRequest::setLoginName(const std::string& loginName) setParameter("LoginName", loginName); } -std::string CreateUserRequest::getRoleId()const +std::vector CreateUserRequest::getRoleId()const { return roleId_; } -void CreateUserRequest::setRoleId(const std::string& roleId) +void CreateUserRequest::setRoleId(const std::vector& roleId) { roleId_ = roleId; - setParameter("RoleId", roleId); + for(int dep1 = 0; dep1!= roleId.size(); dep1++) { + setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); + } } -std::string CreateUserRequest::getMobile()const +std::string CreateUserRequest::getAccessKeyId()const { - return mobile_; + return accessKeyId_; } -void CreateUserRequest::setMobile(const std::string& mobile) +void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId) { - mobile_ = mobile; - setParameter("Mobile", mobile); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } -std::string CreateUserRequest::getWorkMode()const +std::vector CreateUserRequest::getSkillLevel()const { - return workMode_; + return skillLevel_; } -void CreateUserRequest::setWorkMode(const std::string& workMode) +void CreateUserRequest::setSkillLevel(const std::vector& skillLevel) { - workMode_ = workMode; - setParameter("WorkMode", workMode); + skillLevel_ = skillLevel; + for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { + setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); + } } std::string CreateUserRequest::getInstanceId()const @@ -82,6 +97,17 @@ 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_; @@ -93,26 +119,17 @@ void CreateUserRequest::setDisplayName(const std::string& displayName) setParameter("DisplayName", displayName); } -bool CreateUserRequest::getResetPassword()const +std::vector CreateUserRequest::getSkillGroupId()const { - return resetPassword_; + return skillGroupId_; } -void CreateUserRequest::setResetPassword(bool resetPassword) +void CreateUserRequest::setSkillGroupId(const std::vector& skillGroupId) { - 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); + skillGroupId_ = skillGroupId; + for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { + setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); + } } std::string CreateUserRequest::getEmail()const diff --git a/ccc/src/model/CreateUserResult.cc b/ccc/src/model/CreateUserResult.cc index e82683f41..e6eecea31 100644 --- a/ccc/src/model/CreateUserResult.cc +++ b/ccc/src/model/CreateUserResult.cc @@ -39,30 +39,16 @@ void CreateUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["DisplayName"].isNull()) - data_.displayName = dataNode["DisplayName"].asString(); - if(!dataNode["Email"].isNull()) - data_.email = dataNode["Email"].asString(); - if(!dataNode["Extension"].isNull()) - data_.extension = dataNode["Extension"].asString(); - if(!dataNode["LoginName"].isNull()) - data_.loginName = dataNode["LoginName"].asString(); - if(!dataNode["Mobile"].isNull()) - data_.mobile = dataNode["Mobile"].asString(); - if(!dataNode["UserId"].isNull()) - data_.userId = dataNode["UserId"].asString(); - if(!dataNode["WorkMode"].isNull()) - data_.workMode = dataNode["WorkMode"].asString(); - auto allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["UserId"].isNull()) + userId_ = value["UserId"].asString(); } @@ -71,23 +57,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 new file mode 100644 index 000000000..1105f11b9 --- /dev/null +++ b/ccc/src/model/CreateVoiceAppraiseRequest.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::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 new file mode 100644 index 000000000..bae2fce9f --- /dev/null +++ b/ccc/src/model/CreateVoiceAppraiseResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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/ModifyInstanceRequest.cc b/ccc/src/model/DeleteInstanceRequest.cc similarity index 55% rename from ccc/src/model/ModifyInstanceRequest.cc rename to ccc/src/model/DeleteInstanceRequest.cc index 15bd91c49..abd5b0e59 100644 --- a/ccc/src/model/ModifyInstanceRequest.cc +++ b/ccc/src/model/DeleteInstanceRequest.cc @@ -14,36 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ModifyInstanceRequest; +using AlibabaCloud::CCC::Model::DeleteInstanceRequest; -ModifyInstanceRequest::ModifyInstanceRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ModifyInstance") +DeleteInstanceRequest::DeleteInstanceRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DeleteInstance") { setMethod(HttpRequest::Method::Post); } -ModifyInstanceRequest::~ModifyInstanceRequest() +DeleteInstanceRequest::~DeleteInstanceRequest() {} -std::string ModifyInstanceRequest::getDescription()const +std::string DeleteInstanceRequest::getAccessKeyId()const { - return description_; + return accessKeyId_; } -void ModifyInstanceRequest::setDescription(const std::string& description) +void DeleteInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { - description_ = description; - setParameter("Description", description); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } -std::string ModifyInstanceRequest::getInstanceId()const +std::string DeleteInstanceRequest::getInstanceId()const { return instanceId_; } -void ModifyInstanceRequest::setInstanceId(const std::string& instanceId) +void DeleteInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/DeleteInstanceResult.cc b/ccc/src/model/DeleteInstanceResult.cc new file mode 100644 index 000000000..c348fe364 --- /dev/null +++ b/ccc/src/model/DeleteInstanceResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +DeleteInstanceResult::DeleteInstanceResult() : + ServiceResult() +{} + +DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteInstanceResult::~DeleteInstanceResult() +{} + +void DeleteInstanceResult::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 DeleteInstanceResult::getMessage()const +{ + return message_; +} + +int DeleteInstanceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteInstanceResult::getCode()const +{ + return code_; +} + +bool DeleteInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetNumberLocationRequest.cc b/ccc/src/model/DeleteJobGroupRequest.cc similarity index 55% rename from ccc/src/model/GetNumberLocationRequest.cc rename to ccc/src/model/DeleteJobGroupRequest.cc index 40e44b13e..1cedab2ad 100644 --- a/ccc/src/model/GetNumberLocationRequest.cc +++ b/ccc/src/model/DeleteJobGroupRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetNumberLocationRequest; +using AlibabaCloud::CCC::Model::DeleteJobGroupRequest; -GetNumberLocationRequest::GetNumberLocationRequest() : - RpcServiceRequest("ccc", "2020-07-01", "GetNumberLocation") +DeleteJobGroupRequest::DeleteJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DeleteJobGroup") { setMethod(HttpRequest::Method::Post); } -GetNumberLocationRequest::~GetNumberLocationRequest() +DeleteJobGroupRequest::~DeleteJobGroupRequest() {} -std::string GetNumberLocationRequest::getNumber()const -{ - return number_; -} - -void GetNumberLocationRequest::setNumber(const std::string& number) -{ - number_ = number; - setParameter("Number", number); -} - -std::string GetNumberLocationRequest::getInstanceId()const +std::string DeleteJobGroupRequest::getInstanceId()const { return instanceId_; } -void GetNumberLocationRequest::setInstanceId(const std::string& instanceId) +void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } +std::string DeleteJobGroupRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DeleteJobGroupRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/DeleteJobGroupResult.cc b/ccc/src/model/DeleteJobGroupResult.cc new file mode 100644 index 000000000..a458973a5 --- /dev/null +++ b/ccc/src/model/DeleteJobGroupResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +DeleteJobGroupResult::DeleteJobGroupResult() : + ServiceResult() +{} + +DeleteJobGroupResult::DeleteJobGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteJobGroupResult::~DeleteJobGroupResult() +{} + +void DeleteJobGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DeleteJobGroupResult::getMessage()const +{ + return message_; +} + +int DeleteJobGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteJobGroupResult::getCode()const +{ + return code_; +} + +bool DeleteJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteMediaRequest.cc b/ccc/src/model/DeleteMediaRequest.cc new file mode 100644 index 000000000..19d6df55c --- /dev/null +++ b/ccc/src/model/DeleteMediaRequest.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::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 new file mode 100644 index 000000000..8a74de5e0 --- /dev/null +++ b/ccc/src/model/DeleteMediaResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..a6ab84458 --- /dev/null +++ b/ccc/src/model/DeletePhoneTagsRequest.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::DeletePhoneTagsRequest; + +DeletePhoneTagsRequest::DeletePhoneTagsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DeletePhoneTags") +{ + setMethod(HttpRequest::Method::Post); +} + +DeletePhoneTagsRequest::~DeletePhoneTagsRequest() +{} + +std::string DeletePhoneTagsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeletePhoneTagsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector DeletePhoneTagsRequest::getPhoneNumberList()const +{ + return phoneNumberList_; +} + +void DeletePhoneTagsRequest::setPhoneNumberList(const std::vector& phoneNumberList) +{ + phoneNumberList_ = phoneNumberList; + for(int dep1 = 0; dep1!= phoneNumberList.size(); dep1++) { + setParameter("PhoneNumberList."+ std::to_string(dep1), phoneNumberList.at(dep1)); + } +} + +std::string DeletePhoneTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeletePhoneTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/DeletePhoneTagsResult.cc b/ccc/src/model/DeletePhoneTagsResult.cc new file mode 100644 index 000000000..d25beefa4 --- /dev/null +++ b/ccc/src/model/DeletePhoneTagsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +DeletePhoneTagsResult::DeletePhoneTagsResult() : + ServiceResult() +{} + +DeletePhoneTagsResult::DeletePhoneTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePhoneTagsResult::~DeletePhoneTagsResult() +{} + +void DeletePhoneTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DeletePhoneTagsResult::getMessage()const +{ + return message_; +} + +int DeletePhoneTagsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeletePhoneTagsResult::getCode()const +{ + return code_; +} + +bool DeletePhoneTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteSkillGroupRequest.cc b/ccc/src/model/DeleteSkillGroupRequest.cc index 3c7eb77f6..2de2e78af 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", "2020-07-01", "DeleteSkillGroup") + RpcServiceRequest("ccc", "2017-07-05", "DeleteSkillGroup") { setMethod(HttpRequest::Method::Post); } @@ -49,14 +49,14 @@ void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) setParameter("SkillGroupId", skillGroupId); } -bool DeleteSkillGroupRequest::getForce()const +std::string DeleteSkillGroupRequest::getAccessKeyId()const { - return force_; + return accessKeyId_; } -void DeleteSkillGroupRequest::setForce(bool force) +void DeleteSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) { - force_ = force; - setParameter("Force", force ? "true" : "false"); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/DeleteSkillGroupResult.cc b/ccc/src/model/DeleteSkillGroupResult.cc index dfa967369..a441d9766 100644 --- a/ccc/src/model/DeleteSkillGroupResult.cc +++ b/ccc/src/model/DeleteSkillGroupResult.cc @@ -39,12 +39,14 @@ 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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -63,3 +65,8 @@ std::string DeleteSkillGroupResult::getCode()const return code_; } +bool DeleteSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteSurveyRequest.cc b/ccc/src/model/DeleteSurveyRequest.cc new file mode 100644 index 000000000..9f35965c1 --- /dev/null +++ b/ccc/src/model/DeleteSurveyRequest.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::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 new file mode 100644 index 000000000..ea7f4bc4e --- /dev/null +++ b/ccc/src/model/DeleteSurveyResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..82fde9c9b --- /dev/null +++ b/ccc/src/model/DialExRequest.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::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/GetTurnCredentialsResult.cc b/ccc/src/model/DialExResult.cc similarity index 53% rename from ccc/src/model/GetTurnCredentialsResult.cc rename to ccc/src/model/DialExResult.cc index 5d32a6250..9785acb2b 100644 --- a/ccc/src/model/GetTurnCredentialsResult.cc +++ b/ccc/src/model/DialExResult.cc @@ -14,70 +14,87 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -GetTurnCredentialsResult::GetTurnCredentialsResult() : +DialExResult::DialExResult() : ServiceResult() {} -GetTurnCredentialsResult::GetTurnCredentialsResult(const std::string &payload) : +DialExResult::DialExResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetTurnCredentialsResult::~GetTurnCredentialsResult() +DialExResult::~DialExResult() {} -void GetTurnCredentialsResult::parse(const std::string &payload) +void DialExResult::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["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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["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 GetTurnCredentialsResult::getMessage()const +std::string DialExResult::getStatusDesc()const +{ + return statusDesc_; +} + +std::string DialExResult::getTaskId()const +{ + return taskId_; +} + +std::string DialExResult::getMessage()const { return message_; } -int GetTurnCredentialsResult::getHttpStatusCode()const +int DialExResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector GetTurnCredentialsResult::getParams()const -{ - return params_; -} - -GetTurnCredentialsResult::Data GetTurnCredentialsResult::getData()const -{ - return data_; -} - -std::string GetTurnCredentialsResult::getCode()const +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 new file mode 100644 index 000000000..e01b4637b --- /dev/null +++ b/ccc/src/model/DialogueRequest.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 + +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 new file mode 100644 index 000000000..6260b2959 --- /dev/null +++ b/ccc/src/model/DialogueResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..479111632 --- /dev/null +++ b/ccc/src/model/DisableTrunkProvidersRequest.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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/UpdateConfigItemsResult.cc b/ccc/src/model/DisableTrunkProvidersResult.cc similarity index 64% rename from ccc/src/model/UpdateConfigItemsResult.cc rename to ccc/src/model/DisableTrunkProvidersResult.cc index ddac3eb23..8953e710a 100644 --- a/ccc/src/model/UpdateConfigItemsResult.cc +++ b/ccc/src/model/DisableTrunkProvidersResult.cc @@ -14,60 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -UpdateConfigItemsResult::UpdateConfigItemsResult() : +DisableTrunkProvidersResult::DisableTrunkProvidersResult() : ServiceResult() {} -UpdateConfigItemsResult::UpdateConfigItemsResult(const std::string &payload) : +DisableTrunkProvidersResult::DisableTrunkProvidersResult(const std::string &payload) : ServiceResult() { parse(payload); } -UpdateConfigItemsResult::~UpdateConfigItemsResult() +DisableTrunkProvidersResult::~DisableTrunkProvidersResult() {} -void UpdateConfigItemsResult::parse(const std::string &payload) +void DisableTrunkProvidersResult::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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string UpdateConfigItemsResult::getMessage()const +std::string DisableTrunkProvidersResult::getMessage()const { return message_; } -int UpdateConfigItemsResult::getHttpStatusCode()const +int DisableTrunkProvidersResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector UpdateConfigItemsResult::getParams()const -{ - return params_; -} - -std::string UpdateConfigItemsResult::getCode()const +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 new file mode 100644 index 000000000..b5f97787d --- /dev/null +++ b/ccc/src/model/DownloadAllTypeRecordingRequest.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::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 new file mode 100644 index 000000000..19b2e8a1e --- /dev/null +++ b/ccc/src/model/DownloadAllTypeRecordingResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..32f5b3930 --- /dev/null +++ b/ccc/src/model/DownloadCabRecordingRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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/ListPrivilegesOfUserResult.cc b/ccc/src/model/DownloadCabRecordingResult.cc similarity index 53% rename from ccc/src/model/ListPrivilegesOfUserResult.cc rename to ccc/src/model/DownloadCabRecordingResult.cc index aaf1fbf23..0f85c0f67 100644 --- a/ccc/src/model/ListPrivilegesOfUserResult.cc +++ b/ccc/src/model/DownloadCabRecordingResult.cc @@ -14,69 +14,69 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ListPrivilegesOfUserResult::ListPrivilegesOfUserResult() : +DownloadCabRecordingResult::DownloadCabRecordingResult() : ServiceResult() {} -ListPrivilegesOfUserResult::ListPrivilegesOfUserResult(const std::string &payload) : +DownloadCabRecordingResult::DownloadCabRecordingResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListPrivilegesOfUserResult::~ListPrivilegesOfUserResult() +DownloadCabRecordingResult::~DownloadCabRecordingResult() {} -void ListPrivilegesOfUserResult::parse(const std::string &payload) +void DownloadCabRecordingResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["DataItem"]; - for (auto valueDataDataItem : allDataNode) - { - DataItem dataObject; - if(!valueDataDataItem["InstanceId"].isNull()) - dataObject.instanceId = valueDataDataItem["InstanceId"].asString(); - if(!valueDataDataItem["Name"].isNull()) - dataObject.name = valueDataDataItem["Name"].asString(); - if(!valueDataDataItem["Scope"].isNull()) - dataObject.scope = valueDataDataItem["Scope"].asString(); - data_.push_back(dataObject); - } + 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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string ListPrivilegesOfUserResult::getMessage()const +DownloadCabRecordingResult::MediaDownloadParam DownloadCabRecordingResult::getMediaDownloadParam()const +{ + return mediaDownloadParam_; +} + +std::string DownloadCabRecordingResult::getMessage()const { return message_; } -int ListPrivilegesOfUserResult::getHttpStatusCode()const +int DownloadCabRecordingResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector ListPrivilegesOfUserResult::getData()const -{ - return data_; -} - -std::string ListPrivilegesOfUserResult::getCode()const +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 new file mode 100644 index 000000000..8b4052c2f --- /dev/null +++ b/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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/RemovePhoneNumbersFromSkillGroupResult.cc b/ccc/src/model/DownloadOriginalStatisticsReportResult.cc similarity index 53% rename from ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc rename to ccc/src/model/DownloadOriginalStatisticsReportResult.cc index 8957c2a81..939dc55fb 100644 --- a/ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc +++ b/ccc/src/model/DownloadOriginalStatisticsReportResult.cc @@ -14,52 +14,67 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult() : +DownloadOriginalStatisticsReportResult::DownloadOriginalStatisticsReportResult() : ServiceResult() {} -RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult(const std::string &payload) : +DownloadOriginalStatisticsReportResult::DownloadOriginalStatisticsReportResult(const std::string &payload) : ServiceResult() { parse(payload); } -RemovePhoneNumbersFromSkillGroupResult::~RemovePhoneNumbersFromSkillGroupResult() +DownloadOriginalStatisticsReportResult::~DownloadOriginalStatisticsReportResult() {} -void RemovePhoneNumbersFromSkillGroupResult::parse(const std::string &payload) +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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string RemovePhoneNumbersFromSkillGroupResult::getMessage()const +DownloadOriginalStatisticsReportResult::DownloadParams DownloadOriginalStatisticsReportResult::getDownloadParams()const +{ + return downloadParams_; +} + +std::string DownloadOriginalStatisticsReportResult::getMessage()const { return message_; } -int RemovePhoneNumbersFromSkillGroupResult::getHttpStatusCode()const +int DownloadOriginalStatisticsReportResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string RemovePhoneNumbersFromSkillGroupResult::getCode()const +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 new file mode 100644 index 000000000..cc79c2373 --- /dev/null +++ b/ccc/src/model/DownloadRecordingRequest.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::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/GetNumberLocationResult.cc b/ccc/src/model/DownloadRecordingResult.cc similarity index 54% rename from ccc/src/model/GetNumberLocationResult.cc rename to ccc/src/model/DownloadRecordingResult.cc index 61ff2a8d8..c0e6cb992 100644 --- a/ccc/src/model/GetNumberLocationResult.cc +++ b/ccc/src/model/DownloadRecordingResult.cc @@ -14,64 +14,69 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -GetNumberLocationResult::GetNumberLocationResult() : +DownloadRecordingResult::DownloadRecordingResult() : ServiceResult() {} -GetNumberLocationResult::GetNumberLocationResult(const std::string &payload) : +DownloadRecordingResult::DownloadRecordingResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetNumberLocationResult::~GetNumberLocationResult() +DownloadRecordingResult::~DownloadRecordingResult() {} -void GetNumberLocationResult::parse(const std::string &payload) +void DownloadRecordingResult::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["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(); + 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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string GetNumberLocationResult::getMessage()const +DownloadRecordingResult::MediaDownloadParam DownloadRecordingResult::getMediaDownloadParam()const +{ + return mediaDownloadParam_; +} + +std::string DownloadRecordingResult::getMessage()const { return message_; } -int GetNumberLocationResult::getHttpStatusCode()const +int DownloadRecordingResult::getHttpStatusCode()const { return httpStatusCode_; } -GetNumberLocationResult::Data GetNumberLocationResult::getData()const -{ - return data_; -} - -std::string GetNumberLocationResult::getCode()const +std::string DownloadRecordingResult::getCode()const { return code_; } +bool DownloadRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetMultiChannelRecordingRequest.cc b/ccc/src/model/DownloadUnreachableContactsRequest.cc similarity index 50% rename from ccc/src/model/GetMultiChannelRecordingRequest.cc rename to ccc/src/model/DownloadUnreachableContactsRequest.cc index f1a6d615a..d07dd5a3a 100644 --- a/ccc/src/model/GetMultiChannelRecordingRequest.cc +++ b/ccc/src/model/DownloadUnreachableContactsRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetMultiChannelRecordingRequest; +using AlibabaCloud::CCC::Model::DownloadUnreachableContactsRequest; -GetMultiChannelRecordingRequest::GetMultiChannelRecordingRequest() : - RpcServiceRequest("ccc", "2020-07-01", "GetMultiChannelRecording") +DownloadUnreachableContactsRequest::DownloadUnreachableContactsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DownloadUnreachableContacts") { setMethod(HttpRequest::Method::Post); } -GetMultiChannelRecordingRequest::~GetMultiChannelRecordingRequest() +DownloadUnreachableContactsRequest::~DownloadUnreachableContactsRequest() {} -std::string GetMultiChannelRecordingRequest::getContactId()const -{ - return contactId_; -} - -void GetMultiChannelRecordingRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -std::string GetMultiChannelRecordingRequest::getInstanceId()const +std::string DownloadUnreachableContactsRequest::getInstanceId()const { return instanceId_; } -void GetMultiChannelRecordingRequest::setInstanceId(const std::string& instanceId) +void DownloadUnreachableContactsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } +std::string DownloadUnreachableContactsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DownloadUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/DownloadUnreachableContactsResult.cc b/ccc/src/model/DownloadUnreachableContactsResult.cc new file mode 100644 index 000000000..18229238c --- /dev/null +++ b/ccc/src/model/DownloadUnreachableContactsResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..dd6398224 --- /dev/null +++ b/ccc/src/model/FindUsersRequest.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::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 new file mode 100644 index 000000000..c73ce844d --- /dev/null +++ b/ccc/src/model/FindUsersResult.cc @@ -0,0 +1,142 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 new file mode 100644 index 000000000..d161d17bf --- /dev/null +++ b/ccc/src/model/GenerateAgentStatisticReportRequest.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::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 new file mode 100644 index 000000000..e6543c8d5 --- /dev/null +++ b/ccc/src/model/GenerateAgentStatisticReportResult.cc @@ -0,0 +1,219 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..61854da84 --- /dev/null +++ b/ccc/src/model/GetAgentDataRequest.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::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 new file mode 100644 index 000000000..0dfd24124 --- /dev/null +++ b/ccc/src/model/GetAgentDataResult.cc @@ -0,0 +1,219 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/GetCallDetailRecordResult.cc b/ccc/src/model/GetCallDetailRecordResult.cc deleted file mode 100644 index 2faab110c..000000000 --- a/ccc/src/model/GetCallDetailRecordResult.cc +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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["ReleaseInitiator"].isNull()) - data_.releaseInitiator = dataNode["ReleaseInitiator"].asString(); - if(!dataNode["ContactDisposition"].isNull()) - data_.contactDisposition = dataNode["ContactDisposition"].asString(); - if(!dataNode["ContactType"].isNull()) - data_.contactType = dataNode["ContactType"].asString(); - if(!dataNode["AgentIds"].isNull()) - data_.agentIds = dataNode["AgentIds"].asString(); - if(!dataNode["CallDuration"].isNull()) - data_.callDuration = std::stol(dataNode["CallDuration"].asString()); - if(!dataNode["RecordingReady"].isNull()) - data_.recordingReady = dataNode["RecordingReady"].asString() == "true"; - if(!dataNode["EstablishedTime"].isNull()) - data_.establishedTime = std::stol(dataNode["EstablishedTime"].asString()); - if(!dataNode["InstanceId"].isNull()) - data_.instanceId = dataNode["InstanceId"].asString(); - if(!dataNode["SatisfactionSurveyOffered"].isNull()) - data_.satisfactionSurveyOffered = dataNode["SatisfactionSurveyOffered"].asString() == "true"; - if(!dataNode["CalledNumber"].isNull()) - data_.calledNumber = dataNode["CalledNumber"].asString(); - if(!dataNode["AgentNames"].isNull()) - data_.agentNames = dataNode["AgentNames"].asString(); - if(!dataNode["Satisfaction"].isNull()) - data_.satisfaction = std::stoi(dataNode["Satisfaction"].asString()); - if(!dataNode["StartTime"].isNull()) - data_.startTime = std::stol(dataNode["StartTime"].asString()); - if(!dataNode["ContactId"].isNull()) - data_.contactId = dataNode["ContactId"].asString(); - if(!dataNode["SatisfactionSurveyChannel"].isNull()) - data_.satisfactionSurveyChannel = dataNode["SatisfactionSurveyChannel"].asString(); - if(!dataNode["ReleaseTime"].isNull()) - data_.releaseTime = std::stol(dataNode["ReleaseTime"].asString()); - if(!dataNode["CallingNumber"].isNull()) - data_.callingNumber = dataNode["CallingNumber"].asString(); - if(!dataNode["SkillGroupNames"].isNull()) - data_.skillGroupNames = dataNode["SkillGroupNames"].asString(); - if(!dataNode["SkillGroupIds"].isNull()) - data_.skillGroupIds = dataNode["SkillGroupIds"].asString(); - if(!dataNode["CallerLocation"].isNull()) - data_.callerLocation = dataNode["CallerLocation"].asString(); - if(!dataNode["CalleeLocation"].isNull()) - data_.calleeLocation = dataNode["CalleeLocation"].asString(); - auto allAgentEventsNode = dataNode["AgentEvents"]["AgentEventsItem"]; - for (auto dataNodeAgentEventsAgentEventsItem : allAgentEventsNode) - { - Data::AgentEventsItem agentEventsItemObject; - if(!dataNodeAgentEventsAgentEventsItem["AgentName"].isNull()) - agentEventsItemObject.agentName = dataNodeAgentEventsAgentEventsItem["AgentName"].asString(); - if(!dataNodeAgentEventsAgentEventsItem["AgentId"].isNull()) - agentEventsItemObject.agentId = dataNodeAgentEventsAgentEventsItem["AgentId"].asString(); - if(!dataNodeAgentEventsAgentEventsItem["SkillGroupId"].isNull()) - agentEventsItemObject.skillGroupId = dataNodeAgentEventsAgentEventsItem["SkillGroupId"].asString(); - auto allEventSequenceNode = dataNodeAgentEventsAgentEventsItem["EventSequence"]["EventSequenceItem"]; - for (auto dataNodeAgentEventsAgentEventsItemEventSequenceEventSequenceItem : allEventSequenceNode) - { - Data::AgentEventsItem::EventSequenceItem eventSequenceObject; - if(!dataNodeAgentEventsAgentEventsItemEventSequenceEventSequenceItem["Event"].isNull()) - eventSequenceObject.event = dataNodeAgentEventsAgentEventsItemEventSequenceEventSequenceItem["Event"].asString(); - if(!dataNodeAgentEventsAgentEventsItemEventSequenceEventSequenceItem["EventTime"].isNull()) - eventSequenceObject.eventTime = std::stol(dataNodeAgentEventsAgentEventsItemEventSequenceEventSequenceItem["EventTime"].asString()); - agentEventsItemObject.eventSequence.push_back(eventSequenceObject); - } - data_.agentEvents.push_back(agentEventsItemObject); - } - auto allIvrEventsNode = dataNode["IvrEvents"]["IvrEventsItem"]; - for (auto dataNodeIvrEventsIvrEventsItem : allIvrEventsNode) - { - Data::IvrEventsItem ivrEventsItemObject; - if(!dataNodeIvrEventsIvrEventsItem["FlowId"].isNull()) - ivrEventsItemObject.flowId = dataNodeIvrEventsIvrEventsItem["FlowId"].asString(); - auto allEventSequence1Node = dataNodeIvrEventsIvrEventsItem["EventSequence"]["EventSequenceItem"]; - for (auto dataNodeIvrEventsIvrEventsItemEventSequenceEventSequenceItem : allEventSequence1Node) - { - Data::IvrEventsItem::EventSequenceItem2 eventSequence1Object; - if(!dataNodeIvrEventsIvrEventsItemEventSequenceEventSequenceItem["Event"].isNull()) - eventSequence1Object.event = dataNodeIvrEventsIvrEventsItemEventSequenceEventSequenceItem["Event"].asString(); - if(!dataNodeIvrEventsIvrEventsItemEventSequenceEventSequenceItem["EventTime"].isNull()) - eventSequence1Object.eventTime = std::stol(dataNodeIvrEventsIvrEventsItemEventSequenceEventSequenceItem["EventTime"].asString()); - ivrEventsItemObject.eventSequence1.push_back(eventSequence1Object); - } - data_.ivrEvents.push_back(ivrEventsItemObject); - } - auto allQueueEventsNode = dataNode["QueueEvents"]["QueueEventsItem"]; - for (auto dataNodeQueueEventsQueueEventsItem : allQueueEventsNode) - { - Data::QueueEventsItem queueEventsItemObject; - if(!dataNodeQueueEventsQueueEventsItem["QueueId"].isNull()) - queueEventsItemObject.queueId = dataNodeQueueEventsQueueEventsItem["QueueId"].asString(); - if(!dataNodeQueueEventsQueueEventsItem["QueueName"].isNull()) - queueEventsItemObject.queueName = dataNodeQueueEventsQueueEventsItem["QueueName"].asString(); - if(!dataNodeQueueEventsQueueEventsItem["FlowId"].isNull()) - queueEventsItemObject.flowId = dataNodeQueueEventsQueueEventsItem["FlowId"].asString(); - if(!dataNodeQueueEventsQueueEventsItem["QueueType"].isNull()) - queueEventsItemObject.queueType = std::stoi(dataNodeQueueEventsQueueEventsItem["QueueType"].asString()); - auto allEventSequence3Node = dataNodeQueueEventsQueueEventsItem["EventSequence"]["EventSequenceItem"]; - for (auto dataNodeQueueEventsQueueEventsItemEventSequenceEventSequenceItem : allEventSequence3Node) - { - Data::QueueEventsItem::EventSequenceItem4 eventSequence3Object; - if(!dataNodeQueueEventsQueueEventsItemEventSequenceEventSequenceItem["Event"].isNull()) - eventSequence3Object.event = dataNodeQueueEventsQueueEventsItemEventSequenceEventSequenceItem["Event"].asString(); - if(!dataNodeQueueEventsQueueEventsItemEventSequenceEventSequenceItem["EventTime"].isNull()) - eventSequence3Object.eventTime = std::stol(dataNodeQueueEventsQueueEventsItemEventSequenceEventSequenceItem["EventTime"].asString()); - queueEventsItemObject.eventSequence3.push_back(eventSequence3Object); - } - data_.queueEvents.push_back(queueEventsItemObject); - } - 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 new file mode 100644 index 000000000..c676068f4 --- /dev/null +++ b/ccc/src/model/GetCallMeasureSummaryReportRequest.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::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 new file mode 100644 index 000000000..5d8a46c0c --- /dev/null +++ b/ccc/src/model/GetCallMeasureSummaryReportResult.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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 new file mode 100644 index 000000000..5742fbbca --- /dev/null +++ b/ccc/src/model/GetConfigRequest.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::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/SaveRTCStatsV2Result.cc b/ccc/src/model/GetConfigResult.cc similarity index 59% rename from ccc/src/model/SaveRTCStatsV2Result.cc rename to ccc/src/model/GetConfigResult.cc index 1fd8fe282..3b587123c 100644 --- a/ccc/src/model/SaveRTCStatsV2Result.cc +++ b/ccc/src/model/GetConfigResult.cc @@ -14,73 +14,69 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -SaveRTCStatsV2Result::SaveRTCStatsV2Result() : +GetConfigResult::GetConfigResult() : ServiceResult() {} -SaveRTCStatsV2Result::SaveRTCStatsV2Result(const std::string &payload) : +GetConfigResult::GetConfigResult(const std::string &payload) : ServiceResult() { parse(payload); } -SaveRTCStatsV2Result::~SaveRTCStatsV2Result() +GetConfigResult::~GetConfigResult() {} -void SaveRTCStatsV2Result::parse(const std::string &payload) +void GetConfigResult::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["RowCount"].isNull()) - rowCount_ = std::stol(value["RowCount"].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["TimeStamp"].isNull()) - timeStamp_ = std::stol(value["TimeStamp"].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()); } -std::string SaveRTCStatsV2Result::getMessage()const +std::string GetConfigResult::getMessage()const { return message_; } -long SaveRTCStatsV2Result::getHttpStatusCode()const +int GetConfigResult::getHttpStatusCode()const { return httpStatusCode_; } -long SaveRTCStatsV2Result::getRowCount()const +GetConfigResult::ConfigItem GetConfigResult::getConfigItem()const { - return rowCount_; + return configItem_; } -std::string SaveRTCStatsV2Result::getCode()const +std::string GetConfigResult::getCode()const { return code_; } -bool SaveRTCStatsV2Result::getSuccess()const +bool GetConfigResult::getSuccess()const { return success_; } -long SaveRTCStatsV2Result::getTimeStamp()const -{ - return timeStamp_; -} - diff --git a/ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc b/ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc new file mode 100644 index 000000000..d2e5eb3af --- /dev/null +++ b/ccc/src/model/GetContactInfoByOutboundTaskIdRequest.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::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 new file mode 100644 index 000000000..9947f6beb --- /dev/null +++ b/ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..1b8175153 --- /dev/null +++ b/ccc/src/model/GetConversationDetailByContactIdRequest.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::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 new file mode 100644 index 000000000..e104dfb6a --- /dev/null +++ b/ccc/src/model/GetConversationDetailByContactIdResult.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; + +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/GetCallDetailRecordRequest.cc b/ccc/src/model/GetConversationListRequest.cc similarity index 54% rename from ccc/src/model/GetCallDetailRecordRequest.cc rename to ccc/src/model/GetConversationListRequest.cc index e07602e72..a9b7901ca 100644 --- a/ccc/src/model/GetCallDetailRecordRequest.cc +++ b/ccc/src/model/GetConversationListRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetCallDetailRecordRequest; +using AlibabaCloud::CCC::Model::GetConversationListRequest; -GetCallDetailRecordRequest::GetCallDetailRecordRequest() : - RpcServiceRequest("ccc", "2020-07-01", "GetCallDetailRecord") +GetConversationListRequest::GetConversationListRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetConversationList") { setMethod(HttpRequest::Method::Post); } -GetCallDetailRecordRequest::~GetCallDetailRecordRequest() +GetConversationListRequest::~GetConversationListRequest() {} -std::string GetCallDetailRecordRequest::getInstanceId()const +std::string GetConversationListRequest::getInstanceId()const { return instanceId_; } -void GetCallDetailRecordRequest::setInstanceId(const std::string& instanceId) +void GetConversationListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -std::string GetCallDetailRecordRequest::getContactId()const +std::string GetConversationListRequest::getTaskId()const { - return contactId_; + return taskId_; } -void GetCallDetailRecordRequest::setContactId(const std::string& contactId) +void GetConversationListRequest::setTaskId(const std::string& taskId) { - contactId_ = contactId; - setParameter("ContactId", contactId); + taskId_ = taskId; + setParameter("TaskId", taskId); } diff --git a/ccc/src/model/GetConversationListResult.cc b/ccc/src/model/GetConversationListResult.cc new file mode 100644 index 000000000..96cd893e7 --- /dev/null +++ b/ccc/src/model/GetConversationListResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index 7b7515504..000000000 --- a/ccc/src/model/GetHistoricalCallerReportRequest.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::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/GetHistoricalInstanceReportRequest.cc b/ccc/src/model/GetHistoricalInstanceReportRequest.cc deleted file mode 100644 index 7b4dae5dd..000000000 --- a/ccc/src/model/GetHistoricalInstanceReportRequest.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::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 deleted file mode 100644 index 6e7166a83..000000000 --- a/ccc/src/model/GetHistoricalInstanceReportResult.cc +++ /dev/null @@ -1,274 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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["AverageRingTime"].isNull()) - data_.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["CallsVoicemail"].isNull()) - data_.inbound.callsVoicemail = std::stol(inboundNode["CallsVoicemail"].asString()); - if(!inboundNode["MaxAbandonedInIVRTime"].isNull()) - data_.inbound.maxAbandonedInIVRTime = std::stol(inboundNode["MaxAbandonedInIVRTime"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - data_.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["CallsIVRException"].isNull()) - data_.inbound.callsIVRException = std::stol(inboundNode["CallsIVRException"].asString()); - if(!inboundNode["CallsAbandonedInIVR"].isNull()) - data_.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - data_.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["TotalHoldTime"].isNull()) - data_.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); - if(!inboundNode["MaxAbandonTime"].isNull()) - data_.inbound.maxAbandonTime = std::stol(inboundNode["MaxAbandonTime"].asString()); - if(!inboundNode["AverageAbandonTime"].isNull()) - data_.inbound.averageAbandonTime = std::stof(inboundNode["AverageAbandonTime"].asString()); - if(!inboundNode["CallsRinged"].isNull()) - data_.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString()); - if(!inboundNode["CallsQueuingFailed"].isNull()) - data_.inbound.callsQueuingFailed = std::stol(inboundNode["CallsQueuingFailed"].asString()); - if(!inboundNode["TotalRingTime"].isNull()) - data_.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); - if(!inboundNode["AbandonRate"].isNull()) - data_.inbound.abandonRate = std::stof(inboundNode["AbandonRate"].asString()); - if(!inboundNode["TotalTalkTime"].isNull()) - data_.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); - if(!inboundNode["MaxAbandonedInRingTime"].isNull()) - data_.inbound.maxAbandonedInRingTime = std::stol(inboundNode["MaxAbandonedInRingTime"].asString()); - if(!inboundNode["CallsBlindTransferred"].isNull()) - data_.inbound.callsBlindTransferred = std::stol(inboundNode["CallsBlindTransferred"].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["MaxWaitTime"].isNull()) - data_.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); - if(!inboundNode["AverageTalkTime"].isNull()) - data_.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["CallsAttendedTransferred"].isNull()) - data_.inbound.callsAttendedTransferred = std::stol(inboundNode["CallsAttendedTransferred"].asString()); - if(!inboundNode["TotalAbandonedInIVRTime"].isNull()) - data_.inbound.totalAbandonedInIVRTime = std::stol(inboundNode["TotalAbandonedInIVRTime"].asString()); - if(!inboundNode["CallsQueuingOverflow"].isNull()) - data_.inbound.callsQueuingOverflow = std::stol(inboundNode["CallsQueuingOverflow"].asString()); - if(!inboundNode["CallsAbandonedInRing"].isNull()) - data_.inbound.callsAbandonedInRing = std::stol(inboundNode["CallsAbandonedInRing"].asString()); - if(!inboundNode["TotalAbandonedInRingTime"].isNull()) - data_.inbound.totalAbandonedInRingTime = std::stol(inboundNode["TotalAbandonedInRingTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - data_.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].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["CallsQueued"].isNull()) - data_.inbound.callsQueued = std::stol(inboundNode["CallsQueued"].asString()); - if(!inboundNode["AverageAbandonedInRingTime"].isNull()) - data_.inbound.averageAbandonedInRingTime = std::stof(inboundNode["AverageAbandonedInRingTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - data_.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["CallsAbandoned"].isNull()) - data_.inbound.callsAbandoned = std::stol(inboundNode["CallsAbandoned"].asString()); - if(!inboundNode["MaxAbandonedInQueueTime"].isNull()) - data_.inbound.maxAbandonedInQueueTime = std::stol(inboundNode["MaxAbandonedInQueueTime"].asString()); - if(!inboundNode["CallsAbandonedInVoiceNavigator"].isNull()) - data_.inbound.callsAbandonedInVoiceNavigator = std::stol(inboundNode["CallsAbandonedInVoiceNavigator"].asString()); - if(!inboundNode["TotalWaitTime"].isNull()) - data_.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - data_.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - data_.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["TotalAbandonTime"].isNull()) - data_.inbound.totalAbandonTime = std::stol(inboundNode["TotalAbandonTime"].asString()); - if(!inboundNode["CallsOffered"].isNull()) - data_.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsQueuingTimeout"].isNull()) - data_.inbound.callsQueuingTimeout = std::stol(inboundNode["CallsQueuingTimeout"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - data_.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["MaxHoldTime"].isNull()) - data_.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].asString()); - if(!inboundNode["CallsForwardToOutsideNumber"].isNull()) - data_.inbound.callsForwardToOutsideNumber = std::stol(inboundNode["CallsForwardToOutsideNumber"].asString()); - if(!inboundNode["SatisfactionRate"].isNull()) - data_.inbound.satisfactionRate = std::stof(inboundNode["SatisfactionRate"].asString()); - if(!inboundNode["CallsHold"].isNull()) - data_.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - data_.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["HandleRate"].isNull()) - data_.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - data_.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - if(!inboundNode["AverageHoldTime"].isNull()) - data_.inbound.averageHoldTime = std::stof(inboundNode["AverageHoldTime"].asString()); - if(!inboundNode["CallsAbandonedInQueue"].isNull()) - data_.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); - if(!inboundNode["TotalAbandonedInQueueTime"].isNull()) - data_.inbound.totalAbandonedInQueueTime = std::stol(inboundNode["TotalAbandonedInQueueTime"].asString()); - auto outboundNode = dataNode["Outbound"]; - if(!outboundNode["AverageRingTime"].isNull()) - data_.outbound.averageRingTime = std::stof(outboundNode["AverageRingTime"].asString()); - if(!outboundNode["CallsDialed"].isNull()) - data_.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - data_.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - data_.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - data_.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].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["AverageWorkTime"].isNull()) - data_.outbound.averageWorkTime = std::stof(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - data_.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["CallsRinged"].isNull()) - data_.outbound.callsRinged = std::stol(outboundNode["CallsRinged"].asString()); - if(!outboundNode["TotalRingTime"].isNull()) - data_.outbound.totalRingTime = std::stol(outboundNode["TotalRingTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - data_.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["MaxRingTime"].isNull()) - data_.outbound.maxRingTime = std::stol(outboundNode["MaxRingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - data_.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - data_.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["CallsBlindTransferred"].isNull()) - data_.outbound.callsBlindTransferred = std::stol(outboundNode["CallsBlindTransferred"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - data_.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["MaxHoldTime"].isNull()) - data_.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - data_.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["SatisfactionRate"].isNull()) - data_.outbound.satisfactionRate = std::stof(outboundNode["SatisfactionRate"].asString()); - if(!outboundNode["CallsAttendedTransferred"].isNull()) - data_.outbound.callsAttendedTransferred = std::stol(outboundNode["CallsAttendedTransferred"].asString()); - if(!outboundNode["CallsHold"].isNull()) - data_.outbound.callsHold = std::stoi(outboundNode["CallsHold"].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["AverageHoldTime"].isNull()) - data_.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - data_.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString()); - auto overallNode = dataNode["Overall"]; - if(!overallNode["TotalTalkTime"].isNull()) - data_.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - data_.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - data_.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - data_.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxHoldTime"].isNull()) - data_.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - data_.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageBreakTime"].isNull()) - data_.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString()); - if(!overallNode["TotalHoldTime"].isNull()) - data_.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); - if(!overallNode["SatisfactionRate"].isNull()) - data_.overall.satisfactionRate = std::stof(overallNode["SatisfactionRate"].asString()); - if(!overallNode["MaxBreakTime"].isNull()) - data_.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - data_.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - data_.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].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["MaxReadyTime"].isNull()) - data_.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - data_.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString()); - if(!overallNode["AverageHoldTime"].isNull()) - data_.overall.averageHoldTime = std::stof(overallNode["AverageHoldTime"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - data_.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - data_.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - data_.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["TotalCalls"].isNull()) - data_.overall.totalCalls = std::stol(overallNode["TotalCalls"].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 64a946b6b..f0e2049b6 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", "2020-07-01", "GetInstance") + RpcServiceRequest("ccc", "2017-07-05", "GetInstance") { setMethod(HttpRequest::Method::Post); } @@ -38,3 +38,14 @@ 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 9a4455834..161ca2bae 100644 --- a/ccc/src/model/GetInstanceResult.cc +++ b/ccc/src/model/GetInstanceResult.cc @@ -39,98 +39,90 @@ void GetInstanceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - 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) + 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) { - 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); + 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 allNumberListNode = dataNode["NumberList"]["PhoneNumber"]; - for (auto dataNodeNumberListPhoneNumber : allNumberListNode) + auto allPhoneNumbersNode = instanceNode["PhoneNumbers"]["PhoneNumber"]; + for (auto instanceNodePhoneNumbersPhoneNumber : allPhoneNumbersNode) { - 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); + 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 allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -139,23 +131,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/GetMonoRecordingRequest.cc b/ccc/src/model/GetInstanceStateRequest.cc similarity index 54% rename from ccc/src/model/GetMonoRecordingRequest.cc rename to ccc/src/model/GetInstanceStateRequest.cc index acc727b09..9e6ec2353 100644 --- a/ccc/src/model/GetMonoRecordingRequest.cc +++ b/ccc/src/model/GetInstanceStateRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetMonoRecordingRequest; +using AlibabaCloud::CCC::Model::GetInstanceStateRequest; -GetMonoRecordingRequest::GetMonoRecordingRequest() : - RpcServiceRequest("ccc", "2020-07-01", "GetMonoRecording") +GetInstanceStateRequest::GetInstanceStateRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetInstanceState") { setMethod(HttpRequest::Method::Post); } -GetMonoRecordingRequest::~GetMonoRecordingRequest() +GetInstanceStateRequest::~GetInstanceStateRequest() {} -std::string GetMonoRecordingRequest::getContactId()const -{ - return contactId_; -} - -void GetMonoRecordingRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -std::string GetMonoRecordingRequest::getInstanceId()const +std::string GetInstanceStateRequest::getInstanceId()const { return instanceId_; } -void GetMonoRecordingRequest::setInstanceId(const std::string& instanceId) +void GetInstanceStateRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } +std::string GetInstanceStateRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetInstanceStateRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetInstanceStateResult.cc b/ccc/src/model/GetInstanceStateResult.cc new file mode 100644 index 000000000..35f1367c8 --- /dev/null +++ b/ccc/src/model/GetInstanceStateResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..ec2065aea --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportByIntervalRequest.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::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 new file mode 100644 index 000000000..4a1b6d079 --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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["InstanceId"].isNull()) + instanceSummaryReportObject.instanceId = instanceTimeIntervalReportNodeIntervalListInstanceSummaryReport["InstanceId"].asString(); + if(!instanceTimeIntervalReportNodeIntervalListInstanceSummaryReport["Timestamp"].isNull()) + instanceSummaryReportObject.timestamp = instanceTimeIntervalReportNodeIntervalListInstanceSummaryReport["Timestamp"].asString(); + auto overallNode = value["Overall"]; + if(!overallNode["TotalLoggedInTime"].isNull()) + instanceSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + instanceSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + instanceSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].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["AverageTalkTime"].isNull()) + instanceSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].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()); + 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["TotalBreakTime"].isNull()) + instanceSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + instanceSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + instanceSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["TotalCalls"].isNull()) + instanceSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["CallsIncomingLine"].isNull()) + instanceSummaryReportObject.inbound.callsIncomingLine = std::stol(inboundNode["CallsIncomingLine"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + instanceSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + instanceSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + instanceSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["CallsAbandonedInIVR"].isNull()) + instanceSummaryReportObject.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + instanceSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWaitTime"].isNull()) + instanceSummaryReportObject.inbound.averageWaitTime = std::stol(inboundNode["AverageWaitTime"].asString()); + if(!inboundNode["CallsIncomingQueue"].isNull()) + instanceSummaryReportObject.inbound.callsIncomingQueue = std::stol(inboundNode["CallsIncomingQueue"].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["TotalWaitTime"].isNull()) + instanceSummaryReportObject.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + instanceSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + instanceSummaryReportObject.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); + if(!inboundNode["MaxRingTime"].isNull()) + instanceSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["CallsIncomingIVR"].isNull()) + instanceSummaryReportObject.inbound.callsIncomingIVR = std::stol(inboundNode["CallsIncomingIVR"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + instanceSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + instanceSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["MaxWaitTime"].isNull()) + instanceSummaryReportObject.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + instanceSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + instanceSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["HandleRate"].isNull()) + instanceSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["CallsAbandonedInQueue"].isNull()) + instanceSummaryReportObject.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["TotalTalkTime"].isNull()) + instanceSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + instanceSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + 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["TotalWorkTime"].isNull()) + instanceSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + instanceSummaryReportObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + instanceSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + instanceSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].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()); + if(!outboundNode["MaxTalkTime"].isNull()) + instanceSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + instanceSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + instanceTimeIntervalReport_.intervalList.push_back(instanceSummaryReportObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +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 new file mode 100644 index 000000000..4de1de188 --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportRequest.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::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 new file mode 100644 index 000000000..b7be69f5b --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportResult.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; + +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 new file mode 100644 index 000000000..f927088a2 --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.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::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 new file mode 100644 index 000000000..cc9d5a8bb --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc @@ -0,0 +1,195 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 deleted file mode 100644 index cf5e4f4d1..000000000 --- a/ccc/src/model/GetInstanceTrendingReportRequest.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::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 deleted file mode 100644 index e21866a11..000000000 --- a/ccc/src/model/GetInstanceTrendingReportResult.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; - -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["CallsAbandonedInRing"].isNull()) - inboundItemObject.callsAbandonedInRing = std::stol(dataNodeInboundInboundItem["CallsAbandonedInRing"].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/GetJobDataUploadParamsRequest.cc b/ccc/src/model/GetJobDataUploadParamsRequest.cc new file mode 100644 index 000000000..ccad43257 --- /dev/null +++ b/ccc/src/model/GetJobDataUploadParamsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetJobDataUploadParamsRequest; + +GetJobDataUploadParamsRequest::GetJobDataUploadParamsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobDataUploadParams") +{ + setMethod(HttpRequest::Method::Post); +} + +GetJobDataUploadParamsRequest::~GetJobDataUploadParamsRequest() +{} + +std::string GetJobDataUploadParamsRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobDataUploadParamsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetJobDataUploadParamsRequest::getFileName()const +{ + return fileName_; +} + +void GetJobDataUploadParamsRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + diff --git a/ccc/src/model/GetJobDataUploadParamsResult.cc b/ccc/src/model/GetJobDataUploadParamsResult.cc new file mode 100644 index 000000000..a0edec9dc --- /dev/null +++ b/ccc/src/model/GetJobDataUploadParamsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetJobDataUploadParamsResult::GetJobDataUploadParamsResult() : + ServiceResult() +{} + +GetJobDataUploadParamsResult::GetJobDataUploadParamsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobDataUploadParamsResult::~GetJobDataUploadParamsResult() +{} + +void GetJobDataUploadParamsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto uploadParamsNode = value["UploadParams"]; + if(!uploadParamsNode["AccessId"].isNull()) + uploadParams_.accessId = uploadParamsNode["AccessId"].asString(); + if(!uploadParamsNode["Policy"].isNull()) + uploadParams_.policy = uploadParamsNode["Policy"].asString(); + if(!uploadParamsNode["Signature"].isNull()) + uploadParams_.signature = uploadParamsNode["Signature"].asString(); + if(!uploadParamsNode["Folder"].isNull()) + uploadParams_.folder = uploadParamsNode["Folder"].asString(); + if(!uploadParamsNode["Host"].isNull()) + uploadParams_.host = uploadParamsNode["Host"].asString(); + if(!uploadParamsNode["Expire"].isNull()) + uploadParams_.expire = std::stoi(uploadParamsNode["Expire"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetJobDataUploadParamsResult::UploadParams GetJobDataUploadParamsResult::getUploadParams()const +{ + return uploadParams_; +} + +std::string GetJobDataUploadParamsResult::getMessage()const +{ + return message_; +} + +int GetJobDataUploadParamsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetJobDataUploadParamsResult::getCode()const +{ + return code_; +} + +bool GetJobDataUploadParamsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobFileUploadUrlRequest.cc b/ccc/src/model/GetJobFileUploadUrlRequest.cc new file mode 100644 index 000000000..5afe9bf77 --- /dev/null +++ b/ccc/src/model/GetJobFileUploadUrlRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetJobFileUploadUrlRequest; + +GetJobFileUploadUrlRequest::GetJobFileUploadUrlRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobFileUploadUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +GetJobFileUploadUrlRequest::~GetJobFileUploadUrlRequest() +{} + +std::string GetJobFileUploadUrlRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobFileUploadUrlRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetJobFileUploadUrlRequest::getFileName()const +{ + return fileName_; +} + +void GetJobFileUploadUrlRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + diff --git a/ccc/src/model/GetJobFileUploadUrlResult.cc b/ccc/src/model/GetJobFileUploadUrlResult.cc new file mode 100644 index 000000000..9ea8a0d67 --- /dev/null +++ b/ccc/src/model/GetJobFileUploadUrlResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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/GetLoginDetailsRequest.cc b/ccc/src/model/GetJobGroupRequest.cc similarity index 56% rename from ccc/src/model/GetLoginDetailsRequest.cc rename to ccc/src/model/GetJobGroupRequest.cc index 2c46478bc..b0dd25fad 100644 --- a/ccc/src/model/GetLoginDetailsRequest.cc +++ b/ccc/src/model/GetJobGroupRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetLoginDetailsRequest; +using AlibabaCloud::CCC::Model::GetJobGroupRequest; -GetLoginDetailsRequest::GetLoginDetailsRequest() : - RpcServiceRequest("ccc", "2020-07-01", "GetLoginDetails") +GetJobGroupRequest::GetJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobGroup") { setMethod(HttpRequest::Method::Post); } -GetLoginDetailsRequest::~GetLoginDetailsRequest() +GetJobGroupRequest::~GetJobGroupRequest() {} -std::string GetLoginDetailsRequest::getUserId()const -{ - return userId_; -} - -void GetLoginDetailsRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - -std::string GetLoginDetailsRequest::getInstanceId()const +std::string GetJobGroupRequest::getInstanceId()const { return instanceId_; } -void GetLoginDetailsRequest::setInstanceId(const std::string& instanceId) +void GetJobGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } +std::string GetJobGroupRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void GetJobGroupRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/GetJobGroupResult.cc b/ccc/src/model/GetJobGroupResult.cc new file mode 100644 index 000000000..7d47761bb --- /dev/null +++ b/ccc/src/model/GetJobGroupResult.cc @@ -0,0 +1,156 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..1c24179ed --- /dev/null +++ b/ccc/src/model/GetJobListRequest.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::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 new file mode 100644 index 000000000..6050c3799 --- /dev/null +++ b/ccc/src/model/GetJobListResult.cc @@ -0,0 +1,165 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/GetRealtimeInstanceStatesRequest.cc b/ccc/src/model/GetJobRequest.cc similarity index 59% rename from ccc/src/model/GetRealtimeInstanceStatesRequest.cc rename to ccc/src/model/GetJobRequest.cc index 8d2ef37d3..5a5ce9677 100644 --- a/ccc/src/model/GetRealtimeInstanceStatesRequest.cc +++ b/ccc/src/model/GetJobRequest.cc @@ -14,25 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetRealtimeInstanceStatesRequest; +using AlibabaCloud::CCC::Model::GetJobRequest; -GetRealtimeInstanceStatesRequest::GetRealtimeInstanceStatesRequest() : - RpcServiceRequest("ccc", "2020-07-01", "GetRealtimeInstanceStates") +GetJobRequest::GetJobRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJob") { setMethod(HttpRequest::Method::Post); } -GetRealtimeInstanceStatesRequest::~GetRealtimeInstanceStatesRequest() +GetJobRequest::~GetJobRequest() {} -std::string GetRealtimeInstanceStatesRequest::getInstanceId()const +std::string GetJobRequest::getJobId()const +{ + return jobId_; +} + +void GetJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string GetJobRequest::getInstanceId()const { return instanceId_; } -void GetRealtimeInstanceStatesRequest::setInstanceId(const std::string& instanceId) +void GetJobRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/GetJobResult.cc b/ccc/src/model/GetJobResult.cc new file mode 100644 index 000000000..a02668007 --- /dev/null +++ b/ccc/src/model/GetJobResult.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; + +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 new file mode 100644 index 000000000..1a16541d0 --- /dev/null +++ b/ccc/src/model/GetJobStatusByCallIdRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..d8296b8f7 --- /dev/null +++ b/ccc/src/model/GetJobStatusByCallIdResult.cc @@ -0,0 +1,222 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..1432e0536 --- /dev/null +++ b/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..5f5118ea5 --- /dev/null +++ b/ccc/src/model/GetJobTemplateDownloadParamsResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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/GetLoginDetailsResult.cc b/ccc/src/model/GetLoginDetailsResult.cc deleted file mode 100644 index 0630bda07..000000000 --- a/ccc/src/model/GetLoginDetailsResult.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 -#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(); - if(!dataNode["AgentServerUrl"].isNull()) - data_.agentServerUrl = dataNode["AgentServerUrl"].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/GetNumberRegionInfoRequest.cc b/ccc/src/model/GetNumberRegionInfoRequest.cc new file mode 100644 index 000000000..60ecd186f --- /dev/null +++ b/ccc/src/model/GetNumberRegionInfoRequest.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::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 new file mode 100644 index 000000000..92a4e13c5 --- /dev/null +++ b/ccc/src/model/GetNumberRegionInfoResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/GetPredictiveJobGroupRequest.cc b/ccc/src/model/GetPredictiveJobGroupRequest.cc new file mode 100644 index 000000000..f86e3324c --- /dev/null +++ b/ccc/src/model/GetPredictiveJobGroupRequest.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::GetPredictiveJobGroupRequest; + +GetPredictiveJobGroupRequest::GetPredictiveJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetPredictiveJobGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPredictiveJobGroupRequest::~GetPredictiveJobGroupRequest() +{} + +std::string GetPredictiveJobGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetPredictiveJobGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetPredictiveJobGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void GetPredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string GetPredictiveJobGroupRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void GetPredictiveJobGroupRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/GetPredictiveJobGroupResult.cc b/ccc/src/model/GetPredictiveJobGroupResult.cc new file mode 100644 index 000000000..cacae2dfe --- /dev/null +++ b/ccc/src/model/GetPredictiveJobGroupResult.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetPredictiveJobGroupResult::GetPredictiveJobGroupResult() : + ServiceResult() +{} + +GetPredictiveJobGroupResult::GetPredictiveJobGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPredictiveJobGroupResult::~GetPredictiveJobGroupResult() +{} + +void GetPredictiveJobGroupResult::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["CreationTime"].isNull()) + jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString()); + if(!jobGroupNode["JobGroupId"].isNull()) + jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString(); + if(!jobGroupNode["Description"].isNull()) + jobGroup_.description = jobGroupNode["Description"].asString(); + if(!jobGroupNode["SkillGroupId"].isNull()) + jobGroup_.skillGroupId = jobGroupNode["SkillGroupId"].asString(); + if(!jobGroupNode["SkillGroupName"].isNull()) + jobGroup_.skillGroupName = jobGroupNode["SkillGroupName"].asString(); + if(!jobGroupNode["InstanceId"].isNull()) + jobGroup_.instanceId = jobGroupNode["InstanceId"].asString(); + if(!jobGroupNode["Name"].isNull()) + jobGroup_.name = jobGroupNode["Name"].asString(); + if(!jobGroupNode["Ratio"].isNull()) + jobGroup_.ratio = std::stol(jobGroupNode["Ratio"].asString()); + auto progressNode = jobGroupNode["Progress"]; + if(!progressNode["Status"].isNull()) + jobGroup_.progress.status = progressNode["Status"].asString(); + if(!progressNode["TotalNotAnswered"].isNull()) + jobGroup_.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString()); + if(!progressNode["StartTime"].isNull()) + jobGroup_.progress.startTime = std::stol(progressNode["StartTime"].asString()); + if(!progressNode["TotalJobs"].isNull()) + jobGroup_.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString()); + if(!progressNode["TotalCompleted"].isNull()) + jobGroup_.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].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 strategyNode = jobGroupNode["Strategy"]; + if(!strategyNode["MinAttemptInterval"].isNull()) + jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["EndTime"].isNull()) + jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["StartTime"].isNull()) + jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["StrategyId"].isNull()) + jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; + for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) + { + JobGroup::Strategy::TimeFrame timeFrameObject; + if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) + timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString(); + if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) + timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); + jobGroup_.strategy.workingTime.push_back(timeFrameObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +GetPredictiveJobGroupResult::JobGroup GetPredictiveJobGroupResult::getJobGroup()const +{ + return jobGroup_; +} + +std::string GetPredictiveJobGroupResult::getMessage()const +{ + return message_; +} + +int GetPredictiveJobGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetPredictiveJobGroupResult::getCode()const +{ + return code_; +} + +bool GetPredictiveJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetPredictiveTaskDataRequest.cc b/ccc/src/model/GetPredictiveTaskDataRequest.cc new file mode 100644 index 000000000..6a340c7af --- /dev/null +++ b/ccc/src/model/GetPredictiveTaskDataRequest.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::GetPredictiveTaskDataRequest; + +GetPredictiveTaskDataRequest::GetPredictiveTaskDataRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetPredictiveTaskData") +{ + setMethod(HttpRequest::Method::Get); +} + +GetPredictiveTaskDataRequest::~GetPredictiveTaskDataRequest() +{} + +std::string GetPredictiveTaskDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetPredictiveTaskDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetPredictiveTaskDataRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void GetPredictiveTaskDataRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string GetPredictiveTaskDataRequest::getTaskId()const +{ + return taskId_; +} + +void GetPredictiveTaskDataRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/ccc/src/model/GetPredictiveTaskDataResult.cc b/ccc/src/model/GetPredictiveTaskDataResult.cc new file mode 100644 index 000000000..aaea59be5 --- /dev/null +++ b/ccc/src/model/GetPredictiveTaskDataResult.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; + +GetPredictiveTaskDataResult::GetPredictiveTaskDataResult() : + ServiceResult() +{} + +GetPredictiveTaskDataResult::GetPredictiveTaskDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPredictiveTaskDataResult::~GetPredictiveTaskDataResult() +{} + +void GetPredictiveTaskDataResult::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["Abandoned"].isNull()) + data_.abandoned = dataNode["Abandoned"].asString() == "true"; + if(!dataNode["ContactId"].isNull()) + data_.contactId = dataNode["ContactId"].asString(); + if(!dataNode["Answered"].isNull()) + data_.answered = dataNode["Answered"].asString() == "true"; + if(!dataNode["Connected"].isNull()) + data_.connected = dataNode["Connected"].asString() == "true"; + if(!dataNode["DialDuration"].isNull()) + data_.dialDuration = std::stol(dataNode["DialDuration"].asString()); + if(!dataNode["EndTime"].isNull()) + data_.endTime = std::stol(dataNode["EndTime"].asString()); + if(!dataNode["JobGroupId"].isNull()) + data_.jobGroupId = dataNode["JobGroupId"].asString(); + if(!dataNode["QueueDuration"].isNull()) + data_.queueDuration = std::stol(dataNode["QueueDuration"].asString()); + if(!dataNode["StartTime"].isNull()) + data_.startTime = std::stol(dataNode["StartTime"].asString()); + if(!dataNode["TalkDuration"].isNull()) + data_.talkDuration = std::stol(dataNode["TalkDuration"].asString()); + if(!dataNode["TaskId"].isNull()) + data_.taskId = dataNode["TaskId"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string GetPredictiveTaskDataResult::getMessage()const +{ + return message_; +} + +long GetPredictiveTaskDataResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetPredictiveTaskDataResult::Data GetPredictiveTaskDataResult::getData()const +{ + return data_; +} + +std::string GetPredictiveTaskDataResult::getCode()const +{ + return code_; +} + +std::string GetPredictiveTaskDataResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetRealtimeInstanceStatesResult.cc b/ccc/src/model/GetRealtimeInstanceStatesResult.cc deleted file mode 100644 index c99e66b38..000000000 --- a/ccc/src/model/GetRealtimeInstanceStatesResult.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -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["LongestWaitingTime"].isNull()) - data_.longestWaitingTime = std::stol(dataNode["LongestWaitingTime"].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 new file mode 100644 index 000000000..d9d396e5f --- /dev/null +++ b/ccc/src/model/GetRecordOssUploadParamRequest.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::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 new file mode 100644 index 000000000..353773739 --- /dev/null +++ b/ccc/src/model/GetRecordOssUploadParamResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..bc8bf7783 --- /dev/null +++ b/ccc/src/model/GetRoutePointRequest.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::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/RemovePhoneNumbersResult.cc b/ccc/src/model/GetRoutePointResult.cc similarity index 54% rename from ccc/src/model/RemovePhoneNumbersResult.cc rename to ccc/src/model/GetRoutePointResult.cc index 33c06a661..9ac645c48 100644 --- a/ccc/src/model/RemovePhoneNumbersResult.cc +++ b/ccc/src/model/GetRoutePointResult.cc @@ -14,75 +14,80 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -RemovePhoneNumbersResult::RemovePhoneNumbersResult() : +GetRoutePointResult::GetRoutePointResult() : ServiceResult() {} -RemovePhoneNumbersResult::RemovePhoneNumbersResult(const std::string &payload) : +GetRoutePointResult::GetRoutePointResult(const std::string &payload) : ServiceResult() { parse(payload); } -RemovePhoneNumbersResult::~RemovePhoneNumbersResult() +GetRoutePointResult::~GetRoutePointResult() {} -void RemovePhoneNumbersResult::parse(const std::string &payload) +void GetRoutePointResult::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()); - auto allFailureList = value["FailureList"]["Failure"]; - for (const auto &item : allFailureList) - failureList_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + 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 RemovePhoneNumbersResult::getMessage()const +std::string GetRoutePointResult::getStatusDesc()const +{ + return statusDesc_; +} + +std::string GetRoutePointResult::getMessage()const { return message_; } -int RemovePhoneNumbersResult::getHttpStatusCode()const +std::string GetRoutePointResult::getRoutePoint()const +{ + return routePoint_; +} + +int GetRoutePointResult::getHttpStatusCode()const { return httpStatusCode_; } -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 +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/GetScenarioRequest.cc b/ccc/src/model/GetScenarioRequest.cc new file mode 100644 index 000000000..fc1f56273 --- /dev/null +++ b/ccc/src/model/GetScenarioRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetScenarioRequest; + +GetScenarioRequest::GetScenarioRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetScenario") +{ + setMethod(HttpRequest::Method::Post); +} + +GetScenarioRequest::~GetScenarioRequest() +{} + +std::string GetScenarioRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetScenarioRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetScenarioRequest::getScenarioId()const +{ + return scenarioId_; +} + +void GetScenarioRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/GetScenarioResult.cc b/ccc/src/model/GetScenarioResult.cc new file mode 100644 index 000000000..6cf23e948 --- /dev/null +++ b/ccc/src/model/GetScenarioResult.cc @@ -0,0 +1,166 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..0d6416a71 --- /dev/null +++ b/ccc/src/model/GetServiceExtensionsRequest.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::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 new file mode 100644 index 000000000..64834b4a2 --- /dev/null +++ b/ccc/src/model/GetServiceExtensionsResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..462dba77c --- /dev/null +++ b/ccc/src/model/GetSmsConfigRequest.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 new file mode 100644 index 000000000..2b539f377 --- /dev/null +++ b/ccc/src/model/GetSmsConfigResult.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; + +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 new file mode 100644 index 000000000..78a9cf5e9 --- /dev/null +++ b/ccc/src/model/GetSurveyRequest.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::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 new file mode 100644 index 000000000..6890f0d0c --- /dev/null +++ b/ccc/src/model/GetSurveyResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..89f3e4ccc --- /dev/null +++ b/ccc/src/model/GetTURNCredentialsRequest.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::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/ModifySkillLevelsOfUserResult.cc b/ccc/src/model/GetTURNCredentialsResult.cc similarity index 59% rename from ccc/src/model/ModifySkillLevelsOfUserResult.cc rename to ccc/src/model/GetTURNCredentialsResult.cc index a64ba3a32..0d5500e9b 100644 --- a/ccc/src/model/ModifySkillLevelsOfUserResult.cc +++ b/ccc/src/model/GetTURNCredentialsResult.cc @@ -14,60 +14,73 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -ModifySkillLevelsOfUserResult::ModifySkillLevelsOfUserResult() : +GetTURNCredentialsResult::GetTURNCredentialsResult() : ServiceResult() {} -ModifySkillLevelsOfUserResult::ModifySkillLevelsOfUserResult(const std::string &payload) : +GetTURNCredentialsResult::GetTURNCredentialsResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifySkillLevelsOfUserResult::~ModifySkillLevelsOfUserResult() +GetTURNCredentialsResult::~GetTURNCredentialsResult() {} -void ModifySkillLevelsOfUserResult::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()); - auto allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Username"].isNull()) + username_ = value["Username"].asString(); + if(!value["Password"].isNull()) + password_ = value["Password"].asString(); } -std::string ModifySkillLevelsOfUserResult::getMessage()const +std::string GetTURNCredentialsResult::getMessage()const { return message_; } -int ModifySkillLevelsOfUserResult::getHttpStatusCode()const +std::string GetTURNCredentialsResult::getUsername()const +{ + return username_; +} + +int GetTURNCredentialsResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector ModifySkillLevelsOfUserResult::getParams()const -{ - return params_; -} - -std::string ModifySkillLevelsOfUserResult::getCode()const +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/GetTURNServerListRequest.cc b/ccc/src/model/GetTURNServerListRequest.cc new file mode 100644 index 000000000..563dacbc0 --- /dev/null +++ b/ccc/src/model/GetTURNServerListRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 similarity index 60% rename from ccc/src/model/GetTurnServerListResult.cc rename to ccc/src/model/GetTURNServerListResult.cc index 56ee7e29b..3cd7d96ff 100644 --- a/ccc/src/model/GetTurnServerListResult.cc +++ b/ccc/src/model/GetTURNServerListResult.cc @@ -14,67 +14,66 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -GetTurnServerListResult::GetTurnServerListResult() : +GetTURNServerListResult::GetTURNServerListResult() : ServiceResult() {} -GetTurnServerListResult::GetTurnServerListResult(const std::string &payload) : +GetTURNServerListResult::GetTURNServerListResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetTurnServerListResult::~GetTurnServerListResult() +GetTURNServerListResult::~GetTURNServerListResult() {} -void GetTurnServerListResult::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()); - auto allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["TurnServerListConfig"].isNull()) + turnServerListConfig_ = value["TurnServerListConfig"].asString(); } -std::string GetTurnServerListResult::getMessage()const +std::string GetTURNServerListResult::getMessage()const { return message_; } -int GetTurnServerListResult::getHttpStatusCode()const +int GetTURNServerListResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector GetTurnServerListResult::getParams()const -{ - return params_; -} - -std::string GetTurnServerListResult::getData()const -{ - return data_; -} - -std::string GetTurnServerListResult::getCode()const +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/ListDevicesRequest.cc b/ccc/src/model/GetTaskListRequest.cc similarity index 58% rename from ccc/src/model/ListDevicesRequest.cc rename to ccc/src/model/GetTaskListRequest.cc index ed2b91818..40a19f21f 100644 --- a/ccc/src/model/ListDevicesRequest.cc +++ b/ccc/src/model/GetTaskListRequest.cc @@ -14,36 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListDevicesRequest; +using AlibabaCloud::CCC::Model::GetTaskListRequest; -ListDevicesRequest::ListDevicesRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ListDevices") +GetTaskListRequest::GetTaskListRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetTaskList") { setMethod(HttpRequest::Method::Post); } -ListDevicesRequest::~ListDevicesRequest() +GetTaskListRequest::~GetTaskListRequest() {} -std::string ListDevicesRequest::getUserId()const +std::string GetTaskListRequest::getJobId()const { - return userId_; + return jobId_; } -void ListDevicesRequest::setUserId(const std::string& userId) +void GetTaskListRequest::setJobId(const std::string& jobId) { - userId_ = userId; - setParameter("UserId", userId); + jobId_ = jobId; + setParameter("JobId", jobId); } -std::string ListDevicesRequest::getInstanceId()const +std::string GetTaskListRequest::getInstanceId()const { return instanceId_; } -void ListDevicesRequest::setInstanceId(const std::string& instanceId) +void GetTaskListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/GetTaskListResult.cc b/ccc/src/model/GetTaskListResult.cc new file mode 100644 index 000000000..1007d0e3f --- /dev/null +++ b/ccc/src/model/GetTaskListResult.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; + +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/GetTurnCredentialsRequest.cc b/ccc/src/model/GetUserByExtensionRequest.cc similarity index 54% rename from ccc/src/model/GetTurnCredentialsRequest.cc rename to ccc/src/model/GetUserByExtensionRequest.cc index fc15d1b39..1983d7e0a 100644 --- a/ccc/src/model/GetTurnCredentialsRequest.cc +++ b/ccc/src/model/GetUserByExtensionRequest.cc @@ -14,36 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetTurnCredentialsRequest; +using AlibabaCloud::CCC::Model::GetUserByExtensionRequest; -GetTurnCredentialsRequest::GetTurnCredentialsRequest() : - RpcServiceRequest("ccc", "2020-07-01", "GetTurnCredentials") +GetUserByExtensionRequest::GetUserByExtensionRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetUserByExtension") { setMethod(HttpRequest::Method::Post); } -GetTurnCredentialsRequest::~GetTurnCredentialsRequest() +GetUserByExtensionRequest::~GetUserByExtensionRequest() {} -std::string GetTurnCredentialsRequest::getUserId()const +std::string GetUserByExtensionRequest::getExtension()const { - return userId_; + return extension_; } -void GetTurnCredentialsRequest::setUserId(const std::string& userId) +void GetUserByExtensionRequest::setExtension(const std::string& extension) { - userId_ = userId; - setParameter("UserId", userId); + extension_ = extension; + setParameter("Extension", extension); } -std::string GetTurnCredentialsRequest::getInstanceId()const +std::string GetUserByExtensionRequest::getInstanceId()const { return instanceId_; } -void GetTurnCredentialsRequest::setInstanceId(const std::string& instanceId) +void GetUserByExtensionRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/GetUserByExtensionResult.cc b/ccc/src/model/GetUserByExtensionResult.cc new file mode 100644 index 000000000..0da63669c --- /dev/null +++ b/ccc/src/model/GetUserByExtensionResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 4aba127b5..d6a4dd972 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", "2020-07-01", "GetUser") + RpcServiceRequest("ccc", "2017-07-05", "GetUser") { setMethod(HttpRequest::Method::Post); } @@ -27,15 +27,15 @@ GetUserRequest::GetUserRequest() : GetUserRequest::~GetUserRequest() {} -std::string GetUserRequest::getExtension()const +std::string GetUserRequest::getInstanceId()const { - return extension_; + return instanceId_; } -void GetUserRequest::setExtension(const std::string& extension) +void GetUserRequest::setInstanceId(const std::string& instanceId) { - extension_ = extension; - setParameter("Extension", extension); + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); } std::string GetUserRequest::getUserId()const @@ -49,14 +49,14 @@ void GetUserRequest::setUserId(const std::string& userId) setParameter("UserId", userId); } -std::string GetUserRequest::getInstanceId()const +std::string GetUserRequest::getAccessKeyId()const { - return instanceId_; + return accessKeyId_; } -void GetUserRequest::setInstanceId(const std::string& instanceId) +void GetUserRequest::setAccessKeyId(const std::string& accessKeyId) { - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/GetUserResult.cc b/ccc/src/model/GetUserResult.cc index 8eadb889b..b085d8f63 100644 --- a/ccc/src/model/GetUserResult.cc +++ b/ccc/src/model/GetUserResult.cc @@ -39,39 +39,73 @@ void GetUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["DisplayName"].isNull()) - data_.displayName = dataNode["DisplayName"].asString(); - if(!dataNode["Email"].isNull()) - data_.email = dataNode["Email"].asString(); - if(!dataNode["Extension"].isNull()) - data_.extension = dataNode["Extension"].asString(); - if(!dataNode["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()); + auto userNode = value["User"]; + if(!userNode["UserId"].isNull()) + user_.userId = userNode["UserId"].asString(); + if(!userNode["RamId"].isNull()) + user_.ramId = userNode["RamId"].asString(); + if(!userNode["InstanceId"].isNull()) + user_.instanceId = userNode["InstanceId"].asString(); + auto allRolesNode = userNode["Roles"]["Role"]; + for (auto userNodeRolesRole : allRolesNode) + { + User::Role roleObject; + if(!userNodeRolesRole["RoleId"].isNull()) + roleObject.roleId = userNodeRolesRole["RoleId"].asString(); + if(!userNodeRolesRole["InstanceId"].isNull()) + roleObject.instanceId = userNodeRolesRole["InstanceId"].asString(); + if(!userNodeRolesRole["RoleName"].isNull()) + roleObject.roleName = userNodeRolesRole["RoleName"].asString(); + if(!userNodeRolesRole["RoleDescription"].isNull()) + roleObject.roleDescription = userNodeRolesRole["RoleDescription"].asString(); + user_.roles.push_back(roleObject); + } + auto allSkillLevelsNode = userNode["SkillLevels"]["SkillLevel"]; + for (auto userNodeSkillLevelsSkillLevel : allSkillLevelsNode) + { + User::SkillLevel skillLevelObject; + if(!userNodeSkillLevelsSkillLevel["SkillLevelId"].isNull()) + skillLevelObject.skillLevelId = userNodeSkillLevelsSkillLevel["SkillLevelId"].asString(); + if(!userNodeSkillLevelsSkillLevel["Level"].isNull()) + skillLevelObject.level = std::stoi(userNodeSkillLevelsSkillLevel["Level"].asString()); + auto skillNode = value["Skill"]; + if(!skillNode["SkillGroupId"].isNull()) + skillLevelObject.skill.skillGroupId = skillNode["SkillGroupId"].asString(); + if(!skillNode["InstanceId"].isNull()) + skillLevelObject.skill.instanceId = skillNode["InstanceId"].asString(); + if(!skillNode["SkillGroupName"].isNull()) + skillLevelObject.skill.skillGroupName = skillNode["SkillGroupName"].asString(); + if(!skillNode["SkillGroupDescription"].isNull()) + skillLevelObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString(); + user_.skillLevels.push_back(skillLevelObject); + } + auto detailNode = userNode["Detail"]; + if(!detailNode["LoginName"].isNull()) + user_.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + user_.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + user_.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + user_.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + user_.detail.department = detailNode["Department"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } +GetUserResult::User GetUserResult::getUser()const +{ + return user_; +} + std::string GetUserResult::getMessage()const { return message_; @@ -82,18 +116,13 @@ 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 deleted file mode 100644 index 421c3daa2..000000000 --- a/ccc/src/model/HoldCallRequest.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::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 deleted file mode 100644 index 1cb9d82b5..000000000 --- a/ccc/src/model/HoldCallResult.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; - -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 new file mode 100644 index 000000000..6da2a0ff9 --- /dev/null +++ b/ccc/src/model/InflightTaskTimeoutRequest.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::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 new file mode 100644 index 000000000..48b75e5ba --- /dev/null +++ b/ccc/src/model/InflightTaskTimeoutResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index 7d0e4f0d4..000000000 --- a/ccc/src/model/InitiateAttendedTransferRequest.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::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 deleted file mode 100644 index 6099e4dba..000000000 --- a/ccc/src/model/InitiateAttendedTransferResult.cc +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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"]; - if(!dataNode["ContextId"].isNull()) - data_.contextId = std::stol(dataNode["ContextId"].asString()); - 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 deleted file mode 100644 index b830822fc..000000000 --- a/ccc/src/model/InterceptCallRequest.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::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 deleted file mode 100644 index c4efb70b6..000000000 --- a/ccc/src/model/InterceptCallResult.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 -#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 new file mode 100644 index 000000000..ecd10f5f1 --- /dev/null +++ b/ccc/src/model/LaunchAppraiseRequest.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::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 new file mode 100644 index 000000000..bd0cf575e --- /dev/null +++ b/ccc/src/model/LaunchAppraiseResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index b20a95064..000000000 --- a/ccc/src/model/LaunchAuthenticationRequest.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::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 deleted file mode 100644 index 892844879..000000000 --- a/ccc/src/model/LaunchAuthenticationResult.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 -#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 new file mode 100644 index 000000000..8228381c2 --- /dev/null +++ b/ccc/src/model/LaunchShortMessageAppraiseRequest.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::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 new file mode 100644 index 000000000..8d4cc192d --- /dev/null +++ b/ccc/src/model/LaunchShortMessageAppraiseResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index 2d7a46942..000000000 --- a/ccc/src/model/LaunchSurveyRequest.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::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 deleted file mode 100644 index a05722193..000000000 --- a/ccc/src/model/LaunchSurveyResult.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 -#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 new file mode 100644 index 000000000..fbd19c10c --- /dev/null +++ b/ccc/src/model/ListAgentDevicesRequest.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::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 new file mode 100644 index 000000000..1aebd0b40 --- /dev/null +++ b/ccc/src/model/ListAgentDevicesResult.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; + +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 new file mode 100644 index 000000000..fcec8ba18 --- /dev/null +++ b/ccc/src/model/ListAgentEventsRequest.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 + +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 new file mode 100644 index 000000000..740a208fb --- /dev/null +++ b/ccc/src/model/ListAgentEventsResult.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; + +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 9a661e9ad..633199aab 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", "2020-07-01", "ListAgentStateLogs") + RpcServiceRequest("ccc", "2017-07-05", "ListAgentStateLogs") { setMethod(HttpRequest::Method::Post); } @@ -27,17 +27,6 @@ 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_; @@ -60,6 +49,39 @@ 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_; @@ -71,3 +93,14 @@ 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 2c8617eda..d44a8eeb6 100644 --- a/ccc/src/model/ListAgentStateLogsResult.cc +++ b/ccc/src/model/ListAgentStateLogsResult.cc @@ -39,26 +39,45 @@ void ListAgentStateLogsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["DataItem"]; - for (auto valueDataDataItem : allDataNode) + 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) { - 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); + AgentStateLogPage::AgentStateLog agentStateLogObject; + if(!agentStateLogPageNodeListAgentStateLog["InstanceId"].isNull()) + agentStateLogObject.instanceId = agentStateLogPageNodeListAgentStateLog["InstanceId"].asString(); + if(!agentStateLogPageNodeListAgentStateLog["RamId"].isNull()) + agentStateLogObject.ramId = std::stol(agentStateLogPageNodeListAgentStateLog["RamId"].asString()); + if(!agentStateLogPageNodeListAgentStateLog["State"].isNull()) + agentStateLogObject.state = agentStateLogPageNodeListAgentStateLog["State"].asString(); + if(!agentStateLogPageNodeListAgentStateLog["StateCode"].isNull()) + agentStateLogObject.stateCode = agentStateLogPageNodeListAgentStateLog["StateCode"].asString(); + if(!agentStateLogPageNodeListAgentStateLog["StateTime"].isNull()) + agentStateLogObject.stateTime = std::stol(agentStateLogPageNodeListAgentStateLog["StateTime"].asString()); + if(!agentStateLogPageNodeListAgentStateLog["ContactId"].isNull()) + agentStateLogObject.contactId = agentStateLogPageNodeListAgentStateLog["ContactId"].asString(); + if(!agentStateLogPageNodeListAgentStateLog["ConnectId"].isNull()) + agentStateLogObject.connectId = agentStateLogPageNodeListAgentStateLog["ConnectId"].asString(); + if(!agentStateLogPageNodeListAgentStateLog["SkillGroupIds"].isNull()) + agentStateLogObject.skillGroupIds = agentStateLogPageNodeListAgentStateLog["SkillGroupIds"].asString(); + if(!agentStateLogPageNodeListAgentStateLog["CounterParty"].isNull()) + agentStateLogObject.counterParty = agentStateLogPageNodeListAgentStateLog["CounterParty"].asString(); + agentStateLogPage_.list.push_back(agentStateLogObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -72,13 +91,18 @@ 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 new file mode 100644 index 000000000..68f718880 --- /dev/null +++ b/ccc/src/model/ListAgentStatesRequest.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::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 new file mode 100644 index 000000000..ea6639798 --- /dev/null +++ b/ccc/src/model/ListAgentStatesResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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 new file mode 100644 index 000000000..c5e2151ad --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsByIntervalRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..156a3109f --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc @@ -0,0 +1,215 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..5bc4a8240 --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..c1303928f --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsResult.cc @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..f8c16ab8c --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.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::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 new file mode 100644 index 000000000..e1e37c74b --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..fb792ab01 --- /dev/null +++ b/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.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::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 new file mode 100644 index 000000000..cff1397b7 --- /dev/null +++ b/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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/ListBriefSkillGroupsRequest.cc b/ccc/src/model/ListBriefSkillGroupsRequest.cc deleted file mode 100644 index 51292e702..000000000 --- a/ccc/src/model/ListBriefSkillGroupsRequest.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::ListBriefSkillGroupsRequest; - -ListBriefSkillGroupsRequest::ListBriefSkillGroupsRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ListBriefSkillGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ListBriefSkillGroupsRequest::~ListBriefSkillGroupsRequest() -{} - -int ListBriefSkillGroupsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListBriefSkillGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -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 ListBriefSkillGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListBriefSkillGroupsRequest::getPageSize()const -{ - return 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 deleted file mode 100644 index 79f7e4a2a..000000000 --- a/ccc/src/model/ListBriefSkillGroupsResult.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; - -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 2b063deab..d8b904162 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", "2020-07-01", "ListCallDetailRecords") + RpcServiceRequest("ccc", "2017-07-05", "ListCallDetailRecords") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ 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,15 +60,26 @@ void ListCallDetailRecordsRequest::setCriteria(const std::string& criteria) setParameter("Criteria", criteria); } -std::string ListCallDetailRecordsRequest::getOrderByField()const +std::string ListCallDetailRecordsRequest::getPhoneNumber()const { - return orderByField_; + return phoneNumber_; } -void ListCallDetailRecordsRequest::setOrderByField(const std::string& orderByField) +void ListCallDetailRecordsRequest::setPhoneNumber(const std::string& phoneNumber) { - orderByField_ = orderByField; - setParameter("OrderByField", orderByField); + phoneNumber_ = phoneNumber; + setParameter("PhoneNumber", phoneNumber); +} + +std::string ListCallDetailRecordsRequest::getOrderBy()const +{ + return orderBy_; +} + +void ListCallDetailRecordsRequest::setOrderBy(const std::string& orderBy) +{ + orderBy_ = orderBy; + setParameter("OrderBy", orderBy); } long ListCallDetailRecordsRequest::getStartTime()const @@ -71,6 +93,17 @@ 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_; @@ -82,125 +115,15 @@ void ListCallDetailRecordsRequest::setPageNumber(int pageNumber) setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListCallDetailRecordsRequest::getCalledNumber()const +std::string ListCallDetailRecordsRequest::getAccessKeyId()const { - return calledNumber_; + return accessKeyId_; } -void ListCallDetailRecordsRequest::setCalledNumber(const std::string& calledNumber) +void ListCallDetailRecordsRequest::setAccessKeyId(const std::string& accessKeyId) { - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); -} - -std::string ListCallDetailRecordsRequest::getSatisfactionList()const -{ - return satisfactionList_; -} - -void ListCallDetailRecordsRequest::setSatisfactionList(const std::string& satisfactionList) -{ - satisfactionList_ = satisfactionList; - setParameter("SatisfactionList", satisfactionList); -} - -int ListCallDetailRecordsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListCallDetailRecordsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListCallDetailRecordsRequest::getSortOrder()const -{ - return sortOrder_; -} - -void ListCallDetailRecordsRequest::setSortOrder(const std::string& sortOrder) -{ - sortOrder_ = sortOrder; - setParameter("SortOrder", sortOrder); -} - -std::string ListCallDetailRecordsRequest::getSatisfactionDescriptionList()const -{ - return satisfactionDescriptionList_; -} - -void ListCallDetailRecordsRequest::setSatisfactionDescriptionList(const std::string& satisfactionDescriptionList) -{ - satisfactionDescriptionList_ = satisfactionDescriptionList; - setParameter("SatisfactionDescriptionList", satisfactionDescriptionList); -} - -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); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } std::string ListCallDetailRecordsRequest::getInstanceId()const @@ -214,14 +137,36 @@ void ListCallDetailRecordsRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string ListCallDetailRecordsRequest::getSkillGroupId()const +std::string ListCallDetailRecordsRequest::getContactDisposition()const { - return skillGroupId_; + return contactDisposition_; } -void ListCallDetailRecordsRequest::setSkillGroupId(const std::string& skillGroupId) +void ListCallDetailRecordsRequest::setContactDisposition(const std::string& contactDisposition) { - skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); + contactDisposition_ = contactDisposition; + setParameter("ContactDisposition", contactDisposition); +} + +int ListCallDetailRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListCallDetailRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +bool ListCallDetailRecordsRequest::getWithRecording()const +{ + return withRecording_; +} + +void ListCallDetailRecordsRequest::setWithRecording(bool withRecording) +{ + withRecording_ = withRecording; + setParameter("WithRecording", withRecording ? "true" : "false"); } diff --git a/ccc/src/model/ListCallDetailRecordsResult.cc b/ccc/src/model/ListCallDetailRecordsResult.cc index e564a2e0e..68260d322 100644 --- a/ccc/src/model/ListCallDetailRecordsResult.cc +++ b/ccc/src/model/ListCallDetailRecordsResult.cc @@ -39,83 +39,91 @@ void ListCallDetailRecordsResult::parse(const std::string &payload) 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) + 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) { - Data::CallDetailRecord callDetailRecordObject; - if(!dataNodeListCallDetailRecord["ContactDisposition"].isNull()) - callDetailRecordObject.contactDisposition = dataNodeListCallDetailRecord["ContactDisposition"].asString(); - if(!dataNodeListCallDetailRecord["ContactType"].isNull()) - callDetailRecordObject.contactType = dataNodeListCallDetailRecord["ContactType"].asString(); - if(!dataNodeListCallDetailRecord["EstablishedTime"].isNull()) - callDetailRecordObject.establishedTime = std::stol(dataNodeListCallDetailRecord["EstablishedTime"].asString()); - if(!dataNodeListCallDetailRecord["CalledNumber"].isNull()) - callDetailRecordObject.calledNumber = dataNodeListCallDetailRecord["CalledNumber"].asString(); - if(!dataNodeListCallDetailRecord["AdditionalBroker"].isNull()) - callDetailRecordObject.additionalBroker = dataNodeListCallDetailRecord["AdditionalBroker"].asString(); - if(!dataNodeListCallDetailRecord["SatisfactionIndex"].isNull()) - callDetailRecordObject.satisfactionIndex = std::stoi(dataNodeListCallDetailRecord["SatisfactionIndex"].asString()); - if(!dataNodeListCallDetailRecord["SatisfactionSurveyChannel"].isNull()) - callDetailRecordObject.satisfactionSurveyChannel = dataNodeListCallDetailRecord["SatisfactionSurveyChannel"].asString(); - if(!dataNodeListCallDetailRecord["ReleaseTime"].isNull()) - callDetailRecordObject.releaseTime = std::stol(dataNodeListCallDetailRecord["ReleaseTime"].asString()); - if(!dataNodeListCallDetailRecord["WaitTime"].isNull()) - callDetailRecordObject.waitTime = std::stol(dataNodeListCallDetailRecord["WaitTime"].asString()); - if(!dataNodeListCallDetailRecord["SkillGroupNames"].isNull()) - callDetailRecordObject.skillGroupNames = dataNodeListCallDetailRecord["SkillGroupNames"].asString(); - if(!dataNodeListCallDetailRecord["IvrTime"].isNull()) - callDetailRecordObject.ivrTime = std::stol(dataNodeListCallDetailRecord["IvrTime"].asString()); - if(!dataNodeListCallDetailRecord["SatisfactionDescription"].isNull()) - callDetailRecordObject.satisfactionDescription = dataNodeListCallDetailRecord["SatisfactionDescription"].asString(); - if(!dataNodeListCallDetailRecord["ReleaseInitiator"].isNull()) - callDetailRecordObject.releaseInitiator = dataNodeListCallDetailRecord["ReleaseInitiator"].asString(); - if(!dataNodeListCallDetailRecord["AgentIds"].isNull()) - callDetailRecordObject.agentIds = dataNodeListCallDetailRecord["AgentIds"].asString(); - if(!dataNodeListCallDetailRecord["CallDuration"].isNull()) - callDetailRecordObject.callDuration = dataNodeListCallDetailRecord["CallDuration"].asString(); - if(!dataNodeListCallDetailRecord["RecordingReady"].isNull()) - callDetailRecordObject.recordingReady = dataNodeListCallDetailRecord["RecordingReady"].asString() == "true"; - if(!dataNodeListCallDetailRecord["InstanceId"].isNull()) - callDetailRecordObject.instanceId = dataNodeListCallDetailRecord["InstanceId"].asString(); - if(!dataNodeListCallDetailRecord["RingTime"].isNull()) - callDetailRecordObject.ringTime = std::stol(dataNodeListCallDetailRecord["RingTime"].asString()); - if(!dataNodeListCallDetailRecord["SatisfactionSurveyOffered"].isNull()) - callDetailRecordObject.satisfactionSurveyOffered = dataNodeListCallDetailRecord["SatisfactionSurveyOffered"].asString() == "true"; - if(!dataNodeListCallDetailRecord["AgentNames"].isNull()) - callDetailRecordObject.agentNames = dataNodeListCallDetailRecord["AgentNames"].asString(); - if(!dataNodeListCallDetailRecord["StartTime"].isNull()) - callDetailRecordObject.startTime = std::stol(dataNodeListCallDetailRecord["StartTime"].asString()); - if(!dataNodeListCallDetailRecord["ContactId"].isNull()) - callDetailRecordObject.contactId = dataNodeListCallDetailRecord["ContactId"].asString(); - if(!dataNodeListCallDetailRecord["RecordingDuration"].isNull()) - callDetailRecordObject.recordingDuration = std::stol(dataNodeListCallDetailRecord["RecordingDuration"].asString()); - if(!dataNodeListCallDetailRecord["CallingNumber"].isNull()) - callDetailRecordObject.callingNumber = dataNodeListCallDetailRecord["CallingNumber"].asString(); - if(!dataNodeListCallDetailRecord["QueueTime"].isNull()) - callDetailRecordObject.queueTime = std::stol(dataNodeListCallDetailRecord["QueueTime"].asString()); - if(!dataNodeListCallDetailRecord["Broker"].isNull()) - callDetailRecordObject.broker = dataNodeListCallDetailRecord["Broker"].asString(); - if(!dataNodeListCallDetailRecord["SkillGroupIds"].isNull()) - callDetailRecordObject.skillGroupIds = dataNodeListCallDetailRecord["SkillGroupIds"].asString(); - if(!dataNodeListCallDetailRecord["CallerLocation"].isNull()) - callDetailRecordObject.callerLocation = dataNodeListCallDetailRecord["CallerLocation"].asString(); - if(!dataNodeListCallDetailRecord["CalleeLocation"].isNull()) - callDetailRecordObject.calleeLocation = dataNodeListCallDetailRecord["CalleeLocation"].asString(); - data_.list.push_back(callDetailRecordObject); + 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); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -124,18 +132,23 @@ 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 new file mode 100644 index 000000000..bcbadf5b4 --- /dev/null +++ b/ccc/src/model/ListCallEventDetailByContactIdRequest.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::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 new file mode 100644 index 000000000..c06ac4161 --- /dev/null +++ b/ccc/src/model/ListCallEventDetailByContactIdResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..eba2bcde5 --- /dev/null +++ b/ccc/src/model/ListCallMeasureSummaryReportsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..944c7c158 --- /dev/null +++ b/ccc/src/model/ListCallMeasureSummaryReportsResult.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; + +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 deleted file mode 100644 index c06edad90..000000000 --- a/ccc/src/model/ListConfigItemsRequest.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::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 deleted file mode 100644 index b07f946e1..000000000 --- a/ccc/src/model/ListConfigItemsResult.cc +++ /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. - */ - -#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 new file mode 100644 index 000000000..e8dd22fbf --- /dev/null +++ b/ccc/src/model/ListConfigRequest.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 new file mode 100644 index 000000000..29fa0448d --- /dev/null +++ b/ccc/src/model/ListConfigResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 51012251c..5dcc3c1c6 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", "2020-07-01", "ListContactFlows") + RpcServiceRequest("ccc", "2017-07-05", "ListContactFlows") { setMethod(HttpRequest::Method::Post); } @@ -27,28 +27,6 @@ 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_; @@ -60,14 +38,14 @@ void ListContactFlowsRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -int ListContactFlowsRequest::getPageSize()const +std::string ListContactFlowsRequest::getAccessKeyId()const { - return pageSize_; + return accessKeyId_; } -void ListContactFlowsRequest::setPageSize(int pageSize) +void ListContactFlowsRequest::setAccessKeyId(const std::string& accessKeyId) { - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListContactFlowsResult.cc b/ccc/src/model/ListContactFlowsResult.cc index 68279ea37..259a20f4f 100644 --- a/ccc/src/model/ListContactFlowsResult.cc +++ b/ccc/src/model/ListContactFlowsResult.cc @@ -39,50 +39,76 @@ void ListContactFlowsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["PageNumber"].isNull()) - data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); - if(!dataNode["PageSize"].isNull()) - data_.pageSize = std::stoi(dataNode["PageSize"].asString()); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - auto allListNode = dataNode["List"]["ContactFlow"]; - for (auto dataNodeListContactFlow : allListNode) + auto allContactFlowsNode = value["ContactFlows"]["ContactFlow"]; + for (auto valueContactFlowsContactFlow : allContactFlowsNode) { - 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); + ContactFlow contactFlowsObject; + if(!valueContactFlowsContactFlow["ContactFlowId"].isNull()) + contactFlowsObject.contactFlowId = valueContactFlowsContactFlow["ContactFlowId"].asString(); + if(!valueContactFlowsContactFlow["InstanceId"].isNull()) + contactFlowsObject.instanceId = valueContactFlowsContactFlow["InstanceId"].asString(); + if(!valueContactFlowsContactFlow["ContactFlowName"].isNull()) + contactFlowsObject.contactFlowName = valueContactFlowsContactFlow["ContactFlowName"].asString(); + if(!valueContactFlowsContactFlow["ContactFlowDescription"].isNull()) + contactFlowsObject.contactFlowDescription = valueContactFlowsContactFlow["ContactFlowDescription"].asString(); + if(!valueContactFlowsContactFlow["Type"].isNull()) + contactFlowsObject.type = valueContactFlowsContactFlow["Type"].asString(); + if(!valueContactFlowsContactFlow["AppliedVersion"].isNull()) + contactFlowsObject.appliedVersion = valueContactFlowsContactFlow["AppliedVersion"].asString(); + auto allVersionsNode = valueContactFlowsContactFlow["Versions"]["ContactFlowVersion"]; + for (auto valueContactFlowsContactFlowVersionsContactFlowVersion : allVersionsNode) + { + ContactFlow::ContactFlowVersion versionsObject; + if(!valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionId"].isNull()) + versionsObject.contactFlowVersionId = valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionId"].asString(); + if(!valueContactFlowsContactFlowVersionsContactFlowVersion["Version"].isNull()) + versionsObject.version = valueContactFlowsContactFlowVersionsContactFlowVersion["Version"].asString(); + if(!valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionDescription"].isNull()) + versionsObject.contactFlowVersionDescription = valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionDescription"].asString(); + if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LastModified"].isNull()) + versionsObject.lastModified = valueContactFlowsContactFlowVersionsContactFlowVersion["LastModified"].asString(); + if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LastModifiedBy"].isNull()) + versionsObject.lastModifiedBy = valueContactFlowsContactFlowVersionsContactFlowVersion["LastModifiedBy"].asString(); + if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LockedBy"].isNull()) + versionsObject.lockedBy = valueContactFlowsContactFlowVersionsContactFlowVersion["LockedBy"].asString(); + if(!valueContactFlowsContactFlowVersionsContactFlowVersion["Status"].isNull()) + versionsObject.status = valueContactFlowsContactFlowVersionsContactFlowVersion["Status"].asString(); + contactFlowsObject.versions.push_back(versionsObject); + } + auto allPhoneNumbersNode = valueContactFlowsContactFlow["PhoneNumbers"]["PhoneNumber"]; + for (auto valueContactFlowsContactFlowPhoneNumbersPhoneNumber : allPhoneNumbersNode) + { + ContactFlow::PhoneNumber phoneNumbersObject; + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) + phoneNumbersObject.phoneNumberId = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberId"].asString(); + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["InstanceId"].isNull()) + phoneNumbersObject.instanceId = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["InstanceId"].asString(); + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Number"].isNull()) + phoneNumbersObject.number = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Number"].asString(); + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) + phoneNumbersObject.phoneNumberDescription = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["TestOnly"].isNull()) + phoneNumbersObject.testOnly = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["RemainingTime"].isNull()) + phoneNumbersObject.remainingTime = std::stoi(valueContactFlowsContactFlowPhoneNumbersPhoneNumber["RemainingTime"].asString()); + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["AllowOutbound"].isNull()) + phoneNumbersObject.allowOutbound = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Usage"].isNull()) + phoneNumbersObject.usage = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Usage"].asString(); + if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Trunks"].isNull()) + phoneNumbersObject.trunks = std::stoi(valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Trunks"].asString()); + contactFlowsObject.phoneNumbers.push_back(phoneNumbersObject); + } + contactFlows_.push_back(contactFlowsObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -91,18 +117,23 @@ 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/ListDevicesResult.cc b/ccc/src/model/ListDevicesResult.cc deleted file mode 100644 index 41226415f..000000000 --- a/ccc/src/model/ListDevicesResult.cc +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 deleted file mode 100644 index 18ee6d7df..000000000 --- a/ccc/src/model/ListHistoricalAgentReportRequest.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::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 deleted file mode 100644 index d16fbfc1d..000000000 --- a/ccc/src/model/ListHistoricalAgentReportResult.cc +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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["CallsAttendedTransferIn"].isNull()) - itemsObject.inbound.callsAttendedTransferIn = std::stol(inboundNode["CallsAttendedTransferIn"].asString()); - if(!inboundNode["CallsAttendedTransferOut"].isNull()) - itemsObject.inbound.callsAttendedTransferOut = std::stol(inboundNode["CallsAttendedTransferOut"].asString()); - if(!inboundNode["CallsBlindTransferIn"].isNull()) - itemsObject.inbound.callsBlindTransferIn = std::stol(inboundNode["CallsBlindTransferIn"].asString()); - if(!inboundNode["CallsBlindTransferOut"].isNull()) - itemsObject.inbound.callsBlindTransferOut = std::stol(inboundNode["CallsBlindTransferOut"].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["CallsRinged"].isNull()) - itemsObject.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].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["SatisfactionRate"].isNull()) - itemsObject.inbound.satisfactionRate = std::stof(inboundNode["SatisfactionRate"].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["AverageRingTime"].isNull()) - itemsObject.outbound.averageRingTime = std::stof(outboundNode["AverageRingTime"].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["CallsAttendedTransferIn"].isNull()) - itemsObject.outbound.callsAttendedTransferIn = std::stol(outboundNode["CallsAttendedTransferIn"].asString()); - if(!outboundNode["CallsAttendedTransferOut"].isNull()) - itemsObject.outbound.callsAttendedTransferOut = std::stol(outboundNode["CallsAttendedTransferOut"].asString()); - if(!outboundNode["CallsBlindTransferIn"].isNull()) - itemsObject.outbound.callsBlindTransferIn = std::stol(outboundNode["CallsBlindTransferIn"].asString()); - if(!outboundNode["CallsBlindTransferOut"].isNull()) - itemsObject.outbound.callsBlindTransferOut = std::stol(outboundNode["CallsBlindTransferOut"].asString()); - if(!outboundNode["CallsDialed"].isNull()) - itemsObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsHold"].isNull()) - itemsObject.outbound.callsHold = std::stol(outboundNode["CallsHold"].asString()); - if(!outboundNode["CallsRinged"].isNull()) - itemsObject.outbound.callsRinged = std::stol(outboundNode["CallsRinged"].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["MaxRingTime"].isNull()) - itemsObject.outbound.maxRingTime = std::stol(outboundNode["MaxRingTime"].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["SatisfactionRate"].isNull()) - itemsObject.outbound.satisfactionRate = std::stof(outboundNode["SatisfactionRate"].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["TotalRingTime"].isNull()) - itemsObject.outbound.totalRingTime = std::stol(outboundNode["TotalRingTime"].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["AverageHoldTime"].isNull()) - itemsObject.overall.averageHoldTime = std::stof(overallNode["AverageHoldTime"].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["MaxHoldTime"].isNull()) - itemsObject.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].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["SatisfactionRate"].isNull()) - itemsObject.overall.satisfactionRate = std::stof(overallNode["SatisfactionRate"].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 deleted file mode 100644 index abf5790da..000000000 --- a/ccc/src/model/ListHistoricalSkillGroupReportRequest.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::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 deleted file mode 100644 index 9fa0f80b1..000000000 --- a/ccc/src/model/ListHistoricalSkillGroupReportResult.cc +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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["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["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["CallsAbandonedInRing"].isNull()) - itemsObject.inbound.callsAbandonedInRing = std::stol(inboundNode["CallsAbandonedInRing"].asString()); - if(!inboundNode["CallsAttendedTransferIn"].isNull()) - itemsObject.inbound.callsAttendedTransferIn = std::stol(inboundNode["CallsAttendedTransferIn"].asString()); - if(!inboundNode["CallsAttendedTransferOut"].isNull()) - itemsObject.inbound.callsAttendedTransferOut = std::stol(inboundNode["CallsAttendedTransferOut"].asString()); - if(!inboundNode["CallsBlindTransferIn"].isNull()) - itemsObject.inbound.callsBlindTransferIn = std::stol(inboundNode["CallsBlindTransferIn"].asString()); - if(!inboundNode["CallsBlindTransferOut"].isNull()) - itemsObject.inbound.callsBlindTransferOut = std::stol(inboundNode["CallsBlindTransferOut"].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["CallsOverflow"].isNull()) - itemsObject.inbound.callsOverflow = std::stol(inboundNode["CallsOverflow"].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["CallsTimeout"].isNull()) - itemsObject.inbound.callsTimeout = std::stol(inboundNode["CallsTimeout"].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["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["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["SatisfactionRate"].isNull()) - itemsObject.inbound.satisfactionRate = std::stof(inboundNode["SatisfactionRate"].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["AverageHoldTime"].isNull()) - itemsObject.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString()); - if(!outboundNode["AverageRingTime"].isNull()) - itemsObject.outbound.averageRingTime = std::stof(outboundNode["AverageRingTime"].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["CallsAttendedTransferIn"].isNull()) - itemsObject.outbound.callsAttendedTransferIn = std::stol(outboundNode["CallsAttendedTransferIn"].asString()); - if(!outboundNode["CallsAttendedTransferOut"].isNull()) - itemsObject.outbound.callsAttendedTransferOut = std::stol(outboundNode["CallsAttendedTransferOut"].asString()); - if(!outboundNode["CallsBlindTransferIn"].isNull()) - itemsObject.outbound.callsBlindTransferIn = std::stol(outboundNode["CallsBlindTransferIn"].asString()); - if(!outboundNode["CallsBlindTransferOut"].isNull()) - itemsObject.outbound.callsBlindTransferOut = std::stol(outboundNode["CallsBlindTransferOut"].asString()); - if(!outboundNode["CallsDialed"].isNull()) - itemsObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsHold"].isNull()) - itemsObject.outbound.callsHold = std::stol(outboundNode["CallsHold"].asString()); - if(!outboundNode["CallsRinged"].isNull()) - itemsObject.outbound.callsRinged = std::stol(outboundNode["CallsRinged"].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["MaxRingTime"].isNull()) - itemsObject.outbound.maxRingTime = std::stol(outboundNode["MaxRingTime"].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["SatisfactionRate"].isNull()) - itemsObject.outbound.satisfactionRate = std::stof(outboundNode["SatisfactionRate"].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["TotalRingTime"].isNull()) - itemsObject.outbound.totalRingTime = std::stol(outboundNode["TotalRingTime"].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["AverageHoldTime"].isNull()) - itemsObject.overall.averageHoldTime = std::stof(overallNode["AverageHoldTime"].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["MaxHoldTime"].isNull()) - itemsObject.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].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["SatisfactionRate"].isNull()) - itemsObject.overall.satisfactionRate = std::stof(overallNode["SatisfactionRate"].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 b14d7ee38..7b5a8c079 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", "2020-07-01", "ListInstancesOfUser") + RpcServiceRequest("ccc", "2017-07-05", "ListInstancesOfUser") { setMethod(HttpRequest::Method::Post); } @@ -27,25 +27,14 @@ ListInstancesOfUserRequest::ListInstancesOfUserRequest() : ListInstancesOfUserRequest::~ListInstancesOfUserRequest() {} -int ListInstancesOfUserRequest::getPageNumber()const +std::string ListInstancesOfUserRequest::getAccessKeyId()const { - return pageNumber_; + return accessKeyId_; } -void ListInstancesOfUserRequest::setPageNumber(int pageNumber) +void ListInstancesOfUserRequest::setAccessKeyId(const std::string& 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)); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListInstancesOfUserResult.cc b/ccc/src/model/ListInstancesOfUserResult.cc index 64288a306..8ea209999 100644 --- a/ccc/src/model/ListInstancesOfUserResult.cc +++ b/ccc/src/model/ListInstancesOfUserResult.cc @@ -39,113 +39,103 @@ void ListInstancesOfUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["PageNumber"].isNull()) - data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); - if(!dataNode["PageSize"].isNull()) - data_.pageSize = std::stoi(dataNode["PageSize"].asString()); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - auto allListNode = dataNode["List"]["CallCenterInstance"]; - for (auto dataNodeListCallCenterInstance : allListNode) + auto allInstancesNode = value["Instances"]["CallCenterInstance"]; + for (auto valueInstancesCallCenterInstance : allInstancesNode) { - 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 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::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); + CallCenterInstance::User adminObject; + if(!valueInstancesCallCenterInstanceAdminUser["UserId"].isNull()) + adminObject.userId = valueInstancesCallCenterInstanceAdminUser["UserId"].asString(); + if(!valueInstancesCallCenterInstanceAdminUser["RamId"].isNull()) + adminObject.ramId = valueInstancesCallCenterInstanceAdminUser["RamId"].asString(); + if(!valueInstancesCallCenterInstanceAdminUser["InstanceId"].isNull()) + adminObject.instanceId = valueInstancesCallCenterInstanceAdminUser["InstanceId"].asString(); + auto detailNode = value["Detail"]; + if(!detailNode["LoginName"].isNull()) + adminObject.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + adminObject.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + adminObject.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + adminObject.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + adminObject.detail.department = detailNode["Department"].asString(); + instancesObject.admin.push_back(adminObject); } - auto allNumberListNode = dataNodeListCallCenterInstance["NumberList"]["PhoneNumber"]; - for (auto dataNodeListCallCenterInstanceNumberListPhoneNumber : allNumberListNode) + auto allPhoneNumbersNode = valueInstancesCallCenterInstance["PhoneNumbers"]["PhoneNumber"]; + for (auto valueInstancesCallCenterInstancePhoneNumbersPhoneNumber : allPhoneNumbersNode) { - 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); + 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_.list.push_back(callCenterInstanceObject); + instances_.push_back(instancesObject); } - auto allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } +std::vector ListInstancesOfUserResult::getInstances()const +{ + return instances_; +} + std::string ListInstancesOfUserResult::getMessage()const { return message_; @@ -156,18 +146,13 @@ 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/ListInstancesRequest.cc b/ccc/src/model/ListInstancesRequest.cc deleted file mode 100644 index edd8406e8..000000000 --- a/ccc/src/model/ListInstancesRequest.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::ListInstancesRequest; - -ListInstancesRequest::ListInstancesRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ListInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -ListInstancesRequest::~ListInstancesRequest() -{} - -int ListInstancesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -int ListInstancesRequest::getPageSize()const -{ - return pageSize_; -} - -void ListInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListInstancesResult.cc b/ccc/src/model/ListInstancesResult.cc deleted file mode 100644 index 6fe918677..000000000 --- a/ccc/src/model/ListInstancesResult.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 -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -ListInstancesResult::ListInstancesResult() : - ServiceResult() -{} - -ListInstancesResult::ListInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListInstancesResult::~ListInstancesResult() -{} - -void ListInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["PageNumber"].isNull()) - data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); - if(!dataNode["PageSize"].isNull()) - data_.pageSize = std::stoi(dataNode["PageSize"].asString()); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - auto allListNode = dataNode["List"]["CallCenterInstance"]; - for (auto dataNodeListCallCenterInstance : allListNode) - { - Data::CallCenterInstance callCenterInstanceObject; - if(!dataNodeListCallCenterInstance["AliyunUid"].isNull()) - callCenterInstanceObject.aliyunUid = dataNodeListCallCenterInstance["AliyunUid"].asString(); - if(!dataNodeListCallCenterInstance["ConsoleUrl"].isNull()) - callCenterInstanceObject.consoleUrl = dataNodeListCallCenterInstance["ConsoleUrl"].asString(); - if(!dataNodeListCallCenterInstance["CreateTime"].isNull()) - callCenterInstanceObject.createTime = std::stol(dataNodeListCallCenterInstance["CreateTime"].asString()); - if(!dataNodeListCallCenterInstance["Description"].isNull()) - callCenterInstanceObject.description = dataNodeListCallCenterInstance["Description"].asString(); - if(!dataNodeListCallCenterInstance["DomainName"].isNull()) - callCenterInstanceObject.domainName = dataNodeListCallCenterInstance["DomainName"].asString(); - if(!dataNodeListCallCenterInstance["Id"].isNull()) - callCenterInstanceObject.id = dataNodeListCallCenterInstance["Id"].asString(); - if(!dataNodeListCallCenterInstance["Name"].isNull()) - callCenterInstanceObject.name = dataNodeListCallCenterInstance["Name"].asString(); - if(!dataNodeListCallCenterInstance["Status"].isNull()) - callCenterInstanceObject.status = dataNodeListCallCenterInstance["Status"].asString(); - auto allAdminListNode = dataNodeListCallCenterInstance["AdminList"]["User"]; - for (auto dataNodeListCallCenterInstanceAdminListUser : allAdminListNode) - { - Data::CallCenterInstance::User adminListObject; - if(!dataNodeListCallCenterInstanceAdminListUser["DisplayName"].isNull()) - adminListObject.displayName = dataNodeListCallCenterInstanceAdminListUser["DisplayName"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["Email"].isNull()) - adminListObject.email = dataNodeListCallCenterInstanceAdminListUser["Email"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["Extension"].isNull()) - adminListObject.extension = dataNodeListCallCenterInstanceAdminListUser["Extension"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["InstanceId"].isNull()) - adminListObject.instanceId = dataNodeListCallCenterInstanceAdminListUser["InstanceId"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["LoginName"].isNull()) - adminListObject.loginName = dataNodeListCallCenterInstanceAdminListUser["LoginName"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["Mobile"].isNull()) - adminListObject.mobile = dataNodeListCallCenterInstanceAdminListUser["Mobile"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["RoleId"].isNull()) - adminListObject.roleId = dataNodeListCallCenterInstanceAdminListUser["RoleId"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["RoleName"].isNull()) - adminListObject.roleName = dataNodeListCallCenterInstanceAdminListUser["RoleName"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["UserId"].isNull()) - adminListObject.userId = dataNodeListCallCenterInstanceAdminListUser["UserId"].asString(); - if(!dataNodeListCallCenterInstanceAdminListUser["WorkMode"].isNull()) - adminListObject.workMode = dataNodeListCallCenterInstanceAdminListUser["WorkMode"].asString(); - callCenterInstanceObject.adminList.push_back(adminListObject); - } - auto allNumberListNode = dataNodeListCallCenterInstance["NumberList"]["PhoneNumber"]; - for (auto dataNodeListCallCenterInstanceNumberListPhoneNumber : allNumberListNode) - { - Data::CallCenterInstance::PhoneNumber numberListObject; - if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].isNull()) - numberListObject.number = dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].asString(); - callCenterInstanceObject.numberList.push_back(numberListObject); - } - data_.list.push_back(callCenterInstanceObject); - } - auto allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string ListInstancesResult::getMessage()const -{ - return message_; -} - -int ListInstancesResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListInstancesResult::getParams()const -{ - return params_; -} - -ListInstancesResult::Data ListInstancesResult::getData()const -{ - return data_; -} - -std::string ListInstancesResult::getCode()const -{ - return code_; -} - diff --git a/ccc/src/model/ListIntervalAgentReportRequest.cc b/ccc/src/model/ListIntervalAgentReportRequest.cc deleted file mode 100644 index d38a60a64..000000000 --- a/ccc/src/model/ListIntervalAgentReportRequest.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::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 deleted file mode 100644 index db56a4908..000000000 --- a/ccc/src/model/ListIntervalAgentReportResult.cc +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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["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["AverageWorkTime"].isNull()) - dataObject.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString()); - if(!inboundNode["CallsAttendedTransferIn"].isNull()) - dataObject.inbound.callsAttendedTransferIn = std::stol(inboundNode["CallsAttendedTransferIn"].asString()); - if(!inboundNode["CallsAttendedTransferOut"].isNull()) - dataObject.inbound.callsAttendedTransferOut = std::stol(inboundNode["CallsAttendedTransferOut"].asString()); - if(!inboundNode["CallsBlindTransferIn"].isNull()) - dataObject.inbound.callsBlindTransferIn = std::stol(inboundNode["CallsBlindTransferIn"].asString()); - if(!inboundNode["CallsBlindTransferOut"].isNull()) - dataObject.inbound.callsBlindTransferOut = std::stol(inboundNode["CallsBlindTransferOut"].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["CallsRinged"].isNull()) - dataObject.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString()); - if(!inboundNode["HandleRate"].isNull()) - dataObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].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["MaxWorkTime"].isNull()) - dataObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - dataObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["SatisfactionRate"].isNull()) - dataObject.inbound.satisfactionRate = std::stof(inboundNode["SatisfactionRate"].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["AverageHoldTime"].isNull()) - dataObject.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString()); - if(!outboundNode["AverageRingTime"].isNull()) - dataObject.outbound.averageRingTime = std::stof(outboundNode["AverageRingTime"].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["CallsAttendedTransferIn"].isNull()) - dataObject.outbound.callsAttendedTransferIn = std::stol(outboundNode["CallsAttendedTransferIn"].asString()); - if(!outboundNode["CallsAttendedTransferOut"].isNull()) - dataObject.outbound.callsAttendedTransferOut = std::stol(outboundNode["CallsAttendedTransferOut"].asString()); - if(!outboundNode["CallsBlindTransferIn"].isNull()) - dataObject.outbound.callsBlindTransferIn = std::stol(outboundNode["CallsBlindTransferIn"].asString()); - if(!outboundNode["CallsBlindTransferOut"].isNull()) - dataObject.outbound.callsBlindTransferOut = std::stol(outboundNode["CallsBlindTransferOut"].asString()); - if(!outboundNode["CallsDialed"].isNull()) - dataObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsHold"].isNull()) - dataObject.outbound.callsHold = std::stol(outboundNode["CallsHold"].asString()); - if(!outboundNode["CallsRinged"].isNull()) - dataObject.outbound.callsRinged = std::stol(outboundNode["CallsRinged"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - dataObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["MaxHoldTime"].isNull()) - dataObject.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString()); - if(!outboundNode["MaxRingTime"].isNull()) - dataObject.outbound.maxRingTime = std::stol(outboundNode["MaxRingTime"].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["SatisfactionRate"].isNull()) - dataObject.outbound.satisfactionRate = std::stof(outboundNode["SatisfactionRate"].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["TotalRingTime"].isNull()) - dataObject.outbound.totalRingTime = std::stol(outboundNode["TotalRingTime"].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["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["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["SatisfactionRate"].isNull()) - dataObject.overall.satisfactionRate = std::stof(overallNode["SatisfactionRate"].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 deleted file mode 100644 index 92c36e751..000000000 --- a/ccc/src/model/ListIntervalInstanceReportRequest.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::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 deleted file mode 100644 index 3d9f4ab1f..000000000 --- a/ccc/src/model/ListIntervalInstanceReportResult.cc +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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["AverageRingTime"].isNull()) - dataObject.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString()); - if(!inboundNode["CallsVoicemail"].isNull()) - dataObject.inbound.callsVoicemail = std::stol(inboundNode["CallsVoicemail"].asString()); - if(!inboundNode["MaxAbandonedInIVRTime"].isNull()) - dataObject.inbound.maxAbandonedInIVRTime = std::stol(inboundNode["MaxAbandonedInIVRTime"].asString()); - if(!inboundNode["CallsHandled"].isNull()) - dataObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); - if(!inboundNode["CallsIVRException"].isNull()) - dataObject.inbound.callsIVRException = std::stol(inboundNode["CallsIVRException"].asString()); - if(!inboundNode["CallsAbandonedInIVR"].isNull()) - dataObject.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); - if(!inboundNode["MaxWorkTime"].isNull()) - dataObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); - if(!inboundNode["TotalHoldTime"].isNull()) - dataObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString()); - if(!inboundNode["MaxAbandonTime"].isNull()) - dataObject.inbound.maxAbandonTime = std::stol(inboundNode["MaxAbandonTime"].asString()); - if(!inboundNode["AverageAbandonTime"].isNull()) - dataObject.inbound.averageAbandonTime = std::stof(inboundNode["AverageAbandonTime"].asString()); - if(!inboundNode["AbandonedRate"].isNull()) - dataObject.inbound.abandonedRate = std::stof(inboundNode["AbandonedRate"].asString()); - if(!inboundNode["CallsRinged"].isNull()) - dataObject.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString()); - if(!inboundNode["CallsQueuingFailed"].isNull()) - dataObject.inbound.callsQueuingFailed = std::stol(inboundNode["CallsQueuingFailed"].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["MaxAbandonedInRingTime"].isNull()) - dataObject.inbound.maxAbandonedInRingTime = std::stol(inboundNode["MaxAbandonedInRingTime"].asString()); - if(!inboundNode["CallsBlindTransferred"].isNull()) - dataObject.inbound.callsBlindTransferred = std::stol(inboundNode["CallsBlindTransferred"].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["MaxWaitTime"].isNull()) - dataObject.inbound.maxWaitTime = std::stol(inboundNode["MaxWaitTime"].asString()); - if(!inboundNode["AverageTalkTime"].isNull()) - dataObject.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString()); - if(!inboundNode["CallsAttendedTransferred"].isNull()) - dataObject.inbound.callsAttendedTransferred = std::stol(inboundNode["CallsAttendedTransferred"].asString()); - if(!inboundNode["TotalAbandonedInIVRTime"].isNull()) - dataObject.inbound.totalAbandonedInIVRTime = std::stol(inboundNode["TotalAbandonedInIVRTime"].asString()); - if(!inboundNode["CallsQueuingOverflow"].isNull()) - dataObject.inbound.callsQueuingOverflow = std::stol(inboundNode["CallsQueuingOverflow"].asString()); - if(!inboundNode["CallsAbandonedInRing"].isNull()) - dataObject.inbound.callsAbandonedInRing = std::stol(inboundNode["CallsAbandonedInRing"].asString()); - if(!inboundNode["TotalAbandonedInRingTime"].isNull()) - dataObject.inbound.totalAbandonedInRingTime = std::stol(inboundNode["TotalAbandonedInRingTime"].asString()); - if(!inboundNode["TotalWorkTime"].isNull()) - dataObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].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["CallsQueued"].isNull()) - dataObject.inbound.callsQueued = std::stol(inboundNode["CallsQueued"].asString()); - if(!inboundNode["AverageAbandonedInRingTime"].isNull()) - dataObject.inbound.averageAbandonedInRingTime = std::stof(inboundNode["AverageAbandonedInRingTime"].asString()); - if(!inboundNode["SatisfactionIndex"].isNull()) - dataObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); - if(!inboundNode["CallsAbandoned"].isNull()) - dataObject.inbound.callsAbandoned = std::stol(inboundNode["CallsAbandoned"].asString()); - if(!inboundNode["MaxAbandonedInQueueTime"].isNull()) - dataObject.inbound.maxAbandonedInQueueTime = std::stol(inboundNode["MaxAbandonedInQueueTime"].asString()); - if(!inboundNode["CallsAbandonedInVoiceNavigator"].isNull()) - dataObject.inbound.callsAbandonedInVoiceNavigator = std::stol(inboundNode["CallsAbandonedInVoiceNavigator"].asString()); - if(!inboundNode["TotalWaitTime"].isNull()) - dataObject.inbound.totalWaitTime = std::stol(inboundNode["TotalWaitTime"].asString()); - if(!inboundNode["MaxTalkTime"].isNull()) - dataObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); - if(!inboundNode["MaxRingTime"].isNull()) - dataObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); - if(!inboundNode["TotalAbandonTime"].isNull()) - dataObject.inbound.totalAbandonTime = std::stol(inboundNode["TotalAbandonTime"].asString()); - if(!inboundNode["CallsOffered"].isNull()) - dataObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); - if(!inboundNode["CallsQueuingTimeout"].isNull()) - dataObject.inbound.callsQueuingTimeout = std::stol(inboundNode["CallsQueuingTimeout"].asString()); - if(!inboundNode["ServiceLevel20"].isNull()) - dataObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); - if(!inboundNode["MaxHoldTime"].isNull()) - dataObject.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].asString()); - if(!inboundNode["CallsForwardToOutsideNumber"].isNull()) - dataObject.inbound.callsForwardToOutsideNumber = std::stol(inboundNode["CallsForwardToOutsideNumber"].asString()); - if(!inboundNode["SatisfactionRate"].isNull()) - dataObject.inbound.satisfactionRate = std::stof(inboundNode["SatisfactionRate"].asString()); - if(!inboundNode["CallsHold"].isNull()) - dataObject.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString()); - if(!inboundNode["SatisfactionSurveysOffered"].isNull()) - dataObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); - if(!inboundNode["HandleRate"].isNull()) - dataObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); - if(!inboundNode["SatisfactionSurveysResponded"].isNull()) - dataObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); - if(!inboundNode["AverageHoldTime"].isNull()) - dataObject.inbound.averageHoldTime = std::stof(inboundNode["AverageHoldTime"].asString()); - if(!inboundNode["CallsAbandonedInQueue"].isNull()) - dataObject.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); - if(!inboundNode["TotalAbandonedInQueueTime"].isNull()) - dataObject.inbound.totalAbandonedInQueueTime = std::stol(inboundNode["TotalAbandonedInQueueTime"].asString()); - auto outboundNode = value["Outbound"]; - if(!outboundNode["AverageRingTime"].isNull()) - dataObject.outbound.averageRingTime = std::stof(outboundNode["AverageRingTime"].asString()); - if(!outboundNode["CallsDialed"].isNull()) - dataObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsAnswered"].isNull()) - dataObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); - if(!outboundNode["TotalWorkTime"].isNull()) - dataObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); - if(!outboundNode["MaxWorkTime"].isNull()) - dataObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].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["AverageWorkTime"].isNull()) - dataObject.outbound.averageWorkTime = std::stof(outboundNode["AverageWorkTime"].asString()); - if(!outboundNode["SatisfactionIndex"].isNull()) - dataObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); - if(!outboundNode["CallsRinged"].isNull()) - dataObject.outbound.callsRinged = std::stol(outboundNode["CallsRinged"].asString()); - if(!outboundNode["TotalRingTime"].isNull()) - dataObject.outbound.totalRingTime = std::stol(outboundNode["TotalRingTime"].asString()); - if(!outboundNode["MaxTalkTime"].isNull()) - dataObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); - if(!outboundNode["MaxRingTime"].isNull()) - dataObject.outbound.maxRingTime = std::stol(outboundNode["MaxRingTime"].asString()); - if(!outboundNode["TotalTalkTime"].isNull()) - dataObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - dataObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["CallsBlindTransferred"].isNull()) - dataObject.outbound.callsBlindTransferred = std::stol(outboundNode["CallsBlindTransferred"].asString()); - if(!outboundNode["AnswerRate"].isNull()) - dataObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); - if(!outboundNode["MaxHoldTime"].isNull()) - dataObject.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString()); - if(!outboundNode["AverageTalkTime"].isNull()) - dataObject.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString()); - if(!outboundNode["SatisfactionRate"].isNull()) - dataObject.outbound.satisfactionRate = std::stof(outboundNode["SatisfactionRate"].asString()); - if(!outboundNode["CallsAttendedTransferred"].isNull()) - dataObject.outbound.callsAttendedTransferred = std::stol(outboundNode["CallsAttendedTransferred"].asString()); - if(!outboundNode["CallsHold"].isNull()) - dataObject.outbound.callsHold = std::stol(outboundNode["CallsHold"].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["AverageHoldTime"].isNull()) - dataObject.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString()); - if(!outboundNode["AverageDialingTime"].isNull()) - dataObject.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString()); - auto overallNode = value["Overall"]; - if(!overallNode["TotalTalkTime"].isNull()) - dataObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); - if(!overallNode["TotalLoggedInTime"].isNull()) - dataObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); - if(!overallNode["OccupancyRate"].isNull()) - dataObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); - if(!overallNode["TotalWorkTime"].isNull()) - dataObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); - if(!overallNode["MaxHoldTime"].isNull()) - dataObject.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].asString()); - if(!overallNode["MaxWorkTime"].isNull()) - dataObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); - if(!overallNode["AverageBreakTime"].isNull()) - dataObject.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString()); - if(!overallNode["TotalHoldTime"].isNull()) - dataObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString()); - if(!overallNode["SatisfactionRate"].isNull()) - dataObject.overall.satisfactionRate = std::stof(overallNode["SatisfactionRate"].asString()); - if(!overallNode["MaxBreakTime"].isNull()) - dataObject.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString()); - if(!overallNode["AverageWorkTime"].isNull()) - dataObject.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString()); - if(!overallNode["AverageTalkTime"].isNull()) - dataObject.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].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["MaxReadyTime"].isNull()) - dataObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); - if(!overallNode["AverageReadyTime"].isNull()) - dataObject.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString()); - if(!overallNode["AverageHoldTime"].isNull()) - dataObject.overall.averageHoldTime = std::stof(overallNode["AverageHoldTime"].asString()); - if(!overallNode["TotalReadyTime"].isNull()) - dataObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); - if(!overallNode["TotalBreakTime"].isNull()) - dataObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); - if(!overallNode["MaxTalkTime"].isNull()) - dataObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); - if(!overallNode["TotalCalls"].isNull()) - dataObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].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 deleted file mode 100644 index 131793f71..000000000 --- a/ccc/src/model/ListIntervalSkillGroupReportRequest.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::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 deleted file mode 100644 index 50040de94..000000000 --- a/ccc/src/model/ListIntervalSkillGroupReportResult.cc +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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["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["CallsAbandonedInQueue"].isNull()) - dataObject.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); - if(!inboundNode["CallsAbandonedInRing"].isNull()) - dataObject.inbound.callsAbandonedInRing = std::stol(inboundNode["CallsAbandonedInRing"].asString()); - if(!inboundNode["CallsAttendedTransferIn"].isNull()) - dataObject.inbound.callsAttendedTransferIn = std::stol(inboundNode["CallsAttendedTransferIn"].asString()); - if(!inboundNode["CallsAttendedTransferOut"].isNull()) - dataObject.inbound.callsAttendedTransferOut = std::stol(inboundNode["CallsAttendedTransferOut"].asString()); - if(!inboundNode["CallsBlindTransferIn"].isNull()) - dataObject.inbound.callsBlindTransferIn = std::stol(inboundNode["CallsBlindTransferIn"].asString()); - if(!inboundNode["CallsBlindTransferOut"].isNull()) - dataObject.inbound.callsBlindTransferOut = std::stol(inboundNode["CallsBlindTransferOut"].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["CallsOverflow"].isNull()) - dataObject.inbound.callsOverflow = std::stol(inboundNode["CallsOverflow"].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["CallsTimeout"].isNull()) - dataObject.inbound.callsTimeout = std::stol(inboundNode["CallsTimeout"].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["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["SatisfactionRate"].isNull()) - dataObject.inbound.satisfactionRate = std::stof(inboundNode["SatisfactionRate"].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["AverageHoldTime"].isNull()) - dataObject.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString()); - if(!outboundNode["AverageRingTime"].isNull()) - dataObject.outbound.averageRingTime = std::stof(outboundNode["AverageRingTime"].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["CallsAttendedTransferIn"].isNull()) - dataObject.outbound.callsAttendedTransferIn = std::stol(outboundNode["CallsAttendedTransferIn"].asString()); - if(!outboundNode["CallsAttendedTransferOut"].isNull()) - dataObject.outbound.callsAttendedTransferOut = std::stol(outboundNode["CallsAttendedTransferOut"].asString()); - if(!outboundNode["CallsBlindTransferIn"].isNull()) - dataObject.outbound.callsBlindTransferIn = std::stol(outboundNode["CallsBlindTransferIn"].asString()); - if(!outboundNode["CallsBlindTransferOut"].isNull()) - dataObject.outbound.callsBlindTransferOut = std::stol(outboundNode["CallsBlindTransferOut"].asString()); - if(!outboundNode["CallsDialed"].isNull()) - dataObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); - if(!outboundNode["CallsHold"].isNull()) - dataObject.outbound.callsHold = std::stol(outboundNode["CallsHold"].asString()); - if(!outboundNode["CallsRinged"].isNull()) - dataObject.outbound.callsRinged = std::stol(outboundNode["CallsRinged"].asString()); - if(!outboundNode["MaxDialingTime"].isNull()) - dataObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); - if(!outboundNode["MaxHoldTime"].isNull()) - dataObject.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString()); - if(!outboundNode["MaxRingTime"].isNull()) - dataObject.outbound.maxRingTime = std::stol(outboundNode["MaxRingTime"].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["SatisfactionRate"].isNull()) - dataObject.outbound.satisfactionRate = std::stof(outboundNode["SatisfactionRate"].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["TotalRingTime"].isNull()) - dataObject.outbound.totalRingTime = std::stol(outboundNode["TotalRingTime"].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["SatisfactionRate"].isNull()) - dataObject.overall.satisfactionRate = std::stof(overallNode["SatisfactionRate"].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 new file mode 100644 index 000000000..b79002b98 --- /dev/null +++ b/ccc/src/model/ListIvrTrackingDetailRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..2cc4accc7 --- /dev/null +++ b/ccc/src/model/ListIvrTrackingDetailResult.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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/ListIvrTrackingDetailsResult.cc b/ccc/src/model/ListIvrTrackingDetailsResult.cc deleted file mode 100644 index 2ec7007c0..000000000 --- a/ccc/src/model/ListIvrTrackingDetailsResult.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -ListIvrTrackingDetailsResult::ListIvrTrackingDetailsResult() : - ServiceResult() -{} - -ListIvrTrackingDetailsResult::ListIvrTrackingDetailsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListIvrTrackingDetailsResult::~ListIvrTrackingDetailsResult() -{} - -void ListIvrTrackingDetailsResult::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"]["IvrTracking"]; - for (auto dataNodeListIvrTracking : allListNode) - { - Data::IvrTracking ivrTrackingObject; - if(!dataNodeListIvrTracking["Callee"].isNull()) - ivrTrackingObject.callee = dataNodeListIvrTracking["Callee"].asString(); - if(!dataNodeListIvrTracking["Caller"].isNull()) - ivrTrackingObject.caller = dataNodeListIvrTracking["Caller"].asString(); - if(!dataNodeListIvrTracking["ChannelId"].isNull()) - ivrTrackingObject.channelId = dataNodeListIvrTracking["ChannelId"].asString(); - if(!dataNodeListIvrTracking["ChannelVariables"].isNull()) - ivrTrackingObject.channelVariables = dataNodeListIvrTracking["ChannelVariables"].asString(); - if(!dataNodeListIvrTracking["ContactId"].isNull()) - ivrTrackingObject.contactId = dataNodeListIvrTracking["ContactId"].asString(); - if(!dataNodeListIvrTracking["EnterTime"].isNull()) - ivrTrackingObject.enterTime = std::stol(dataNodeListIvrTracking["EnterTime"].asString()); - if(!dataNodeListIvrTracking["FlowId"].isNull()) - ivrTrackingObject.flowId = dataNodeListIvrTracking["FlowId"].asString(); - if(!dataNodeListIvrTracking["FlowName"].isNull()) - ivrTrackingObject.flowName = dataNodeListIvrTracking["FlowName"].asString(); - if(!dataNodeListIvrTracking["Instance"].isNull()) - ivrTrackingObject.instance = dataNodeListIvrTracking["Instance"].asString(); - if(!dataNodeListIvrTracking["LeaveTime"].isNull()) - ivrTrackingObject.leaveTime = std::stol(dataNodeListIvrTracking["LeaveTime"].asString()); - if(!dataNodeListIvrTracking["NodeExitCode"].isNull()) - ivrTrackingObject.nodeExitCode = dataNodeListIvrTracking["NodeExitCode"].asString(); - if(!dataNodeListIvrTracking["NodeId"].isNull()) - ivrTrackingObject.nodeId = dataNodeListIvrTracking["NodeId"].asString(); - if(!dataNodeListIvrTracking["NodeName"].isNull()) - ivrTrackingObject.nodeName = dataNodeListIvrTracking["NodeName"].asString(); - if(!dataNodeListIvrTracking["NodeProperties"].isNull()) - ivrTrackingObject.nodeProperties = dataNodeListIvrTracking["NodeProperties"].asString(); - if(!dataNodeListIvrTracking["NodeType"].isNull()) - ivrTrackingObject.nodeType = dataNodeListIvrTracking["NodeType"].asString(); - if(!dataNodeListIvrTracking["NodeVariables"].isNull()) - ivrTrackingObject.nodeVariables = dataNodeListIvrTracking["NodeVariables"].asString(); - data_.list.push_back(ivrTrackingObject); - } - 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 ListIvrTrackingDetailsResult::getMessage()const -{ - return message_; -} - -int ListIvrTrackingDetailsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -ListIvrTrackingDetailsResult::Data ListIvrTrackingDetailsResult::getData()const -{ - return data_; -} - -std::string ListIvrTrackingDetailsResult::getCode()const -{ - return code_; -} - diff --git a/ccc/src/model/ListJobGroupsRequest.cc b/ccc/src/model/ListJobGroupsRequest.cc new file mode 100644 index 000000000..e1f9e0be0 --- /dev/null +++ b/ccc/src/model/ListJobGroupsRequest.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::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 new file mode 100644 index 000000000..d5fac3b40 --- /dev/null +++ b/ccc/src/model/ListJobGroupsResult.cc @@ -0,0 +1,168 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..87aa8ee20 --- /dev/null +++ b/ccc/src/model/ListJobStatusRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 new file mode 100644 index 000000000..5c1d979a1 --- /dev/null +++ b/ccc/src/model/ListJobStatusResult.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; + +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 new file mode 100644 index 000000000..2fbc7cccb --- /dev/null +++ b/ccc/src/model/ListJobsByGroupRequest.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::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 new file mode 100644 index 000000000..18f2aee45 --- /dev/null +++ b/ccc/src/model/ListJobsByGroupResult.cc @@ -0,0 +1,165 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..319076418 --- /dev/null +++ b/ccc/src/model/ListMediasRequest.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::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 new file mode 100644 index 000000000..e92862810 --- /dev/null +++ b/ccc/src/model/ListMediasResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index 93d24dc7f..000000000 --- a/ccc/src/model/ListOutboundNumbersOfUserRequest.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::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 deleted file mode 100644 index 3be76ee01..000000000 --- a/ccc/src/model/ListOutboundNumbersOfUserResult.cc +++ /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. - */ - -#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 new file mode 100644 index 000000000..9a046e4b6 --- /dev/null +++ b/ccc/src/model/ListOutboundPhoneNumberOfUserRequest.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::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 new file mode 100644 index 000000000..a82befe1a --- /dev/null +++ b/ccc/src/model/ListOutboundPhoneNumberOfUserResult.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; + +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 deleted file mode 100644 index 669869b92..000000000 --- a/ccc/src/model/ListPersonalNumbersOfUserRequest.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::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 deleted file mode 100644 index cf77bdbc6..000000000 --- a/ccc/src/model/ListPersonalNumbersOfUserResult.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 -#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 deleted file mode 100644 index 59724042a..000000000 --- a/ccc/src/model/ListPhoneNumbersOfSkillGroupRequest.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::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 deleted file mode 100644 index 8e52a609e..000000000 --- a/ccc/src/model/ListPhoneNumbersOfSkillGroupResult.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; - -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 c7dc3ec1d..a7a9f5f7c 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", "2020-07-01", "ListPhoneNumbers") + RpcServiceRequest("ccc", "2017-07-05", "ListPhoneNumbers") { setMethod(HttpRequest::Method::Post); } @@ -27,48 +27,15 @@ ListPhoneNumbersRequest::ListPhoneNumbersRequest() : ListPhoneNumbersRequest::~ListPhoneNumbersRequest() {} -std::string ListPhoneNumbersRequest::getUsage()const +bool ListPhoneNumbersRequest::getOutboundOnly()const { - return usage_; + return outboundOnly_; } -void ListPhoneNumbersRequest::setUsage(const std::string& usage) +void ListPhoneNumbersRequest::setOutboundOnly(bool outboundOnly) { - 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); + outboundOnly_ = outboundOnly; + setParameter("OutboundOnly", outboundOnly ? "true" : "false"); } std::string ListPhoneNumbersRequest::getInstanceId()const @@ -82,14 +49,14 @@ void ListPhoneNumbersRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -int ListPhoneNumbersRequest::getPageSize()const +std::string ListPhoneNumbersRequest::getAccessKeyId()const { - return pageSize_; + return accessKeyId_; } -void ListPhoneNumbersRequest::setPageSize(int pageSize) +void ListPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId) { - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListPhoneNumbersResult.cc b/ccc/src/model/ListPhoneNumbersResult.cc index a09d5348b..5c9775a47 100644 --- a/ccc/src/model/ListPhoneNumbersResult.cc +++ b/ccc/src/model/ListPhoneNumbersResult.cc @@ -39,97 +39,113 @@ void ListPhoneNumbersResult::parse(const std::string &payload) 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) + auto allPhoneNumbersNode = value["PhoneNumbers"]["PhoneNumber"]; + for (auto valuePhoneNumbersPhoneNumber : allPhoneNumbersNode) { - 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 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::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); + 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_.list.push_back(phoneNumberObject); + auto contactFlowNode = value["ContactFlow"]; + if(!contactFlowNode["ContactFlowId"].isNull()) + phoneNumbersObject.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString(); + if(!contactFlowNode["InstanceId"].isNull()) + phoneNumbersObject.contactFlow.instanceId = contactFlowNode["InstanceId"].asString(); + if(!contactFlowNode["ContactFlowName"].isNull()) + phoneNumbersObject.contactFlow.contactFlowName = contactFlowNode["ContactFlowName"].asString(); + if(!contactFlowNode["ContactFlowDescription"].isNull()) + phoneNumbersObject.contactFlow.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); + if(!contactFlowNode["Type"].isNull()) + phoneNumbersObject.contactFlow.type = contactFlowNode["Type"].asString(); + auto privacyNumberNode = value["PrivacyNumber"]; + if(!privacyNumberNode["PoolId"].isNull()) + phoneNumbersObject.privacyNumber.poolId = privacyNumberNode["PoolId"].asString(); + if(!privacyNumberNode["Type"].isNull()) + phoneNumbersObject.privacyNumber.type = privacyNumberNode["Type"].asString(); + if(!privacyNumberNode["TelX"].isNull()) + phoneNumbersObject.privacyNumber.telX = privacyNumberNode["TelX"].asString(); + if(!privacyNumberNode["PoolName"].isNull()) + phoneNumbersObject.privacyNumber.poolName = privacyNumberNode["PoolName"].asString(); + if(!privacyNumberNode["PhoneNumber"].isNull()) + phoneNumbersObject.privacyNumber.phoneNumber = privacyNumberNode["PhoneNumber"].asString(); + if(!privacyNumberNode["Extra"].isNull()) + phoneNumbersObject.privacyNumber.extra = privacyNumberNode["Extra"].asString(); + if(!privacyNumberNode["BizId"].isNull()) + phoneNumbersObject.privacyNumber.bizId = privacyNumberNode["BizId"].asString(); + if(!privacyNumberNode["SubId"].isNull()) + phoneNumbersObject.privacyNumber.subId = privacyNumberNode["SubId"].asString(); + if(!privacyNumberNode["RegionNameCity"].isNull()) + phoneNumbersObject.privacyNumber.regionNameCity = privacyNumberNode["RegionNameCity"].asString(); + phoneNumbers_.push_back(phoneNumbersObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["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()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } +std::vector ListPhoneNumbersResult::getPhoneNumbers()const +{ + return phoneNumbers_; +} + std::string ListPhoneNumbersResult::getMessage()const { return message_; } -int ListPhoneNumbersResult::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 new file mode 100644 index 000000000..f1694880a --- /dev/null +++ b/ccc/src/model/ListPhoneTagsRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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 new file mode 100644 index 000000000..ca7ae5b9b --- /dev/null +++ b/ccc/src/model/ListPhoneTagsResult.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/ListRamUsersRequest.cc b/ccc/src/model/ListRamUsersRequest.cc deleted file mode 100644 index fee45ab77..000000000 --- a/ccc/src/model/ListRamUsersRequest.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::ListRamUsersRequest; - -ListRamUsersRequest::ListRamUsersRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ListRamUsers") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRamUsersRequest::~ListRamUsersRequest() -{} - -int ListRamUsersRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListRamUsersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListRamUsersRequest::getSearchPattern()const -{ - return searchPattern_; -} - -void ListRamUsersRequest::setSearchPattern(const std::string& searchPattern) -{ - searchPattern_ = searchPattern; - setParameter("SearchPattern", searchPattern); -} - -std::string ListRamUsersRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListRamUsersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListRamUsersRequest::getPageSize()const -{ - return pageSize_; -} - -void ListRamUsersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListRamUsersResult.cc b/ccc/src/model/ListRamUsersResult.cc deleted file mode 100644 index 181909a67..000000000 --- a/ccc/src/model/ListRamUsersResult.cc +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -ListRamUsersResult::ListRamUsersResult() : - ServiceResult() -{} - -ListRamUsersResult::ListRamUsersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListRamUsersResult::~ListRamUsersResult() -{} - -void ListRamUsersResult::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"]["RamUser"]; - for (auto dataNodeListRamUser : allListNode) - { - Data::RamUser ramUserObject; - if(!dataNodeListRamUser["AliyunUid"].isNull()) - ramUserObject.aliyunUid = std::stol(dataNodeListRamUser["AliyunUid"].asString()); - if(!dataNodeListRamUser["DisplayName"].isNull()) - ramUserObject.displayName = dataNodeListRamUser["DisplayName"].asString(); - if(!dataNodeListRamUser["Email"].isNull()) - ramUserObject.email = dataNodeListRamUser["Email"].asString(); - if(!dataNodeListRamUser["LoginName"].isNull()) - ramUserObject.loginName = dataNodeListRamUser["LoginName"].asString(); - if(!dataNodeListRamUser["Mobile"].isNull()) - ramUserObject.mobile = dataNodeListRamUser["Mobile"].asString(); - if(!dataNodeListRamUser["Primary"].isNull()) - ramUserObject.primary = dataNodeListRamUser["Primary"].asString() == "true"; - if(!dataNodeListRamUser["RamId"].isNull()) - ramUserObject.ramId = dataNodeListRamUser["RamId"].asString(); - data_.list.push_back(ramUserObject); - } - 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 ListRamUsersResult::getMessage()const -{ - return message_; -} - -int ListRamUsersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListRamUsersResult::getParams()const -{ - return params_; -} - -ListRamUsersResult::Data ListRamUsersResult::getData()const -{ - return data_; -} - -std::string ListRamUsersResult::getCode()const -{ - return code_; -} - diff --git a/ccc/src/model/ListRealTimeAgentRequest.cc b/ccc/src/model/ListRealTimeAgentRequest.cc new file mode 100644 index 000000000..240a92514 --- /dev/null +++ b/ccc/src/model/ListRealTimeAgentRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..49206fb15 --- /dev/null +++ b/ccc/src/model/ListRealTimeAgentResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index 1ef3358c8..000000000 --- a/ccc/src/model/ListRealtimeAgentStatesRequest.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::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 deleted file mode 100644 index 38898c358..000000000 --- a/ccc/src/model/ListRealtimeAgentStatesResult.cc +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 deleted file mode 100644 index e6e4ae132..000000000 --- a/ccc/src/model/ListRealtimeSkillGroupStatesRequest.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::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 deleted file mode 100644 index 8937dd32b..000000000 --- a/ccc/src/model/ListRealtimeSkillGroupStatesResult.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; - -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 deleted file mode 100644 index 024befbc1..000000000 --- a/ccc/src/model/ListRecentCallDetailRecordsRequest.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::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 deleted file mode 100644 index 440b91214..000000000 --- a/ccc/src/model/ListRecentCallDetailRecordsResult.cc +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 new file mode 100644 index 000000000..fa234d5ea --- /dev/null +++ b/ccc/src/model/ListRecentCallRecordsRequest.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::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 new file mode 100644 index 000000000..097f31937 --- /dev/null +++ b/ccc/src/model/ListRecentCallRecordsResult.cc @@ -0,0 +1,182 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..ba606903b --- /dev/null +++ b/ccc/src/model/ListRecordingOfDualTrackRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 new file mode 100644 index 000000000..230733886 --- /dev/null +++ b/ccc/src/model/ListRecordingOfDualTrackResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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 new file mode 100644 index 000000000..dff458bc3 --- /dev/null +++ b/ccc/src/model/ListRecordingsByContactIdRequest.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::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 new file mode 100644 index 000000000..4d5682390 --- /dev/null +++ b/ccc/src/model/ListRecordingsByContactIdResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 new file mode 100644 index 000000000..ddf217eba --- /dev/null +++ b/ccc/src/model/ListRecordingsRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..a66f47873 --- /dev/null +++ b/ccc/src/model/ListRecordingsResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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 9c18267eb..9ba00fe65 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", "2020-07-01", "ListRoles") + RpcServiceRequest("ccc", "2017-07-05", "ListRoles") { setMethod(HttpRequest::Method::Post); } @@ -38,3 +38,14 @@ 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 d5ea3c9fa..c06486749 100644 --- a/ccc/src/model/ListRolesResult.cc +++ b/ccc/src/model/ListRolesResult.cc @@ -39,22 +39,28 @@ void ListRolesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["Role"]; - for (auto valueDataRole : allDataNode) + auto allRolesNode = value["Roles"]["Role"]; + for (auto valueRolesRole : allRolesNode) { - Role dataObject; - if(!valueDataRole["Name"].isNull()) - dataObject.name = valueDataRole["Name"].asString(); - if(!valueDataRole["RoleId"].isNull()) - dataObject.roleId = valueDataRole["RoleId"].asString(); - data_.push_back(dataObject); + Role rolesObject; + if(!valueRolesRole["RoleId"].isNull()) + rolesObject.roleId = valueRolesRole["RoleId"].asString(); + if(!valueRolesRole["InstanceId"].isNull()) + rolesObject.instanceId = valueRolesRole["InstanceId"].asString(); + if(!valueRolesRole["RoleName"].isNull()) + rolesObject.roleName = valueRolesRole["RoleName"].asString(); + if(!valueRolesRole["RoleDescription"].isNull()) + rolesObject.roleDescription = valueRolesRole["RoleDescription"].asString(); + roles_.push_back(rolesObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -68,9 +74,9 @@ int ListRolesResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListRolesResult::getData()const +std::vector ListRolesResult::getRoles()const { - return data_; + return roles_; } std::string ListRolesResult::getCode()const @@ -78,3 +84,8 @@ std::string ListRolesResult::getCode()const return code_; } +bool ListRolesResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListScenarioTemplatesRequest.cc b/ccc/src/model/ListScenarioTemplatesRequest.cc new file mode 100644 index 000000000..cff6bafc7 --- /dev/null +++ b/ccc/src/model/ListScenarioTemplatesRequest.cc @@ -0,0 +1,29 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 new file mode 100644 index 000000000..c054c3dc1 --- /dev/null +++ b/ccc/src/model/ListScenarioTemplatesResult.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; + +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/GetTurnServerListRequest.cc b/ccc/src/model/ListScenariosRequest.cc similarity index 64% rename from ccc/src/model/GetTurnServerListRequest.cc rename to ccc/src/model/ListScenariosRequest.cc index ca67d9618..d1ffd311e 100644 --- a/ccc/src/model/GetTurnServerListRequest.cc +++ b/ccc/src/model/ListScenariosRequest.cc @@ -14,25 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::GetTurnServerListRequest; +using AlibabaCloud::CCC::Model::ListScenariosRequest; -GetTurnServerListRequest::GetTurnServerListRequest() : - RpcServiceRequest("ccc", "2020-07-01", "GetTurnServerList") +ListScenariosRequest::ListScenariosRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListScenarios") { setMethod(HttpRequest::Method::Post); } -GetTurnServerListRequest::~GetTurnServerListRequest() +ListScenariosRequest::~ListScenariosRequest() {} -std::string GetTurnServerListRequest::getInstanceId()const +std::string ListScenariosRequest::getInstanceId()const { return instanceId_; } -void GetTurnServerListRequest::setInstanceId(const std::string& instanceId) +void ListScenariosRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/ccc/src/model/ListScenariosResult.cc b/ccc/src/model/ListScenariosResult.cc new file mode 100644 index 000000000..538de6075 --- /dev/null +++ b/ccc/src/model/ListScenariosResult.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..425b44fb2 --- /dev/null +++ b/ccc/src/model/ListSkillGroupStatesRequest.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::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 new file mode 100644 index 000000000..297d5e9d5 --- /dev/null +++ b/ccc/src/model/ListSkillGroupStatesResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 000000000..d9c4f02a1 --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..87db54119 --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc @@ -0,0 +1,221 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..1acfd2a20 --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsRequest.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::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 new file mode 100644 index 000000000..9bf53d0ed --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsResult.cc @@ -0,0 +1,211 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..8fa7f6dce --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.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::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 new file mode 100644 index 000000000..ccdada638 --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc @@ -0,0 +1,213 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/TakeBreakRequest.cc b/ccc/src/model/ListSkillGroupsOfUserRequest.cc similarity index 50% rename from ccc/src/model/TakeBreakRequest.cc rename to ccc/src/model/ListSkillGroupsOfUserRequest.cc index ba02e0899..14ef41159 100644 --- a/ccc/src/model/TakeBreakRequest.cc +++ b/ccc/src/model/ListSkillGroupsOfUserRequest.cc @@ -14,60 +14,49 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::TakeBreakRequest; +using AlibabaCloud::CCC::Model::ListSkillGroupsOfUserRequest; -TakeBreakRequest::TakeBreakRequest() : - RpcServiceRequest("ccc", "2020-07-01", "TakeBreak") +ListSkillGroupsOfUserRequest::ListSkillGroupsOfUserRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupsOfUser") { setMethod(HttpRequest::Method::Post); } -TakeBreakRequest::~TakeBreakRequest() +ListSkillGroupsOfUserRequest::~ListSkillGroupsOfUserRequest() {} -std::string TakeBreakRequest::getCode()const -{ - return code_; -} - -void TakeBreakRequest::setCode(const std::string& code) -{ - code_ = code; - setParameter("Code", code); -} - -std::string TakeBreakRequest::getUserId()const -{ - return userId_; -} - -void TakeBreakRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - -std::string TakeBreakRequest::getDeviceId()const -{ - return deviceId_; -} - -void TakeBreakRequest::setDeviceId(const std::string& deviceId) -{ - deviceId_ = deviceId; - setParameter("DeviceId", deviceId); -} - -std::string TakeBreakRequest::getInstanceId()const +std::string ListSkillGroupsOfUserRequest::getInstanceId()const { return instanceId_; } -void TakeBreakRequest::setInstanceId(const std::string& instanceId) +void ListSkillGroupsOfUserRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } +std::string ListSkillGroupsOfUserRequest::getUserId()const +{ + return userId_; +} + +void ListSkillGroupsOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ListSkillGroupsOfUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSkillGroupsOfUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListSkillGroupsOfUserResult.cc b/ccc/src/model/ListSkillGroupsOfUserResult.cc new file mode 100644 index 000000000..68ff8abc5 --- /dev/null +++ b/ccc/src/model/ListSkillGroupsOfUserResult.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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 0296661f7..d949a8dfb 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", "2020-07-01", "ListSkillGroups") + RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroups") { setMethod(HttpRequest::Method::Post); } @@ -27,28 +27,6 @@ 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_; @@ -60,14 +38,14 @@ void ListSkillGroupsRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -int ListSkillGroupsRequest::getPageSize()const +std::string ListSkillGroupsRequest::getAccessKeyId()const { - return pageSize_; + return accessKeyId_; } -void ListSkillGroupsRequest::setPageSize(int pageSize) +void ListSkillGroupsRequest::setAccessKeyId(const std::string& accessKeyId) { - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListSkillGroupsResult.cc b/ccc/src/model/ListSkillGroupsResult.cc index 819c6380e..3379b230c 100644 --- a/ccc/src/model/ListSkillGroupsResult.cc +++ b/ccc/src/model/ListSkillGroupsResult.cc @@ -39,39 +39,60 @@ void ListSkillGroupsResult::parse(const std::string &payload) 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) + auto allSkillGroupsNode = value["SkillGroups"]["SkillGroup"]; + for (auto valueSkillGroupsSkillGroup : allSkillGroupsNode) { - 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); + SkillGroup skillGroupsObject; + if(!valueSkillGroupsSkillGroup["SkillGroupId"].isNull()) + skillGroupsObject.skillGroupId = valueSkillGroupsSkillGroup["SkillGroupId"].asString(); + if(!valueSkillGroupsSkillGroup["InstanceId"].isNull()) + skillGroupsObject.instanceId = valueSkillGroupsSkillGroup["InstanceId"].asString(); + if(!valueSkillGroupsSkillGroup["SkillGroupName"].isNull()) + skillGroupsObject.skillGroupName = valueSkillGroupsSkillGroup["SkillGroupName"].asString(); + if(!valueSkillGroupsSkillGroup["AccSkillGroupName"].isNull()) + skillGroupsObject.accSkillGroupName = valueSkillGroupsSkillGroup["AccSkillGroupName"].asString(); + if(!valueSkillGroupsSkillGroup["AccQueueName"].isNull()) + skillGroupsObject.accQueueName = valueSkillGroupsSkillGroup["AccQueueName"].asString(); + if(!valueSkillGroupsSkillGroup["SkillGroupDescription"].isNull()) + skillGroupsObject.skillGroupDescription = valueSkillGroupsSkillGroup["SkillGroupDescription"].asString(); + if(!valueSkillGroupsSkillGroup["RoutingStrategy"].isNull()) + skillGroupsObject.routingStrategy = valueSkillGroupsSkillGroup["RoutingStrategy"].asString(); + if(!valueSkillGroupsSkillGroup["UserCount"].isNull()) + skillGroupsObject.userCount = std::stoi(valueSkillGroupsSkillGroup["UserCount"].asString()); + auto allOutboundPhoneNumbersNode = valueSkillGroupsSkillGroup["OutboundPhoneNumbers"]["PhoneNumber"]; + for (auto valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber : allOutboundPhoneNumbersNode) + { + SkillGroup::PhoneNumber outboundPhoneNumbersObject; + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].isNull()) + outboundPhoneNumbersObject.phoneNumberId = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].asString(); + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["InstanceId"].isNull()) + outboundPhoneNumbersObject.instanceId = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["InstanceId"].asString(); + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Number"].isNull()) + outboundPhoneNumbersObject.number = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Number"].asString(); + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull()) + outboundPhoneNumbersObject.phoneNumberDescription = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString(); + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["TestOnly"].isNull()) + outboundPhoneNumbersObject.testOnly = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["TestOnly"].asString() == "true"; + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["RemainingTime"].isNull()) + outboundPhoneNumbersObject.remainingTime = std::stoi(valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["RemainingTime"].asString()); + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["AllowOutbound"].isNull()) + outboundPhoneNumbersObject.allowOutbound = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true"; + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Usage"].isNull()) + outboundPhoneNumbersObject.usage = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Usage"].asString(); + if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Trunks"].isNull()) + outboundPhoneNumbersObject.trunks = std::stoi(valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Trunks"].asString()); + skillGroupsObject.outboundPhoneNumbers.push_back(outboundPhoneNumbersObject); + } + skillGroups_.push_back(skillGroupsObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -85,9 +106,9 @@ int ListSkillGroupsResult::getHttpStatusCode()const return httpStatusCode_; } -ListSkillGroupsResult::Data ListSkillGroupsResult::getData()const +std::vector ListSkillGroupsResult::getSkillGroups()const { - return data_; + return skillGroups_; } std::string ListSkillGroupsResult::getCode()const @@ -95,3 +116,8 @@ 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 deleted file mode 100644 index 836d4e21e..000000000 --- a/ccc/src/model/ListSkillLevelsOfUserRequest.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::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 deleted file mode 100644 index b4ec1fc02..000000000 --- a/ccc/src/model/ListSkillLevelsOfUserResult.cc +++ /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. - */ - -#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 new file mode 100644 index 000000000..c8a6e0520 --- /dev/null +++ b/ccc/src/model/ListSurveysRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..17683f640 --- /dev/null +++ b/ccc/src/model/ListSurveysResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 new file mode 100644 index 000000000..68ef96050 --- /dev/null +++ b/ccc/src/model/ListTransferableSkillGroupsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..8b1a1f831 --- /dev/null +++ b/ccc/src/model/ListTransferableSkillGroupsResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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/ListPrivilegesOfUserRequest.cc b/ccc/src/model/ListTrunkProvidersRequest.cc similarity index 55% rename from ccc/src/model/ListPrivilegesOfUserRequest.cc rename to ccc/src/model/ListTrunkProvidersRequest.cc index 6fcdda764..40ad573a0 100644 --- a/ccc/src/model/ListPrivilegesOfUserRequest.cc +++ b/ccc/src/model/ListTrunkProvidersRequest.cc @@ -14,27 +14,27 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListPrivilegesOfUserRequest; +using AlibabaCloud::CCC::Model::ListTrunkProvidersRequest; -ListPrivilegesOfUserRequest::ListPrivilegesOfUserRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ListPrivilegesOfUser") +ListTrunkProvidersRequest::ListTrunkProvidersRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListTrunkProviders") { setMethod(HttpRequest::Method::Post); } -ListPrivilegesOfUserRequest::~ListPrivilegesOfUserRequest() +ListTrunkProvidersRequest::~ListTrunkProvidersRequest() {} -std::string ListPrivilegesOfUserRequest::getInstanceId()const +std::string ListTrunkProvidersRequest::getAccessKeyId()const { - return instanceId_; + return accessKeyId_; } -void ListPrivilegesOfUserRequest::setInstanceId(const std::string& instanceId) +void ListTrunkProvidersRequest::setAccessKeyId(const std::string& accessKeyId) { - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListTrunkProvidersResult.cc b/ccc/src/model/ListTrunkProvidersResult.cc new file mode 100644 index 000000000..2ad297122 --- /dev/null +++ b/ccc/src/model/ListTrunkProvidersResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/AddNumbersToSkillGroupRequest.cc b/ccc/src/model/ListTrunksOfSkillGroupRequest.cc similarity index 52% rename from ccc/src/model/AddNumbersToSkillGroupRequest.cc rename to ccc/src/model/ListTrunksOfSkillGroupRequest.cc index 590e2d772..fb34b9eaa 100644 --- a/ccc/src/model/AddNumbersToSkillGroupRequest.cc +++ b/ccc/src/model/ListTrunksOfSkillGroupRequest.cc @@ -14,49 +14,49 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::AddNumbersToSkillGroupRequest; +using AlibabaCloud::CCC::Model::ListTrunksOfSkillGroupRequest; -AddNumbersToSkillGroupRequest::AddNumbersToSkillGroupRequest() : - RpcServiceRequest("ccc", "2020-07-01", "AddNumbersToSkillGroup") +ListTrunksOfSkillGroupRequest::ListTrunksOfSkillGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListTrunksOfSkillGroup") { setMethod(HttpRequest::Method::Post); } -AddNumbersToSkillGroupRequest::~AddNumbersToSkillGroupRequest() +ListTrunksOfSkillGroupRequest::~ListTrunksOfSkillGroupRequest() {} -std::string AddNumbersToSkillGroupRequest::getNumberList()const -{ - return numberList_; -} - -void AddNumbersToSkillGroupRequest::setNumberList(const std::string& numberList) -{ - numberList_ = numberList; - setParameter("NumberList", numberList); -} - -std::string AddNumbersToSkillGroupRequest::getInstanceId()const +std::string ListTrunksOfSkillGroupRequest::getInstanceId()const { return instanceId_; } -void AddNumbersToSkillGroupRequest::setInstanceId(const std::string& instanceId) +void ListTrunksOfSkillGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -std::string AddNumbersToSkillGroupRequest::getSkillGroupId()const +std::string ListTrunksOfSkillGroupRequest::getSkillGroupId()const { return skillGroupId_; } -void AddNumbersToSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +void ListTrunksOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) { skillGroupId_ = skillGroupId; setParameter("SkillGroupId", skillGroupId); } +std::string ListTrunksOfSkillGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTrunksOfSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListTrunksOfSkillGroupResult.cc b/ccc/src/model/ListTrunksOfSkillGroupResult.cc new file mode 100644 index 000000000..0c770baee --- /dev/null +++ b/ccc/src/model/ListTrunksOfSkillGroupResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/ListUnassignedNumbersRequest.cc b/ccc/src/model/ListUnassignedNumbersRequest.cc deleted file mode 100644 index 5f08d863f..000000000 --- a/ccc/src/model/ListUnassignedNumbersRequest.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::ListUnassignedNumbersRequest; - -ListUnassignedNumbersRequest::ListUnassignedNumbersRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ListUnassignedNumbers") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUnassignedNumbersRequest::~ListUnassignedNumbersRequest() -{} - -int ListUnassignedNumbersRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListUnassignedNumbersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListUnassignedNumbersRequest::getSearchPattern()const -{ - return searchPattern_; -} - -void ListUnassignedNumbersRequest::setSearchPattern(const std::string& searchPattern) -{ - searchPattern_ = searchPattern; - setParameter("SearchPattern", searchPattern); -} - -std::string ListUnassignedNumbersRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListUnassignedNumbersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int ListUnassignedNumbersRequest::getPageSize()const -{ - return pageSize_; -} - -void ListUnassignedNumbersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ccc/src/model/ListUnassignedNumbersResult.cc b/ccc/src/model/ListUnassignedNumbersResult.cc deleted file mode 100644 index a87e18e87..000000000 --- a/ccc/src/model/ListUnassignedNumbersResult.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; - -ListUnassignedNumbersResult::ListUnassignedNumbersResult() : - ServiceResult() -{} - -ListUnassignedNumbersResult::ListUnassignedNumbersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListUnassignedNumbersResult::~ListUnassignedNumbersResult() -{} - -void ListUnassignedNumbersResult::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["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() == "true"; - 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 ListUnassignedNumbersResult::getMessage()const -{ - return message_; -} - -int ListUnassignedNumbersResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -ListUnassignedNumbersResult::Data ListUnassignedNumbersResult::getData()const -{ - return data_; -} - -std::string ListUnassignedNumbersResult::getCode()const -{ - return code_; -} - diff --git a/ccc/src/model/ListIvrTrackingDetailsRequest.cc b/ccc/src/model/ListUnreachableContactsRequest.cc similarity index 50% rename from ccc/src/model/ListIvrTrackingDetailsRequest.cc rename to ccc/src/model/ListUnreachableContactsRequest.cc index a1d4b06a5..e2ff38bd5 100644 --- a/ccc/src/model/ListIvrTrackingDetailsRequest.cc +++ b/ccc/src/model/ListUnreachableContactsRequest.cc @@ -14,58 +14,58 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListIvrTrackingDetailsRequest; +using AlibabaCloud::CCC::Model::ListUnreachableContactsRequest; -ListIvrTrackingDetailsRequest::ListIvrTrackingDetailsRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ListIvrTrackingDetails") +ListUnreachableContactsRequest::ListUnreachableContactsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListUnreachableContacts") { setMethod(HttpRequest::Method::Post); } -ListIvrTrackingDetailsRequest::~ListIvrTrackingDetailsRequest() +ListUnreachableContactsRequest::~ListUnreachableContactsRequest() {} -std::string ListIvrTrackingDetailsRequest::getContactId()const -{ - return contactId_; -} - -void ListIvrTrackingDetailsRequest::setContactId(const std::string& contactId) -{ - contactId_ = contactId; - setParameter("ContactId", contactId); -} - -int ListIvrTrackingDetailsRequest::getPageNumber()const +int ListUnreachableContactsRequest::getPageNumber()const { return pageNumber_; } -void ListIvrTrackingDetailsRequest::setPageNumber(int pageNumber) +void ListUnreachableContactsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListIvrTrackingDetailsRequest::getInstanceId()const +std::string ListUnreachableContactsRequest::getInstanceId()const { return instanceId_; } -void ListIvrTrackingDetailsRequest::setInstanceId(const std::string& instanceId) +void ListUnreachableContactsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -int ListIvrTrackingDetailsRequest::getPageSize()const +std::string ListUnreachableContactsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void ListUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +int ListUnreachableContactsRequest::getPageSize()const { return pageSize_; } -void ListIvrTrackingDetailsRequest::setPageSize(int pageSize) +void ListUnreachableContactsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter("PageSize", std::to_string(pageSize)); diff --git a/ccc/src/model/ListUnreachableContactsResult.cc b/ccc/src/model/ListUnreachableContactsResult.cc new file mode 100644 index 000000000..4e9d2251c --- /dev/null +++ b/ccc/src/model/ListUnreachableContactsResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 deleted file mode 100644 index 5d2562836..000000000 --- a/ccc/src/model/ListUserLevelsOfSkillGroupRequest.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::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 deleted file mode 100644 index f052e37fe..000000000 --- a/ccc/src/model/ListUserLevelsOfSkillGroupResult.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; - -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 new file mode 100644 index 000000000..39099b545 --- /dev/null +++ b/ccc/src/model/ListUsersOfSkillGroupRequest.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::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 new file mode 100644 index 000000000..7c1cb9a6d --- /dev/null +++ b/ccc/src/model/ListUsersOfSkillGroupResult.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; + +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 aca6292aa..eaf999a01 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", "2020-07-01", "ListUsers") + RpcServiceRequest("ccc", "2017-07-05", "ListUsers") { setMethod(HttpRequest::Method::Post); } @@ -38,15 +38,15 @@ void ListUsersRequest::setPageNumber(int pageNumber) setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListUsersRequest::getSearchPattern()const +std::string ListUsersRequest::getAccessKeyId()const { - return searchPattern_; + return accessKeyId_; } -void ListUsersRequest::setSearchPattern(const std::string& searchPattern) +void ListUsersRequest::setAccessKeyId(const std::string& accessKeyId) { - searchPattern_ = searchPattern; - setParameter("SearchPattern", searchPattern); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } std::string ListUsersRequest::getInstanceId()const diff --git a/ccc/src/model/ListUsersResult.cc b/ccc/src/model/ListUsersResult.cc index 304ebcc60..8e8986ca2 100644 --- a/ccc/src/model/ListUsersResult.cc +++ b/ccc/src/model/ListUsersResult.cc @@ -39,74 +39,81 @@ void ListUsersResult::parse(const std::string &payload) 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"]["UserDetail"]; - for (auto dataNodeListUserDetail : allListNode) + 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) { - 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 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::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); + 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 allSkillLevelListNode = dataNodeListUserDetail["SkillLevelList"]["UserSkillLevel"]; - for (auto dataNodeListUserDetailSkillLevelListUserSkillLevel : allSkillLevelListNode) + auto allSkillLevelsNode = usersNodeListUser["SkillLevels"]["SkillLevel"]; + for (auto usersNodeListUserSkillLevelsSkillLevel : allSkillLevelsNode) { - 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); + 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_.list.push_back(userDetailObject); + 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); } - auto allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -120,14 +127,9 @@ int ListUsersResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListUsersResult::getParams()const +ListUsersResult::Users ListUsersResult::getUsers()const { - return params_; -} - -ListUsersResult::Data ListUsersResult::getData()const -{ - return data_; + return users_; } std::string ListUsersResult::getCode()const @@ -135,3 +137,8 @@ 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 new file mode 100644 index 000000000..bafd2d0dd --- /dev/null +++ b/ccc/src/model/ListVoiceAppraiseRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..7c9c9f9d8 --- /dev/null +++ b/ccc/src/model/ListVoiceAppraiseResult.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 deleted file mode 100644 index a07492de6..000000000 --- a/ccc/src/model/MakeCallRequest.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::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); -} - -std::string MakeCallRequest::getTags()const -{ - return tags_; -} - -void MakeCallRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); -} - -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 deleted file mode 100644 index 6e1cbf981..000000000 --- a/ccc/src/model/MakeCallResult.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; - -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"]; - if(!dataNode["ContextId"].isNull()) - data_.contextId = std::stol(dataNode["ContextId"].asString()); - 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["ReleaseInitiator"].isNull()) - channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) - channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); - if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) - channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); - if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) - channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) - channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); - if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) - channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); - if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) - channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); - if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) - channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); - if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) - channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); - if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) - channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) - channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); - if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) - channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); - if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) - channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); - data_.callContext.channelContexts.push_back(channelContextObject); - } - auto userContextNode = dataNode["UserContext"]; - if(!userContextNode["Extension"].isNull()) - data_.userContext.extension = userContextNode["Extension"].asString(); - if(!userContextNode["WorkMode"].isNull()) - data_.userContext.workMode = userContextNode["WorkMode"].asString(); - if(!userContextNode["DeviceId"].isNull()) - data_.userContext.deviceId = userContextNode["DeviceId"].asString(); - if(!userContextNode["JobId"].isNull()) - data_.userContext.jobId = userContextNode["JobId"].asString(); - if(!userContextNode["UserId"].isNull()) - data_.userContext.userId = userContextNode["UserId"].asString(); - if(!userContextNode["BreakCode"].isNull()) - data_.userContext.breakCode = userContextNode["BreakCode"].asString(); - if(!userContextNode["InstanceId"].isNull()) - data_.userContext.instanceId = userContextNode["InstanceId"].asString(); - if(!userContextNode["OutboundScenario"].isNull()) - data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; - if(!userContextNode["UserState"].isNull()) - data_.userContext.userState = userContextNode["UserState"].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 new file mode 100644 index 000000000..8143cd6ea --- /dev/null +++ b/ccc/src/model/ModifyAgentDeviceRequest.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::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/ModifyAgentDeviceResult.cc b/ccc/src/model/ModifyAgentDeviceResult.cc new file mode 100644 index 000000000..85f9db3ff --- /dev/null +++ b/ccc/src/model/ModifyAgentDeviceResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyAgentDeviceResult::ModifyAgentDeviceResult() : + ServiceResult() +{} + +ModifyAgentDeviceResult::ModifyAgentDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAgentDeviceResult::~ModifyAgentDeviceResult() +{} + +void ModifyAgentDeviceResult::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 ModifyAgentDeviceResult::getMessage()const +{ + return message_; +} + +int ModifyAgentDeviceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyAgentDeviceResult::getCode()const +{ + return code_; +} + +bool ModifyAgentDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyCabInstanceRequest.cc b/ccc/src/model/ModifyCabInstanceRequest.cc new file mode 100644 index 000000000..e367343ba --- /dev/null +++ b/ccc/src/model/ModifyCabInstanceRequest.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::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 new file mode 100644 index 000000000..9d5f18df4 --- /dev/null +++ b/ccc/src/model/ModifyCabInstanceResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/ModifyCallRatioRequest.cc b/ccc/src/model/ModifyCallRatioRequest.cc new file mode 100644 index 000000000..b391ff779 --- /dev/null +++ b/ccc/src/model/ModifyCallRatioRequest.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::ModifyCallRatioRequest; + +ModifyCallRatioRequest::ModifyCallRatioRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifyCallRatio") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyCallRatioRequest::~ModifyCallRatioRequest() +{} + +std::string ModifyCallRatioRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyCallRatioRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyCallRatioRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifyCallRatioRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string ModifyCallRatioRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void ModifyCallRatioRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +int ModifyCallRatioRequest::getRatio()const +{ + return ratio_; +} + +void ModifyCallRatioRequest::setRatio(int ratio) +{ + ratio_ = ratio; + setParameter("Ratio", std::to_string(ratio)); +} + diff --git a/ccc/src/model/ModifyCallRatioResult.cc b/ccc/src/model/ModifyCallRatioResult.cc new file mode 100644 index 000000000..11d93bf4f --- /dev/null +++ b/ccc/src/model/ModifyCallRatioResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyCallRatioResult::ModifyCallRatioResult() : + ServiceResult() +{} + +ModifyCallRatioResult::ModifyCallRatioResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCallRatioResult::~ModifyCallRatioResult() +{} + +void ModifyCallRatioResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ModifyCallRatioResult::getMessage()const +{ + return message_; +} + +int ModifyCallRatioResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyCallRatioResult::getCode()const +{ + return code_; +} + +bool ModifyCallRatioResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyPhoneNumberRequest.cc b/ccc/src/model/ModifyPhoneNumberRequest.cc index 2d0712dc4..ad42929c9 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", "2020-07-01", "ModifyPhoneNumber") + RpcServiceRequest("ccc", "2017-07-05", "ModifyPhoneNumber") { setMethod(HttpRequest::Method::Post); } @@ -49,15 +49,15 @@ void ModifyPhoneNumberRequest::setUsage(const std::string& usage) setParameter("Usage", usage); } -std::string ModifyPhoneNumberRequest::getNumber()const +std::string ModifyPhoneNumberRequest::getAccessKeyId()const { - return number_; + return accessKeyId_; } -void ModifyPhoneNumberRequest::setNumber(const std::string& number) +void ModifyPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) { - number_ = number; - setParameter("Number", number); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } std::string ModifyPhoneNumberRequest::getInstanceId()const @@ -71,3 +71,27 @@ 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 abeba16b4..64f6a9474 100644 --- a/ccc/src/model/ModifyPhoneNumberResult.cc +++ b/ccc/src/model/ModifyPhoneNumberResult.cc @@ -39,12 +39,54 @@ 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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -58,8 +100,18 @@ 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 new file mode 100644 index 000000000..6991bbfe0 --- /dev/null +++ b/ccc/src/model/ModifyPhoneTagsRequest.cc @@ -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. + */ + +#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 new file mode 100644 index 000000000..b949e2f13 --- /dev/null +++ b/ccc/src/model/ModifyPhoneTagsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..650cfeeb1 --- /dev/null +++ b/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc @@ -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. + */ + +#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/GetMonoRecordingResult.cc b/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc similarity index 61% rename from ccc/src/model/GetMonoRecordingResult.cc rename to ccc/src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc index b5438ecee..bbac8e997 100644 --- a/ccc/src/model/GetMonoRecordingResult.cc +++ b/ccc/src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc @@ -14,62 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -GetMonoRecordingResult::GetMonoRecordingResult() : +ModifyPrimaryTrunksOfSkillGroupResult::ModifyPrimaryTrunksOfSkillGroupResult() : ServiceResult() {} -GetMonoRecordingResult::GetMonoRecordingResult(const std::string &payload) : +ModifyPrimaryTrunksOfSkillGroupResult::ModifyPrimaryTrunksOfSkillGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetMonoRecordingResult::~GetMonoRecordingResult() +ModifyPrimaryTrunksOfSkillGroupResult::~ModifyPrimaryTrunksOfSkillGroupResult() {} -void GetMonoRecordingResult::parse(const std::string &payload) +void ModifyPrimaryTrunksOfSkillGroupResult::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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string GetMonoRecordingResult::getMessage()const +std::string ModifyPrimaryTrunksOfSkillGroupResult::getMessage()const { return message_; } -int GetMonoRecordingResult::getHttpStatusCode()const +int ModifyPrimaryTrunksOfSkillGroupResult::getHttpStatusCode()const { return httpStatusCode_; } -GetMonoRecordingResult::Data GetMonoRecordingResult::getData()const -{ - return data_; -} - -std::string GetMonoRecordingResult::getCode()const +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 new file mode 100644 index 000000000..00a845d7a --- /dev/null +++ b/ccc/src/model/ModifyPrivacyNumberCallDetailRequest.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::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/RemovePersonalNumbersFromUserResult.cc b/ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc similarity index 62% rename from ccc/src/model/RemovePersonalNumbersFromUserResult.cc rename to ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc index 529600b7b..fb6d3085a 100644 --- a/ccc/src/model/RemovePersonalNumbersFromUserResult.cc +++ b/ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc @@ -14,52 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -RemovePersonalNumbersFromUserResult::RemovePersonalNumbersFromUserResult() : +ModifyPrivacyNumberCallDetailResult::ModifyPrivacyNumberCallDetailResult() : ServiceResult() {} -RemovePersonalNumbersFromUserResult::RemovePersonalNumbersFromUserResult(const std::string &payload) : +ModifyPrivacyNumberCallDetailResult::ModifyPrivacyNumberCallDetailResult(const std::string &payload) : ServiceResult() { parse(payload); } -RemovePersonalNumbersFromUserResult::~RemovePersonalNumbersFromUserResult() +ModifyPrivacyNumberCallDetailResult::~ModifyPrivacyNumberCallDetailResult() {} -void RemovePersonalNumbersFromUserResult::parse(const std::string &payload) +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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string RemovePersonalNumbersFromUserResult::getMessage()const +std::string ModifyPrivacyNumberCallDetailResult::getMessage()const { return message_; } -int RemovePersonalNumbersFromUserResult::getHttpStatusCode()const +int ModifyPrivacyNumberCallDetailResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string RemovePersonalNumbersFromUserResult::getCode()const +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 new file mode 100644 index 000000000..49c5796ca --- /dev/null +++ b/ccc/src/model/ModifyScenarioRequest.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::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 new file mode 100644 index 000000000..7b24b0ce2 --- /dev/null +++ b/ccc/src/model/ModifyScenarioResult.cc @@ -0,0 +1,166 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..aa63f9507 --- /dev/null +++ b/ccc/src/model/ModifySkillGroupOfUserRequest.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifySkillGroupOfUserRequest; + +ModifySkillGroupOfUserRequest::ModifySkillGroupOfUserRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifySkillGroupOfUser") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifySkillGroupOfUserRequest::~ModifySkillGroupOfUserRequest() +{} + +std::vector ModifySkillGroupOfUserRequest::getRoleId()const +{ + return roleId_; +} + +void ModifySkillGroupOfUserRequest::setRoleId(const std::vector& roleId) +{ + roleId_ = roleId; + for(int dep1 = 0; dep1!= roleId.size(); dep1++) { + setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); + } +} + +std::string ModifySkillGroupOfUserRequest::getUserId()const +{ + return userId_; +} + +void ModifySkillGroupOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ModifySkillGroupOfUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySkillGroupOfUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::vector ModifySkillGroupOfUserRequest::getSkillLevel()const +{ + return skillLevel_; +} + +void ModifySkillGroupOfUserRequest::setSkillLevel(const std::vector& skillLevel) +{ + skillLevel_ = skillLevel; + for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) { + setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1))); + } +} + +std::string ModifySkillGroupOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifySkillGroupOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector ModifySkillGroupOfUserRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifySkillGroupOfUserRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { + setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1)); + } +} + diff --git a/ccc/src/model/ModifySkillGroupOfUserResult.cc b/ccc/src/model/ModifySkillGroupOfUserResult.cc new file mode 100644 index 000000000..03ba3fc67 --- /dev/null +++ b/ccc/src/model/ModifySkillGroupOfUserResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifySkillGroupOfUserResult::ModifySkillGroupOfUserResult() : + ServiceResult() +{} + +ModifySkillGroupOfUserResult::ModifySkillGroupOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySkillGroupOfUserResult::~ModifySkillGroupOfUserResult() +{} + +void ModifySkillGroupOfUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifySkillGroupOfUserResult::getMessage()const +{ + return message_; +} + +int ModifySkillGroupOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifySkillGroupOfUserResult::getCode()const +{ + return code_; +} + +bool ModifySkillGroupOfUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc b/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc new file mode 100644 index 000000000..978e39b45 --- /dev/null +++ b/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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/AddPersonalNumbersToUserResult.cc b/ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc similarity index 61% rename from ccc/src/model/AddPersonalNumbersToUserResult.cc rename to ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc index 4f84a7ef3..c26f1b4d6 100644 --- a/ccc/src/model/AddPersonalNumbersToUserResult.cc +++ b/ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc @@ -14,60 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -AddPersonalNumbersToUserResult::AddPersonalNumbersToUserResult() : +ModifySkillGroupOutboundNumbersResult::ModifySkillGroupOutboundNumbersResult() : ServiceResult() {} -AddPersonalNumbersToUserResult::AddPersonalNumbersToUserResult(const std::string &payload) : +ModifySkillGroupOutboundNumbersResult::ModifySkillGroupOutboundNumbersResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddPersonalNumbersToUserResult::~AddPersonalNumbersToUserResult() +ModifySkillGroupOutboundNumbersResult::~ModifySkillGroupOutboundNumbersResult() {} -void AddPersonalNumbersToUserResult::parse(const std::string &payload) +void ModifySkillGroupOutboundNumbersResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["FailList"]; - for (const auto &item : allData) - data_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string AddPersonalNumbersToUserResult::getMessage()const +std::string ModifySkillGroupOutboundNumbersResult::getMessage()const { return message_; } -int AddPersonalNumbersToUserResult::getHttpStatusCode()const +int ModifySkillGroupOutboundNumbersResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector AddPersonalNumbersToUserResult::getData()const -{ - return data_; -} - -std::string AddPersonalNumbersToUserResult::getCode()const +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 74e0d5be2..cd362bd28 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", "2020-07-01", "ModifySkillGroup") + RpcServiceRequest("ccc", "2017-07-05", "ModifySkillGroup") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ 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_; @@ -38,6 +49,54 @@ 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_; @@ -49,6 +108,19 @@ 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_; @@ -60,14 +132,14 @@ void ModifySkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) setParameter("SkillGroupId", skillGroupId); } -std::string ModifySkillGroupRequest::getDisplayName()const +std::string ModifySkillGroupRequest::getName()const { - return displayName_; + return name_; } -void ModifySkillGroupRequest::setDisplayName(const std::string& displayName) +void ModifySkillGroupRequest::setName(const std::string& name) { - displayName_ = displayName; - setParameter("DisplayName", displayName); + name_ = name; + setParameter("Name", name); } diff --git a/ccc/src/model/ModifySkillGroupResult.cc b/ccc/src/model/ModifySkillGroupResult.cc index d395efcc7..98818bb7b 100644 --- a/ccc/src/model/ModifySkillGroupResult.cc +++ b/ccc/src/model/ModifySkillGroupResult.cc @@ -39,12 +39,14 @@ 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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -63,3 +65,8 @@ 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 deleted file mode 100644 index c15f925d3..000000000 --- a/ccc/src/model/ModifySkillLevelsOfUserRequest.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::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/ModifySurveyRequest.cc b/ccc/src/model/ModifySurveyRequest.cc new file mode 100644 index 000000000..580e91313 --- /dev/null +++ b/ccc/src/model/ModifySurveyRequest.cc @@ -0,0 +1,161 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 new file mode 100644 index 000000000..57f826298 --- /dev/null +++ b/ccc/src/model/ModifySurveyResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index 6ce1f3211..000000000 --- a/ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.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::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/ModifyUserRequest.cc b/ccc/src/model/ModifyUserRequest.cc index 929ad1dc6..06f9b1cc8 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", "2020-07-01", "ModifyUser") + RpcServiceRequest("ccc", "2017-07-05", "ModifyUser") { setMethod(HttpRequest::Method::Post); } @@ -27,37 +27,28 @@ ModifyUserRequest::ModifyUserRequest() : ModifyUserRequest::~ModifyUserRequest() {} -std::string ModifyUserRequest::getRoleId()const +std::string ModifyUserRequest::getPrivateOutboundNumberId()const +{ + return privateOutboundNumberId_; +} + +void ModifyUserRequest::setPrivateOutboundNumberId(const std::string& privateOutboundNumberId) +{ + privateOutboundNumberId_ = privateOutboundNumberId; + setParameter("PrivateOutboundNumberId", privateOutboundNumberId); +} + +std::vector ModifyUserRequest::getRoleId()const { return roleId_; } -void ModifyUserRequest::setRoleId(const std::string& roleId) +void ModifyUserRequest::setRoleId(const std::vector& roleId) { roleId_ = roleId; - setParameter("RoleId", roleId); -} - -std::string ModifyUserRequest::getMobile()const -{ - return mobile_; -} - -void ModifyUserRequest::setMobile(const std::string& mobile) -{ - mobile_ = mobile; - setParameter("Mobile", mobile); -} - -std::string ModifyUserRequest::getWorkMode()const -{ - return workMode_; -} - -void ModifyUserRequest::setWorkMode(const std::string& workMode) -{ - workMode_ = workMode; - setParameter("WorkMode", workMode); + for(int dep1 = 0; dep1!= roleId.size(); dep1++) { + setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1)); + } } std::string ModifyUserRequest::getUserId()const @@ -71,6 +62,30 @@ 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_; @@ -82,3 +97,49 @@ 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 a40a2bd12..5f9ec2710 100644 --- a/ccc/src/model/ModifyUserResult.cc +++ b/ccc/src/model/ModifyUserResult.cc @@ -39,17 +39,14 @@ void ModifyUserResult::parse(const std::string &payload) 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -63,18 +60,13 @@ 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 deleted file mode 100644 index fc65f6221..000000000 --- a/ccc/src/model/MonitorCallRequest.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::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 deleted file mode 100644 index a0796a93d..000000000 --- a/ccc/src/model/MonitorCallResult.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 -#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 deleted file mode 100644 index ad06395a0..000000000 --- a/ccc/src/model/MuteCallRequest.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::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 deleted file mode 100644 index 95d994570..000000000 --- a/ccc/src/model/MuteCallResult.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; - -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 new file mode 100644 index 000000000..d48d4bd80 --- /dev/null +++ b/ccc/src/model/PickGlobalOutboundNumbersRequest.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..6094653dc --- /dev/null +++ b/ccc/src/model/PickGlobalOutboundNumbersResult.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; + +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 new file mode 100644 index 000000000..031c4b0b3 --- /dev/null +++ b/ccc/src/model/PickLocalNumberRequest.cc @@ -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. + */ + +#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 new file mode 100644 index 000000000..16ca08c69 --- /dev/null +++ b/ccc/src/model/PickLocalNumberResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 d7f9461e1..708141d2f 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", "2020-07-01", "PickOutboundNumbers") + RpcServiceRequest("ccc", "2017-07-05", "PickOutboundNumbers") { setMethod(HttpRequest::Method::Post); } @@ -38,6 +38,17 @@ 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_; @@ -49,25 +60,27 @@ void PickOutboundNumbersRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string PickOutboundNumbersRequest::getSkillGroupIdList()const +std::vector PickOutboundNumbersRequest::getCandidateNumber()const { - return skillGroupIdList_; + return candidateNumber_; } -void PickOutboundNumbersRequest::setSkillGroupIdList(const std::string& skillGroupIdList) +void PickOutboundNumbersRequest::setCandidateNumber(const std::vector& candidateNumber) { - skillGroupIdList_ = skillGroupIdList; - setParameter("SkillGroupIdList", skillGroupIdList); + candidateNumber_ = candidateNumber; + for(int dep1 = 0; dep1!= candidateNumber.size(); dep1++) { + setParameter("CandidateNumber."+ std::to_string(dep1), candidateNumber.at(dep1)); + } } -std::string PickOutboundNumbersRequest::getCalledNumber()const +std::string PickOutboundNumbersRequest::getCalleeNumber()const { - return calledNumber_; + return calleeNumber_; } -void PickOutboundNumbersRequest::setCalledNumber(const std::string& calledNumber) +void PickOutboundNumbersRequest::setCalleeNumber(const std::string& calleeNumber) { - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); + calleeNumber_ = calleeNumber; + setParameter("CalleeNumber", calleeNumber); } diff --git a/ccc/src/model/PickOutboundNumbersResult.cc b/ccc/src/model/PickOutboundNumbersResult.cc index 2d48d8451..a30f79132 100644 --- a/ccc/src/model/PickOutboundNumbersResult.cc +++ b/ccc/src/model/PickOutboundNumbersResult.cc @@ -39,32 +39,34 @@ void PickOutboundNumbersResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["NumberPair"]; - for (auto valueDataNumberPair : allDataNode) + auto allDialNumberPairsNode = value["DialNumberPairs"]["DialNumberPair"]; + for (auto valueDialNumberPairsDialNumberPair : allDialNumberPairsNode) { - NumberPair dataObject; + DialNumberPair dialNumberPairsObject; auto calleeNode = value["Callee"]; - if(!calleeNode["City"].isNull()) - dataObject.callee.city = calleeNode["City"].asString(); if(!calleeNode["Number"].isNull()) - dataObject.callee.number = calleeNode["Number"].asString(); + dialNumberPairsObject.callee.number = calleeNode["Number"].asString(); if(!calleeNode["Province"].isNull()) - dataObject.callee.province = calleeNode["Province"].asString(); + dialNumberPairsObject.callee.province = calleeNode["Province"].asString(); + if(!calleeNode["City"].isNull()) + dialNumberPairsObject.callee.city = calleeNode["City"].asString(); auto callerNode = value["Caller"]; - if(!callerNode["City"].isNull()) - dataObject.caller.city = callerNode["City"].asString(); if(!callerNode["Number"].isNull()) - dataObject.caller.number = callerNode["Number"].asString(); + dialNumberPairsObject.caller.number = callerNode["Number"].asString(); if(!callerNode["Province"].isNull()) - dataObject.caller.province = callerNode["Province"].asString(); - data_.push_back(dataObject); + 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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -78,13 +80,18 @@ 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 deleted file mode 100644 index 28b973c3c..000000000 --- a/ccc/src/model/PollUserStatusRequest.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::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 deleted file mode 100644 index 9098dd399..000000000 --- a/ccc/src/model/PollUserStatusResult.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; - -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"]; - if(!dataNode["ContextId"].isNull()) - data_.contextId = std::stol(dataNode["ContextId"].asString()); - 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["Index"].isNull()) - channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString()); - if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) - channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) - channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); - if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) - channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); - if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) - channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) - channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); - if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull()) - channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString(); - if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) - channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); - if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) - channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); - if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) - channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); - if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) - channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelVariables"].isNull()) - channelContextObject.channelVariables = callContextNodeChannelContextsChannelContext["ChannelVariables"].asString(); - if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) - channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) - channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); - if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) - channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); - if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) - channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); - data_.callContext.channelContexts.push_back(channelContextObject); - } - auto userContextNode = dataNode["UserContext"]; - if(!userContextNode["Extension"].isNull()) - data_.userContext.extension = userContextNode["Extension"].asString(); - if(!userContextNode["Heartbeat"].isNull()) - data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); - if(!userContextNode["WorkMode"].isNull()) - data_.userContext.workMode = userContextNode["WorkMode"].asString(); - if(!userContextNode["DeviceId"].isNull()) - data_.userContext.deviceId = userContextNode["DeviceId"].asString(); - if(!userContextNode["UserId"].isNull()) - data_.userContext.userId = userContextNode["UserId"].asString(); - if(!userContextNode["Reserved"].isNull()) - data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); - if(!userContextNode["BreakCode"].isNull()) - data_.userContext.breakCode = userContextNode["BreakCode"].asString(); - if(!userContextNode["InstanceId"].isNull()) - data_.userContext.instanceId = userContextNode["InstanceId"].asString(); - if(!userContextNode["OutboundScenario"].isNull()) - data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; - if(!userContextNode["Mobile"].isNull()) - data_.userContext.mobile = userContextNode["Mobile"].asString(); - if(!userContextNode["JobId"].isNull()) - data_.userContext.jobId = userContextNode["JobId"].asString(); - if(!userContextNode["UserState"].isNull()) - data_.userContext.userState = userContextNode["UserState"].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 new file mode 100644 index 000000000..0b30de313 --- /dev/null +++ b/ccc/src/model/PublishContactFlowVersionRequest.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::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/RemoveSkillGroupsFromUserResult.cc b/ccc/src/model/PublishContactFlowVersionResult.cc similarity index 66% rename from ccc/src/model/RemoveSkillGroupsFromUserResult.cc rename to ccc/src/model/PublishContactFlowVersionResult.cc index cad0a5d66..6df346c96 100644 --- a/ccc/src/model/RemoveSkillGroupsFromUserResult.cc +++ b/ccc/src/model/PublishContactFlowVersionResult.cc @@ -14,59 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -RemoveSkillGroupsFromUserResult::RemoveSkillGroupsFromUserResult() : +PublishContactFlowVersionResult::PublishContactFlowVersionResult() : ServiceResult() {} -RemoveSkillGroupsFromUserResult::RemoveSkillGroupsFromUserResult(const std::string &payload) : +PublishContactFlowVersionResult::PublishContactFlowVersionResult(const std::string &payload) : ServiceResult() { parse(payload); } -RemoveSkillGroupsFromUserResult::~RemoveSkillGroupsFromUserResult() +PublishContactFlowVersionResult::~PublishContactFlowVersionResult() {} -void RemoveSkillGroupsFromUserResult::parse(const std::string &payload) +void PublishContactFlowVersionResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string RemoveSkillGroupsFromUserResult::getMessage()const +std::string PublishContactFlowVersionResult::getMessage()const { return message_; } -int RemoveSkillGroupsFromUserResult::getHttpStatusCode()const +int PublishContactFlowVersionResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string RemoveSkillGroupsFromUserResult::getData()const -{ - return data_; -} - -std::string RemoveSkillGroupsFromUserResult::getCode()const +std::string PublishContactFlowVersionResult::getCode()const { return code_; } +bool PublishContactFlowVersionResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PublishPredictiveJobGroupRequest.cc b/ccc/src/model/PublishPredictiveJobGroupRequest.cc new file mode 100644 index 000000000..3377b38f0 --- /dev/null +++ b/ccc/src/model/PublishPredictiveJobGroupRequest.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::PublishPredictiveJobGroupRequest; + +PublishPredictiveJobGroupRequest::PublishPredictiveJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PublishPredictiveJobGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +PublishPredictiveJobGroupRequest::~PublishPredictiveJobGroupRequest() +{} + +std::string PublishPredictiveJobGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void PublishPredictiveJobGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string PublishPredictiveJobGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void PublishPredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string PublishPredictiveJobGroupRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void PublishPredictiveJobGroupRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/PublishPredictiveJobGroupResult.cc b/ccc/src/model/PublishPredictiveJobGroupResult.cc new file mode 100644 index 000000000..5badd78a6 --- /dev/null +++ b/ccc/src/model/PublishPredictiveJobGroupResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +PublishPredictiveJobGroupResult::PublishPredictiveJobGroupResult() : + ServiceResult() +{} + +PublishPredictiveJobGroupResult::PublishPredictiveJobGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishPredictiveJobGroupResult::~PublishPredictiveJobGroupResult() +{} + +void PublishPredictiveJobGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PublishPredictiveJobGroupResult::getMessage()const +{ + return message_; +} + +int PublishPredictiveJobGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PublishPredictiveJobGroupResult::getCode()const +{ + return code_; +} + +bool PublishPredictiveJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PublishSurveyRequest.cc b/ccc/src/model/PublishSurveyRequest.cc new file mode 100644 index 000000000..b82e740cb --- /dev/null +++ b/ccc/src/model/PublishSurveyRequest.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::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 new file mode 100644 index 000000000..1f09b1440 --- /dev/null +++ b/ccc/src/model/PublishSurveyResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index 159c0b030..000000000 --- a/ccc/src/model/ReadyForServiceRequest.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::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 deleted file mode 100644 index 6efcd1575..000000000 --- a/ccc/src/model/ReadyForServiceResult.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; - -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 new file mode 100644 index 000000000..42d1d8af4 --- /dev/null +++ b/ccc/src/model/RefreshTokenRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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/SaveWebRtcInfoResult.cc b/ccc/src/model/RefreshTokenResult.cc similarity index 59% rename from ccc/src/model/SaveWebRtcInfoResult.cc rename to ccc/src/model/RefreshTokenResult.cc index 36e7b5e92..bb9b7b1a1 100644 --- a/ccc/src/model/SaveWebRtcInfoResult.cc +++ b/ccc/src/model/RefreshTokenResult.cc @@ -14,73 +14,69 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -SaveWebRtcInfoResult::SaveWebRtcInfoResult() : +RefreshTokenResult::RefreshTokenResult() : ServiceResult() {} -SaveWebRtcInfoResult::SaveWebRtcInfoResult(const std::string &payload) : +RefreshTokenResult::RefreshTokenResult(const std::string &payload) : ServiceResult() { parse(payload); } -SaveWebRtcInfoResult::~SaveWebRtcInfoResult() +RefreshTokenResult::~RefreshTokenResult() {} -void SaveWebRtcInfoResult::parse(const std::string &payload) +void RefreshTokenResult::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["RowCount"].isNull()) - rowCount_ = std::stol(value["RowCount"].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["TimeStamp"].isNull()) - timeStamp_ = std::stol(value["TimeStamp"].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()); } -std::string SaveWebRtcInfoResult::getMessage()const +std::string RefreshTokenResult::getMessage()const { return message_; } -long SaveWebRtcInfoResult::getHttpStatusCode()const +int RefreshTokenResult::getHttpStatusCode()const { return httpStatusCode_; } -long SaveWebRtcInfoResult::getRowCount()const +RefreshTokenResult::Token RefreshTokenResult::getToken()const { - return rowCount_; + return token_; } -std::string SaveWebRtcInfoResult::getCode()const +std::string RefreshTokenResult::getCode()const { return code_; } -bool SaveWebRtcInfoResult::getSuccess()const +bool RefreshTokenResult::getSuccess()const { return success_; } -long SaveWebRtcInfoResult::getTimeStamp()const -{ - return timeStamp_; -} - diff --git a/ccc/src/model/RegisterDeviceRequest.cc b/ccc/src/model/RegisterDeviceRequest.cc deleted file mode 100644 index 9fb7ad649..000000000 --- a/ccc/src/model/RegisterDeviceRequest.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::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/ReleaseCallRequest.cc b/ccc/src/model/ReleaseCallRequest.cc deleted file mode 100644 index d4b70b075..000000000 --- a/ccc/src/model/ReleaseCallRequest.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::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 deleted file mode 100644 index 1e12b62bf..000000000 --- a/ccc/src/model/ReleaseCallResult.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; - -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 deleted file mode 100644 index f8cebdbe6..000000000 --- a/ccc/src/model/RemovePersonalNumbersFromUserRequest.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::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/RemovePhoneNumberFromSkillGroupsRequest.cc b/ccc/src/model/RemovePhoneNumberFromSkillGroupsRequest.cc deleted file mode 100644 index 256fc7f63..000000000 --- a/ccc/src/model/RemovePhoneNumberFromSkillGroupsRequest.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::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/RemovePhoneNumberFromSkillGroupsResult.cc b/ccc/src/model/RemovePhoneNumberFromSkillGroupsResult.cc deleted file mode 100644 index 8042ad9b0..000000000 --- a/ccc/src/model/RemovePhoneNumberFromSkillGroupsResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -RemovePhoneNumberFromSkillGroupsResult::RemovePhoneNumberFromSkillGroupsResult() : - ServiceResult() -{} - -RemovePhoneNumberFromSkillGroupsResult::RemovePhoneNumberFromSkillGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemovePhoneNumberFromSkillGroupsResult::~RemovePhoneNumberFromSkillGroupsResult() -{} - -void RemovePhoneNumberFromSkillGroupsResult::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 RemovePhoneNumberFromSkillGroupsResult::getMessage()const -{ - return message_; -} - -int RemovePhoneNumberFromSkillGroupsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string RemovePhoneNumberFromSkillGroupsResult::getCode()const -{ - return code_; -} - diff --git a/ccc/src/model/RemovePhoneNumberRequest.cc b/ccc/src/model/RemovePhoneNumberRequest.cc new file mode 100644 index 000000000..0ed37353a --- /dev/null +++ b/ccc/src/model/RemovePhoneNumberRequest.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::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/RemovePhoneNumberResult.cc b/ccc/src/model/RemovePhoneNumberResult.cc new file mode 100644 index 000000000..5363a6739 --- /dev/null +++ b/ccc/src/model/RemovePhoneNumberResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +RemovePhoneNumberResult::RemovePhoneNumberResult() : + ServiceResult() +{} + +RemovePhoneNumberResult::RemovePhoneNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemovePhoneNumberResult::~RemovePhoneNumberResult() +{} + +void RemovePhoneNumberResult::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 RemovePhoneNumberResult::getMessage()const +{ + return message_; +} + +int RemovePhoneNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemovePhoneNumberResult::getCode()const +{ + return code_; +} + +bool RemovePhoneNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc b/ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc deleted file mode 100644 index 36a700cb9..000000000 --- a/ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.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::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/RemovePhoneNumbersRequest.cc b/ccc/src/model/RemovePhoneNumbersRequest.cc deleted file mode 100644 index 43ef324dc..000000000 --- a/ccc/src/model/RemovePhoneNumbersRequest.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::RemovePhoneNumbersRequest; - -RemovePhoneNumbersRequest::RemovePhoneNumbersRequest() : - RpcServiceRequest("ccc", "2020-07-01", "RemovePhoneNumbers") -{ - setMethod(HttpRequest::Method::Post); -} - -RemovePhoneNumbersRequest::~RemovePhoneNumbersRequest() -{} - -std::string RemovePhoneNumbersRequest::getNumberList()const -{ - return numberList_; -} - -void RemovePhoneNumbersRequest::setNumberList(const std::string& numberList) -{ - numberList_ = numberList; - setParameter("NumberList", numberList); -} - -std::string RemovePhoneNumbersRequest::getInstanceId()const -{ - return instanceId_; -} - -void RemovePhoneNumbersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/RemoveSkillGroupsFromUserRequest.cc b/ccc/src/model/RemoveSkillGroupsFromUserRequest.cc deleted file mode 100644 index 046b3ac81..000000000 --- a/ccc/src/model/RemoveSkillGroupsFromUserRequest.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::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/RemoveUsersFromSkillGroupRequest.cc b/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc index 10f2c2979..b64e6eb9d 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", "2020-07-01", "RemoveUsersFromSkillGroup") + RpcServiceRequest("ccc", "2017-07-05", "RemoveUsersFromSkillGroup") { setMethod(HttpRequest::Method::Post); } @@ -27,15 +27,28 @@ RemoveUsersFromSkillGroupRequest::RemoveUsersFromSkillGroupRequest() : RemoveUsersFromSkillGroupRequest::~RemoveUsersFromSkillGroupRequest() {} -std::string RemoveUsersFromSkillGroupRequest::getUserIdList()const +std::vector RemoveUsersFromSkillGroupRequest::getUserId()const { - return userIdList_; + return userId_; } -void RemoveUsersFromSkillGroupRequest::setUserIdList(const std::string& userIdList) +void RemoveUsersFromSkillGroupRequest::setUserId(const std::vector& userId) { - userIdList_ = userIdList; - setParameter("UserIdList", 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); } std::string RemoveUsersFromSkillGroupRequest::getInstanceId()const diff --git a/ccc/src/model/RemoveUsersFromSkillGroupResult.cc b/ccc/src/model/RemoveUsersFromSkillGroupResult.cc index 312c875c8..e647d948d 100644 --- a/ccc/src/model/RemoveUsersFromSkillGroupResult.cc +++ b/ccc/src/model/RemoveUsersFromSkillGroupResult.cc @@ -39,12 +39,14 @@ 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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -63,3 +65,8 @@ 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 5d5b81726..16f5b1e80 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", "2020-07-01", "RemoveUsers") + RpcServiceRequest("ccc", "2017-07-05", "RemoveUsers") { setMethod(HttpRequest::Method::Post); } @@ -27,17 +27,6 @@ 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_; @@ -49,3 +38,27 @@ 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 0a631bac0..5ed3d7aeb 100644 --- a/ccc/src/model/RemoveUsersResult.cc +++ b/ccc/src/model/RemoveUsersResult.cc @@ -39,15 +39,14 @@ void RemoveUsersResult::parse(const std::string &payload) 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } @@ -61,13 +60,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/SignOutGroupRequest.cc b/ccc/src/model/RequestLoginInfoRequest.cc similarity index 52% rename from ccc/src/model/SignOutGroupRequest.cc rename to ccc/src/model/RequestLoginInfoRequest.cc index 6aa7d05c2..ff991bdeb 100644 --- a/ccc/src/model/SignOutGroupRequest.cc +++ b/ccc/src/model/RequestLoginInfoRequest.cc @@ -14,49 +14,49 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::SignOutGroupRequest; +using AlibabaCloud::CCC::Model::RequestLoginInfoRequest; -SignOutGroupRequest::SignOutGroupRequest() : - RpcServiceRequest("ccc", "2020-07-01", "SignOutGroup") +RequestLoginInfoRequest::RequestLoginInfoRequest() : + RpcServiceRequest("ccc", "2017-07-05", "RequestLoginInfo") { setMethod(HttpRequest::Method::Post); } -SignOutGroupRequest::~SignOutGroupRequest() +RequestLoginInfoRequest::~RequestLoginInfoRequest() {} -std::string SignOutGroupRequest::getUserId()const -{ - return userId_; -} - -void SignOutGroupRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - -std::string SignOutGroupRequest::getDeviceId()const -{ - return deviceId_; -} - -void SignOutGroupRequest::setDeviceId(const std::string& deviceId) -{ - deviceId_ = deviceId; - setParameter("DeviceId", deviceId); -} - -std::string SignOutGroupRequest::getInstanceId()const +std::string RequestLoginInfoRequest::getInstanceId()const { return instanceId_; } -void SignOutGroupRequest::setInstanceId(const std::string& instanceId) +void RequestLoginInfoRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } +std::string RequestLoginInfoRequest::getUserId()const +{ + return userId_; +} + +void RequestLoginInfoRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string RequestLoginInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RequestLoginInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/RequestLoginInfoResult.cc b/ccc/src/model/RequestLoginInfoResult.cc new file mode 100644 index 000000000..1a524346d --- /dev/null +++ b/ccc/src/model/RequestLoginInfoResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 deleted file mode 100644 index 854a3559f..000000000 --- a/ccc/src/model/ResetAgentStateRequest.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::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 deleted file mode 100644 index d075ae2f5..000000000 --- a/ccc/src/model/ResetAgentStateResult.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; - -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/ResetUserPasswordRequest.cc b/ccc/src/model/ResetUserPasswordRequest.cc deleted file mode 100644 index 1a0c29134..000000000 --- a/ccc/src/model/ResetUserPasswordRequest.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::ResetUserPasswordRequest; - -ResetUserPasswordRequest::ResetUserPasswordRequest() : - RpcServiceRequest("ccc", "2020-07-01", "ResetUserPassword") -{ - setMethod(HttpRequest::Method::Post); -} - -ResetUserPasswordRequest::~ResetUserPasswordRequest() -{} - -std::string ResetUserPasswordRequest::getUserId()const -{ - return userId_; -} - -void ResetUserPasswordRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - -std::string ResetUserPasswordRequest::getPassword()const -{ - return password_; -} - -void ResetUserPasswordRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); -} - -std::string ResetUserPasswordRequest::getInstanceId()const -{ - return instanceId_; -} - -void ResetUserPasswordRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/ResetUserStatusRequest.cc b/ccc/src/model/ResetUserStatusRequest.cc new file mode 100644 index 000000000..b79a1438d --- /dev/null +++ b/ccc/src/model/ResetUserStatusRequest.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 new file mode 100644 index 000000000..8077052ce --- /dev/null +++ b/ccc/src/model/ResetUserStatusResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..20b29904e --- /dev/null +++ b/ccc/src/model/ResumeJobsRequest.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 + +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/AddUsersToSkillGroupResult.cc b/ccc/src/model/ResumeJobsResult.cc similarity index 69% rename from ccc/src/model/AddUsersToSkillGroupResult.cc rename to ccc/src/model/ResumeJobsResult.cc index 7b18fd60d..aefa918fe 100644 --- a/ccc/src/model/AddUsersToSkillGroupResult.cc +++ b/ccc/src/model/ResumeJobsResult.cc @@ -14,52 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -AddUsersToSkillGroupResult::AddUsersToSkillGroupResult() : +ResumeJobsResult::ResumeJobsResult() : ServiceResult() {} -AddUsersToSkillGroupResult::AddUsersToSkillGroupResult(const std::string &payload) : +ResumeJobsResult::ResumeJobsResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddUsersToSkillGroupResult::~AddUsersToSkillGroupResult() +ResumeJobsResult::~ResumeJobsResult() {} -void AddUsersToSkillGroupResult::parse(const std::string &payload) +void ResumeJobsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string AddUsersToSkillGroupResult::getMessage()const +std::string ResumeJobsResult::getMessage()const { return message_; } -int AddUsersToSkillGroupResult::getHttpStatusCode()const +int ResumeJobsResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string AddUsersToSkillGroupResult::getCode()const +std::string ResumeJobsResult::getCode()const { return code_; } +bool ResumeJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ResumePredictiveJobsRequest.cc b/ccc/src/model/ResumePredictiveJobsRequest.cc new file mode 100644 index 000000000..7fe9cba48 --- /dev/null +++ b/ccc/src/model/ResumePredictiveJobsRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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/ResumePredictiveJobsResult.cc b/ccc/src/model/ResumePredictiveJobsResult.cc new file mode 100644 index 000000000..6c20f2962 --- /dev/null +++ b/ccc/src/model/ResumePredictiveJobsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ResumePredictiveJobsResult::ResumePredictiveJobsResult() : + ServiceResult() +{} + +ResumePredictiveJobsResult::ResumePredictiveJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResumePredictiveJobsResult::~ResumePredictiveJobsResult() +{} + +void ResumePredictiveJobsResult::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 ResumePredictiveJobsResult::getMessage()const +{ + return message_; +} + +int ResumePredictiveJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ResumePredictiveJobsResult::getCode()const +{ + return code_; +} + +bool ResumePredictiveJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RetrieveCallRequest.cc b/ccc/src/model/RetrieveCallRequest.cc deleted file mode 100644 index 619ea786a..000000000 --- a/ccc/src/model/RetrieveCallRequest.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::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 deleted file mode 100644 index ff507e58a..000000000 --- a/ccc/src/model/RetrieveCallResult.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; - -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/SaveRTCStatsV2Request.cc b/ccc/src/model/SaveRTCStatsV2Request.cc deleted file mode 100644 index 168e86363..000000000 --- a/ccc/src/model/SaveRTCStatsV2Request.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::SaveRTCStatsV2Request; - -SaveRTCStatsV2Request::SaveRTCStatsV2Request() : - RpcServiceRequest("ccc", "2020-07-01", "SaveRTCStatsV2") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveRTCStatsV2Request::~SaveRTCStatsV2Request() -{} - -std::string SaveRTCStatsV2Request::getCallId()const -{ - return callId_; -} - -void SaveRTCStatsV2Request::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); -} - -std::string SaveRTCStatsV2Request::getSenderReport()const -{ - return senderReport_; -} - -void SaveRTCStatsV2Request::setSenderReport(const std::string& senderReport) -{ - senderReport_ = senderReport; - setParameter("SenderReport", senderReport); -} - -std::string SaveRTCStatsV2Request::getInstanceId()const -{ - return instanceId_; -} - -void SaveRTCStatsV2Request::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string SaveRTCStatsV2Request::getReceiverReport()const -{ - return receiverReport_; -} - -void SaveRTCStatsV2Request::setReceiverReport(const std::string& receiverReport) -{ - receiverReport_ = receiverReport; - setParameter("ReceiverReport", receiverReport); -} - -std::string SaveRTCStatsV2Request::getGoogAddress()const -{ - return googAddress_; -} - -void SaveRTCStatsV2Request::setGoogAddress(const std::string& googAddress) -{ - googAddress_ = googAddress; - setParameter("GoogAddress", googAddress); -} - -std::string SaveRTCStatsV2Request::getGeneralInfo()const -{ - return generalInfo_; -} - -void SaveRTCStatsV2Request::setGeneralInfo(const std::string& generalInfo) -{ - generalInfo_ = generalInfo; - setParameter("GeneralInfo", generalInfo); -} - diff --git a/ccc/src/model/SaveTerminalLogRequest.cc b/ccc/src/model/SaveTerminalLogRequest.cc index 3f44f48ac..64a1fc247 100644 --- a/ccc/src/model/SaveTerminalLogRequest.cc +++ b/ccc/src/model/SaveTerminalLogRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::SaveTerminalLogRequest; SaveTerminalLogRequest::SaveTerminalLogRequest() : - RpcServiceRequest("ccc", "2020-07-01", "SaveTerminalLog") + RpcServiceRequest("ccc", "2017-07-05", "SaveTerminalLog") { setMethod(HttpRequest::Method::Post); } diff --git a/ccc/src/model/SaveWebRTCStatsRequest.cc b/ccc/src/model/SaveWebRTCStatsRequest.cc index ef69a48a7..758a6649a 100644 --- a/ccc/src/model/SaveWebRTCStatsRequest.cc +++ b/ccc/src/model/SaveWebRTCStatsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::CCC::Model::SaveWebRTCStatsRequest; SaveWebRTCStatsRequest::SaveWebRTCStatsRequest() : - RpcServiceRequest("ccc", "2020-07-01", "SaveWebRTCStats") + RpcServiceRequest("ccc", "2017-07-05", "SaveWebRTCStats") { setMethod(HttpRequest::Method::Post); } @@ -38,15 +38,48 @@ void SaveWebRTCStatsRequest::setCallId(const std::string& callId) setParameter("CallId", callId); } -std::string SaveWebRTCStatsRequest::getSenderReport()const +long SaveWebRTCStatsRequest::getRecordTime()const { - return senderReport_; + return recordTime_; } -void SaveWebRTCStatsRequest::setSenderReport(const std::string& senderReport) +void SaveWebRTCStatsRequest::setRecordTime(long recordTime) { - senderReport_ = senderReport; - setParameter("SenderReport", senderReport); + 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 @@ -60,36 +93,47 @@ void SaveWebRTCStatsRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string SaveWebRTCStatsRequest::getReceiverReport()const +std::string SaveWebRTCStatsRequest::getStats()const { - return receiverReport_; + return stats_; } -void SaveWebRTCStatsRequest::setReceiverReport(const std::string& receiverReport) +void SaveWebRTCStatsRequest::setStats(const std::string& stats) { - receiverReport_ = receiverReport; - setParameter("ReceiverReport", receiverReport); + stats_ = stats; + setParameter("Stats", stats); } -std::string SaveWebRTCStatsRequest::getGoogAddress()const +std::string SaveWebRTCStatsRequest::getTenantId()const { - return googAddress_; + return tenantId_; } -void SaveWebRTCStatsRequest::setGoogAddress(const std::string& googAddress) +void SaveWebRTCStatsRequest::setTenantId(const std::string& tenantId) { - googAddress_ = googAddress; - setParameter("GoogAddress", googAddress); + tenantId_ = tenantId; + setParameter("TenantId", tenantId); } -std::string SaveWebRTCStatsRequest::getGeneralInfo()const +std::string SaveWebRTCStatsRequest::getCalleeNumber()const { - return generalInfo_; + return calleeNumber_; } -void SaveWebRTCStatsRequest::setGeneralInfo(const std::string& generalInfo) +void SaveWebRTCStatsRequest::setCalleeNumber(const std::string& calleeNumber) { - generalInfo_ = generalInfo; - setParameter("GeneralInfo", generalInfo); + 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 index 4e8ff591d..74eb6ebc7 100644 --- a/ccc/src/model/SaveWebRTCStatsResult.cc +++ b/ccc/src/model/SaveWebRTCStatsResult.cc @@ -39,18 +39,16 @@ void SaveWebRTCStatsResult::parse(const std::string &payload) 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["RowCount"].isNull()) - rowCount_ = std::stol(value["RowCount"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["TimeStamp"].isNull()) - timeStamp_ = std::stol(value["TimeStamp"].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["RowCount"].isNull()) + rowCount_ = std::stol(value["RowCount"].asString()); } @@ -59,7 +57,7 @@ std::string SaveWebRTCStatsResult::getMessage()const return message_; } -long SaveWebRTCStatsResult::getHttpStatusCode()const +int SaveWebRTCStatsResult::getHttpStatusCode()const { return httpStatusCode_; } @@ -79,8 +77,3 @@ bool SaveWebRTCStatsResult::getSuccess()const return success_; } -long SaveWebRTCStatsResult::getTimeStamp()const -{ - return timeStamp_; -} - diff --git a/ccc/src/model/SaveWebRtcInfoRequest.cc b/ccc/src/model/SaveWebRtcInfoRequest.cc deleted file mode 100644 index dbaa9c236..000000000 --- a/ccc/src/model/SaveWebRtcInfoRequest.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::SaveWebRtcInfoRequest; - -SaveWebRtcInfoRequest::SaveWebRtcInfoRequest() : - RpcServiceRequest("ccc", "2020-07-01", "SaveWebRtcInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveWebRtcInfoRequest::~SaveWebRtcInfoRequest() -{} - -std::string SaveWebRtcInfoRequest::getCallId()const -{ - return callId_; -} - -void SaveWebRtcInfoRequest::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); -} - -std::string SaveWebRtcInfoRequest::getContent()const -{ - return content_; -} - -void SaveWebRtcInfoRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); -} - -std::string SaveWebRtcInfoRequest::getContentType()const -{ - return contentType_; -} - -void SaveWebRtcInfoRequest::setContentType(const std::string& contentType) -{ - contentType_ = contentType; - setParameter("ContentType", contentType); -} - -std::string SaveWebRtcInfoRequest::getJobId()const -{ - return jobId_; -} - -void SaveWebRtcInfoRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); -} - -std::string SaveWebRtcInfoRequest::getInstanceId()const -{ - return instanceId_; -} - -void SaveWebRtcInfoRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/SendDtmfSignalingRequest.cc b/ccc/src/model/SendDtmfSignalingRequest.cc deleted file mode 100644 index 13a7c6c53..000000000 --- a/ccc/src/model/SendDtmfSignalingRequest.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::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 deleted file mode 100644 index f576d330a..000000000 --- a/ccc/src/model/SendDtmfSignalingResult.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 -#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 new file mode 100644 index 000000000..f3f8c144c --- /dev/null +++ b/ccc/src/model/SendPredefinedShortMessageRequest.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::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 new file mode 100644 index 000000000..9e211c6a8 --- /dev/null +++ b/ccc/src/model/SendPredefinedShortMessageResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 deleted file mode 100644 index 5a824bd3f..000000000 --- a/ccc/src/model/SignInGroupRequest.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::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 deleted file mode 100644 index e6d0b251f..000000000 --- a/ccc/src/model/SignInGroupResult.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; - -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/SignOutGroupResult.cc b/ccc/src/model/SignOutGroupResult.cc deleted file mode 100644 index 77b766b88..000000000 --- a/ccc/src/model/SignOutGroupResult.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 -#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 8076d939b..b4d203289 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", "2020-07-01", "StartBack2BackCall") + RpcServiceRequest("ccc", "2017-07-05", "StartBack2BackCall") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ 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_; @@ -38,48 +49,15 @@ void StartBack2BackCallRequest::setCallee(const std::string& callee) setParameter("Callee", callee); } -std::string StartBack2BackCallRequest::getBroker()const +std::string StartBack2BackCallRequest::getAccessKeyId()const { - return broker_; + return accessKeyId_; } -void StartBack2BackCallRequest::setBroker(const std::string& broker) +void StartBack2BackCallRequest::setAccessKeyId(const std::string& accessKeyId) { - broker_ = broker; - setParameter("Broker", broker); -} - -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)); + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); } std::string StartBack2BackCallRequest::getCaller()const @@ -104,3 +82,14 @@ 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 666188468..ea19038f6 100644 --- a/ccc/src/model/StartBack2BackCallResult.cc +++ b/ccc/src/model/StartBack2BackCallResult.cc @@ -39,90 +39,35 @@ void StartBack2BackCallResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto callContextNode = dataNode["CallContext"]; - if(!callContextNode["CallType"].isNull()) - data_.callContext.callType = callContextNode["CallType"].asString(); - if(!callContextNode["InstanceId"].isNull()) - data_.callContext.instanceId = callContextNode["InstanceId"].asString(); - if(!callContextNode["JobId"].isNull()) - data_.callContext.jobId = callContextNode["JobId"].asString(); - auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; - for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) - { - Data::CallContext::ChannelContext channelContextObject; - if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) - channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); - if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) - channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) - channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) - channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) - channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); - if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) - channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); - if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) - channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); - if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) - channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); - if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull()) - channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); - if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) - channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); - if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) - channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); - if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) - channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); - if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) - channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); - data_.callContext.channelContexts.push_back(channelContextObject); - } - auto userContextNode = dataNode["UserContext"]; - if(!userContextNode["BreakCode"].isNull()) - data_.userContext.breakCode = userContextNode["BreakCode"].asString(); - if(!userContextNode["DeviceId"].isNull()) - data_.userContext.deviceId = userContextNode["DeviceId"].asString(); - if(!userContextNode["DeviceState"].isNull()) - data_.userContext.deviceState = userContextNode["DeviceState"].asString(); - if(!userContextNode["Extension"].isNull()) - data_.userContext.extension = userContextNode["Extension"].asString(); - if(!userContextNode["Heartbeat"].isNull()) - data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); - if(!userContextNode["InstanceId"].isNull()) - data_.userContext.instanceId = userContextNode["InstanceId"].asString(); - if(!userContextNode["JobId"].isNull()) - data_.userContext.jobId = userContextNode["JobId"].asString(); - if(!userContextNode["Mobile"].isNull()) - data_.userContext.mobile = userContextNode["Mobile"].asString(); - if(!userContextNode["OutboundScenario"].isNull()) - data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; - if(!userContextNode["Reserved"].isNull()) - data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); - if(!userContextNode["Uri"].isNull()) - data_.userContext.uri = userContextNode["Uri"].asString(); - if(!userContextNode["UserId"].isNull()) - data_.userContext.userId = userContextNode["UserId"].asString(); - if(!userContextNode["UserState"].isNull()) - data_.userContext.userState = userContextNode["UserState"].asString(); - if(!userContextNode["WorkMode"].isNull()) - data_.userContext.workMode = userContextNode["WorkMode"].asString(); - auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"]; - for (auto value : allSignedSkillGroupIdList) - data_.userContext.signedSkillGroupIdList.push_back(value.asString()); - auto allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["StatusCode"].isNull()) + statusCode_ = value["StatusCode"].asString(); + if(!value["StatusDesc"].isNull()) + statusDesc_ = value["StatusDesc"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["TimeStamp"].isNull()) + timeStamp_ = value["TimeStamp"].asString(); } +std::string StartBack2BackCallResult::getStatusDesc()const +{ + return statusDesc_; +} + +std::string StartBack2BackCallResult::getTaskId()const +{ + return taskId_; +} + std::string StartBack2BackCallResult::getMessage()const { return message_; @@ -133,18 +78,23 @@ 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 new file mode 100644 index 000000000..76a8b7f75 --- /dev/null +++ b/ccc/src/model/StartJobRequest.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::StartJobRequest; + +StartJobRequest::StartJobRequest() : + RpcServiceRequest("ccc", "2017-07-05", "StartJob") +{ + setMethod(HttpRequest::Method::Post); +} + +StartJobRequest::~StartJobRequest() +{} + +std::string StartJobRequest::getGroupId()const +{ + return groupId_; +} + +void StartJobRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string StartJobRequest::getJobJson()const +{ + return jobJson_; +} + +void StartJobRequest::setJobJson(const std::string& jobJson) +{ + jobJson_ = jobJson; + setParameter("JobJson", jobJson); +} + +std::vector StartJobRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void StartJobRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) { + setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); + } +} + +std::string StartJobRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartJobRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool StartJobRequest::getSelfHostedCallCenter()const +{ + return selfHostedCallCenter_; +} + +void StartJobRequest::setSelfHostedCallCenter(bool selfHostedCallCenter) +{ + selfHostedCallCenter_ = selfHostedCallCenter; + setParameter("SelfHostedCallCenter", selfHostedCallCenter ? "true" : "false"); +} + +std::string StartJobRequest::getScenarioId()const +{ + return scenarioId_; +} + +void StartJobRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/StartJobResult.cc b/ccc/src/model/StartJobResult.cc new file mode 100644 index 000000000..cc2c0c8c9 --- /dev/null +++ b/ccc/src/model/StartJobResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +StartJobResult::StartJobResult() : + ServiceResult() +{} + +StartJobResult::StartJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartJobResult::~StartJobResult() +{} + +void StartJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTaskIdsNode = value["TaskIds"]["KeyValuePair"]; + for (auto valueTaskIdsKeyValuePair : allTaskIdsNode) + { + KeyValuePair taskIdsObject; + if(!valueTaskIdsKeyValuePair["Key"].isNull()) + taskIdsObject.key = valueTaskIdsKeyValuePair["Key"].asString(); + if(!valueTaskIdsKeyValuePair["Value"].isNull()) + taskIdsObject.value = valueTaskIdsKeyValuePair["Value"].asString(); + taskIds_.push_back(taskIdsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector StartJobResult::getTaskIds()const +{ + return taskIds_; +} + +std::string StartJobResult::getMessage()const +{ + return message_; +} + +int StartJobResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StartJobResult::getCode()const +{ + return code_; +} + +bool StartJobResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/StartPredictiveCallRequest.cc b/ccc/src/model/StartPredictiveCallRequest.cc deleted file mode 100644 index cb94186df..000000000 --- a/ccc/src/model/StartPredictiveCallRequest.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::StartPredictiveCallRequest; - -StartPredictiveCallRequest::StartPredictiveCallRequest() : - RpcServiceRequest("ccc", "2020-07-01", "StartPredictiveCall") -{ - setMethod(HttpRequest::Method::Post); -} - -StartPredictiveCallRequest::~StartPredictiveCallRequest() -{} - -std::string StartPredictiveCallRequest::getContactFlowId()const -{ - return contactFlowId_; -} - -void StartPredictiveCallRequest::setContactFlowId(const std::string& contactFlowId) -{ - contactFlowId_ = contactFlowId; - setParameter("ContactFlowId", contactFlowId); -} - -std::string StartPredictiveCallRequest::getCallee()const -{ - return callee_; -} - -void StartPredictiveCallRequest::setCallee(const std::string& callee) -{ - callee_ = callee; - setParameter("Callee", callee); -} - -std::string StartPredictiveCallRequest::getContactFlowVariables()const -{ - return contactFlowVariables_; -} - -void StartPredictiveCallRequest::setContactFlowVariables(const std::string& contactFlowVariables) -{ - contactFlowVariables_ = contactFlowVariables; - setParameter("ContactFlowVariables", contactFlowVariables); -} - -std::string StartPredictiveCallRequest::getTags()const -{ - return tags_; -} - -void StartPredictiveCallRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); -} - -int StartPredictiveCallRequest::getTimeoutSeconds()const -{ - return timeoutSeconds_; -} - -void StartPredictiveCallRequest::setTimeoutSeconds(int timeoutSeconds) -{ - timeoutSeconds_ = timeoutSeconds; - setParameter("TimeoutSeconds", std::to_string(timeoutSeconds)); -} - -std::string StartPredictiveCallRequest::getCaller()const -{ - return caller_; -} - -void StartPredictiveCallRequest::setCaller(const std::string& caller) -{ - caller_ = caller; - setParameter("Caller", caller); -} - -std::string StartPredictiveCallRequest::getInstanceId()const -{ - return instanceId_; -} - -void StartPredictiveCallRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ccc/src/model/StartPredictiveCallResult.cc b/ccc/src/model/StartPredictiveCallResult.cc deleted file mode 100644 index 320480170..000000000 --- a/ccc/src/model/StartPredictiveCallResult.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; - -StartPredictiveCallResult::StartPredictiveCallResult() : - ServiceResult() -{} - -StartPredictiveCallResult::StartPredictiveCallResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartPredictiveCallResult::~StartPredictiveCallResult() -{} - -void StartPredictiveCallResult::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["ReleaseInitiator"].isNull()) - channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull()) - channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString(); - if(!callContextNodeChannelContextsChannelContext["Destination"].isNull()) - channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString(); - if(!callContextNodeChannelContextsChannelContext["UserId"].isNull()) - channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull()) - channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString(); - if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull()) - channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString()); - if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull()) - channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString(); - if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull()) - channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString(); - if(!callContextNodeChannelContextsChannelContext["CallType"].isNull()) - channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString(); - if(!callContextNodeChannelContextsChannelContext["JobId"].isNull()) - channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString(); - if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull()) - channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString(); - if(!callContextNodeChannelContextsChannelContext["Originator"].isNull()) - channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString(); - if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull()) - channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString(); - data_.callContext.channelContexts.push_back(channelContextObject); - } - auto userContextNode = dataNode["UserContext"]; - if(!userContextNode["Extension"].isNull()) - data_.userContext.extension = userContextNode["Extension"].asString(); - if(!userContextNode["Heartbeat"].isNull()) - data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); - if(!userContextNode["WorkMode"].isNull()) - data_.userContext.workMode = userContextNode["WorkMode"].asString(); - if(!userContextNode["DeviceId"].isNull()) - data_.userContext.deviceId = userContextNode["DeviceId"].asString(); - if(!userContextNode["UserId"].isNull()) - data_.userContext.userId = userContextNode["UserId"].asString(); - if(!userContextNode["Reserved"].isNull()) - data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString()); - if(!userContextNode["BreakCode"].isNull()) - data_.userContext.breakCode = userContextNode["BreakCode"].asString(); - if(!userContextNode["InstanceId"].isNull()) - data_.userContext.instanceId = userContextNode["InstanceId"].asString(); - if(!userContextNode["OutboundScenario"].isNull()) - data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; - if(!userContextNode["DeviceState"].isNull()) - data_.userContext.deviceState = userContextNode["DeviceState"].asString(); - if(!userContextNode["Mobile"].isNull()) - data_.userContext.mobile = userContextNode["Mobile"].asString(); - if(!userContextNode["JobId"].isNull()) - data_.userContext.jobId = userContextNode["JobId"].asString(); - if(!userContextNode["UserState"].isNull()) - data_.userContext.userState = userContextNode["UserState"].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 StartPredictiveCallResult::getMessage()const -{ - return message_; -} - -int StartPredictiveCallResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector StartPredictiveCallResult::getParams()const -{ - return params_; -} - -StartPredictiveCallResult::Data StartPredictiveCallResult::getData()const -{ - return data_; -} - -std::string StartPredictiveCallResult::getCode()const -{ - return code_; -} - diff --git a/ccc/src/model/SubmitBatchJobsRequest.cc b/ccc/src/model/SubmitBatchJobsRequest.cc new file mode 100644 index 000000000..c7a12c21d --- /dev/null +++ b/ccc/src/model/SubmitBatchJobsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::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 new file mode 100644 index 000000000..c5c54a523 --- /dev/null +++ b/ccc/src/model/SubmitBatchJobsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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 new file mode 100644 index 000000000..1b34976c4 --- /dev/null +++ b/ccc/src/model/SubmitCabRecordingRequest.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::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::getEarlyMediaRecording()const +{ + return earlyMediaRecording_; +} + +void SubmitCabRecordingRequest::setEarlyMediaRecording(const std::string& earlyMediaRecording) +{ + earlyMediaRecording_ = earlyMediaRecording; + setParameter("EarlyMediaRecording", earlyMediaRecording); +} + +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/AddPhoneNumbersResult.cc b/ccc/src/model/SubmitCabRecordingResult.cc similarity index 66% rename from ccc/src/model/AddPhoneNumbersResult.cc rename to ccc/src/model/SubmitCabRecordingResult.cc index 74fdec3d4..8913bb449 100644 --- a/ccc/src/model/AddPhoneNumbersResult.cc +++ b/ccc/src/model/SubmitCabRecordingResult.cc @@ -14,60 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -AddPhoneNumbersResult::AddPhoneNumbersResult() : +SubmitCabRecordingResult::SubmitCabRecordingResult() : ServiceResult() {} -AddPhoneNumbersResult::AddPhoneNumbersResult(const std::string &payload) : +SubmitCabRecordingResult::SubmitCabRecordingResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddPhoneNumbersResult::~AddPhoneNumbersResult() +SubmitCabRecordingResult::~SubmitCabRecordingResult() {} -void AddPhoneNumbersResult::parse(const std::string &payload) +void SubmitCabRecordingResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["Data"]; - for (const auto &item : allData) - data_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } -std::string AddPhoneNumbersResult::getMessage()const +std::string SubmitCabRecordingResult::getMessage()const { return message_; } -int AddPhoneNumbersResult::getHttpStatusCode()const +int SubmitCabRecordingResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector AddPhoneNumbersResult::getData()const -{ - return data_; -} - -std::string AddPhoneNumbersResult::getCode()const +std::string SubmitCabRecordingResult::getCode()const { return code_; } +bool SubmitCabRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/SuspendJobsRequest.cc b/ccc/src/model/SuspendJobsRequest.cc new file mode 100644 index 000000000..3f17267de --- /dev/null +++ b/ccc/src/model/SuspendJobsRequest.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 + +using AlibabaCloud::CCC::Model::SuspendJobsRequest; + +SuspendJobsRequest::SuspendJobsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "SuspendJobs") +{ + setMethod(HttpRequest::Method::Post); +} + +SuspendJobsRequest::~SuspendJobsRequest() +{} + +bool SuspendJobsRequest::getAll()const +{ + return all_; +} + +void SuspendJobsRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", all ? "true" : "false"); +} + +std::vector SuspendJobsRequest::getJobReferenceId()const +{ + return jobReferenceId_; +} + +void SuspendJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) +{ + jobReferenceId_ = jobReferenceId; + for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) { + setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1)); + } +} + +std::string SuspendJobsRequest::getGroupId()const +{ + return groupId_; +} + +void SuspendJobsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::vector SuspendJobsRequest::getJobId()const +{ + return jobId_; +} + +void SuspendJobsRequest::setJobId(const std::vector& jobId) +{ + jobId_ = jobId; + for(int dep1 = 0; dep1!= jobId.size(); dep1++) { + setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); + } +} + +std::string SuspendJobsRequest::getInstanceId()const +{ + return instanceId_; +} + +void SuspendJobsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string SuspendJobsRequest::getScenarioId()const +{ + return scenarioId_; +} + +void SuspendJobsRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setParameter("ScenarioId", scenarioId); +} + diff --git a/ccc/src/model/SuspendJobsResult.cc b/ccc/src/model/SuspendJobsResult.cc new file mode 100644 index 000000000..6d99feeea --- /dev/null +++ b/ccc/src/model/SuspendJobsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +SuspendJobsResult::SuspendJobsResult() : + ServiceResult() +{} + +SuspendJobsResult::SuspendJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SuspendJobsResult::~SuspendJobsResult() +{} + +void SuspendJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SuspendJobsResult::getMessage()const +{ + return message_; +} + +int SuspendJobsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SuspendJobsResult::getCode()const +{ + return code_; +} + +bool SuspendJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/SuspendPredictiveJobsRequest.cc b/ccc/src/model/SuspendPredictiveJobsRequest.cc new file mode 100644 index 000000000..83252eff6 --- /dev/null +++ b/ccc/src/model/SuspendPredictiveJobsRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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 new file mode 100644 index 000000000..7ead3e61f --- /dev/null +++ b/ccc/src/model/SuspendPredictiveJobsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +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/TakeBreakResult.cc b/ccc/src/model/TakeBreakResult.cc deleted file mode 100644 index 8831b143e..000000000 --- a/ccc/src/model/TakeBreakResult.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 -#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 new file mode 100644 index 000000000..00ac916e1 --- /dev/null +++ b/ccc/src/model/TaskPreparingRequest.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::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/AddSkillGroupsToUserResult.cc b/ccc/src/model/TaskPreparingResult.cc similarity index 63% rename from ccc/src/model/AddSkillGroupsToUserResult.cc rename to ccc/src/model/TaskPreparingResult.cc index 453fa45c5..798799315 100644 --- a/ccc/src/model/AddSkillGroupsToUserResult.cc +++ b/ccc/src/model/TaskPreparingResult.cc @@ -14,60 +14,66 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::CCC; using namespace AlibabaCloud::CCC::Model; -AddSkillGroupsToUserResult::AddSkillGroupsToUserResult() : +TaskPreparingResult::TaskPreparingResult() : ServiceResult() {} -AddSkillGroupsToUserResult::AddSkillGroupsToUserResult(const std::string &payload) : +TaskPreparingResult::TaskPreparingResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddSkillGroupsToUserResult::~AddSkillGroupsToUserResult() +TaskPreparingResult::~TaskPreparingResult() {} -void AddSkillGroupsToUserResult::parse(const std::string &payload) +void TaskPreparingResult::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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } -std::string AddSkillGroupsToUserResult::getMessage()const +std::string TaskPreparingResult::getTaskId()const +{ + return taskId_; +} + +std::string TaskPreparingResult::getMessage()const { return message_; } -int AddSkillGroupsToUserResult::getHttpStatusCode()const +int TaskPreparingResult::getHttpStatusCode()const { return httpStatusCode_; } -std::vector AddSkillGroupsToUserResult::getParams()const -{ - return params_; -} - -std::string AddSkillGroupsToUserResult::getCode()const +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 deleted file mode 100644 index 50ab12111..000000000 --- a/ccc/src/model/UnmuteCallRequest.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::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 deleted file mode 100644 index c17ed0f5f..000000000 --- a/ccc/src/model/UnmuteCallResult.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; - -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_; -} - diff --git a/ccc/src/model/UpdateConfigItemsRequest.cc b/ccc/src/model/UpdateConfigItemsRequest.cc deleted file mode 100644 index 72b92c010..000000000 --- a/ccc/src/model/UpdateConfigItemsRequest.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::UpdateConfigItemsRequest; - -UpdateConfigItemsRequest::UpdateConfigItemsRequest() : - RpcServiceRequest("ccc", "2020-07-01", "UpdateConfigItems") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateConfigItemsRequest::~UpdateConfigItemsRequest() -{} - -std::string UpdateConfigItemsRequest::getConfigItems()const -{ - return configItems_; -} - -void UpdateConfigItemsRequest::setConfigItems(const std::string& configItems) -{ - configItems_ = configItems; - setParameter("ConfigItems", configItems); -} - -std::string UpdateConfigItemsRequest::getInstanceId()const -{ - return instanceId_; -} - -void UpdateConfigItemsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string UpdateConfigItemsRequest::getObjectType()const -{ - return objectType_; -} - -void UpdateConfigItemsRequest::setObjectType(const std::string& objectType) -{ - objectType_ = objectType; - setParameter("ObjectType", objectType); -} - -std::string UpdateConfigItemsRequest::getObjectId()const -{ - return objectId_; -} - -void UpdateConfigItemsRequest::setObjectId(const std::string& objectId) -{ - objectId_ = objectId; - setParameter("ObjectId", objectId); -} -