diff --git a/VERSION b/VERSION index a406697f9..884a388e4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1540 \ No newline at end of file +1.36.1541 \ No newline at end of file diff --git a/ccc/CMakeLists.txt b/ccc/CMakeLists.txt index 1df998a67..ec8ec440c 100644 --- a/ccc/CMakeLists.txt +++ b/ccc/CMakeLists.txt @@ -23,6 +23,8 @@ set(ccc_public_header set(ccc_public_header_model include/alibabacloud/ccc/model/AbortCampaignRequest.h include/alibabacloud/ccc/model/AbortCampaignResult.h + include/alibabacloud/ccc/model/AddCasesRequest.h + include/alibabacloud/ccc/model/AddCasesResult.h include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h include/alibabacloud/ccc/model/AddPersonalNumbersToUserRequest.h @@ -37,24 +39,34 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/AddUsersToSkillGroupResult.h include/alibabacloud/ccc/model/AnswerCallRequest.h include/alibabacloud/ccc/model/AnswerCallResult.h + include/alibabacloud/ccc/model/AppendCasesRequest.h + include/alibabacloud/ccc/model/AppendCasesResult.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/BridgeRtcCallRequest.h + include/alibabacloud/ccc/model/BridgeRtcCallResult.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/CommitContactFlowRequest.h + include/alibabacloud/ccc/model/CommitContactFlowResult.h include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h + include/alibabacloud/ccc/model/CreateAudioFileRequest.h + include/alibabacloud/ccc/model/CreateAudioFileResult.h include/alibabacloud/ccc/model/CreateCallTagsRequest.h include/alibabacloud/ccc/model/CreateCallTagsResult.h include/alibabacloud/ccc/model/CreateCampaignRequest.h include/alibabacloud/ccc/model/CreateCampaignResult.h + include/alibabacloud/ccc/model/CreateContactFlowRequest.h + include/alibabacloud/ccc/model/CreateContactFlowResult.h include/alibabacloud/ccc/model/CreateCustomCallTaggingRequest.h include/alibabacloud/ccc/model/CreateCustomCallTaggingResult.h include/alibabacloud/ccc/model/CreateInstanceRequest.h @@ -63,24 +75,46 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/CreateSkillGroupResult.h include/alibabacloud/ccc/model/CreateUserRequest.h include/alibabacloud/ccc/model/CreateUserResult.h + include/alibabacloud/ccc/model/DeleteAudioFileRequest.h + include/alibabacloud/ccc/model/DeleteAudioFileResult.h include/alibabacloud/ccc/model/DeleteCallTagRequest.h include/alibabacloud/ccc/model/DeleteCallTagResult.h + include/alibabacloud/ccc/model/DeleteContactFlowRequest.h + include/alibabacloud/ccc/model/DeleteContactFlowResult.h include/alibabacloud/ccc/model/DeleteCustomCallTaggingRequest.h include/alibabacloud/ccc/model/DeleteCustomCallTaggingResult.h include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h include/alibabacloud/ccc/model/DeleteSkillGroupResult.h + include/alibabacloud/ccc/model/DiscardEditingContactFlowRequest.h + include/alibabacloud/ccc/model/DiscardEditingContactFlowResult.h + include/alibabacloud/ccc/model/EndConferenceRequest.h + include/alibabacloud/ccc/model/EndConferenceResult.h include/alibabacloud/ccc/model/ExportCustomCallTaggingRequest.h include/alibabacloud/ccc/model/ExportCustomCallTaggingResult.h include/alibabacloud/ccc/model/ExportDoNotCallNumbersRequest.h include/alibabacloud/ccc/model/ExportDoNotCallNumbersResult.h + include/alibabacloud/ccc/model/GetAudioFileRequest.h + include/alibabacloud/ccc/model/GetAudioFileResult.h + include/alibabacloud/ccc/model/GetAudioFileDownloadUrlRequest.h + include/alibabacloud/ccc/model/GetAudioFileDownloadUrlResult.h + include/alibabacloud/ccc/model/GetAudioFileUploadParametersRequest.h + include/alibabacloud/ccc/model/GetAudioFileUploadParametersResult.h include/alibabacloud/ccc/model/GetCallDetailRecordRequest.h include/alibabacloud/ccc/model/GetCallDetailRecordResult.h include/alibabacloud/ccc/model/GetCampaignRequest.h include/alibabacloud/ccc/model/GetCampaignResult.h include/alibabacloud/ccc/model/GetCaseFileUploadUrlRequest.h include/alibabacloud/ccc/model/GetCaseFileUploadUrlResult.h + include/alibabacloud/ccc/model/GetContactFlowRequest.h + include/alibabacloud/ccc/model/GetContactFlowResult.h + include/alibabacloud/ccc/model/GetConversationDetailRequest.h + include/alibabacloud/ccc/model/GetConversationDetailResult.h + include/alibabacloud/ccc/model/GetDataChannelCredentialsRequest.h + include/alibabacloud/ccc/model/GetDataChannelCredentialsResult.h include/alibabacloud/ccc/model/GetDoNotCallFileUploadParametersRequest.h include/alibabacloud/ccc/model/GetDoNotCallFileUploadParametersResult.h + include/alibabacloud/ccc/model/GetEarlyMediaRecordingRequest.h + include/alibabacloud/ccc/model/GetEarlyMediaRecordingResult.h include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h include/alibabacloud/ccc/model/GetHistoricalCampaignReportRequest.h @@ -109,8 +143,12 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/GetTurnCredentialsResult.h include/alibabacloud/ccc/model/GetTurnServerListRequest.h include/alibabacloud/ccc/model/GetTurnServerListResult.h + include/alibabacloud/ccc/model/GetUploadAudioDataParamsRequest.h + include/alibabacloud/ccc/model/GetUploadAudioDataParamsResult.h include/alibabacloud/ccc/model/GetUserRequest.h include/alibabacloud/ccc/model/GetUserResult.h + include/alibabacloud/ccc/model/GetVoicemailRecordingRequest.h + include/alibabacloud/ccc/model/GetVoicemailRecordingResult.h include/alibabacloud/ccc/model/HoldCallRequest.h include/alibabacloud/ccc/model/HoldCallResult.h include/alibabacloud/ccc/model/ImportAdminsRequest.h @@ -135,6 +173,8 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h include/alibabacloud/ccc/model/ListAttemptsRequest.h include/alibabacloud/ccc/model/ListAttemptsResult.h + include/alibabacloud/ccc/model/ListAudioFilesRequest.h + include/alibabacloud/ccc/model/ListAudioFilesResult.h include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h @@ -173,6 +213,14 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ListIntervalSkillGroupReportResult.h include/alibabacloud/ccc/model/ListIvrTrackingDetailsRequest.h include/alibabacloud/ccc/model/ListIvrTrackingDetailsResult.h + include/alibabacloud/ccc/model/ListLegacyAgentEventLogsRequest.h + include/alibabacloud/ccc/model/ListLegacyAgentEventLogsResult.h + include/alibabacloud/ccc/model/ListLegacyAgentStatusLogsRequest.h + include/alibabacloud/ccc/model/ListLegacyAgentStatusLogsResult.h + include/alibabacloud/ccc/model/ListLegacyAppraiseLogsRequest.h + include/alibabacloud/ccc/model/ListLegacyAppraiseLogsResult.h + include/alibabacloud/ccc/model/ListLegacyQueueEventLogsRequest.h + include/alibabacloud/ccc/model/ListLegacyQueueEventLogsResult.h include/alibabacloud/ccc/model/ListMonoRecordingsRequest.h include/alibabacloud/ccc/model/ListMonoRecordingsResult.h include/alibabacloud/ccc/model/ListMultiChannelRecordingsRequest.h @@ -197,10 +245,6 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h include/alibabacloud/ccc/model/ListRolesRequest.h include/alibabacloud/ccc/model/ListRolesResult.h - include/alibabacloud/ccc/model/ListSipCallRecordsRequest.h - include/alibabacloud/ccc/model/ListSipCallRecordsResult.h - include/alibabacloud/ccc/model/ListSipTracesRequest.h - include/alibabacloud/ccc/model/ListSipTracesResult.h include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h @@ -217,6 +261,8 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ListUsersResult.h include/alibabacloud/ccc/model/MakeCallRequest.h include/alibabacloud/ccc/model/MakeCallResult.h + include/alibabacloud/ccc/model/ModifyAudioFileRequest.h + include/alibabacloud/ccc/model/ModifyAudioFileResult.h include/alibabacloud/ccc/model/ModifyCustomCallTaggingRequest.h include/alibabacloud/ccc/model/ModifyCustomCallTaggingResult.h include/alibabacloud/ccc/model/ModifyInstanceRequest.h @@ -241,8 +287,12 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/PickOutboundNumbersResult.h include/alibabacloud/ccc/model/PollUserStatusRequest.h include/alibabacloud/ccc/model/PollUserStatusResult.h + include/alibabacloud/ccc/model/PublishContactFlowRequest.h + include/alibabacloud/ccc/model/PublishContactFlowResult.h include/alibabacloud/ccc/model/ReadyForServiceRequest.h include/alibabacloud/ccc/model/ReadyForServiceResult.h + include/alibabacloud/ccc/model/RedialCallRequest.h + include/alibabacloud/ccc/model/RedialCallResult.h include/alibabacloud/ccc/model/RegisterDeviceRequest.h include/alibabacloud/ccc/model/RegisterDeviceResult.h include/alibabacloud/ccc/model/RegisterDevicesRequest.h @@ -269,6 +319,8 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ResetAgentStateResult.h include/alibabacloud/ccc/model/ResetUserPasswordRequest.h include/alibabacloud/ccc/model/ResetUserPasswordResult.h + include/alibabacloud/ccc/model/RestoreArchivedRecordingsRequest.h + include/alibabacloud/ccc/model/RestoreArchivedRecordingsResult.h include/alibabacloud/ccc/model/ResumeCampaignRequest.h include/alibabacloud/ccc/model/ResumeCampaignResult.h include/alibabacloud/ccc/model/RetrieveCallRequest.h @@ -289,10 +341,18 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/SignOutGroupResult.h include/alibabacloud/ccc/model/StartBack2BackCallRequest.h include/alibabacloud/ccc/model/StartBack2BackCallResult.h + include/alibabacloud/ccc/model/StartConferenceRequest.h + include/alibabacloud/ccc/model/StartConferenceResult.h + include/alibabacloud/ccc/model/StartEditContactFlowRequest.h + include/alibabacloud/ccc/model/StartEditContactFlowResult.h include/alibabacloud/ccc/model/StartPredictiveCallRequest.h include/alibabacloud/ccc/model/StartPredictiveCallResult.h + include/alibabacloud/ccc/model/StartPrivacyCallRequest.h + include/alibabacloud/ccc/model/StartPrivacyCallResult.h include/alibabacloud/ccc/model/SubmitCampaignRequest.h include/alibabacloud/ccc/model/SubmitCampaignResult.h + include/alibabacloud/ccc/model/SwitchToConferenceRequest.h + include/alibabacloud/ccc/model/SwitchToConferenceResult.h include/alibabacloud/ccc/model/TakeBreakRequest.h include/alibabacloud/ccc/model/TakeBreakResult.h include/alibabacloud/ccc/model/UnmuteCallRequest.h @@ -306,6 +366,8 @@ set(ccc_src src/CCCClient.cc src/model/AbortCampaignRequest.cc src/model/AbortCampaignResult.cc + src/model/AddCasesRequest.cc + src/model/AddCasesResult.cc src/model/AddNumbersToSkillGroupRequest.cc src/model/AddNumbersToSkillGroupResult.cc src/model/AddPersonalNumbersToUserRequest.cc @@ -320,24 +382,34 @@ set(ccc_src src/model/AddUsersToSkillGroupResult.cc src/model/AnswerCallRequest.cc src/model/AnswerCallResult.cc + src/model/AppendCasesRequest.cc + src/model/AppendCasesResult.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/BridgeRtcCallRequest.cc + src/model/BridgeRtcCallResult.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/CommitContactFlowRequest.cc + src/model/CommitContactFlowResult.cc src/model/CompleteAttendedTransferRequest.cc src/model/CompleteAttendedTransferResult.cc + src/model/CreateAudioFileRequest.cc + src/model/CreateAudioFileResult.cc src/model/CreateCallTagsRequest.cc src/model/CreateCallTagsResult.cc src/model/CreateCampaignRequest.cc src/model/CreateCampaignResult.cc + src/model/CreateContactFlowRequest.cc + src/model/CreateContactFlowResult.cc src/model/CreateCustomCallTaggingRequest.cc src/model/CreateCustomCallTaggingResult.cc src/model/CreateInstanceRequest.cc @@ -346,24 +418,46 @@ set(ccc_src src/model/CreateSkillGroupResult.cc src/model/CreateUserRequest.cc src/model/CreateUserResult.cc + src/model/DeleteAudioFileRequest.cc + src/model/DeleteAudioFileResult.cc src/model/DeleteCallTagRequest.cc src/model/DeleteCallTagResult.cc + src/model/DeleteContactFlowRequest.cc + src/model/DeleteContactFlowResult.cc src/model/DeleteCustomCallTaggingRequest.cc src/model/DeleteCustomCallTaggingResult.cc src/model/DeleteSkillGroupRequest.cc src/model/DeleteSkillGroupResult.cc + src/model/DiscardEditingContactFlowRequest.cc + src/model/DiscardEditingContactFlowResult.cc + src/model/EndConferenceRequest.cc + src/model/EndConferenceResult.cc src/model/ExportCustomCallTaggingRequest.cc src/model/ExportCustomCallTaggingResult.cc src/model/ExportDoNotCallNumbersRequest.cc src/model/ExportDoNotCallNumbersResult.cc + src/model/GetAudioFileRequest.cc + src/model/GetAudioFileResult.cc + src/model/GetAudioFileDownloadUrlRequest.cc + src/model/GetAudioFileDownloadUrlResult.cc + src/model/GetAudioFileUploadParametersRequest.cc + src/model/GetAudioFileUploadParametersResult.cc src/model/GetCallDetailRecordRequest.cc src/model/GetCallDetailRecordResult.cc src/model/GetCampaignRequest.cc src/model/GetCampaignResult.cc src/model/GetCaseFileUploadUrlRequest.cc src/model/GetCaseFileUploadUrlResult.cc + src/model/GetContactFlowRequest.cc + src/model/GetContactFlowResult.cc + src/model/GetConversationDetailRequest.cc + src/model/GetConversationDetailResult.cc + src/model/GetDataChannelCredentialsRequest.cc + src/model/GetDataChannelCredentialsResult.cc src/model/GetDoNotCallFileUploadParametersRequest.cc src/model/GetDoNotCallFileUploadParametersResult.cc + src/model/GetEarlyMediaRecordingRequest.cc + src/model/GetEarlyMediaRecordingResult.cc src/model/GetHistoricalCallerReportRequest.cc src/model/GetHistoricalCallerReportResult.cc src/model/GetHistoricalCampaignReportRequest.cc @@ -392,8 +486,12 @@ set(ccc_src src/model/GetTurnCredentialsResult.cc src/model/GetTurnServerListRequest.cc src/model/GetTurnServerListResult.cc + src/model/GetUploadAudioDataParamsRequest.cc + src/model/GetUploadAudioDataParamsResult.cc src/model/GetUserRequest.cc src/model/GetUserResult.cc + src/model/GetVoicemailRecordingRequest.cc + src/model/GetVoicemailRecordingResult.cc src/model/HoldCallRequest.cc src/model/HoldCallResult.cc src/model/ImportAdminsRequest.cc @@ -418,6 +516,8 @@ set(ccc_src src/model/ListAgentSummaryReportsSinceMidnightResult.cc src/model/ListAttemptsRequest.cc src/model/ListAttemptsResult.cc + src/model/ListAudioFilesRequest.cc + src/model/ListAudioFilesResult.cc src/model/ListBriefSkillGroupsRequest.cc src/model/ListBriefSkillGroupsResult.cc src/model/ListCallDetailRecordsRequest.cc @@ -456,6 +556,14 @@ set(ccc_src src/model/ListIntervalSkillGroupReportResult.cc src/model/ListIvrTrackingDetailsRequest.cc src/model/ListIvrTrackingDetailsResult.cc + src/model/ListLegacyAgentEventLogsRequest.cc + src/model/ListLegacyAgentEventLogsResult.cc + src/model/ListLegacyAgentStatusLogsRequest.cc + src/model/ListLegacyAgentStatusLogsResult.cc + src/model/ListLegacyAppraiseLogsRequest.cc + src/model/ListLegacyAppraiseLogsResult.cc + src/model/ListLegacyQueueEventLogsRequest.cc + src/model/ListLegacyQueueEventLogsResult.cc src/model/ListMonoRecordingsRequest.cc src/model/ListMonoRecordingsResult.cc src/model/ListMultiChannelRecordingsRequest.cc @@ -480,10 +588,6 @@ set(ccc_src src/model/ListRecentCallDetailRecordsResult.cc src/model/ListRolesRequest.cc src/model/ListRolesResult.cc - src/model/ListSipCallRecordsRequest.cc - src/model/ListSipCallRecordsResult.cc - src/model/ListSipTracesRequest.cc - src/model/ListSipTracesResult.cc src/model/ListSkillGroupStatesRequest.cc src/model/ListSkillGroupStatesResult.cc src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc @@ -500,6 +604,8 @@ set(ccc_src src/model/ListUsersResult.cc src/model/MakeCallRequest.cc src/model/MakeCallResult.cc + src/model/ModifyAudioFileRequest.cc + src/model/ModifyAudioFileResult.cc src/model/ModifyCustomCallTaggingRequest.cc src/model/ModifyCustomCallTaggingResult.cc src/model/ModifyInstanceRequest.cc @@ -524,8 +630,12 @@ set(ccc_src src/model/PickOutboundNumbersResult.cc src/model/PollUserStatusRequest.cc src/model/PollUserStatusResult.cc + src/model/PublishContactFlowRequest.cc + src/model/PublishContactFlowResult.cc src/model/ReadyForServiceRequest.cc src/model/ReadyForServiceResult.cc + src/model/RedialCallRequest.cc + src/model/RedialCallResult.cc src/model/RegisterDeviceRequest.cc src/model/RegisterDeviceResult.cc src/model/RegisterDevicesRequest.cc @@ -552,6 +662,8 @@ set(ccc_src src/model/ResetAgentStateResult.cc src/model/ResetUserPasswordRequest.cc src/model/ResetUserPasswordResult.cc + src/model/RestoreArchivedRecordingsRequest.cc + src/model/RestoreArchivedRecordingsResult.cc src/model/ResumeCampaignRequest.cc src/model/ResumeCampaignResult.cc src/model/RetrieveCallRequest.cc @@ -572,10 +684,18 @@ set(ccc_src src/model/SignOutGroupResult.cc src/model/StartBack2BackCallRequest.cc src/model/StartBack2BackCallResult.cc + src/model/StartConferenceRequest.cc + src/model/StartConferenceResult.cc + src/model/StartEditContactFlowRequest.cc + src/model/StartEditContactFlowResult.cc src/model/StartPredictiveCallRequest.cc src/model/StartPredictiveCallResult.cc + src/model/StartPrivacyCallRequest.cc + src/model/StartPrivacyCallResult.cc src/model/SubmitCampaignRequest.cc src/model/SubmitCampaignResult.cc + src/model/SwitchToConferenceRequest.cc + src/model/SwitchToConferenceResult.cc src/model/TakeBreakRequest.cc src/model/TakeBreakResult.cc src/model/UnmuteCallRequest.cc diff --git a/ccc/include/alibabacloud/ccc/CCCClient.h b/ccc/include/alibabacloud/ccc/CCCClient.h index 03939cba6..fd4066aa0 100644 --- a/ccc/include/alibabacloud/ccc/CCCClient.h +++ b/ccc/include/alibabacloud/ccc/CCCClient.h @@ -24,6 +24,8 @@ #include "CCCExport.h" #include "model/AbortCampaignRequest.h" #include "model/AbortCampaignResult.h" +#include "model/AddCasesRequest.h" +#include "model/AddCasesResult.h" #include "model/AddNumbersToSkillGroupRequest.h" #include "model/AddNumbersToSkillGroupResult.h" #include "model/AddPersonalNumbersToUserRequest.h" @@ -38,24 +40,34 @@ #include "model/AddUsersToSkillGroupResult.h" #include "model/AnswerCallRequest.h" #include "model/AnswerCallResult.h" +#include "model/AppendCasesRequest.h" +#include "model/AppendCasesResult.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/BridgeRtcCallRequest.h" +#include "model/BridgeRtcCallResult.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/CommitContactFlowRequest.h" +#include "model/CommitContactFlowResult.h" #include "model/CompleteAttendedTransferRequest.h" #include "model/CompleteAttendedTransferResult.h" +#include "model/CreateAudioFileRequest.h" +#include "model/CreateAudioFileResult.h" #include "model/CreateCallTagsRequest.h" #include "model/CreateCallTagsResult.h" #include "model/CreateCampaignRequest.h" #include "model/CreateCampaignResult.h" +#include "model/CreateContactFlowRequest.h" +#include "model/CreateContactFlowResult.h" #include "model/CreateCustomCallTaggingRequest.h" #include "model/CreateCustomCallTaggingResult.h" #include "model/CreateInstanceRequest.h" @@ -64,24 +76,46 @@ #include "model/CreateSkillGroupResult.h" #include "model/CreateUserRequest.h" #include "model/CreateUserResult.h" +#include "model/DeleteAudioFileRequest.h" +#include "model/DeleteAudioFileResult.h" #include "model/DeleteCallTagRequest.h" #include "model/DeleteCallTagResult.h" +#include "model/DeleteContactFlowRequest.h" +#include "model/DeleteContactFlowResult.h" #include "model/DeleteCustomCallTaggingRequest.h" #include "model/DeleteCustomCallTaggingResult.h" #include "model/DeleteSkillGroupRequest.h" #include "model/DeleteSkillGroupResult.h" +#include "model/DiscardEditingContactFlowRequest.h" +#include "model/DiscardEditingContactFlowResult.h" +#include "model/EndConferenceRequest.h" +#include "model/EndConferenceResult.h" #include "model/ExportCustomCallTaggingRequest.h" #include "model/ExportCustomCallTaggingResult.h" #include "model/ExportDoNotCallNumbersRequest.h" #include "model/ExportDoNotCallNumbersResult.h" +#include "model/GetAudioFileRequest.h" +#include "model/GetAudioFileResult.h" +#include "model/GetAudioFileDownloadUrlRequest.h" +#include "model/GetAudioFileDownloadUrlResult.h" +#include "model/GetAudioFileUploadParametersRequest.h" +#include "model/GetAudioFileUploadParametersResult.h" #include "model/GetCallDetailRecordRequest.h" #include "model/GetCallDetailRecordResult.h" #include "model/GetCampaignRequest.h" #include "model/GetCampaignResult.h" #include "model/GetCaseFileUploadUrlRequest.h" #include "model/GetCaseFileUploadUrlResult.h" +#include "model/GetContactFlowRequest.h" +#include "model/GetContactFlowResult.h" +#include "model/GetConversationDetailRequest.h" +#include "model/GetConversationDetailResult.h" +#include "model/GetDataChannelCredentialsRequest.h" +#include "model/GetDataChannelCredentialsResult.h" #include "model/GetDoNotCallFileUploadParametersRequest.h" #include "model/GetDoNotCallFileUploadParametersResult.h" +#include "model/GetEarlyMediaRecordingRequest.h" +#include "model/GetEarlyMediaRecordingResult.h" #include "model/GetHistoricalCallerReportRequest.h" #include "model/GetHistoricalCallerReportResult.h" #include "model/GetHistoricalCampaignReportRequest.h" @@ -110,8 +144,12 @@ #include "model/GetTurnCredentialsResult.h" #include "model/GetTurnServerListRequest.h" #include "model/GetTurnServerListResult.h" +#include "model/GetUploadAudioDataParamsRequest.h" +#include "model/GetUploadAudioDataParamsResult.h" #include "model/GetUserRequest.h" #include "model/GetUserResult.h" +#include "model/GetVoicemailRecordingRequest.h" +#include "model/GetVoicemailRecordingResult.h" #include "model/HoldCallRequest.h" #include "model/HoldCallResult.h" #include "model/ImportAdminsRequest.h" @@ -136,6 +174,8 @@ #include "model/ListAgentSummaryReportsSinceMidnightResult.h" #include "model/ListAttemptsRequest.h" #include "model/ListAttemptsResult.h" +#include "model/ListAudioFilesRequest.h" +#include "model/ListAudioFilesResult.h" #include "model/ListBriefSkillGroupsRequest.h" #include "model/ListBriefSkillGroupsResult.h" #include "model/ListCallDetailRecordsRequest.h" @@ -174,6 +214,14 @@ #include "model/ListIntervalSkillGroupReportResult.h" #include "model/ListIvrTrackingDetailsRequest.h" #include "model/ListIvrTrackingDetailsResult.h" +#include "model/ListLegacyAgentEventLogsRequest.h" +#include "model/ListLegacyAgentEventLogsResult.h" +#include "model/ListLegacyAgentStatusLogsRequest.h" +#include "model/ListLegacyAgentStatusLogsResult.h" +#include "model/ListLegacyAppraiseLogsRequest.h" +#include "model/ListLegacyAppraiseLogsResult.h" +#include "model/ListLegacyQueueEventLogsRequest.h" +#include "model/ListLegacyQueueEventLogsResult.h" #include "model/ListMonoRecordingsRequest.h" #include "model/ListMonoRecordingsResult.h" #include "model/ListMultiChannelRecordingsRequest.h" @@ -198,10 +246,6 @@ #include "model/ListRecentCallDetailRecordsResult.h" #include "model/ListRolesRequest.h" #include "model/ListRolesResult.h" -#include "model/ListSipCallRecordsRequest.h" -#include "model/ListSipCallRecordsResult.h" -#include "model/ListSipTracesRequest.h" -#include "model/ListSipTracesResult.h" #include "model/ListSkillGroupStatesRequest.h" #include "model/ListSkillGroupStatesResult.h" #include "model/ListSkillGroupSummaryReportsSinceMidnightRequest.h" @@ -218,6 +262,8 @@ #include "model/ListUsersResult.h" #include "model/MakeCallRequest.h" #include "model/MakeCallResult.h" +#include "model/ModifyAudioFileRequest.h" +#include "model/ModifyAudioFileResult.h" #include "model/ModifyCustomCallTaggingRequest.h" #include "model/ModifyCustomCallTaggingResult.h" #include "model/ModifyInstanceRequest.h" @@ -242,8 +288,12 @@ #include "model/PickOutboundNumbersResult.h" #include "model/PollUserStatusRequest.h" #include "model/PollUserStatusResult.h" +#include "model/PublishContactFlowRequest.h" +#include "model/PublishContactFlowResult.h" #include "model/ReadyForServiceRequest.h" #include "model/ReadyForServiceResult.h" +#include "model/RedialCallRequest.h" +#include "model/RedialCallResult.h" #include "model/RegisterDeviceRequest.h" #include "model/RegisterDeviceResult.h" #include "model/RegisterDevicesRequest.h" @@ -270,6 +320,8 @@ #include "model/ResetAgentStateResult.h" #include "model/ResetUserPasswordRequest.h" #include "model/ResetUserPasswordResult.h" +#include "model/RestoreArchivedRecordingsRequest.h" +#include "model/RestoreArchivedRecordingsResult.h" #include "model/ResumeCampaignRequest.h" #include "model/ResumeCampaignResult.h" #include "model/RetrieveCallRequest.h" @@ -290,10 +342,18 @@ #include "model/SignOutGroupResult.h" #include "model/StartBack2BackCallRequest.h" #include "model/StartBack2BackCallResult.h" +#include "model/StartConferenceRequest.h" +#include "model/StartConferenceResult.h" +#include "model/StartEditContactFlowRequest.h" +#include "model/StartEditContactFlowResult.h" #include "model/StartPredictiveCallRequest.h" #include "model/StartPredictiveCallResult.h" +#include "model/StartPrivacyCallRequest.h" +#include "model/StartPrivacyCallResult.h" #include "model/SubmitCampaignRequest.h" #include "model/SubmitCampaignResult.h" +#include "model/SwitchToConferenceRequest.h" +#include "model/SwitchToConferenceResult.h" #include "model/TakeBreakRequest.h" #include "model/TakeBreakResult.h" #include "model/UnmuteCallRequest.h" @@ -314,6 +374,9 @@ namespace AlibabaCloud typedef Outcome AbortCampaignOutcome; typedef std::future AbortCampaignOutcomeCallable; typedef std::function&)> AbortCampaignAsyncHandler; + typedef Outcome AddCasesOutcome; + typedef std::future AddCasesOutcomeCallable; + typedef std::function&)> AddCasesAsyncHandler; typedef Outcome AddNumbersToSkillGroupOutcome; typedef std::future AddNumbersToSkillGroupOutcomeCallable; typedef std::function&)> AddNumbersToSkillGroupAsyncHandler; @@ -335,6 +398,9 @@ namespace AlibabaCloud typedef Outcome AnswerCallOutcome; typedef std::future AnswerCallOutcomeCallable; typedef std::function&)> AnswerCallAsyncHandler; + typedef Outcome AppendCasesOutcome; + typedef std::future AppendCasesOutcomeCallable; + typedef std::function&)> AppendCasesAsyncHandler; typedef Outcome AssignUsersOutcome; typedef std::future AssignUsersOutcomeCallable; typedef std::function&)> AssignUsersAsyncHandler; @@ -344,6 +410,9 @@ namespace AlibabaCloud typedef Outcome BlindTransferOutcome; typedef std::future BlindTransferOutcomeCallable; typedef std::function&)> BlindTransferAsyncHandler; + typedef Outcome BridgeRtcCallOutcome; + typedef std::future BridgeRtcCallOutcomeCallable; + typedef std::function&)> BridgeRtcCallAsyncHandler; typedef Outcome CancelAttendedTransferOutcome; typedef std::future CancelAttendedTransferOutcomeCallable; typedef std::function&)> CancelAttendedTransferAsyncHandler; @@ -353,15 +422,24 @@ namespace AlibabaCloud typedef Outcome CoachCallOutcome; typedef std::future CoachCallOutcomeCallable; typedef std::function&)> CoachCallAsyncHandler; + typedef Outcome CommitContactFlowOutcome; + typedef std::future CommitContactFlowOutcomeCallable; + typedef std::function&)> CommitContactFlowAsyncHandler; typedef Outcome CompleteAttendedTransferOutcome; typedef std::future CompleteAttendedTransferOutcomeCallable; typedef std::function&)> CompleteAttendedTransferAsyncHandler; + typedef Outcome CreateAudioFileOutcome; + typedef std::future CreateAudioFileOutcomeCallable; + typedef std::function&)> CreateAudioFileAsyncHandler; typedef Outcome CreateCallTagsOutcome; typedef std::future CreateCallTagsOutcomeCallable; typedef std::function&)> CreateCallTagsAsyncHandler; typedef Outcome CreateCampaignOutcome; typedef std::future CreateCampaignOutcomeCallable; typedef std::function&)> CreateCampaignAsyncHandler; + typedef Outcome CreateContactFlowOutcome; + typedef std::future CreateContactFlowOutcomeCallable; + typedef std::function&)> CreateContactFlowAsyncHandler; typedef Outcome CreateCustomCallTaggingOutcome; typedef std::future CreateCustomCallTaggingOutcomeCallable; typedef std::function&)> CreateCustomCallTaggingAsyncHandler; @@ -374,21 +452,42 @@ namespace AlibabaCloud typedef Outcome CreateUserOutcome; typedef std::future CreateUserOutcomeCallable; typedef std::function&)> CreateUserAsyncHandler; + typedef Outcome DeleteAudioFileOutcome; + typedef std::future DeleteAudioFileOutcomeCallable; + typedef std::function&)> DeleteAudioFileAsyncHandler; typedef Outcome DeleteCallTagOutcome; typedef std::future DeleteCallTagOutcomeCallable; typedef std::function&)> DeleteCallTagAsyncHandler; + typedef Outcome DeleteContactFlowOutcome; + typedef std::future DeleteContactFlowOutcomeCallable; + typedef std::function&)> DeleteContactFlowAsyncHandler; typedef Outcome DeleteCustomCallTaggingOutcome; typedef std::future DeleteCustomCallTaggingOutcomeCallable; typedef std::function&)> DeleteCustomCallTaggingAsyncHandler; typedef Outcome DeleteSkillGroupOutcome; typedef std::future DeleteSkillGroupOutcomeCallable; typedef std::function&)> DeleteSkillGroupAsyncHandler; + typedef Outcome DiscardEditingContactFlowOutcome; + typedef std::future DiscardEditingContactFlowOutcomeCallable; + typedef std::function&)> DiscardEditingContactFlowAsyncHandler; + typedef Outcome EndConferenceOutcome; + typedef std::future EndConferenceOutcomeCallable; + typedef std::function&)> EndConferenceAsyncHandler; typedef Outcome ExportCustomCallTaggingOutcome; typedef std::future ExportCustomCallTaggingOutcomeCallable; typedef std::function&)> ExportCustomCallTaggingAsyncHandler; typedef Outcome ExportDoNotCallNumbersOutcome; typedef std::future ExportDoNotCallNumbersOutcomeCallable; typedef std::function&)> ExportDoNotCallNumbersAsyncHandler; + typedef Outcome GetAudioFileOutcome; + typedef std::future GetAudioFileOutcomeCallable; + typedef std::function&)> GetAudioFileAsyncHandler; + typedef Outcome GetAudioFileDownloadUrlOutcome; + typedef std::future GetAudioFileDownloadUrlOutcomeCallable; + typedef std::function&)> GetAudioFileDownloadUrlAsyncHandler; + typedef Outcome GetAudioFileUploadParametersOutcome; + typedef std::future GetAudioFileUploadParametersOutcomeCallable; + typedef std::function&)> GetAudioFileUploadParametersAsyncHandler; typedef Outcome GetCallDetailRecordOutcome; typedef std::future GetCallDetailRecordOutcomeCallable; typedef std::function&)> GetCallDetailRecordAsyncHandler; @@ -398,9 +497,21 @@ namespace AlibabaCloud typedef Outcome GetCaseFileUploadUrlOutcome; typedef std::future GetCaseFileUploadUrlOutcomeCallable; typedef std::function&)> GetCaseFileUploadUrlAsyncHandler; + typedef Outcome GetContactFlowOutcome; + typedef std::future GetContactFlowOutcomeCallable; + typedef std::function&)> GetContactFlowAsyncHandler; + typedef Outcome GetConversationDetailOutcome; + typedef std::future GetConversationDetailOutcomeCallable; + typedef std::function&)> GetConversationDetailAsyncHandler; + typedef Outcome GetDataChannelCredentialsOutcome; + typedef std::future GetDataChannelCredentialsOutcomeCallable; + typedef std::function&)> GetDataChannelCredentialsAsyncHandler; typedef Outcome GetDoNotCallFileUploadParametersOutcome; typedef std::future GetDoNotCallFileUploadParametersOutcomeCallable; typedef std::function&)> GetDoNotCallFileUploadParametersAsyncHandler; + typedef Outcome GetEarlyMediaRecordingOutcome; + typedef std::future GetEarlyMediaRecordingOutcomeCallable; + typedef std::function&)> GetEarlyMediaRecordingAsyncHandler; typedef Outcome GetHistoricalCallerReportOutcome; typedef std::future GetHistoricalCallerReportOutcomeCallable; typedef std::function&)> GetHistoricalCallerReportAsyncHandler; @@ -443,9 +554,15 @@ namespace AlibabaCloud typedef Outcome GetTurnServerListOutcome; typedef std::future GetTurnServerListOutcomeCallable; typedef std::function&)> GetTurnServerListAsyncHandler; + typedef Outcome GetUploadAudioDataParamsOutcome; + typedef std::future GetUploadAudioDataParamsOutcomeCallable; + typedef std::function&)> GetUploadAudioDataParamsAsyncHandler; typedef Outcome GetUserOutcome; typedef std::future GetUserOutcomeCallable; typedef std::function&)> GetUserAsyncHandler; + typedef Outcome GetVoicemailRecordingOutcome; + typedef std::future GetVoicemailRecordingOutcomeCallable; + typedef std::function&)> GetVoicemailRecordingAsyncHandler; typedef Outcome HoldCallOutcome; typedef std::future HoldCallOutcomeCallable; typedef std::function&)> HoldCallAsyncHandler; @@ -482,6 +599,9 @@ namespace AlibabaCloud typedef Outcome ListAttemptsOutcome; typedef std::future ListAttemptsOutcomeCallable; typedef std::function&)> ListAttemptsAsyncHandler; + typedef Outcome ListAudioFilesOutcome; + typedef std::future ListAudioFilesOutcomeCallable; + typedef std::function&)> ListAudioFilesAsyncHandler; typedef Outcome ListBriefSkillGroupsOutcome; typedef std::future ListBriefSkillGroupsOutcomeCallable; typedef std::function&)> ListBriefSkillGroupsAsyncHandler; @@ -539,6 +659,18 @@ namespace AlibabaCloud typedef Outcome ListIvrTrackingDetailsOutcome; typedef std::future ListIvrTrackingDetailsOutcomeCallable; typedef std::function&)> ListIvrTrackingDetailsAsyncHandler; + typedef Outcome ListLegacyAgentEventLogsOutcome; + typedef std::future ListLegacyAgentEventLogsOutcomeCallable; + typedef std::function&)> ListLegacyAgentEventLogsAsyncHandler; + typedef Outcome ListLegacyAgentStatusLogsOutcome; + typedef std::future ListLegacyAgentStatusLogsOutcomeCallable; + typedef std::function&)> ListLegacyAgentStatusLogsAsyncHandler; + typedef Outcome ListLegacyAppraiseLogsOutcome; + typedef std::future ListLegacyAppraiseLogsOutcomeCallable; + typedef std::function&)> ListLegacyAppraiseLogsAsyncHandler; + typedef Outcome ListLegacyQueueEventLogsOutcome; + typedef std::future ListLegacyQueueEventLogsOutcomeCallable; + typedef std::function&)> ListLegacyQueueEventLogsAsyncHandler; typedef Outcome ListMonoRecordingsOutcome; typedef std::future ListMonoRecordingsOutcomeCallable; typedef std::function&)> ListMonoRecordingsAsyncHandler; @@ -575,12 +707,6 @@ namespace AlibabaCloud typedef Outcome ListRolesOutcome; typedef std::future ListRolesOutcomeCallable; typedef std::function&)> ListRolesAsyncHandler; - typedef Outcome ListSipCallRecordsOutcome; - typedef std::future ListSipCallRecordsOutcomeCallable; - typedef std::function&)> ListSipCallRecordsAsyncHandler; - typedef Outcome ListSipTracesOutcome; - typedef std::future ListSipTracesOutcomeCallable; - typedef std::function&)> ListSipTracesAsyncHandler; typedef Outcome ListSkillGroupStatesOutcome; typedef std::future ListSkillGroupStatesOutcomeCallable; typedef std::function&)> ListSkillGroupStatesAsyncHandler; @@ -605,6 +731,9 @@ namespace AlibabaCloud typedef Outcome MakeCallOutcome; typedef std::future MakeCallOutcomeCallable; typedef std::function&)> MakeCallAsyncHandler; + typedef Outcome ModifyAudioFileOutcome; + typedef std::future ModifyAudioFileOutcomeCallable; + typedef std::function&)> ModifyAudioFileAsyncHandler; typedef Outcome ModifyCustomCallTaggingOutcome; typedef std::future ModifyCustomCallTaggingOutcomeCallable; typedef std::function&)> ModifyCustomCallTaggingAsyncHandler; @@ -641,9 +770,15 @@ namespace AlibabaCloud typedef Outcome PollUserStatusOutcome; typedef std::future PollUserStatusOutcomeCallable; typedef std::function&)> PollUserStatusAsyncHandler; + typedef Outcome PublishContactFlowOutcome; + typedef std::future PublishContactFlowOutcomeCallable; + typedef std::function&)> PublishContactFlowAsyncHandler; typedef Outcome ReadyForServiceOutcome; typedef std::future ReadyForServiceOutcomeCallable; typedef std::function&)> ReadyForServiceAsyncHandler; + typedef Outcome RedialCallOutcome; + typedef std::future RedialCallOutcomeCallable; + typedef std::function&)> RedialCallAsyncHandler; typedef Outcome RegisterDeviceOutcome; typedef std::future RegisterDeviceOutcomeCallable; typedef std::function&)> RegisterDeviceAsyncHandler; @@ -683,6 +818,9 @@ namespace AlibabaCloud typedef Outcome ResetUserPasswordOutcome; typedef std::future ResetUserPasswordOutcomeCallable; typedef std::function&)> ResetUserPasswordAsyncHandler; + typedef Outcome RestoreArchivedRecordingsOutcome; + typedef std::future RestoreArchivedRecordingsOutcomeCallable; + typedef std::function&)> RestoreArchivedRecordingsAsyncHandler; typedef Outcome ResumeCampaignOutcome; typedef std::future ResumeCampaignOutcomeCallable; typedef std::function&)> ResumeCampaignAsyncHandler; @@ -713,12 +851,24 @@ namespace AlibabaCloud typedef Outcome StartBack2BackCallOutcome; typedef std::future StartBack2BackCallOutcomeCallable; typedef std::function&)> StartBack2BackCallAsyncHandler; + typedef Outcome StartConferenceOutcome; + typedef std::future StartConferenceOutcomeCallable; + typedef std::function&)> StartConferenceAsyncHandler; + typedef Outcome StartEditContactFlowOutcome; + typedef std::future StartEditContactFlowOutcomeCallable; + typedef std::function&)> StartEditContactFlowAsyncHandler; typedef Outcome StartPredictiveCallOutcome; typedef std::future StartPredictiveCallOutcomeCallable; typedef std::function&)> StartPredictiveCallAsyncHandler; + typedef Outcome StartPrivacyCallOutcome; + typedef std::future StartPrivacyCallOutcomeCallable; + typedef std::function&)> StartPrivacyCallAsyncHandler; typedef Outcome SubmitCampaignOutcome; typedef std::future SubmitCampaignOutcomeCallable; typedef std::function&)> SubmitCampaignAsyncHandler; + typedef Outcome SwitchToConferenceOutcome; + typedef std::future SwitchToConferenceOutcomeCallable; + typedef std::function&)> SwitchToConferenceAsyncHandler; typedef Outcome TakeBreakOutcome; typedef std::future TakeBreakOutcomeCallable; typedef std::function&)> TakeBreakAsyncHandler; @@ -739,6 +889,9 @@ namespace AlibabaCloud AbortCampaignOutcome abortCampaign(const Model::AbortCampaignRequest &request)const; void abortCampaignAsync(const Model::AbortCampaignRequest& request, const AbortCampaignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AbortCampaignOutcomeCallable abortCampaignCallable(const Model::AbortCampaignRequest& request) const; + AddCasesOutcome addCases(const Model::AddCasesRequest &request)const; + void addCasesAsync(const Model::AddCasesRequest& request, const AddCasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddCasesOutcomeCallable addCasesCallable(const Model::AddCasesRequest& request) const; AddNumbersToSkillGroupOutcome addNumbersToSkillGroup(const Model::AddNumbersToSkillGroupRequest &request)const; void addNumbersToSkillGroupAsync(const Model::AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddNumbersToSkillGroupOutcomeCallable addNumbersToSkillGroupCallable(const Model::AddNumbersToSkillGroupRequest& request) const; @@ -760,6 +913,9 @@ namespace AlibabaCloud 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; + AppendCasesOutcome appendCases(const Model::AppendCasesRequest &request)const; + void appendCasesAsync(const Model::AppendCasesRequest& request, const AppendCasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AppendCasesOutcomeCallable appendCasesCallable(const Model::AppendCasesRequest& 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; @@ -769,6 +925,9 @@ namespace AlibabaCloud 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; + BridgeRtcCallOutcome bridgeRtcCall(const Model::BridgeRtcCallRequest &request)const; + void bridgeRtcCallAsync(const Model::BridgeRtcCallRequest& request, const BridgeRtcCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BridgeRtcCallOutcomeCallable bridgeRtcCallCallable(const Model::BridgeRtcCallRequest& 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; @@ -778,15 +937,24 @@ namespace AlibabaCloud 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; + CommitContactFlowOutcome commitContactFlow(const Model::CommitContactFlowRequest &request)const; + void commitContactFlowAsync(const Model::CommitContactFlowRequest& request, const CommitContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CommitContactFlowOutcomeCallable commitContactFlowCallable(const Model::CommitContactFlowRequest& 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; + CreateAudioFileOutcome createAudioFile(const Model::CreateAudioFileRequest &request)const; + void createAudioFileAsync(const Model::CreateAudioFileRequest& request, const CreateAudioFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAudioFileOutcomeCallable createAudioFileCallable(const Model::CreateAudioFileRequest& request) const; CreateCallTagsOutcome createCallTags(const Model::CreateCallTagsRequest &request)const; void createCallTagsAsync(const Model::CreateCallTagsRequest& request, const CreateCallTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCallTagsOutcomeCallable createCallTagsCallable(const Model::CreateCallTagsRequest& request) const; CreateCampaignOutcome createCampaign(const Model::CreateCampaignRequest &request)const; void createCampaignAsync(const Model::CreateCampaignRequest& request, const CreateCampaignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCampaignOutcomeCallable createCampaignCallable(const Model::CreateCampaignRequest& 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; CreateCustomCallTaggingOutcome createCustomCallTagging(const Model::CreateCustomCallTaggingRequest &request)const; void createCustomCallTaggingAsync(const Model::CreateCustomCallTaggingRequest& request, const CreateCustomCallTaggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCustomCallTaggingOutcomeCallable createCustomCallTaggingCallable(const Model::CreateCustomCallTaggingRequest& request) const; @@ -799,21 +967,42 @@ namespace AlibabaCloud 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; + DeleteAudioFileOutcome deleteAudioFile(const Model::DeleteAudioFileRequest &request)const; + void deleteAudioFileAsync(const Model::DeleteAudioFileRequest& request, const DeleteAudioFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAudioFileOutcomeCallable deleteAudioFileCallable(const Model::DeleteAudioFileRequest& request) const; DeleteCallTagOutcome deleteCallTag(const Model::DeleteCallTagRequest &request)const; void deleteCallTagAsync(const Model::DeleteCallTagRequest& request, const DeleteCallTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCallTagOutcomeCallable deleteCallTagCallable(const Model::DeleteCallTagRequest& request) const; + DeleteContactFlowOutcome deleteContactFlow(const Model::DeleteContactFlowRequest &request)const; + void deleteContactFlowAsync(const Model::DeleteContactFlowRequest& request, const DeleteContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteContactFlowOutcomeCallable deleteContactFlowCallable(const Model::DeleteContactFlowRequest& request) const; DeleteCustomCallTaggingOutcome deleteCustomCallTagging(const Model::DeleteCustomCallTaggingRequest &request)const; void deleteCustomCallTaggingAsync(const Model::DeleteCustomCallTaggingRequest& request, const DeleteCustomCallTaggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCustomCallTaggingOutcomeCallable deleteCustomCallTaggingCallable(const Model::DeleteCustomCallTaggingRequest& 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; + DiscardEditingContactFlowOutcome discardEditingContactFlow(const Model::DiscardEditingContactFlowRequest &request)const; + void discardEditingContactFlowAsync(const Model::DiscardEditingContactFlowRequest& request, const DiscardEditingContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DiscardEditingContactFlowOutcomeCallable discardEditingContactFlowCallable(const Model::DiscardEditingContactFlowRequest& request) const; + EndConferenceOutcome endConference(const Model::EndConferenceRequest &request)const; + void endConferenceAsync(const Model::EndConferenceRequest& request, const EndConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EndConferenceOutcomeCallable endConferenceCallable(const Model::EndConferenceRequest& request) const; ExportCustomCallTaggingOutcome exportCustomCallTagging(const Model::ExportCustomCallTaggingRequest &request)const; void exportCustomCallTaggingAsync(const Model::ExportCustomCallTaggingRequest& request, const ExportCustomCallTaggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportCustomCallTaggingOutcomeCallable exportCustomCallTaggingCallable(const Model::ExportCustomCallTaggingRequest& request) const; ExportDoNotCallNumbersOutcome exportDoNotCallNumbers(const Model::ExportDoNotCallNumbersRequest &request)const; void exportDoNotCallNumbersAsync(const Model::ExportDoNotCallNumbersRequest& request, const ExportDoNotCallNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportDoNotCallNumbersOutcomeCallable exportDoNotCallNumbersCallable(const Model::ExportDoNotCallNumbersRequest& request) const; + GetAudioFileOutcome getAudioFile(const Model::GetAudioFileRequest &request)const; + void getAudioFileAsync(const Model::GetAudioFileRequest& request, const GetAudioFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAudioFileOutcomeCallable getAudioFileCallable(const Model::GetAudioFileRequest& request) const; + GetAudioFileDownloadUrlOutcome getAudioFileDownloadUrl(const Model::GetAudioFileDownloadUrlRequest &request)const; + void getAudioFileDownloadUrlAsync(const Model::GetAudioFileDownloadUrlRequest& request, const GetAudioFileDownloadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAudioFileDownloadUrlOutcomeCallable getAudioFileDownloadUrlCallable(const Model::GetAudioFileDownloadUrlRequest& request) const; + GetAudioFileUploadParametersOutcome getAudioFileUploadParameters(const Model::GetAudioFileUploadParametersRequest &request)const; + void getAudioFileUploadParametersAsync(const Model::GetAudioFileUploadParametersRequest& request, const GetAudioFileUploadParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAudioFileUploadParametersOutcomeCallable getAudioFileUploadParametersCallable(const Model::GetAudioFileUploadParametersRequest& 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; @@ -823,9 +1012,21 @@ namespace AlibabaCloud GetCaseFileUploadUrlOutcome getCaseFileUploadUrl(const Model::GetCaseFileUploadUrlRequest &request)const; void getCaseFileUploadUrlAsync(const Model::GetCaseFileUploadUrlRequest& request, const GetCaseFileUploadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCaseFileUploadUrlOutcomeCallable getCaseFileUploadUrlCallable(const Model::GetCaseFileUploadUrlRequest& request) const; + GetContactFlowOutcome getContactFlow(const Model::GetContactFlowRequest &request)const; + void getContactFlowAsync(const Model::GetContactFlowRequest& request, const GetContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetContactFlowOutcomeCallable getContactFlowCallable(const Model::GetContactFlowRequest& request) const; + GetConversationDetailOutcome getConversationDetail(const Model::GetConversationDetailRequest &request)const; + void getConversationDetailAsync(const Model::GetConversationDetailRequest& request, const GetConversationDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConversationDetailOutcomeCallable getConversationDetailCallable(const Model::GetConversationDetailRequest& request) const; + GetDataChannelCredentialsOutcome getDataChannelCredentials(const Model::GetDataChannelCredentialsRequest &request)const; + void getDataChannelCredentialsAsync(const Model::GetDataChannelCredentialsRequest& request, const GetDataChannelCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDataChannelCredentialsOutcomeCallable getDataChannelCredentialsCallable(const Model::GetDataChannelCredentialsRequest& request) const; GetDoNotCallFileUploadParametersOutcome getDoNotCallFileUploadParameters(const Model::GetDoNotCallFileUploadParametersRequest &request)const; void getDoNotCallFileUploadParametersAsync(const Model::GetDoNotCallFileUploadParametersRequest& request, const GetDoNotCallFileUploadParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDoNotCallFileUploadParametersOutcomeCallable getDoNotCallFileUploadParametersCallable(const Model::GetDoNotCallFileUploadParametersRequest& request) const; + GetEarlyMediaRecordingOutcome getEarlyMediaRecording(const Model::GetEarlyMediaRecordingRequest &request)const; + void getEarlyMediaRecordingAsync(const Model::GetEarlyMediaRecordingRequest& request, const GetEarlyMediaRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEarlyMediaRecordingOutcomeCallable getEarlyMediaRecordingCallable(const Model::GetEarlyMediaRecordingRequest& 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; @@ -868,9 +1069,15 @@ namespace AlibabaCloud 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; + GetUploadAudioDataParamsOutcome getUploadAudioDataParams(const Model::GetUploadAudioDataParamsRequest &request)const; + void getUploadAudioDataParamsAsync(const Model::GetUploadAudioDataParamsRequest& request, const GetUploadAudioDataParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUploadAudioDataParamsOutcomeCallable getUploadAudioDataParamsCallable(const Model::GetUploadAudioDataParamsRequest& 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; + GetVoicemailRecordingOutcome getVoicemailRecording(const Model::GetVoicemailRecordingRequest &request)const; + void getVoicemailRecordingAsync(const Model::GetVoicemailRecordingRequest& request, const GetVoicemailRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVoicemailRecordingOutcomeCallable getVoicemailRecordingCallable(const Model::GetVoicemailRecordingRequest& 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; @@ -907,6 +1114,9 @@ namespace AlibabaCloud ListAttemptsOutcome listAttempts(const Model::ListAttemptsRequest &request)const; void listAttemptsAsync(const Model::ListAttemptsRequest& request, const ListAttemptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAttemptsOutcomeCallable listAttemptsCallable(const Model::ListAttemptsRequest& request) const; + ListAudioFilesOutcome listAudioFiles(const Model::ListAudioFilesRequest &request)const; + void listAudioFilesAsync(const Model::ListAudioFilesRequest& request, const ListAudioFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAudioFilesOutcomeCallable listAudioFilesCallable(const Model::ListAudioFilesRequest& 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; @@ -964,6 +1174,18 @@ namespace AlibabaCloud 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; + ListLegacyAgentEventLogsOutcome listLegacyAgentEventLogs(const Model::ListLegacyAgentEventLogsRequest &request)const; + void listLegacyAgentEventLogsAsync(const Model::ListLegacyAgentEventLogsRequest& request, const ListLegacyAgentEventLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLegacyAgentEventLogsOutcomeCallable listLegacyAgentEventLogsCallable(const Model::ListLegacyAgentEventLogsRequest& request) const; + ListLegacyAgentStatusLogsOutcome listLegacyAgentStatusLogs(const Model::ListLegacyAgentStatusLogsRequest &request)const; + void listLegacyAgentStatusLogsAsync(const Model::ListLegacyAgentStatusLogsRequest& request, const ListLegacyAgentStatusLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLegacyAgentStatusLogsOutcomeCallable listLegacyAgentStatusLogsCallable(const Model::ListLegacyAgentStatusLogsRequest& request) const; + ListLegacyAppraiseLogsOutcome listLegacyAppraiseLogs(const Model::ListLegacyAppraiseLogsRequest &request)const; + void listLegacyAppraiseLogsAsync(const Model::ListLegacyAppraiseLogsRequest& request, const ListLegacyAppraiseLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLegacyAppraiseLogsOutcomeCallable listLegacyAppraiseLogsCallable(const Model::ListLegacyAppraiseLogsRequest& request) const; + ListLegacyQueueEventLogsOutcome listLegacyQueueEventLogs(const Model::ListLegacyQueueEventLogsRequest &request)const; + void listLegacyQueueEventLogsAsync(const Model::ListLegacyQueueEventLogsRequest& request, const ListLegacyQueueEventLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLegacyQueueEventLogsOutcomeCallable listLegacyQueueEventLogsCallable(const Model::ListLegacyQueueEventLogsRequest& request) const; ListMonoRecordingsOutcome listMonoRecordings(const Model::ListMonoRecordingsRequest &request)const; void listMonoRecordingsAsync(const Model::ListMonoRecordingsRequest& request, const ListMonoRecordingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListMonoRecordingsOutcomeCallable listMonoRecordingsCallable(const Model::ListMonoRecordingsRequest& request) const; @@ -1000,12 +1222,6 @@ namespace AlibabaCloud 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; - ListSipCallRecordsOutcome listSipCallRecords(const Model::ListSipCallRecordsRequest &request)const; - void listSipCallRecordsAsync(const Model::ListSipCallRecordsRequest& request, const ListSipCallRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSipCallRecordsOutcomeCallable listSipCallRecordsCallable(const Model::ListSipCallRecordsRequest& request) const; - ListSipTracesOutcome listSipTraces(const Model::ListSipTracesRequest &request)const; - void listSipTracesAsync(const Model::ListSipTracesRequest& request, const ListSipTracesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSipTracesOutcomeCallable listSipTracesCallable(const Model::ListSipTracesRequest& 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; @@ -1030,6 +1246,9 @@ namespace AlibabaCloud 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; + ModifyAudioFileOutcome modifyAudioFile(const Model::ModifyAudioFileRequest &request)const; + void modifyAudioFileAsync(const Model::ModifyAudioFileRequest& request, const ModifyAudioFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAudioFileOutcomeCallable modifyAudioFileCallable(const Model::ModifyAudioFileRequest& request) const; ModifyCustomCallTaggingOutcome modifyCustomCallTagging(const Model::ModifyCustomCallTaggingRequest &request)const; void modifyCustomCallTaggingAsync(const Model::ModifyCustomCallTaggingRequest& request, const ModifyCustomCallTaggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCustomCallTaggingOutcomeCallable modifyCustomCallTaggingCallable(const Model::ModifyCustomCallTaggingRequest& request) const; @@ -1066,9 +1285,15 @@ namespace AlibabaCloud 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; + PublishContactFlowOutcome publishContactFlow(const Model::PublishContactFlowRequest &request)const; + void publishContactFlowAsync(const Model::PublishContactFlowRequest& request, const PublishContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishContactFlowOutcomeCallable publishContactFlowCallable(const Model::PublishContactFlowRequest& 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; + RedialCallOutcome redialCall(const Model::RedialCallRequest &request)const; + void redialCallAsync(const Model::RedialCallRequest& request, const RedialCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RedialCallOutcomeCallable redialCallCallable(const Model::RedialCallRequest& 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; @@ -1108,6 +1333,9 @@ namespace AlibabaCloud 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; + RestoreArchivedRecordingsOutcome restoreArchivedRecordings(const Model::RestoreArchivedRecordingsRequest &request)const; + void restoreArchivedRecordingsAsync(const Model::RestoreArchivedRecordingsRequest& request, const RestoreArchivedRecordingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestoreArchivedRecordingsOutcomeCallable restoreArchivedRecordingsCallable(const Model::RestoreArchivedRecordingsRequest& request) const; ResumeCampaignOutcome resumeCampaign(const Model::ResumeCampaignRequest &request)const; void resumeCampaignAsync(const Model::ResumeCampaignRequest& request, const ResumeCampaignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResumeCampaignOutcomeCallable resumeCampaignCallable(const Model::ResumeCampaignRequest& request) const; @@ -1138,12 +1366,24 @@ namespace AlibabaCloud 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; + StartConferenceOutcome startConference(const Model::StartConferenceRequest &request)const; + void startConferenceAsync(const Model::StartConferenceRequest& request, const StartConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartConferenceOutcomeCallable startConferenceCallable(const Model::StartConferenceRequest& request) const; + StartEditContactFlowOutcome startEditContactFlow(const Model::StartEditContactFlowRequest &request)const; + void startEditContactFlowAsync(const Model::StartEditContactFlowRequest& request, const StartEditContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartEditContactFlowOutcomeCallable startEditContactFlowCallable(const Model::StartEditContactFlowRequest& 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; + StartPrivacyCallOutcome startPrivacyCall(const Model::StartPrivacyCallRequest &request)const; + void startPrivacyCallAsync(const Model::StartPrivacyCallRequest& request, const StartPrivacyCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartPrivacyCallOutcomeCallable startPrivacyCallCallable(const Model::StartPrivacyCallRequest& request) const; SubmitCampaignOutcome submitCampaign(const Model::SubmitCampaignRequest &request)const; void submitCampaignAsync(const Model::SubmitCampaignRequest& request, const SubmitCampaignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitCampaignOutcomeCallable submitCampaignCallable(const Model::SubmitCampaignRequest& request) const; + SwitchToConferenceOutcome switchToConference(const Model::SwitchToConferenceRequest &request)const; + void switchToConferenceAsync(const Model::SwitchToConferenceRequest& request, const SwitchToConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchToConferenceOutcomeCallable switchToConferenceCallable(const Model::SwitchToConferenceRequest& request) const; TakeBreakOutcome takeBreak(const Model::TakeBreakRequest &request)const; void takeBreakAsync(const Model::TakeBreakRequest& request, const TakeBreakAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TakeBreakOutcomeCallable takeBreakCallable(const Model::TakeBreakRequest& request) const; diff --git a/ccc/include/alibabacloud/ccc/model/AddCasesRequest.h b/ccc/include/alibabacloud/ccc/model/AddCasesRequest.h new file mode 100644 index 000000000..75ff9b8c4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddCasesRequest.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDCASESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDCASESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT AddCasesRequest : public RpcServiceRequest { +public: + struct CaseList { + std::string customVariables; + std::string caller; + std::string phoneNumber; + std::string maskedCallee; + std::string referenceId; + }; + AddCasesRequest(); + ~AddCasesRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCampaignId() const; + void setCampaignId(const std::string &campaignId); + std::vector getCaseList() const; + void setCaseList(const std::vector &caseList); + +private: + std::string instanceId_; + std::string campaignId_; + std::vector caseList_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_ADDCASESREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/AddCasesResult.h b/ccc/include/alibabacloud/ccc/model/AddCasesResult.h new file mode 100644 index 000000000..0ca83cc4e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddCasesResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ADDCASESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDCASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddCasesResult : public ServiceResult + { + public: + + + AddCasesResult(); + explicit AddCasesResult(const std::string &payload); + ~AddCasesResult(); + std::string getMessage()const; + std::string getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDCASESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h index 799e37848..1c3569994 100644 --- a/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~AddSkillGroupsToUserResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getCode()const; protected: @@ -47,7 +46,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string code_; }; diff --git a/ccc/include/alibabacloud/ccc/model/AnswerCallResult.h b/ccc/include/alibabacloud/ccc/model/AnswerCallResult.h index dfe33970a..90ff1707c 100644 --- a/ccc/include/alibabacloud/ccc/model/AnswerCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/AnswerCallResult.h @@ -40,16 +40,15 @@ namespace AlibabaCloud { std::string destination; std::string channelState; - std::string releaseInitiator; - std::string callType; - std::string skillGroupId; - std::string associatedData; - std::string channelId; - long timestamp; std::string releaseReason; + std::string releaseInitiator; std::string originator; std::string userId; + std::string callType; std::string userExtension; + std::string skillGroupId; + std::string channelId; + long timestamp; std::string jobId; }; std::string instanceId; diff --git a/ccc/include/alibabacloud/ccc/model/AppendCasesRequest.h b/ccc/include/alibabacloud/ccc/model/AppendCasesRequest.h new file mode 100644 index 000000000..844c0b708 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AppendCasesRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_APPENDCASESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_APPENDCASESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT AppendCasesRequest : public RpcServiceRequest { +public: + struct Body { + std::string customVariables; + std::string caller; + std::string agentId; + std::string phoneNumber; + std::string maskedCallee; + std::string referenceId; + }; + AppendCasesRequest(); + ~AppendCasesRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCampaignId() const; + void setCampaignId(const std::string &campaignId); + std::vector getBody() const; + void setBody(const std::vector &body); + +private: + std::string instanceId_; + std::string campaignId_; + std::vector body_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_APPENDCASESREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/AppendCasesResult.h b/ccc/include/alibabacloud/ccc/model/AppendCasesResult.h new file mode 100644 index 000000000..40aea851d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AppendCasesResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_APPENDCASESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_APPENDCASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AppendCasesResult : public ServiceResult + { + public: + + + AppendCasesResult(); + explicit AppendCasesResult(const std::string &payload); + ~AppendCasesResult(); + std::string getMessage()const; + std::string getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_APPENDCASESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h b/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h index e3f6ecc4c..cc8d62225 100644 --- a/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/AssignUsersResult.h @@ -40,7 +40,6 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; std::string getData()const; - std::string getSync()const; std::string getWorkflowId()const; std::string getCode()const; @@ -50,7 +49,6 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string data_; - std::string sync_; std::string workflowId_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h b/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h index 940066037..8c5bb6894 100644 --- a/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/BargeInCallResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/BlindTransferRequest.h b/ccc/include/alibabacloud/ccc/model/BlindTransferRequest.h index 53fb73622..f2141115c 100644 --- a/ccc/include/alibabacloud/ccc/model/BlindTransferRequest.h +++ b/ccc/include/alibabacloud/ccc/model/BlindTransferRequest.h @@ -38,21 +38,30 @@ public: void setUserId(const std::string &userId); std::string getDeviceId() const; void setDeviceId(const std::string &deviceId); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); int getTimeoutSeconds() const; void setTimeoutSeconds(int timeoutSeconds); std::string getJobId() const; void setJobId(const std::string &jobId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getStrategyParams() const; + void setStrategyParams(const std::string &strategyParams); + int getCallPriority() const; + void setCallPriority(int callPriority); private: std::string transferee_; std::string transferor_; std::string userId_; std::string deviceId_; + std::string strategyName_; int timeoutSeconds_; std::string jobId_; std::string instanceId_; + std::string strategyParams_; + int callPriority_; }; } // namespace Model } // namespace CCC diff --git a/ccc/include/alibabacloud/ccc/model/BlindTransferResult.h b/ccc/include/alibabacloud/ccc/model/BlindTransferResult.h index b1ee81517..2c5b432c6 100644 --- a/ccc/include/alibabacloud/ccc/model/BlindTransferResult.h +++ b/ccc/include/alibabacloud/ccc/model/BlindTransferResult.h @@ -40,16 +40,15 @@ namespace AlibabaCloud { 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 releaseInitiator; std::string channelFlags; std::string originator; std::string userId; + std::string callType; std::string userExtension; + std::string channelId; + long timestamp; std::string jobId; }; std::string instanceId; diff --git a/ccc/include/alibabacloud/ccc/model/BridgeRtcCallRequest.h b/ccc/include/alibabacloud/ccc/model/BridgeRtcCallRequest.h new file mode 100644 index 000000000..ee34864f4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/BridgeRtcCallRequest.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_BRIDGERTCCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_BRIDGERTCCALLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT BridgeRtcCallRequest : public RpcServiceRequest { +public: + BridgeRtcCallRequest(); + ~BridgeRtcCallRequest(); + std::string getServiceProvider() const; + void setServiceProvider(const std::string &serviceProvider); + 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); + bool getVideoEnabled() const; + void setVideoEnabled(bool videoEnabled); + +private: + std::string serviceProvider_; + std::string callee_; + std::string userId_; + std::string deviceId_; + std::string tags_; + int timeoutSeconds_; + std::string caller_; + std::string instanceId_; + bool videoEnabled_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_BRIDGERTCCALLREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/ListSipTracesResult.h b/ccc/include/alibabacloud/ccc/model/BridgeRtcCallResult.h similarity index 64% rename from ccc/include/alibabacloud/ccc/model/ListSipTracesResult.h rename to ccc/include/alibabacloud/ccc/model/BridgeRtcCallResult.h index 66cd1e4b6..5446c2d39 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSipTracesResult.h +++ b/ccc/include/alibabacloud/ccc/model/BridgeRtcCallResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_BRIDGERTCCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_BRIDGERTCCALLRESULT_H_ #include #include @@ -29,27 +29,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListSipTracesResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT BridgeRtcCallResult : public ServiceResult { public: - struct CallTraces + struct Data { - std::string destinationNodeIp; - std::string callId; - std::string firstLine; - std::string payload; - std::string contactId; - long timestamp; - std::string sourceNodeIp; + std::string instanceId; + std::string tokenInfo; + std::string jobId; }; - ListSipTracesResult(); - explicit ListSipTracesResult(const std::string &payload); - ~ListSipTracesResult(); + BridgeRtcCallResult(); + explicit BridgeRtcCallResult(const std::string &payload); + ~BridgeRtcCallResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getData()const; + std::vector getParams()const; + Data getData()const; std::string getCode()const; protected: @@ -57,11 +54,12 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector data_; + std::vector params_; + Data data_; std::string code_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_BRIDGERTCCALLRESULT_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 index 7c7082cea..345d1eac3 100644 --- a/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferResult.h +++ b/ccc/include/alibabacloud/ccc/model/CancelAttendedTransferResult.h @@ -43,7 +43,6 @@ namespace AlibabaCloud std::string releaseInitiator; std::string callType; int index; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h index 9750fb673..526c04e71 100644 --- a/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ChangeWorkModeRequest.h @@ -30,6 +30,10 @@ class ALIBABACLOUD_CCC_EXPORT ChangeWorkModeRequest : public RpcServiceRequest { public: ChangeWorkModeRequest(); ~ChangeWorkModeRequest(); + std::string getSignedSkillGroupIdList() const; + void setSignedSkillGroupIdList(const std::string &signedSkillGroupIdList); + std::string getMobile() const; + void setMobile(const std::string &mobile); std::string getWorkMode() const; void setWorkMode(const std::string &workMode); std::string getUserId() const; @@ -40,6 +44,8 @@ public: void setInstanceId(const std::string &instanceId); private: + std::string signedSkillGroupIdList_; + std::string mobile_; std::string workMode_; std::string userId_; std::string deviceId_; diff --git a/ccc/include/alibabacloud/ccc/model/CoachCallResult.h b/ccc/include/alibabacloud/ccc/model/CoachCallResult.h index 38d9ebedf..6fa4a1733 100644 --- a/ccc/include/alibabacloud/ccc/model/CoachCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/CoachCallResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/CommitContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/CommitContactFlowRequest.h new file mode 100644 index 000000000..fce923296 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CommitContactFlowRequest.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_COMMITCONTACTFLOWREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT CommitContactFlowRequest : public RpcServiceRequest { +public: + CommitContactFlowRequest(); + ~CommitContactFlowRequest(); + std::string getContactFlowId() const; + void setContactFlowId(const std::string &contactFlowId); + std::string getDraftId() const; + void setDraftId(const std::string &draftId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDefinition() const; + void setDefinition(const std::string &definition); + +private: + std::string contactFlowId_; + std::string draftId_; + std::string description_; + std::string instanceId_; + std::string definition_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/CommitContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/CommitContactFlowResult.h new file mode 100644 index 000000000..c25381492 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CommitContactFlowResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CommitContactFlowResult : public ServiceResult + { + public: + + + CommitContactFlowResult(); + explicit CommitContactFlowResult(const std::string &payload); + ~CommitContactFlowResult(); + 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_COMMITCONTACTFLOWRESULT_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 index 1baf2b66b..451461545 100644 --- a/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h +++ b/ccc/include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/CreateAudioFileRequest.h b/ccc/include/alibabacloud/ccc/model/CreateAudioFileRequest.h new file mode 100644 index 000000000..c5d17e171 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateAudioFileRequest.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_CREATEAUDIOFILEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEAUDIOFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT CreateAudioFileRequest : public RpcServiceRequest { +public: + CreateAudioFileRequest(); + ~CreateAudioFileRequest(); + std::string getOssFileKey() const; + void setOssFileKey(const std::string &ossFileKey); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAudioFileName() const; + void setAudioFileName(const std::string &audioFileName); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string ossFileKey_; + std::string instanceId_; + std::string audioFileName_; + std::string name_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEAUDIOFILEREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/CreateAudioFileResult.h b/ccc/include/alibabacloud/ccc/model/CreateAudioFileResult.h new file mode 100644 index 000000000..33d01cfa5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateAudioFileResult.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_CREATEAUDIOFILERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEAUDIOFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateAudioFileResult : public ServiceResult + { + public: + + + CreateAudioFileResult(); + explicit CreateAudioFileResult(const std::string &payload); + ~CreateAudioFileResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEAUDIOFILERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateCampaignRequest.h b/ccc/include/alibabacloud/ccc/model/CreateCampaignRequest.h index 7f3913092..a96e6aa92 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateCampaignRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateCampaignRequest.h @@ -36,6 +36,8 @@ public: void setContactFlowId(const std::string &contactFlowId); bool getSimulation() const; void setSimulation(bool simulation); + bool getExecutingUntilTimeout() const; + void setExecutingUntilTimeout(bool executingUntilTimeout); std::string getEndTime() const; void setEndTime(const std::string &endTime); std::string getStartTime() const; @@ -65,6 +67,7 @@ private: std::string queueId_; std::string contactFlowId_; bool simulation_; + bool executingUntilTimeout_; std::string endTime_; std::string startTime_; long maxAttemptCount_; diff --git a/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h new file mode 100644 index 000000000..caa9b56da --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.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_CREATECONTACTFLOWREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT CreateContactFlowRequest : public RpcServiceRequest { +public: + CreateContactFlowRequest(); + ~CreateContactFlowRequest(); + 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 getName() const; + void setName(const std::string &name); + std::string getDefinition() const; + void setDefinition(const std::string &definition); + +private: + std::string description_; + std::string type_; + std::string instanceId_; + std::string name_; + std::string definition_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h new file mode 100644 index 000000000..a3a64c65e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.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_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: + + + CreateContactFlowResult(); + explicit CreateContactFlowResult(const std::string &payload); + ~CreateContactFlowResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h b/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h index 3b3099385..f670f3b33 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~CreateInstanceResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getData()const; std::string getCode()const; @@ -48,7 +47,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h index 4633720ad..84ab2a88e 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/CreateUserResult.h @@ -49,7 +49,6 @@ namespace AlibabaCloud ~CreateUserResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -58,7 +57,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/ListSipCallRecordsRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteAudioFileRequest.h similarity index 67% rename from ccc/include/alibabacloud/ccc/model/ListSipCallRecordsRequest.h rename to ccc/include/alibabacloud/ccc/model/DeleteAudioFileRequest.h index 436ffe0ce..092ccb8d1 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSipCallRecordsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DeleteAudioFileRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_DELETEAUDIOFILEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEAUDIOFILEREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace CCC { namespace Model { -class ALIBABACLOUD_CCC_EXPORT ListSipCallRecordsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CCC_EXPORT DeleteAudioFileRequest : public RpcServiceRequest { public: - ListSipCallRecordsRequest(); - ~ListSipCallRecordsRequest(); - std::string getContactIdList() const; - void setContactIdList(const std::string &contactIdList); + DeleteAudioFileRequest(); + ~DeleteAudioFileRequest(); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getAudioResourceId() const; + void setAudioResourceId(const std::string &audioResourceId); private: - std::string contactIdList_; std::string instanceId_; + std::string audioResourceId_; }; } // namespace Model } // namespace CCC } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_ +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEAUDIOFILEREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/DeleteAudioFileResult.h b/ccc/include/alibabacloud/ccc/model/DeleteAudioFileResult.h new file mode 100644 index 000000000..e99f02996 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteAudioFileResult.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_DELETEAUDIOFILERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEAUDIOFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteAudioFileResult : public ServiceResult + { + public: + + + DeleteAudioFileResult(); + explicit DeleteAudioFileResult(const std::string &payload); + ~DeleteAudioFileResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEAUDIOFILERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteContactFlowRequest.h new file mode 100644 index 000000000..f42d25be0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteContactFlowRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DELETECONTACTFLOWREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETECONTACTFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT DeleteContactFlowRequest : public RpcServiceRequest { +public: + DeleteContactFlowRequest(); + ~DeleteContactFlowRequest(); + std::string getContactFlowId() const; + void setContactFlowId(const std::string &contactFlowId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactFlowId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_DELETECONTACTFLOWREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/DeleteContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/DeleteContactFlowResult.h new file mode 100644 index 000000000..1280e9b30 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteContactFlowResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DELETECONTACTFLOWRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETECONTACTFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteContactFlowResult : public ServiceResult + { + public: + + + DeleteContactFlowResult(); + explicit DeleteContactFlowResult(const std::string &payload); + ~DeleteContactFlowResult(); + 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_DELETECONTACTFLOWRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DiscardEditingContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/DiscardEditingContactFlowRequest.h new file mode 100644 index 000000000..7d90a86e8 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DiscardEditingContactFlowRequest.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_DISCARDEDITINGCONTACTFLOWREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DISCARDEDITINGCONTACTFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT DiscardEditingContactFlowRequest : public RpcServiceRequest { +public: + DiscardEditingContactFlowRequest(); + ~DiscardEditingContactFlowRequest(); + std::string getContactFlowId() const; + void setContactFlowId(const std::string &contactFlowId); + std::string getDraftId() const; + void setDraftId(const std::string &draftId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactFlowId_; + std::string draftId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_DISCARDEDITINGCONTACTFLOWREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/DiscardEditingContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/DiscardEditingContactFlowResult.h new file mode 100644 index 000000000..231c4122c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DiscardEditingContactFlowResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DISCARDEDITINGCONTACTFLOWRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DISCARDEDITINGCONTACTFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DiscardEditingContactFlowResult : public ServiceResult + { + public: + + + DiscardEditingContactFlowResult(); + explicit DiscardEditingContactFlowResult(const std::string &payload); + ~DiscardEditingContactFlowResult(); + 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_DISCARDEDITINGCONTACTFLOWRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/EndConferenceRequest.h b/ccc/include/alibabacloud/ccc/model/EndConferenceRequest.h new file mode 100644 index 000000000..4f99c8bbf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/EndConferenceRequest.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_ENDCONFERENCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ENDCONFERENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT EndConferenceRequest : public RpcServiceRequest { +public: + EndConferenceRequest(); + ~EndConferenceRequest(); + 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_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_ENDCONFERENCEREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/EndConferenceResult.h b/ccc/include/alibabacloud/ccc/model/EndConferenceResult.h new file mode 100644 index 000000000..593ea1d4c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/EndConferenceResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_ENDCONFERENCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ENDCONFERENCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT EndConferenceResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseReason; + std::string releaseInitiator; + std::string originator; + std::string userId; + std::string callType; + std::string userExtension; + std::string channelId; + long timestamp; + std::string jobId; + }; + std::string instanceId; + std::string jobId; + std::vector channelContexts; + }; + struct UserContext + { + std::string extension; + std::string deviceState; + 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; + }; + + + EndConferenceResult(); + explicit EndConferenceResult(const std::string &payload); + ~EndConferenceResult(); + 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_ENDCONFERENCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ExportCustomCallTaggingResult.h b/ccc/include/alibabacloud/ccc/model/ExportCustomCallTaggingResult.h index 6b13d5e96..e678854bd 100644 --- a/ccc/include/alibabacloud/ccc/model/ExportCustomCallTaggingResult.h +++ b/ccc/include/alibabacloud/ccc/model/ExportCustomCallTaggingResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~ExportCustomCallTaggingResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getData()const; std::string getCode()const; @@ -48,7 +47,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/ExportDoNotCallNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ExportDoNotCallNumbersResult.h index 46247b0e2..37551df97 100644 --- a/ccc/include/alibabacloud/ccc/model/ExportDoNotCallNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ExportDoNotCallNumbersResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~ExportDoNotCallNumbersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getData()const; std::string getCode()const; @@ -48,7 +47,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/GetAudioFileDownloadUrlRequest.h b/ccc/include/alibabacloud/ccc/model/GetAudioFileDownloadUrlRequest.h new file mode 100644 index 000000000..b42434ce5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAudioFileDownloadUrlRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEDOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEDOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT GetAudioFileDownloadUrlRequest : public RpcServiceRequest { +public: + GetAudioFileDownloadUrlRequest(); + ~GetAudioFileDownloadUrlRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAudioResourceId() const; + void setAudioResourceId(const std::string &audioResourceId); + +private: + std::string instanceId_; + std::string audioResourceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEDOWNLOADURLREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/GetAudioFileDownloadUrlResult.h b/ccc/include/alibabacloud/ccc/model/GetAudioFileDownloadUrlResult.h new file mode 100644 index 000000000..843e494c6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAudioFileDownloadUrlResult.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_GETAUDIOFILEDOWNLOADURLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEDOWNLOADURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetAudioFileDownloadUrlResult : public ServiceResult + { + public: + + + GetAudioFileDownloadUrlResult(); + explicit GetAudioFileDownloadUrlResult(const std::string &payload); + ~GetAudioFileDownloadUrlResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEDOWNLOADURLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSipTracesRequest.h b/ccc/include/alibabacloud/ccc/model/GetAudioFileRequest.h similarity index 69% rename from ccc/include/alibabacloud/ccc/model/ListSipTracesRequest.h rename to ccc/include/alibabacloud/ccc/model/GetAudioFileRequest.h index 1d5bd88fd..81761be09 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSipTracesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/GetAudioFileRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace CCC { namespace Model { -class ALIBABACLOUD_CCC_EXPORT ListSipTracesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CCC_EXPORT GetAudioFileRequest : public RpcServiceRequest { public: - ListSipTracesRequest(); - ~ListSipTracesRequest(); - std::string getCallId() const; - void setCallId(const std::string &callId); + GetAudioFileRequest(); + ~GetAudioFileRequest(); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getAudioResourceId() const; + void setAudioResourceId(const std::string &audioResourceId); private: - std::string callId_; std::string instanceId_; + std::string audioResourceId_; }; } // namespace Model } // namespace CCC } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_ +#endif // !ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/ListSipCallRecordsResult.h b/ccc/include/alibabacloud/ccc/model/GetAudioFileResult.h similarity index 55% rename from ccc/include/alibabacloud/ccc/model/ListSipCallRecordsResult.h rename to ccc/include/alibabacloud/ccc/model/GetAudioFileResult.h index 21af1a5da..86201d3af 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSipCallRecordsResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetAudioFileResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_ -#define ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_ +#ifndef ALIBABACLOUD_CCC_MODEL_GETAUDIOFILERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAUDIOFILERESULT_H_ #include #include @@ -29,36 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CCC_EXPORT ListSipCallRecordsResult : public ServiceResult + class ALIBABACLOUD_CCC_EXPORT GetAudioFileResult : public ServiceResult { public: - struct SipCallRecords + struct Data { - std::string callee; - std::string lastResponseText; - std::string callerClusterId; - std::string calleeClusterId; + std::string createdTime; + std::string ossFileKey; std::string instanceId; - std::string callId; - int releaseReasonCode; - std::string contactId; - long ringTime; - long inviteTime; - std::string earlyMediaText; - long releasedTime; - std::string caller; - int lastResponseCode; - long establishedTime; - std::string earlyMediaUrl; + std::string audioFileName; + std::string updatedTime; + std::string audioResourceId; + std::string name; }; - ListSipCallRecordsResult(); - explicit ListSipCallRecordsResult(const std::string &payload); - ~ListSipCallRecordsResult(); + GetAudioFileResult(); + explicit GetAudioFileResult(const std::string &payload); + ~GetAudioFileResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getData()const; + Data getData()const; std::string getCode()const; protected: @@ -66,11 +57,11 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector data_; + Data data_; std::string code_; }; } } } -#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CCC_MODEL_GETAUDIOFILERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetAudioFileUploadParametersRequest.h b/ccc/include/alibabacloud/ccc/model/GetAudioFileUploadParametersRequest.h new file mode 100644 index 000000000..eafbf4da3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAudioFileUploadParametersRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEUPLOADPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEUPLOADPARAMETERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT GetAudioFileUploadParametersRequest : public RpcServiceRequest { +public: + GetAudioFileUploadParametersRequest(); + ~GetAudioFileUploadParametersRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAudioFileName() const; + void setAudioFileName(const std::string &audioFileName); + +private: + std::string instanceId_; + std::string audioFileName_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEUPLOADPARAMETERSREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/GetAudioFileUploadParametersResult.h b/ccc/include/alibabacloud/ccc/model/GetAudioFileUploadParametersResult.h new file mode 100644 index 000000000..45779f83d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAudioFileUploadParametersResult.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_GETAUDIOFILEUPLOADPARAMETERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAUDIOFILEUPLOADPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetAudioFileUploadParametersResult : public ServiceResult + { + public: + struct Data + { + std::string filePath; + std::string policy; + std::string accessKeyId; + std::string signature; + std::string host; + int expireTime; + }; + + + GetAudioFileUploadParametersResult(); + explicit GetAudioFileUploadParametersResult(const std::string &payload); + ~GetAudioFileUploadParametersResult(); + 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_GETAUDIOFILEUPLOADPARAMETERSRESULT_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 index 8205c31a8..ad27eefdf 100644 --- a/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetCallDetailRecordResult.h @@ -88,6 +88,7 @@ namespace AlibabaCloud int satisfaction; std::string contactId; std::string callingNumber; + std::string releaseReason; bool recordingReady; std::vector customerEvents; std::string skillGroupNames; diff --git a/ccc/include/alibabacloud/ccc/model/GetCampaignResult.h b/ccc/include/alibabacloud/ccc/model/GetCampaignResult.h index c9bf15fb6..a4df689d2 100644 --- a/ccc/include/alibabacloud/ccc/model/GetCampaignResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetCampaignResult.h @@ -63,7 +63,6 @@ namespace AlibabaCloud long getHttpStatusCode()const; Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -71,7 +70,6 @@ namespace AlibabaCloud long httpStatusCode_; Data data_; std::string code_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/GetContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/GetContactFlowRequest.h new file mode 100644 index 000000000..b6b459523 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetContactFlowRequest.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_GETCONTACTFLOWREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONTACTFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT GetContactFlowRequest : public RpcServiceRequest { +public: + GetContactFlowRequest(); + ~GetContactFlowRequest(); + std::string getContactFlowId() const; + void setContactFlowId(const std::string &contactFlowId); + std::string getDraftId() const; + void setDraftId(const std::string &draftId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactFlowId_; + std::string draftId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONTACTFLOWREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/GetContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/GetContactFlowResult.h new file mode 100644 index 000000000..1285239f5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetContactFlowResult.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_GETCONTACTFLOWRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONTACTFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetContactFlowResult : public ServiceResult + { + public: + struct Data + { + std::string type; + std::string description; + std::string createdTime; + std::string instanceId; + std::string contactFlowId; + std::string definition; + bool published; + std::string draftId; + std::string updatedTime; + std::string editor; + std::string name; + }; + + + GetContactFlowResult(); + explicit GetContactFlowResult(const std::string &payload); + ~GetContactFlowResult(); + 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_GETCONTACTFLOWRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationDetailRequest.h b/ccc/include/alibabacloud/ccc/model/GetConversationDetailRequest.h new file mode 100644 index 000000000..cd05dc9ff --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetConversationDetailRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT GetConversationDetailRequest : public RpcServiceRequest { +public: + GetConversationDetailRequest(); + ~GetConversationDetailRequest(); + std::string getContactId() const; + void setContactId(const std::string &contactId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/GetConversationDetailResult.h b/ccc/include/alibabacloud/ccc/model/GetConversationDetailResult.h new file mode 100644 index 000000000..30f162c19 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetConversationDetailResult.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_GETCONVERSATIONDETAILRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetConversationDetailResult : public ServiceResult + { + public: + struct Phrase + { + std::string role; + std::string words; + int begin; + int end; + std::string identity; + }; + + + GetConversationDetailResult(); + explicit GetConversationDetailResult(const std::string &payload); + ~GetConversationDetailResult(); + std::vector getPhrases()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector phrases_; + std::string message_; + int httpStatusCode_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetDataChannelCredentialsRequest.h b/ccc/include/alibabacloud/ccc/model/GetDataChannelCredentialsRequest.h new file mode 100644 index 000000000..2c0da7328 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetDataChannelCredentialsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETDATACHANNELCREDENTIALSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETDATACHANNELCREDENTIALSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT GetDataChannelCredentialsRequest : public RpcServiceRequest { +public: + GetDataChannelCredentialsRequest(); + ~GetDataChannelCredentialsRequest(); + std::string getDeviceId() const; + void setDeviceId(const std::string &deviceId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string deviceId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_GETDATACHANNELCREDENTIALSREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/GetDataChannelCredentialsResult.h b/ccc/include/alibabacloud/ccc/model/GetDataChannelCredentialsResult.h new file mode 100644 index 000000000..97e76980a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetDataChannelCredentialsResult.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_GETDATACHANNELCREDENTIALSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETDATACHANNELCREDENTIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetDataChannelCredentialsResult : public ServiceResult + { + public: + struct Data + { + std::string userName; + std::string endpoint; + std::string deviceId; + long expiredTime; + std::string clientId; + std::string topic; + std::string password; + }; + + + GetDataChannelCredentialsResult(); + explicit GetDataChannelCredentialsResult(const std::string &payload); + ~GetDataChannelCredentialsResult(); + 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_GETDATACHANNELCREDENTIALSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetEarlyMediaRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/GetEarlyMediaRecordingRequest.h new file mode 100644 index 000000000..16ec9768e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetEarlyMediaRecordingRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETEARLYMEDIARECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETEARLYMEDIARECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT GetEarlyMediaRecordingRequest : public RpcServiceRequest { +public: + GetEarlyMediaRecordingRequest(); + ~GetEarlyMediaRecordingRequest(); + std::string getContactId() const; + void setContactId(const std::string &contactId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_GETEARLYMEDIARECORDINGREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/GetEarlyMediaRecordingResult.h b/ccc/include/alibabacloud/ccc/model/GetEarlyMediaRecordingResult.h new file mode 100644 index 000000000..8bf61c6c9 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetEarlyMediaRecordingResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETEARLYMEDIARECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETEARLYMEDIARECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetEarlyMediaRecordingResult : public ServiceResult + { + public: + struct Data + { + std::string fileUrl; + std::string fileName; + }; + + + GetEarlyMediaRecordingResult(); + explicit GetEarlyMediaRecordingResult(const std::string &payload); + ~GetEarlyMediaRecordingResult(); + 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_GETEARLYMEDIARECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h index 0db9455b4..2b64f3e3f 100644 --- a/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h @@ -86,7 +86,6 @@ namespace AlibabaCloud ~GetInstanceResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -95,7 +94,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h index 0925f0ca5..b5f7876c5 100644 --- a/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetMonoRecordingResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string fileUrl; std::string fileName; + long duration; }; diff --git a/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsResult.h b/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsResult.h index aa06c9bcf..9a9063cbc 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetTurnCredentialsResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud ~GetTurnCredentialsResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -53,7 +52,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/GetTurnServerListResult.h b/ccc/include/alibabacloud/ccc/model/GetTurnServerListResult.h index e4b8a72db..6ec75e6a1 100644 --- a/ccc/include/alibabacloud/ccc/model/GetTurnServerListResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetTurnServerListResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~GetTurnServerListResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getData()const; std::string getCode()const; @@ -48,7 +47,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/GetUploadAudioDataParamsRequest.h b/ccc/include/alibabacloud/ccc/model/GetUploadAudioDataParamsRequest.h new file mode 100644 index 000000000..ad717b916 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetUploadAudioDataParamsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETUPLOADAUDIODATAPARAMSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETUPLOADAUDIODATAPARAMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT GetUploadAudioDataParamsRequest : public RpcServiceRequest { +public: + GetUploadAudioDataParamsRequest(); + ~GetUploadAudioDataParamsRequest(); + std::string getContactId() const; + void setContactId(const std::string &contactId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_GETUPLOADAUDIODATAPARAMSREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/GetUploadAudioDataParamsResult.h b/ccc/include/alibabacloud/ccc/model/GetUploadAudioDataParamsResult.h new file mode 100644 index 000000000..779151bf3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetUploadAudioDataParamsResult.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_GETUPLOADAUDIODATAPARAMSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETUPLOADAUDIODATAPARAMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetUploadAudioDataParamsResult : public ServiceResult + { + public: + struct Data + { + std::string paramsStr; + }; + + + GetUploadAudioDataParamsResult(); + explicit GetUploadAudioDataParamsResult(const std::string &payload); + ~GetUploadAudioDataParamsResult(); + 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_GETUPLOADAUDIODATAPARAMSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetUserResult.h b/ccc/include/alibabacloud/ccc/model/GetUserResult.h index 8373333f5..4f8806ed6 100644 --- a/ccc/include/alibabacloud/ccc/model/GetUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetUserResult.h @@ -56,7 +56,6 @@ namespace AlibabaCloud ~GetUserResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -65,7 +64,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/GetVoicemailRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/GetVoicemailRecordingRequest.h new file mode 100644 index 000000000..49e31d825 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetVoicemailRecordingRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETVOICEMAILRECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETVOICEMAILRECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT GetVoicemailRecordingRequest : public RpcServiceRequest { +public: + GetVoicemailRecordingRequest(); + ~GetVoicemailRecordingRequest(); + std::string getContactId() const; + void setContactId(const std::string &contactId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_GETVOICEMAILRECORDINGREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/GetVoicemailRecordingResult.h b/ccc/include/alibabacloud/ccc/model/GetVoicemailRecordingResult.h new file mode 100644 index 000000000..6fb4c87ca --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetVoicemailRecordingResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETVOICEMAILRECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETVOICEMAILRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetVoicemailRecordingResult : public ServiceResult + { + public: + struct Data + { + std::string fileUrl; + std::string fileName; + }; + + + GetVoicemailRecordingResult(); + explicit GetVoicemailRecordingResult(const std::string &payload); + ~GetVoicemailRecordingResult(); + 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_GETVOICEMAILRECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/HoldCallResult.h b/ccc/include/alibabacloud/ccc/model/HoldCallResult.h index 3067d3e0b..2d30a0024 100644 --- a/ccc/include/alibabacloud/ccc/model/HoldCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/HoldCallResult.h @@ -40,16 +40,15 @@ namespace AlibabaCloud { std::string destination; std::string channelState; - std::string releaseInitiator; - std::string callType; - std::string skillGroupId; - std::string associatedData; - std::string channelId; - long timestamp; std::string releaseReason; + std::string releaseInitiator; std::string originator; std::string userId; + std::string callType; std::string userExtension; + std::string skillGroupId; + std::string channelId; + long timestamp; std::string jobId; }; std::string instanceId; diff --git a/ccc/include/alibabacloud/ccc/model/ImportDoNotCallNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ImportDoNotCallNumbersResult.h index fca99a266..20b897131 100644 --- a/ccc/include/alibabacloud/ccc/model/ImportDoNotCallNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ImportDoNotCallNumbersResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~ImportDoNotCallNumbersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getCode()const; protected: @@ -47,7 +46,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string code_; }; diff --git a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h index c2a2e0294..eec60cc65 100644 --- a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h +++ b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferRequest.h @@ -38,21 +38,30 @@ public: void setUserId(const std::string &userId); std::string getDeviceId() const; void setDeviceId(const std::string &deviceId); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); int getTimeoutSeconds() const; void setTimeoutSeconds(int timeoutSeconds); std::string getJobId() const; void setJobId(const std::string &jobId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getStrategyParams() const; + void setStrategyParams(const std::string &strategyParams); + int getCallPriority() const; + void setCallPriority(int callPriority); private: std::string transferee_; std::string transferor_; std::string userId_; std::string deviceId_; + std::string strategyName_; int timeoutSeconds_; std::string jobId_; std::string instanceId_; + std::string strategyParams_; + int callPriority_; }; } // namespace Model } // namespace CCC diff --git a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h index bc52882d9..d472bf96d 100644 --- a/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h +++ b/ccc/include/alibabacloud/ccc/model/InitiateAttendedTransferResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/InterceptCallResult.h b/ccc/include/alibabacloud/ccc/model/InterceptCallResult.h index 2f687f6b9..4f7afe572 100644 --- a/ccc/include/alibabacloud/ccc/model/InterceptCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/InterceptCallResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h index 798fd20b4..aee96ab3e 100644 --- a/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h +++ b/ccc/include/alibabacloud/ccc/model/LaunchAuthenticationResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h b/ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h index 19370b2e2..e0733c23e 100644 --- a/ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h +++ b/ccc/include/alibabacloud/ccc/model/LaunchSurveyResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h index ca3043034..f6cb2d12f 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h @@ -44,6 +44,8 @@ public: void setPageSize(int pageSize); std::string getState() const; void setState(const std::string &state); + bool getExcludeOfflineUsers() const; + void setExcludeOfflineUsers(bool excludeOfflineUsers); private: std::string agentIds_; @@ -53,6 +55,7 @@ private: std::string skillGroupId_; int pageSize_; std::string state_; + bool excludeOfflineUsers_; }; } // namespace Model } // namespace CCC diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h index 9cb11843a..57d381305 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h @@ -40,6 +40,8 @@ namespace AlibabaCloud std::string stateDuration; std::string instanceId; std::string state; + std::string breakCode; + bool outboundScenario; std::string dn; std::string agentId; std::string agentName; diff --git a/ccc/include/alibabacloud/ccc/model/ListAttemptsRequest.h b/ccc/include/alibabacloud/ccc/model/ListAttemptsRequest.h index d49281255..574439e14 100644 --- a/ccc/include/alibabacloud/ccc/model/ListAttemptsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListAttemptsRequest.h @@ -34,6 +34,8 @@ public: void setContactId(const std::string &contactId); std::string getCampaignId() const; void setCampaignId(const std::string &campaignId); + std::string getCriteria() const; + void setCriteria(const std::string &criteria); std::string getCallee() const; void setCallee(const std::string &callee); long getStartTime() const; @@ -60,6 +62,7 @@ public: private: std::string contactId_; std::string campaignId_; + std::string criteria_; std::string callee_; long startTime_; int pageNumber_; diff --git a/ccc/include/alibabacloud/ccc/model/ListAudioFilesRequest.h b/ccc/include/alibabacloud/ccc/model/ListAudioFilesRequest.h new file mode 100644 index 000000000..3e990eb65 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAudioFilesRequest.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_LISTAUDIOFILESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAUDIOFILESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT ListAudioFilesRequest : public RpcServiceRequest { +public: + ListAudioFilesRequest(); + ~ListAudioFilesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAUDIOFILESREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/ListAudioFilesResult.h b/ccc/include/alibabacloud/ccc/model/ListAudioFilesResult.h new file mode 100644 index 000000000..5b100dd91 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAudioFilesResult.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_LISTAUDIOFILESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAUDIOFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAudioFilesResult : public ServiceResult + { + public: + struct Data + { + struct ContactFlow + { + std::string createdTime; + std::string ossFileKey; + std::string instanceId; + std::string audioFileName; + std::string updatedTime; + std::string audioResourceId; + std::string name; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListAudioFilesResult(); + explicit ListAudioFilesResult(const std::string &payload); + ~ListAudioFilesResult(); + 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_LISTAUDIOFILESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h index de2fe4fe8..98d025e39 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h @@ -43,6 +43,8 @@ namespace AlibabaCloud int satisfactionIndex; std::string contactId; std::string callingNumber; + long talkTime; + std::string releaseReason; bool recordingReady; std::string skillGroupNames; bool satisfactionSurveyOffered; @@ -64,6 +66,7 @@ namespace AlibabaCloud std::string agentIds; long waitTime; std::string callerLocation; + long dialingTime; std::string agentNames; long recordingDuration; }; diff --git a/ccc/include/alibabacloud/ccc/model/ListCasesRequest.h b/ccc/include/alibabacloud/ccc/model/ListCasesRequest.h index 9796906a4..dce3011de 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCasesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListCasesRequest.h @@ -38,6 +38,8 @@ public: void setPhoneNumber(const std::string &phoneNumber); long getPageSize() const; void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); long getPageNumber() const; void setPageNumber(long pageNumber); @@ -46,6 +48,7 @@ private: std::string campaignId_; std::string phoneNumber_; long pageSize_; + std::string state_; long pageNumber_; }; } // namespace Model diff --git a/ccc/include/alibabacloud/ccc/model/ListCasesResult.h b/ccc/include/alibabacloud/ccc/model/ListCasesResult.h index 9536bb8e2..b4afe390e 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCasesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListCasesResult.h @@ -36,7 +36,6 @@ namespace AlibabaCloud { struct ListItem { - std::string expandInfo; long attemptCount; std::string abandonType; std::string state; @@ -59,7 +58,6 @@ namespace AlibabaCloud long getHttpStatusCode()const; Data getData()const; std::string getCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); @@ -68,7 +66,6 @@ namespace AlibabaCloud long httpStatusCode_; Data data_; std::string code_; - bool success_; }; } diff --git a/ccc/include/alibabacloud/ccc/model/ListDoNotCallNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListDoNotCallNumbersResult.h index 166d2e2b7..b9b7a32c4 100644 --- a/ccc/include/alibabacloud/ccc/model/ListDoNotCallNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListDoNotCallNumbersResult.h @@ -54,7 +54,6 @@ namespace AlibabaCloud ~ListDoNotCallNumbersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -63,7 +62,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h b/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h index e586eb63e..4a2c6eb5d 100644 --- a/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h @@ -122,6 +122,8 @@ namespace AlibabaCloud }; Outbound outbound; Overall overall; + std::string skillGroupIds; + std::string skillGroupNames; std::string displayId; std::string agentName; std::string agentId; diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h index 3bc43a212..25c79098e 100644 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h @@ -93,7 +93,6 @@ namespace AlibabaCloud ~ListInstancesOfUserResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -102,7 +101,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesResult.h b/ccc/include/alibabacloud/ccc/model/ListInstancesResult.h index c2b8fee89..288593baa 100644 --- a/ccc/include/alibabacloud/ccc/model/ListInstancesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesResult.h @@ -76,7 +76,6 @@ namespace AlibabaCloud ~ListInstancesResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -85,7 +84,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/ListLegacyAgentEventLogsRequest.h b/ccc/include/alibabacloud/ccc/model/ListLegacyAgentEventLogsRequest.h new file mode 100644 index 000000000..74b682d71 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListLegacyAgentEventLogsRequest.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_LISTLEGACYAGENTEVENTLOGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTLEGACYAGENTEVENTLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT ListLegacyAgentEventLogsRequest : public RpcServiceRequest { +public: + ListLegacyAgentEventLogsRequest(); + ~ListLegacyAgentEventLogsRequest(); + std::string getAgentId() const; + void setAgentId(const std::string &agentId); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string agentId_; + long endTime_; + long startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_LISTLEGACYAGENTEVENTLOGSREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/ListLegacyAgentEventLogsResult.h b/ccc/include/alibabacloud/ccc/model/ListLegacyAgentEventLogsResult.h new file mode 100644 index 000000000..0ea83740d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListLegacyAgentEventLogsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTLEGACYAGENTEVENTLOGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTLEGACYAGENTEVENTLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListLegacyAgentEventLogsResult : public ServiceResult + { + public: + struct Data + { + struct AgentEventLog + { + std::string connId; + std::string transferNumber; + std::string callDir; + std::string agentDropCall; + std::string callId; + std::string callType; + bool outboundScenario; + std::string statisticDate; + std::string callMode; + std::string calleeId; + std::string targetSelect; + std::string tenantId; + std::string phoneNo; + std::string groupNo; + std::string event; + std::string agentNo; + std::string callerId; + std::string targetRequest; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListLegacyAgentEventLogsResult(); + explicit ListLegacyAgentEventLogsResult(const std::string &payload); + ~ListLegacyAgentEventLogsResult(); + 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_LISTLEGACYAGENTEVENTLOGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListLegacyAgentStatusLogsRequest.h b/ccc/include/alibabacloud/ccc/model/ListLegacyAgentStatusLogsRequest.h new file mode 100644 index 000000000..2c46e96e4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListLegacyAgentStatusLogsRequest.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_LISTLEGACYAGENTSTATUSLOGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTLEGACYAGENTSTATUSLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT ListLegacyAgentStatusLogsRequest : public RpcServiceRequest { +public: + ListLegacyAgentStatusLogsRequest(); + ~ListLegacyAgentStatusLogsRequest(); + std::string getAgentId() const; + void setAgentId(const std::string &agentId); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string agentId_; + long endTime_; + long startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_LISTLEGACYAGENTSTATUSLOGSREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/ListLegacyAgentStatusLogsResult.h b/ccc/include/alibabacloud/ccc/model/ListLegacyAgentStatusLogsResult.h new file mode 100644 index 000000000..e1f2c1bad --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListLegacyAgentStatusLogsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTLEGACYAGENTSTATUSLOGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTLEGACYAGENTSTATUSLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListLegacyAgentStatusLogsResult : public ServiceResult + { + public: + struct Data + { + struct AgentStatusLog + { + std::string callDir; + std::string callType; + std::string statisticDate; + std::string calleeId; + std::string monitedAgentPhoneNo; + std::string monitedAgentNo; + std::string extend1; + std::string phoneNo; + std::string extend3; + std::string extend2; + std::string targetRequest; + std::string extend4; + std::string status; + int statisticTime; + std::string connId; + std::string transferNumber; + std::string agentDropCall; + std::string callId; + bool outboundScenario; + std::string aliHangupCause; + std::string transferNo; + std::string targetSelect; + std::string tenantId; + std::string groupNo; + std::string agentNo; + std::string callerId; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListLegacyAgentStatusLogsResult(); + explicit ListLegacyAgentStatusLogsResult(const std::string &payload); + ~ListLegacyAgentStatusLogsResult(); + 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_LISTLEGACYAGENTSTATUSLOGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListLegacyAppraiseLogsRequest.h b/ccc/include/alibabacloud/ccc/model/ListLegacyAppraiseLogsRequest.h new file mode 100644 index 000000000..8794d2d7c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListLegacyAppraiseLogsRequest.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_LISTLEGACYAPPRAISELOGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTLEGACYAPPRAISELOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT ListLegacyAppraiseLogsRequest : public RpcServiceRequest { +public: + ListLegacyAppraiseLogsRequest(); + ~ListLegacyAppraiseLogsRequest(); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + long endTime_; + long startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_LISTLEGACYAPPRAISELOGSREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/ListLegacyAppraiseLogsResult.h b/ccc/include/alibabacloud/ccc/model/ListLegacyAppraiseLogsResult.h new file mode 100644 index 000000000..d3b304f5b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListLegacyAppraiseLogsResult.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_LISTLEGACYAPPRAISELOGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTLEGACYAPPRAISELOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListLegacyAppraiseLogsResult : public ServiceResult + { + public: + struct Data + { + struct AgentStatusLog + { + std::string acid; + std::string type; + std::string keyMarkRelation; + std::string contactType; + std::string instanceId; + std::string parentNote; + std::string note; + std::string ramId; + std::string statisticDate; + long id; + std::string skillGroupId; + std::string pressKey; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListLegacyAppraiseLogsResult(); + explicit ListLegacyAppraiseLogsResult(const std::string &payload); + ~ListLegacyAppraiseLogsResult(); + 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_LISTLEGACYAPPRAISELOGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListLegacyQueueEventLogsRequest.h b/ccc/include/alibabacloud/ccc/model/ListLegacyQueueEventLogsRequest.h new file mode 100644 index 000000000..92579041f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListLegacyQueueEventLogsRequest.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_LISTLEGACYQUEUEEVENTLOGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTLEGACYQUEUEEVENTLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT ListLegacyQueueEventLogsRequest : public RpcServiceRequest { +public: + ListLegacyQueueEventLogsRequest(); + ~ListLegacyQueueEventLogsRequest(); + long getEndTime() const; + void setEndTime(long endTime); + 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 getSkillGroupId() const; + void setSkillGroupId(const std::string &skillGroupId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + long endTime_; + long startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string instanceId_; + std::string skillGroupId_; + int pageSize_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_LISTLEGACYQUEUEEVENTLOGSREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/ListLegacyQueueEventLogsResult.h b/ccc/include/alibabacloud/ccc/model/ListLegacyQueueEventLogsResult.h new file mode 100644 index 000000000..1ebc64bd1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListLegacyQueueEventLogsResult.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_LISTLEGACYQUEUEEVENTLOGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTLEGACYQUEUEEVENTLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListLegacyQueueEventLogsResult : public ServiceResult + { + public: + struct Data + { + struct QueueEventLog + { + std::string acid; + std::string tenantId; + std::string dnis; + std::string cause; + std::string statisticDate; + long queueTime; + long answerTime; + std::string vq; + long id; + std::string ani; + std::string answerPhone; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListLegacyQueueEventLogsResult(); + explicit ListLegacyQueueEventLogsResult(const std::string &payload); + ~ListLegacyQueueEventLogsResult(); + 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_LISTLEGACYQUEUEEVENTLOGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h index 481fbf2fc..9b521c958 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h @@ -68,8 +68,6 @@ namespace AlibabaCloud explicit ListPhoneNumbersResult(const std::string &payload); ~ListPhoneNumbersResult(); std::string getMessage()const; - int getPageSize()const; - int getPageNumber()const; int getHttpStatusCode()const; Data getData()const; std::string getCode()const; @@ -78,8 +76,6 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - int pageSize_; - int pageNumber_; int httpStatusCode_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/ListRamUsersResult.h b/ccc/include/alibabacloud/ccc/model/ListRamUsersResult.h index c5b393d95..320e86eda 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRamUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRamUsersResult.h @@ -56,7 +56,6 @@ namespace AlibabaCloud ~ListRamUsersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -65,7 +64,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h index ddb8bd20f..a39c01ee7 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesRequest.h @@ -30,10 +30,18 @@ class ALIBABACLOUD_CCC_EXPORT ListRealtimeAgentStatesRequest : public RpcService public: ListRealtimeAgentStatesRequest(); ~ListRealtimeAgentStatesRequest(); + std::string getCallTypeList() const; + void setCallTypeList(const std::string &callTypeList); + std::string getQuery() const; + void setQuery(const std::string &query); + bool getOutboundScenario() const; + void setOutboundScenario(bool outboundScenario); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getWorkModeList() const; + void setWorkModeList(const std::string &workModeList); std::string getAgentIdList() const; void setAgentIdList(const std::string &agentIdList); std::string getSkillGroupId() const; @@ -46,8 +54,12 @@ public: void setStateList(const std::string &stateList); private: + std::string callTypeList_; + std::string query_; + bool outboundScenario_; int pageNumber_; std::string instanceId_; + std::string workModeList_; std::string agentIdList_; std::string skillGroupId_; std::string agentName_; diff --git a/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h index 68b941239..086573c3e 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRealtimeAgentStatesResult.h @@ -36,15 +36,20 @@ namespace AlibabaCloud { struct AgentState { - std::string extension; - std::string counterParty; long stateTime; std::string instanceId; - std::string state; std::string stateCode; + std::string callType; + bool outboundScenario; + long duration; + std::string mobile; + std::string extension; + std::string counterParty; + std::string state; std::string agentId; std::string agentName; std::vector skillGroupNameList; + std::string workMode; std::vector skillGroupIdList; }; int totalCount; diff --git a/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h index d1e3cfbc6..cd122f20c 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRealtimeSkillGroupStatesResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud long waitingCalls; std::string skillGroupId; long workingAgents; + long outboundScenarioReadyAgents; }; int totalCount; int pageSize; diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h index b6ea313a4..ce5c01166 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h @@ -37,15 +37,22 @@ namespace AlibabaCloud struct RealTimeSkillGroupState { long breakingAgents; - long talkingAgents; - std::string skillGroupName; + long waitingCallsLevel20; std::string instanceId; - long loggedInAgents; + long waitingCallsLevel10; long readyAgents; - long waitingCalls; - long longestCall; + long waitingCallsLevel30; std::string skillGroupId; long workingAgents; + long inboundTalkingAgents; + long outboundScenarioReadyAgents; + long averageWaitingTime; + long talkingAgents; + std::string skillGroupName; + long loggedInAgents; + long waitingCalls; + long longestCall; + long outboundTalkingAgents; }; int totalCount; int pageSize; diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h index 96fb2922b..98b94b304 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h @@ -69,8 +69,10 @@ namespace AlibabaCloud float handleRate; long callsServiceLevel30; long totalTalkTime; + long callsServiceLevel10; long overFlowInQueueOfQueueCount; std::string maxTalkTime; + long callsAttendedTransferOut; long averageTalkTime; long answeredByAgentOfQueueWaitTimeDuration; long satisfactionSurveysOffered; @@ -82,6 +84,7 @@ namespace AlibabaCloud long averageRingTime; long answeredByAgentOfQueueMaxWaitTimeDuration; long averageWorkTime; + long callsBlindTransferOut; long maxWorkTime; long inComingQueueOfQueueCount; }; @@ -94,6 +97,7 @@ namespace AlibabaCloud long satisfactionSurveysResponded; long averageDialingTime; long callsAnswered; + std::string callsServiceLevel30; long totalTalkTime; long callsDialed; long maxDialingTime; diff --git a/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersRequest.h index 5d5d55d48..bcb9f9548 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersRequest.h @@ -34,15 +34,12 @@ public: 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: int pageNumber_; std::string searchPattern_; - std::string instanceId_; int pageSize_; }; } // namespace Model diff --git a/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersResult.h index 617d2499a..ab40243f3 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUnassignedNumbersResult.h @@ -36,8 +36,6 @@ namespace AlibabaCloud { struct PhoneNumber { - bool active; - bool usage; std::string number; std::string city; std::string province; diff --git a/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h index 1c9cc9efa..4557da112 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string skillGroupName; std::string userId; std::string displayName; + std::string ramId; std::string skillGroupId; std::string roleId; }; diff --git a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h index 48eb14dc6..71e19f4e4 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h @@ -80,7 +80,6 @@ namespace AlibabaCloud ~ListUsersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; Data getData()const; std::string getCode()const; @@ -89,7 +88,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; Data data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/MakeCallResult.h b/ccc/include/alibabacloud/ccc/model/MakeCallResult.h index b1d04c39e..6c4c46d17 100644 --- a/ccc/include/alibabacloud/ccc/model/MakeCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/MakeCallResult.h @@ -40,16 +40,15 @@ namespace AlibabaCloud { 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 releaseInitiator; std::string channelFlags; std::string originator; std::string userId; + std::string callType; std::string userExtension; + std::string channelId; + long timestamp; std::string jobId; }; std::string instanceId; diff --git a/ccc/include/alibabacloud/ccc/model/ModifyAudioFileRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyAudioFileRequest.h new file mode 100644 index 000000000..365df1bc3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyAudioFileRequest.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_MODIFYAUDIOFILEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYAUDIOFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT ModifyAudioFileRequest : public RpcServiceRequest { +public: + ModifyAudioFileRequest(); + ~ModifyAudioFileRequest(); + std::string getOssFileKey() const; + void setOssFileKey(const std::string &ossFileKey); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAudioFileName() const; + void setAudioFileName(const std::string &audioFileName); + std::string getName() const; + void setName(const std::string &name); + std::string getAudioResourceId() const; + void setAudioResourceId(const std::string &audioResourceId); + +private: + std::string ossFileKey_; + std::string instanceId_; + std::string audioFileName_; + std::string name_; + std::string audioResourceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYAUDIOFILEREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/ModifyAudioFileResult.h b/ccc/include/alibabacloud/ccc/model/ModifyAudioFileResult.h new file mode 100644 index 000000000..4232c08e6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyAudioFileResult.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_MODIFYAUDIOFILERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYAUDIOFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyAudioFileResult : public ServiceResult + { + public: + + + ModifyAudioFileResult(); + explicit ModifyAudioFileResult(const std::string &payload); + ~ModifyAudioFileResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYAUDIOFILERESULT_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 index b94881f68..95c4e43f0 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyInstanceResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyInstanceResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~ModifyInstanceResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getData()const; std::string getCode()const; @@ -48,7 +47,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h index f567f4e12..1aa275c74 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillLevelsOfUserResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~ModifySkillLevelsOfUserResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getCode()const; protected: @@ -47,7 +46,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string code_; }; diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h index 909a05c8c..5680ffed0 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h @@ -40,6 +40,10 @@ public: void setUserId(const std::string &userId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getDisplayName() const; + void setDisplayName(const std::string &displayName); + bool getForce() const; + void setForce(bool force); std::string getDisplayId() const; void setDisplayId(const std::string &displayId); @@ -49,6 +53,8 @@ private: std::string workMode_; std::string userId_; std::string instanceId_; + std::string displayName_; + bool force_; std::string displayId_; }; } // namespace Model diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h index 5c612e529..67a34e856 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~ModifyUserResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getData()const; std::string getCode()const; @@ -48,7 +47,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h b/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h index 1ca8e7761..04545f1ed 100644 --- a/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/MonitorCallResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/MuteCallResult.h b/ccc/include/alibabacloud/ccc/model/MuteCallResult.h index 3c8992dc1..548a97ab5 100644 --- a/ccc/include/alibabacloud/ccc/model/MuteCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/MuteCallResult.h @@ -43,7 +43,6 @@ namespace AlibabaCloud std::string releaseInitiator; std::string callType; int index; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h b/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h index 58c3b9a8c..dd4e7e4c7 100644 --- a/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h +++ b/ccc/include/alibabacloud/ccc/model/PollUserStatusResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string channelVariables; @@ -55,6 +54,7 @@ namespace AlibabaCloud std::string userExtension; std::string jobId; }; + std::string callVariables; std::string instanceId; std::string callType; std::string jobId; diff --git a/ccc/include/alibabacloud/ccc/model/PublishContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/PublishContactFlowRequest.h new file mode 100644 index 000000000..a171287b0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishContactFlowRequest.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_PUBLISHCONTACTFLOWREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT PublishContactFlowRequest : public RpcServiceRequest { +public: + PublishContactFlowRequest(); + ~PublishContactFlowRequest(); + std::string getContactFlowId() const; + void setContactFlowId(const std::string &contactFlowId); + std::string getDraftId() const; + void setDraftId(const std::string &draftId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactFlowId_; + std::string draftId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/PublishContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/PublishContactFlowResult.h new file mode 100644 index 000000000..75fbc119a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishContactFlowResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishContactFlowResult : public ServiceResult + { + public: + + + PublishContactFlowResult(); + explicit PublishContactFlowResult(const std::string &payload); + ~PublishContactFlowResult(); + 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_PUBLISHCONTACTFLOWRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RedialCallRequest.h b/ccc/include/alibabacloud/ccc/model/RedialCallRequest.h new file mode 100644 index 000000000..00c09f5f2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RedialCallRequest.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_REDIALCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REDIALCALLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT RedialCallRequest : public RpcServiceRequest { +public: + RedialCallRequest(); + ~RedialCallRequest(); + 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 getJobId() const; + void setJobId(const std::string &jobId); + std::string getCaller() const; + void setCaller(const std::string &caller); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string callee_; + std::string userId_; + std::string deviceId_; + std::string tags_; + int timeoutSeconds_; + std::string jobId_; + std::string caller_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_REDIALCALLREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/RedialCallResult.h b/ccc/include/alibabacloud/ccc/model/RedialCallResult.h new file mode 100644 index 000000000..eab8a281e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RedialCallResult.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_REDIALCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REDIALCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RedialCallResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseReason; + std::string releaseInitiator; + std::string channelFlags; + std::string originator; + std::string userId; + std::string callType; + std::string userExtension; + std::string channelId; + long timestamp; + 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; + }; + + + RedialCallResult(); + explicit RedialCallResult(const std::string &payload); + ~RedialCallResult(); + 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_REDIALCALLRESULT_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 index 8b1d3a1b0..615f2cc0b 100644 --- a/ccc/include/alibabacloud/ccc/model/ReleaseCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/ReleaseCallResult.h @@ -46,7 +46,6 @@ namespace AlibabaCloud std::string userId; std::string callType; std::string userExtension; - std::string associatedData; std::string channelId; long timestamp; std::string jobId; diff --git a/ccc/include/alibabacloud/ccc/model/RemoveDoNotCallNumbersResult.h b/ccc/include/alibabacloud/ccc/model/RemoveDoNotCallNumbersResult.h index 9ef507569..030889bf1 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveDoNotCallNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveDoNotCallNumbersResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~RemoveDoNotCallNumbersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getData()const; std::string getCode()const; @@ -48,7 +47,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h index 328e869d3..ed0dd0882 100644 --- a/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/RemovePhoneNumbersResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~RemovePhoneNumbersResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::vector getData()const; std::string getCode()const; @@ -48,7 +47,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::vector data_; std::string code_; diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h index 291503a2d..aaf65de3a 100644 --- a/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersRequest.h @@ -34,10 +34,13 @@ public: void setUserIdList(const std::string &userIdList); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + bool getForce() const; + void setForce(bool force); private: std::string userIdList_; std::string instanceId_; + bool force_; }; } // namespace Model } // namespace CCC diff --git a/ccc/include/alibabacloud/ccc/model/RestoreArchivedRecordingsRequest.h b/ccc/include/alibabacloud/ccc/model/RestoreArchivedRecordingsRequest.h new file mode 100644 index 000000000..294802c1c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RestoreArchivedRecordingsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_RESTOREARCHIVEDRECORDINGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_RESTOREARCHIVEDRECORDINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT RestoreArchivedRecordingsRequest : public RpcServiceRequest { +public: + RestoreArchivedRecordingsRequest(); + ~RestoreArchivedRecordingsRequest(); + std::string getContactIds() const; + void setContactIds(const std::string &contactIds); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactIds_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_RESTOREARCHIVEDRECORDINGSREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/RestoreArchivedRecordingsResult.h b/ccc/include/alibabacloud/ccc/model/RestoreArchivedRecordingsResult.h new file mode 100644 index 000000000..c76b97ace --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RestoreArchivedRecordingsResult.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_RESTOREARCHIVEDRECORDINGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_RESTOREARCHIVEDRECORDINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RestoreArchivedRecordingsResult : public ServiceResult + { + public: + struct RecordingRestoreDetail + { + std::string status; + std::string storageType; + std::string exists; + std::string contactId; + }; + + + RestoreArchivedRecordingsResult(); + explicit RestoreArchivedRecordingsResult(const std::string &payload); + ~RestoreArchivedRecordingsResult(); + 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_RESTOREARCHIVEDRECORDINGSRESULT_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 index 22e28ca7b..9b6ce2e25 100644 --- a/ccc/include/alibabacloud/ccc/model/RetrieveCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/RetrieveCallResult.h @@ -40,16 +40,15 @@ namespace AlibabaCloud { std::string destination; std::string channelState; - std::string releaseInitiator; - std::string callType; - std::string skillGroupId; - std::string associatedData; - std::string channelId; - long timestamp; std::string releaseReason; + std::string releaseInitiator; std::string originator; std::string userId; + std::string callType; std::string userExtension; + std::string skillGroupId; + std::string channelId; + long timestamp; std::string jobId; }; std::string instanceId; diff --git a/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h b/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h index fb19cfbb1..d677c0801 100644 --- a/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h +++ b/ccc/include/alibabacloud/ccc/model/SendDtmfSignalingResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h index 98bf0d949..7a62df270 100644 --- a/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/StartBack2BackCallResult.h @@ -40,16 +40,15 @@ namespace AlibabaCloud { 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 releaseInitiator; std::string channelFlags; std::string originator; std::string userId; + std::string callType; std::string userExtension; + std::string channelId; + long timestamp; std::string jobId; }; std::string instanceId; @@ -64,7 +63,6 @@ namespace AlibabaCloud std::string deviceId; std::string breakCode; bool outboundScenario; - std::string uri; std::string mobile; std::vector signedSkillGroupIdList; std::string extension; diff --git a/ccc/include/alibabacloud/ccc/model/StartConferenceRequest.h b/ccc/include/alibabacloud/ccc/model/StartConferenceRequest.h new file mode 100644 index 000000000..df4432288 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartConferenceRequest.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_STARTCONFERENCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTCONFERENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT StartConferenceRequest : public RpcServiceRequest { +public: + StartConferenceRequest(); + ~StartConferenceRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getTags() const; + void setTags(const std::string &tags); + int getTimeoutSeconds() const; + void setTimeoutSeconds(int timeoutSeconds); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getParticipantListJson() const; + void setParticipantListJson(const std::string &participantListJson); + +private: + std::string userId_; + std::string tags_; + int timeoutSeconds_; + std::string instanceId_; + std::string participantListJson_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_STARTCONFERENCEREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/StartConferenceResult.h b/ccc/include/alibabacloud/ccc/model/StartConferenceResult.h new file mode 100644 index 000000000..e7f1d2823 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartConferenceResult.h @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_STARTCONFERENCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTCONFERENCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT StartConferenceResult : public ServiceResult + { + public: + struct Data + { + struct CallContext + { + struct ChannelContext + { + std::string destination; + std::string channelState; + std::string releaseReason; + std::string releaseInitiator; + std::string channelFlags; + std::string originator; + std::string userId; + std::string callType; + std::string userExtension; + std::string channelId; + long timestamp; + 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; + }; + + + StartConferenceResult(); + explicit StartConferenceResult(const std::string &payload); + ~StartConferenceResult(); + 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_STARTCONFERENCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/StartEditContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/StartEditContactFlowRequest.h new file mode 100644 index 000000000..7dd5f62aa --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartEditContactFlowRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_STARTEDITCONTACTFLOWREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTEDITCONTACTFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT StartEditContactFlowRequest : public RpcServiceRequest { +public: + StartEditContactFlowRequest(); + ~StartEditContactFlowRequest(); + std::string getContactFlowId() const; + void setContactFlowId(const std::string &contactFlowId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string contactFlowId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_STARTEDITCONTACTFLOWREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/StartEditContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/StartEditContactFlowResult.h new file mode 100644 index 000000000..a8fa5613e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartEditContactFlowResult.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_STARTEDITCONTACTFLOWRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTEDITCONTACTFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT StartEditContactFlowResult : public ServiceResult + { + public: + + + StartEditContactFlowResult(); + explicit StartEditContactFlowResult(const std::string &payload); + ~StartEditContactFlowResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_STARTEDITCONTACTFLOWRESULT_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 index eea4fd6dd..ac248c5a2 100644 --- a/ccc/include/alibabacloud/ccc/model/StartPredictiveCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/StartPredictiveCallResult.h @@ -40,16 +40,15 @@ namespace AlibabaCloud { 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 releaseInitiator; std::string channelFlags; std::string originator; std::string userId; + std::string callType; std::string userExtension; + std::string channelId; + long timestamp; std::string jobId; }; std::string instanceId; diff --git a/ccc/include/alibabacloud/ccc/model/StartPrivacyCallRequest.h b/ccc/include/alibabacloud/ccc/model/StartPrivacyCallRequest.h new file mode 100644 index 000000000..9bd0cb692 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartPrivacyCallRequest.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_STARTPRIVACYCALLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTPRIVACYCALLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT StartPrivacyCallRequest : public RpcServiceRequest { +public: + StartPrivacyCallRequest(); + ~StartPrivacyCallRequest(); + std::string getCallee() const; + void setCallee(const std::string &callee); + std::string getCaller() const; + void setCaller(const std::string &caller); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string callee_; + std::string caller_; + std::string instanceId_; + std::string appId_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_STARTPRIVACYCALLREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/StartPrivacyCallResult.h b/ccc/include/alibabacloud/ccc/model/StartPrivacyCallResult.h new file mode 100644 index 000000000..d80428c5a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/StartPrivacyCallResult.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_STARTPRIVACYCALLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_STARTPRIVACYCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT StartPrivacyCallResult : public ServiceResult + { + public: + + + StartPrivacyCallResult(); + explicit StartPrivacyCallResult(const std::string &payload); + ~StartPrivacyCallResult(); + 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_STARTPRIVACYCALLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SwitchToConferenceRequest.h b/ccc/include/alibabacloud/ccc/model/SwitchToConferenceRequest.h new file mode 100644 index 000000000..f9ab960fb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SwitchToConferenceRequest.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_SWITCHTOCONFERENCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SWITCHTOCONFERENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace CCC { +namespace Model { +class ALIBABACLOUD_CCC_EXPORT SwitchToConferenceRequest : public RpcServiceRequest { +public: + SwitchToConferenceRequest(); + ~SwitchToConferenceRequest(); + 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_; +}; +} // namespace Model +} // namespace CCC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CCC_MODEL_SWITCHTOCONFERENCEREQUEST_H_ diff --git a/ccc/include/alibabacloud/ccc/model/SwitchToConferenceResult.h b/ccc/include/alibabacloud/ccc/model/SwitchToConferenceResult.h new file mode 100644 index 000000000..034099e1a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SwitchToConferenceResult.h @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_SWITCHTOCONFERENCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SWITCHTOCONFERENCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SwitchToConferenceResult : 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 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; + }; + UserContext userContext; + CallContext callContext; + }; + + + SwitchToConferenceResult(); + explicit SwitchToConferenceResult(const std::string &payload); + ~SwitchToConferenceResult(); + 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_SWITCHTOCONFERENCERESULT_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 index 90084b5fc..3d5d8ec64 100644 --- a/ccc/include/alibabacloud/ccc/model/UnmuteCallResult.h +++ b/ccc/include/alibabacloud/ccc/model/UnmuteCallResult.h @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string callType; int index; std::string skillGroupId; - std::string associatedData; std::string channelId; long timestamp; std::string releaseReason; diff --git a/ccc/include/alibabacloud/ccc/model/UpdateConfigItemsResult.h b/ccc/include/alibabacloud/ccc/model/UpdateConfigItemsResult.h index d5f5d2ce0..b2065be67 100644 --- a/ccc/include/alibabacloud/ccc/model/UpdateConfigItemsResult.h +++ b/ccc/include/alibabacloud/ccc/model/UpdateConfigItemsResult.h @@ -39,7 +39,6 @@ namespace AlibabaCloud ~UpdateConfigItemsResult(); std::string getMessage()const; int getHttpStatusCode()const; - std::vector getParams()const; std::string getCode()const; protected: @@ -47,7 +46,6 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; - std::vector params_; std::string code_; }; diff --git a/ccc/src/CCCClient.cc b/ccc/src/CCCClient.cc index 805d72b03..950f7f400 100644 --- a/ccc/src/CCCClient.cc +++ b/ccc/src/CCCClient.cc @@ -31,21 +31,21 @@ CCCClient::CCCClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "CCC"); } CCCClient::CCCClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "CCC"); } CCCClient::CCCClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "CCC"); } CCCClient::~CCCClient() @@ -87,6 +87,42 @@ CCCClient::AbortCampaignOutcomeCallable CCCClient::abortCampaignCallable(const A return task->get_future(); } +CCCClient::AddCasesOutcome CCCClient::addCases(const AddCasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddCasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddCasesOutcome(AddCasesResult(outcome.result())); + else + return AddCasesOutcome(outcome.error()); +} + +void CCCClient::addCasesAsync(const AddCasesRequest& request, const AddCasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addCases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AddCasesOutcomeCallable CCCClient::addCasesCallable(const AddCasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addCases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::AddNumbersToSkillGroupOutcome CCCClient::addNumbersToSkillGroup(const AddNumbersToSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +375,42 @@ CCCClient::AnswerCallOutcomeCallable CCCClient::answerCallCallable(const AnswerC return task->get_future(); } +CCCClient::AppendCasesOutcome CCCClient::appendCases(const AppendCasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AppendCasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AppendCasesOutcome(AppendCasesResult(outcome.result())); + else + return AppendCasesOutcome(outcome.error()); +} + +void CCCClient::appendCasesAsync(const AppendCasesRequest& request, const AppendCasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, appendCases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AppendCasesOutcomeCallable CCCClient::appendCasesCallable(const AppendCasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->appendCases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::AssignUsersOutcome CCCClient::assignUsers(const AssignUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +519,42 @@ CCCClient::BlindTransferOutcomeCallable CCCClient::blindTransferCallable(const B return task->get_future(); } +CCCClient::BridgeRtcCallOutcome CCCClient::bridgeRtcCall(const BridgeRtcCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BridgeRtcCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BridgeRtcCallOutcome(BridgeRtcCallResult(outcome.result())); + else + return BridgeRtcCallOutcome(outcome.error()); +} + +void CCCClient::bridgeRtcCallAsync(const BridgeRtcCallRequest& request, const BridgeRtcCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bridgeRtcCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::BridgeRtcCallOutcomeCallable CCCClient::bridgeRtcCallCallable(const BridgeRtcCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bridgeRtcCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::CancelAttendedTransferOutcome CCCClient::cancelAttendedTransfer(const CancelAttendedTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +663,42 @@ CCCClient::CoachCallOutcomeCallable CCCClient::coachCallCallable(const CoachCall return task->get_future(); } +CCCClient::CommitContactFlowOutcome CCCClient::commitContactFlow(const CommitContactFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CommitContactFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CommitContactFlowOutcome(CommitContactFlowResult(outcome.result())); + else + return CommitContactFlowOutcome(outcome.error()); +} + +void CCCClient::commitContactFlowAsync(const CommitContactFlowRequest& request, const CommitContactFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, commitContactFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CommitContactFlowOutcomeCallable CCCClient::commitContactFlowCallable(const CommitContactFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->commitContactFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::CompleteAttendedTransferOutcome CCCClient::completeAttendedTransfer(const CompleteAttendedTransferRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +735,42 @@ CCCClient::CompleteAttendedTransferOutcomeCallable CCCClient::completeAttendedTr return task->get_future(); } +CCCClient::CreateAudioFileOutcome CCCClient::createAudioFile(const CreateAudioFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAudioFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAudioFileOutcome(CreateAudioFileResult(outcome.result())); + else + return CreateAudioFileOutcome(outcome.error()); +} + +void CCCClient::createAudioFileAsync(const CreateAudioFileRequest& request, const CreateAudioFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAudioFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateAudioFileOutcomeCallable CCCClient::createAudioFileCallable(const CreateAudioFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAudioFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::CreateCallTagsOutcome CCCClient::createCallTags(const CreateCallTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +843,42 @@ CCCClient::CreateCampaignOutcomeCallable CCCClient::createCampaignCallable(const 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::CreateCustomCallTaggingOutcome CCCClient::createCustomCallTagging(const CreateCustomCallTaggingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +1023,42 @@ CCCClient::CreateUserOutcomeCallable CCCClient::createUserCallable(const CreateU return task->get_future(); } +CCCClient::DeleteAudioFileOutcome CCCClient::deleteAudioFile(const DeleteAudioFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAudioFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAudioFileOutcome(DeleteAudioFileResult(outcome.result())); + else + return DeleteAudioFileOutcome(outcome.error()); +} + +void CCCClient::deleteAudioFileAsync(const DeleteAudioFileRequest& request, const DeleteAudioFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAudioFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DeleteAudioFileOutcomeCallable CCCClient::deleteAudioFileCallable(const DeleteAudioFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAudioFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::DeleteCallTagOutcome CCCClient::deleteCallTag(const DeleteCallTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +1095,42 @@ CCCClient::DeleteCallTagOutcomeCallable CCCClient::deleteCallTagCallable(const D return task->get_future(); } +CCCClient::DeleteContactFlowOutcome CCCClient::deleteContactFlow(const DeleteContactFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteContactFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteContactFlowOutcome(DeleteContactFlowResult(outcome.result())); + else + return DeleteContactFlowOutcome(outcome.error()); +} + +void CCCClient::deleteContactFlowAsync(const DeleteContactFlowRequest& request, const DeleteContactFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteContactFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DeleteContactFlowOutcomeCallable CCCClient::deleteContactFlowCallable(const DeleteContactFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteContactFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::DeleteCustomCallTaggingOutcome CCCClient::deleteCustomCallTagging(const DeleteCustomCallTaggingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +1203,78 @@ CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(c return task->get_future(); } +CCCClient::DiscardEditingContactFlowOutcome CCCClient::discardEditingContactFlow(const DiscardEditingContactFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DiscardEditingContactFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DiscardEditingContactFlowOutcome(DiscardEditingContactFlowResult(outcome.result())); + else + return DiscardEditingContactFlowOutcome(outcome.error()); +} + +void CCCClient::discardEditingContactFlowAsync(const DiscardEditingContactFlowRequest& request, const DiscardEditingContactFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, discardEditingContactFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DiscardEditingContactFlowOutcomeCallable CCCClient::discardEditingContactFlowCallable(const DiscardEditingContactFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->discardEditingContactFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::EndConferenceOutcome CCCClient::endConference(const EndConferenceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EndConferenceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EndConferenceOutcome(EndConferenceResult(outcome.result())); + else + return EndConferenceOutcome(outcome.error()); +} + +void CCCClient::endConferenceAsync(const EndConferenceRequest& request, const EndConferenceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, endConference(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::EndConferenceOutcomeCallable CCCClient::endConferenceCallable(const EndConferenceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->endConference(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ExportCustomCallTaggingOutcome CCCClient::exportCustomCallTagging(const ExportCustomCallTaggingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1347,114 @@ CCCClient::ExportDoNotCallNumbersOutcomeCallable CCCClient::exportDoNotCallNumbe return task->get_future(); } +CCCClient::GetAudioFileOutcome CCCClient::getAudioFile(const GetAudioFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAudioFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAudioFileOutcome(GetAudioFileResult(outcome.result())); + else + return GetAudioFileOutcome(outcome.error()); +} + +void CCCClient::getAudioFileAsync(const GetAudioFileRequest& request, const GetAudioFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAudioFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetAudioFileOutcomeCallable CCCClient::getAudioFileCallable(const GetAudioFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAudioFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetAudioFileDownloadUrlOutcome CCCClient::getAudioFileDownloadUrl(const GetAudioFileDownloadUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAudioFileDownloadUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAudioFileDownloadUrlOutcome(GetAudioFileDownloadUrlResult(outcome.result())); + else + return GetAudioFileDownloadUrlOutcome(outcome.error()); +} + +void CCCClient::getAudioFileDownloadUrlAsync(const GetAudioFileDownloadUrlRequest& request, const GetAudioFileDownloadUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAudioFileDownloadUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetAudioFileDownloadUrlOutcomeCallable CCCClient::getAudioFileDownloadUrlCallable(const GetAudioFileDownloadUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAudioFileDownloadUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetAudioFileUploadParametersOutcome CCCClient::getAudioFileUploadParameters(const GetAudioFileUploadParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAudioFileUploadParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAudioFileUploadParametersOutcome(GetAudioFileUploadParametersResult(outcome.result())); + else + return GetAudioFileUploadParametersOutcome(outcome.error()); +} + +void CCCClient::getAudioFileUploadParametersAsync(const GetAudioFileUploadParametersRequest& request, const GetAudioFileUploadParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAudioFileUploadParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetAudioFileUploadParametersOutcomeCallable CCCClient::getAudioFileUploadParametersCallable(const GetAudioFileUploadParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAudioFileUploadParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::GetCallDetailRecordOutcome CCCClient::getCallDetailRecord(const GetCallDetailRecordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1563,114 @@ CCCClient::GetCaseFileUploadUrlOutcomeCallable CCCClient::getCaseFileUploadUrlCa return task->get_future(); } +CCCClient::GetContactFlowOutcome CCCClient::getContactFlow(const GetContactFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetContactFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetContactFlowOutcome(GetContactFlowResult(outcome.result())); + else + return GetContactFlowOutcome(outcome.error()); +} + +void CCCClient::getContactFlowAsync(const GetContactFlowRequest& request, const GetContactFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getContactFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetContactFlowOutcomeCallable CCCClient::getContactFlowCallable(const GetContactFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getContactFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetConversationDetailOutcome CCCClient::getConversationDetail(const GetConversationDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConversationDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConversationDetailOutcome(GetConversationDetailResult(outcome.result())); + else + return GetConversationDetailOutcome(outcome.error()); +} + +void CCCClient::getConversationDetailAsync(const GetConversationDetailRequest& request, const GetConversationDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConversationDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetConversationDetailOutcomeCallable CCCClient::getConversationDetailCallable(const GetConversationDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConversationDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetDataChannelCredentialsOutcome CCCClient::getDataChannelCredentials(const GetDataChannelCredentialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDataChannelCredentialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDataChannelCredentialsOutcome(GetDataChannelCredentialsResult(outcome.result())); + else + return GetDataChannelCredentialsOutcome(outcome.error()); +} + +void CCCClient::getDataChannelCredentialsAsync(const GetDataChannelCredentialsRequest& request, const GetDataChannelCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDataChannelCredentials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetDataChannelCredentialsOutcomeCallable CCCClient::getDataChannelCredentialsCallable(const GetDataChannelCredentialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDataChannelCredentials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::GetDoNotCallFileUploadParametersOutcome CCCClient::getDoNotCallFileUploadParameters(const GetDoNotCallFileUploadParametersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1707,42 @@ CCCClient::GetDoNotCallFileUploadParametersOutcomeCallable CCCClient::getDoNotCa return task->get_future(); } +CCCClient::GetEarlyMediaRecordingOutcome CCCClient::getEarlyMediaRecording(const GetEarlyMediaRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEarlyMediaRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEarlyMediaRecordingOutcome(GetEarlyMediaRecordingResult(outcome.result())); + else + return GetEarlyMediaRecordingOutcome(outcome.error()); +} + +void CCCClient::getEarlyMediaRecordingAsync(const GetEarlyMediaRecordingRequest& request, const GetEarlyMediaRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEarlyMediaRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetEarlyMediaRecordingOutcomeCallable CCCClient::getEarlyMediaRecordingCallable(const GetEarlyMediaRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEarlyMediaRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::GetHistoricalCallerReportOutcome CCCClient::getHistoricalCallerReport(const GetHistoricalCallerReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +2247,42 @@ CCCClient::GetTurnServerListOutcomeCallable CCCClient::getTurnServerListCallable return task->get_future(); } +CCCClient::GetUploadAudioDataParamsOutcome CCCClient::getUploadAudioDataParams(const GetUploadAudioDataParamsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUploadAudioDataParamsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUploadAudioDataParamsOutcome(GetUploadAudioDataParamsResult(outcome.result())); + else + return GetUploadAudioDataParamsOutcome(outcome.error()); +} + +void CCCClient::getUploadAudioDataParamsAsync(const GetUploadAudioDataParamsRequest& request, const GetUploadAudioDataParamsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUploadAudioDataParams(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetUploadAudioDataParamsOutcomeCallable CCCClient::getUploadAudioDataParamsCallable(const GetUploadAudioDataParamsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUploadAudioDataParams(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::GetUserOutcome CCCClient::getUser(const GetUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +2319,42 @@ CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserReques return task->get_future(); } +CCCClient::GetVoicemailRecordingOutcome CCCClient::getVoicemailRecording(const GetVoicemailRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVoicemailRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVoicemailRecordingOutcome(GetVoicemailRecordingResult(outcome.result())); + else + return GetVoicemailRecordingOutcome(outcome.error()); +} + +void CCCClient::getVoicemailRecordingAsync(const GetVoicemailRecordingRequest& request, const GetVoicemailRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVoicemailRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetVoicemailRecordingOutcomeCallable CCCClient::getVoicemailRecordingCallable(const GetVoicemailRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVoicemailRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::HoldCallOutcome CCCClient::holdCall(const HoldCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2103,6 +2787,42 @@ CCCClient::ListAttemptsOutcomeCallable CCCClient::listAttemptsCallable(const Lis return task->get_future(); } +CCCClient::ListAudioFilesOutcome CCCClient::listAudioFiles(const ListAudioFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAudioFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAudioFilesOutcome(ListAudioFilesResult(outcome.result())); + else + return ListAudioFilesOutcome(outcome.error()); +} + +void CCCClient::listAudioFilesAsync(const ListAudioFilesRequest& request, const ListAudioFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAudioFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListAudioFilesOutcomeCallable CCCClient::listAudioFilesCallable(const ListAudioFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAudioFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ListBriefSkillGroupsOutcome CCCClient::listBriefSkillGroups(const ListBriefSkillGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,6 +3507,150 @@ CCCClient::ListIvrTrackingDetailsOutcomeCallable CCCClient::listIvrTrackingDetai return task->get_future(); } +CCCClient::ListLegacyAgentEventLogsOutcome CCCClient::listLegacyAgentEventLogs(const ListLegacyAgentEventLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLegacyAgentEventLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLegacyAgentEventLogsOutcome(ListLegacyAgentEventLogsResult(outcome.result())); + else + return ListLegacyAgentEventLogsOutcome(outcome.error()); +} + +void CCCClient::listLegacyAgentEventLogsAsync(const ListLegacyAgentEventLogsRequest& request, const ListLegacyAgentEventLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLegacyAgentEventLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListLegacyAgentEventLogsOutcomeCallable CCCClient::listLegacyAgentEventLogsCallable(const ListLegacyAgentEventLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLegacyAgentEventLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListLegacyAgentStatusLogsOutcome CCCClient::listLegacyAgentStatusLogs(const ListLegacyAgentStatusLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLegacyAgentStatusLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLegacyAgentStatusLogsOutcome(ListLegacyAgentStatusLogsResult(outcome.result())); + else + return ListLegacyAgentStatusLogsOutcome(outcome.error()); +} + +void CCCClient::listLegacyAgentStatusLogsAsync(const ListLegacyAgentStatusLogsRequest& request, const ListLegacyAgentStatusLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLegacyAgentStatusLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListLegacyAgentStatusLogsOutcomeCallable CCCClient::listLegacyAgentStatusLogsCallable(const ListLegacyAgentStatusLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLegacyAgentStatusLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListLegacyAppraiseLogsOutcome CCCClient::listLegacyAppraiseLogs(const ListLegacyAppraiseLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLegacyAppraiseLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLegacyAppraiseLogsOutcome(ListLegacyAppraiseLogsResult(outcome.result())); + else + return ListLegacyAppraiseLogsOutcome(outcome.error()); +} + +void CCCClient::listLegacyAppraiseLogsAsync(const ListLegacyAppraiseLogsRequest& request, const ListLegacyAppraiseLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLegacyAppraiseLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListLegacyAppraiseLogsOutcomeCallable CCCClient::listLegacyAppraiseLogsCallable(const ListLegacyAppraiseLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLegacyAppraiseLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListLegacyQueueEventLogsOutcome CCCClient::listLegacyQueueEventLogs(const ListLegacyQueueEventLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLegacyQueueEventLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLegacyQueueEventLogsOutcome(ListLegacyQueueEventLogsResult(outcome.result())); + else + return ListLegacyQueueEventLogsOutcome(outcome.error()); +} + +void CCCClient::listLegacyQueueEventLogsAsync(const ListLegacyQueueEventLogsRequest& request, const ListLegacyQueueEventLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLegacyQueueEventLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListLegacyQueueEventLogsOutcomeCallable CCCClient::listLegacyQueueEventLogsCallable(const ListLegacyQueueEventLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLegacyQueueEventLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ListMonoRecordingsOutcome CCCClient::listMonoRecordings(const ListMonoRecordingsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,78 +4083,6 @@ CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRoles return task->get_future(); } -CCCClient::ListSipCallRecordsOutcome CCCClient::listSipCallRecords(const ListSipCallRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSipCallRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSipCallRecordsOutcome(ListSipCallRecordsResult(outcome.result())); - else - return ListSipCallRecordsOutcome(outcome.error()); -} - -void CCCClient::listSipCallRecordsAsync(const ListSipCallRecordsRequest& request, const ListSipCallRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSipCallRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListSipCallRecordsOutcomeCallable CCCClient::listSipCallRecordsCallable(const ListSipCallRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSipCallRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListSipTracesOutcome CCCClient::listSipTraces(const ListSipTracesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSipTracesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSipTracesOutcome(ListSipTracesResult(outcome.result())); - else - return ListSipTracesOutcome(outcome.error()); -} - -void CCCClient::listSipTracesAsync(const ListSipTracesRequest& request, const ListSipTracesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSipTraces(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListSipTracesOutcomeCallable CCCClient::listSipTracesCallable(const ListSipTracesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSipTraces(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CCCClient::ListSkillGroupStatesOutcome CCCClient::listSkillGroupStates(const ListSkillGroupStatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,6 +4371,42 @@ CCCClient::MakeCallOutcomeCallable CCCClient::makeCallCallable(const MakeCallReq return task->get_future(); } +CCCClient::ModifyAudioFileOutcome CCCClient::modifyAudioFile(const ModifyAudioFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAudioFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAudioFileOutcome(ModifyAudioFileResult(outcome.result())); + else + return ModifyAudioFileOutcome(outcome.error()); +} + +void CCCClient::modifyAudioFileAsync(const ModifyAudioFileRequest& request, const ModifyAudioFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAudioFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyAudioFileOutcomeCallable CCCClient::modifyAudioFileCallable(const ModifyAudioFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAudioFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ModifyCustomCallTaggingOutcome CCCClient::modifyCustomCallTagging(const ModifyCustomCallTaggingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,6 +4839,42 @@ CCCClient::PollUserStatusOutcomeCallable CCCClient::pollUserStatusCallable(const return task->get_future(); } +CCCClient::PublishContactFlowOutcome CCCClient::publishContactFlow(const PublishContactFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishContactFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishContactFlowOutcome(PublishContactFlowResult(outcome.result())); + else + return PublishContactFlowOutcome(outcome.error()); +} + +void CCCClient::publishContactFlowAsync(const PublishContactFlowRequest& request, const PublishContactFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishContactFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PublishContactFlowOutcomeCallable CCCClient::publishContactFlowCallable(const PublishContactFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishContactFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ReadyForServiceOutcome CCCClient::readyForService(const ReadyForServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4047,6 +4911,42 @@ CCCClient::ReadyForServiceOutcomeCallable CCCClient::readyForServiceCallable(con return task->get_future(); } +CCCClient::RedialCallOutcome CCCClient::redialCall(const RedialCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RedialCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RedialCallOutcome(RedialCallResult(outcome.result())); + else + return RedialCallOutcome(outcome.error()); +} + +void CCCClient::redialCallAsync(const RedialCallRequest& request, const RedialCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, redialCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RedialCallOutcomeCallable CCCClient::redialCallCallable(const RedialCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->redialCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::RegisterDeviceOutcome CCCClient::registerDevice(const RegisterDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4515,6 +5415,42 @@ CCCClient::ResetUserPasswordOutcomeCallable CCCClient::resetUserPasswordCallable return task->get_future(); } +CCCClient::RestoreArchivedRecordingsOutcome CCCClient::restoreArchivedRecordings(const RestoreArchivedRecordingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestoreArchivedRecordingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestoreArchivedRecordingsOutcome(RestoreArchivedRecordingsResult(outcome.result())); + else + return RestoreArchivedRecordingsOutcome(outcome.error()); +} + +void CCCClient::restoreArchivedRecordingsAsync(const RestoreArchivedRecordingsRequest& request, const RestoreArchivedRecordingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restoreArchivedRecordings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RestoreArchivedRecordingsOutcomeCallable CCCClient::restoreArchivedRecordingsCallable(const RestoreArchivedRecordingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restoreArchivedRecordings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ResumeCampaignOutcome CCCClient::resumeCampaign(const ResumeCampaignRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4875,6 +5811,78 @@ CCCClient::StartBack2BackCallOutcomeCallable CCCClient::startBack2BackCallCallab return task->get_future(); } +CCCClient::StartConferenceOutcome CCCClient::startConference(const StartConferenceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartConferenceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartConferenceOutcome(StartConferenceResult(outcome.result())); + else + return StartConferenceOutcome(outcome.error()); +} + +void CCCClient::startConferenceAsync(const StartConferenceRequest& request, const StartConferenceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startConference(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::StartConferenceOutcomeCallable CCCClient::startConferenceCallable(const StartConferenceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startConference(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::StartEditContactFlowOutcome CCCClient::startEditContactFlow(const StartEditContactFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartEditContactFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartEditContactFlowOutcome(StartEditContactFlowResult(outcome.result())); + else + return StartEditContactFlowOutcome(outcome.error()); +} + +void CCCClient::startEditContactFlowAsync(const StartEditContactFlowRequest& request, const StartEditContactFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startEditContactFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::StartEditContactFlowOutcomeCallable CCCClient::startEditContactFlowCallable(const StartEditContactFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startEditContactFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::StartPredictiveCallOutcome CCCClient::startPredictiveCall(const StartPredictiveCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4911,6 +5919,42 @@ CCCClient::StartPredictiveCallOutcomeCallable CCCClient::startPredictiveCallCall return task->get_future(); } +CCCClient::StartPrivacyCallOutcome CCCClient::startPrivacyCall(const StartPrivacyCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartPrivacyCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartPrivacyCallOutcome(StartPrivacyCallResult(outcome.result())); + else + return StartPrivacyCallOutcome(outcome.error()); +} + +void CCCClient::startPrivacyCallAsync(const StartPrivacyCallRequest& request, const StartPrivacyCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startPrivacyCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::StartPrivacyCallOutcomeCallable CCCClient::startPrivacyCallCallable(const StartPrivacyCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startPrivacyCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::SubmitCampaignOutcome CCCClient::submitCampaign(const SubmitCampaignRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4947,6 +5991,42 @@ CCCClient::SubmitCampaignOutcomeCallable CCCClient::submitCampaignCallable(const return task->get_future(); } +CCCClient::SwitchToConferenceOutcome CCCClient::switchToConference(const SwitchToConferenceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchToConferenceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchToConferenceOutcome(SwitchToConferenceResult(outcome.result())); + else + return SwitchToConferenceOutcome(outcome.error()); +} + +void CCCClient::switchToConferenceAsync(const SwitchToConferenceRequest& request, const SwitchToConferenceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchToConference(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::SwitchToConferenceOutcomeCallable CCCClient::switchToConferenceCallable(const SwitchToConferenceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchToConference(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::TakeBreakOutcome CCCClient::takeBreak(const TakeBreakRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ccc/src/model/AddCasesRequest.cc b/ccc/src/model/AddCasesRequest.cc new file mode 100644 index 000000000..a28e3a9de --- /dev/null +++ b/ccc/src/model/AddCasesRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::AddCasesRequest; + +AddCasesRequest::AddCasesRequest() + : RpcServiceRequest("ccc", "2020-07-01", "AddCases") { + setMethod(HttpRequest::Method::Post); +} + +AddCasesRequest::~AddCasesRequest() {} + +std::string AddCasesRequest::getInstanceId() const { + return instanceId_; +} + +void AddCasesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string AddCasesRequest::getCampaignId() const { + return campaignId_; +} + +void AddCasesRequest::setCampaignId(const std::string &campaignId) { + campaignId_ = campaignId; + setParameter(std::string("CampaignId"), campaignId); +} + +std::vector AddCasesRequest::getCaseList() const { + return caseList_; +} + +void AddCasesRequest::setCaseList(const std::vector &caseList) { + caseList_ = caseList; + for(int dep1 = 0; dep1 != caseList.size(); dep1++) { + setParameter(std::string("CaseList") + "." + std::to_string(dep1 + 1) + ".CustomVariables", caseList[dep1].customVariables); + setParameter(std::string("CaseList") + "." + std::to_string(dep1 + 1) + ".Caller", caseList[dep1].caller); + setParameter(std::string("CaseList") + "." + std::to_string(dep1 + 1) + ".PhoneNumber", caseList[dep1].phoneNumber); + setParameter(std::string("CaseList") + "." + std::to_string(dep1 + 1) + ".MaskedCallee", caseList[dep1].maskedCallee); + setParameter(std::string("CaseList") + "." + std::to_string(dep1 + 1) + ".ReferenceId", caseList[dep1].referenceId); + } +} + diff --git a/ccc/src/model/AddCasesResult.cc b/ccc/src/model/AddCasesResult.cc new file mode 100644 index 000000000..e6a4202eb --- /dev/null +++ b/ccc/src/model/AddCasesResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AddCasesResult::AddCasesResult() : + ServiceResult() +{} + +AddCasesResult::AddCasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddCasesResult::~AddCasesResult() +{} + +void AddCasesResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = value["HttpStatusCode"].asString(); + +} + +std::string AddCasesResult::getMessage()const +{ + return message_; +} + +std::string AddCasesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddCasesResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/AddSkillGroupsToUserResult.cc b/ccc/src/model/AddSkillGroupsToUserResult.cc index 453fa45c5..842b869af 100644 --- a/ccc/src/model/AddSkillGroupsToUserResult.cc +++ b/ccc/src/model/AddSkillGroupsToUserResult.cc @@ -39,9 +39,6 @@ void AddSkillGroupsToUserResult::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["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) @@ -61,11 +58,6 @@ int AddSkillGroupsToUserResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector AddSkillGroupsToUserResult::getParams()const -{ - return params_; -} - std::string AddSkillGroupsToUserResult::getCode()const { return code_; diff --git a/ccc/src/model/AnswerCallResult.cc b/ccc/src/model/AnswerCallResult.cc index a0faab45b..c02293f22 100644 --- a/ccc/src/model/AnswerCallResult.cc +++ b/ccc/src/model/AnswerCallResult.cc @@ -65,8 +65,6 @@ void AnswerCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/AppendCasesRequest.cc b/ccc/src/model/AppendCasesRequest.cc new file mode 100644 index 000000000..ea2c2329c --- /dev/null +++ b/ccc/src/model/AppendCasesRequest.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::AppendCasesRequest; + +AppendCasesRequest::AppendCasesRequest() + : RpcServiceRequest("ccc", "2020-07-01", "AppendCases") { + setMethod(HttpRequest::Method::Post); +} + +AppendCasesRequest::~AppendCasesRequest() {} + +std::string AppendCasesRequest::getInstanceId() const { + return instanceId_; +} + +void AppendCasesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string AppendCasesRequest::getCampaignId() const { + return campaignId_; +} + +void AppendCasesRequest::setCampaignId(const std::string &campaignId) { + campaignId_ = campaignId; + setParameter(std::string("CampaignId"), campaignId); +} + +std::vector AppendCasesRequest::getBody() const { + return body_; +} + +void AppendCasesRequest::setBody(const std::vector &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.size(); dep1++) { + setBodyParameter(std::string("body") + "." + std::to_string(dep1 + 1) + ".CustomVariables", body[dep1].customVariables); + setBodyParameter(std::string("body") + "." + std::to_string(dep1 + 1) + ".Caller", body[dep1].caller); + setBodyParameter(std::string("body") + "." + std::to_string(dep1 + 1) + ".AgentId", body[dep1].agentId); + setBodyParameter(std::string("body") + "." + std::to_string(dep1 + 1) + ".PhoneNumber", body[dep1].phoneNumber); + setBodyParameter(std::string("body") + "." + std::to_string(dep1 + 1) + ".MaskedCallee", body[dep1].maskedCallee); + setBodyParameter(std::string("body") + "." + std::to_string(dep1 + 1) + ".ReferenceId", body[dep1].referenceId); + } +} + diff --git a/ccc/src/model/AppendCasesResult.cc b/ccc/src/model/AppendCasesResult.cc new file mode 100644 index 000000000..38a0fa356 --- /dev/null +++ b/ccc/src/model/AppendCasesResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AppendCasesResult::AppendCasesResult() : + ServiceResult() +{} + +AppendCasesResult::AppendCasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AppendCasesResult::~AppendCasesResult() +{} + +void AppendCasesResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = value["HttpStatusCode"].asString(); + +} + +std::string AppendCasesResult::getMessage()const +{ + return message_; +} + +std::string AppendCasesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AppendCasesResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/AssignUsersResult.cc b/ccc/src/model/AssignUsersResult.cc index 53634ed61..6cc4e946e 100644 --- a/ccc/src/model/AssignUsersResult.cc +++ b/ccc/src/model/AssignUsersResult.cc @@ -43,8 +43,6 @@ void AssignUsersResult::parse(const std::string &payload) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); - if(!value["Sync"].isNull()) - sync_ = value["Sync"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["WorkflowId"].isNull()) @@ -69,11 +67,6 @@ std::string AssignUsersResult::getData()const return data_; } -std::string AssignUsersResult::getSync()const -{ - return sync_; -} - std::string AssignUsersResult::getWorkflowId()const { return workflowId_; diff --git a/ccc/src/model/BargeInCallResult.cc b/ccc/src/model/BargeInCallResult.cc index 0895ca2ef..ee6c98f34 100644 --- a/ccc/src/model/BargeInCallResult.cc +++ b/ccc/src/model/BargeInCallResult.cc @@ -67,8 +67,6 @@ void BargeInCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/BlindTransferRequest.cc b/ccc/src/model/BlindTransferRequest.cc index b4c232202..d909bdf5d 100644 --- a/ccc/src/model/BlindTransferRequest.cc +++ b/ccc/src/model/BlindTransferRequest.cc @@ -61,6 +61,15 @@ void BlindTransferRequest::setDeviceId(const std::string &deviceId) { setParameter(std::string("DeviceId"), deviceId); } +std::string BlindTransferRequest::getStrategyName() const { + return strategyName_; +} + +void BlindTransferRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("StrategyName"), strategyName); +} + int BlindTransferRequest::getTimeoutSeconds() const { return timeoutSeconds_; } @@ -88,3 +97,21 @@ void BlindTransferRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } +std::string BlindTransferRequest::getStrategyParams() const { + return strategyParams_; +} + +void BlindTransferRequest::setStrategyParams(const std::string &strategyParams) { + strategyParams_ = strategyParams; + setParameter(std::string("StrategyParams"), strategyParams); +} + +int BlindTransferRequest::getCallPriority() const { + return callPriority_; +} + +void BlindTransferRequest::setCallPriority(int callPriority) { + callPriority_ = callPriority; + setParameter(std::string("CallPriority"), std::to_string(callPriority)); +} + diff --git a/ccc/src/model/BlindTransferResult.cc b/ccc/src/model/BlindTransferResult.cc index 38ef39e73..46a765118 100644 --- a/ccc/src/model/BlindTransferResult.cc +++ b/ccc/src/model/BlindTransferResult.cc @@ -65,8 +65,6 @@ void BlindTransferResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/BridgeRtcCallRequest.cc b/ccc/src/model/BridgeRtcCallRequest.cc new file mode 100644 index 000000000..6a4bc4037 --- /dev/null +++ b/ccc/src/model/BridgeRtcCallRequest.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::BridgeRtcCallRequest; + +BridgeRtcCallRequest::BridgeRtcCallRequest() + : RpcServiceRequest("ccc", "2020-07-01", "BridgeRtcCall") { + setMethod(HttpRequest::Method::Post); +} + +BridgeRtcCallRequest::~BridgeRtcCallRequest() {} + +std::string BridgeRtcCallRequest::getServiceProvider() const { + return serviceProvider_; +} + +void BridgeRtcCallRequest::setServiceProvider(const std::string &serviceProvider) { + serviceProvider_ = serviceProvider; + setParameter(std::string("ServiceProvider"), serviceProvider); +} + +std::string BridgeRtcCallRequest::getCallee() const { + return callee_; +} + +void BridgeRtcCallRequest::setCallee(const std::string &callee) { + callee_ = callee; + setParameter(std::string("Callee"), callee); +} + +std::string BridgeRtcCallRequest::getUserId() const { + return userId_; +} + +void BridgeRtcCallRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string BridgeRtcCallRequest::getDeviceId() const { + return deviceId_; +} + +void BridgeRtcCallRequest::setDeviceId(const std::string &deviceId) { + deviceId_ = deviceId; + setParameter(std::string("DeviceId"), deviceId); +} + +std::string BridgeRtcCallRequest::getTags() const { + return tags_; +} + +void BridgeRtcCallRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +int BridgeRtcCallRequest::getTimeoutSeconds() const { + return timeoutSeconds_; +} + +void BridgeRtcCallRequest::setTimeoutSeconds(int timeoutSeconds) { + timeoutSeconds_ = timeoutSeconds; + setParameter(std::string("TimeoutSeconds"), std::to_string(timeoutSeconds)); +} + +std::string BridgeRtcCallRequest::getCaller() const { + return caller_; +} + +void BridgeRtcCallRequest::setCaller(const std::string &caller) { + caller_ = caller; + setParameter(std::string("Caller"), caller); +} + +std::string BridgeRtcCallRequest::getInstanceId() const { + return instanceId_; +} + +void BridgeRtcCallRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +bool BridgeRtcCallRequest::getVideoEnabled() const { + return videoEnabled_; +} + +void BridgeRtcCallRequest::setVideoEnabled(bool videoEnabled) { + videoEnabled_ = videoEnabled; + setParameter(std::string("VideoEnabled"), videoEnabled ? "true" : "false"); +} + diff --git a/ccc/src/model/BridgeRtcCallResult.cc b/ccc/src/model/BridgeRtcCallResult.cc new file mode 100644 index 000000000..3ef67feff --- /dev/null +++ b/ccc/src/model/BridgeRtcCallResult.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; + +BridgeRtcCallResult::BridgeRtcCallResult() : + ServiceResult() +{} + +BridgeRtcCallResult::BridgeRtcCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BridgeRtcCallResult::~BridgeRtcCallResult() +{} + +void BridgeRtcCallResult::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["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["TokenInfo"].isNull()) + data_.tokenInfo = dataNode["TokenInfo"].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 BridgeRtcCallResult::getMessage()const +{ + return message_; +} + +int BridgeRtcCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector BridgeRtcCallResult::getParams()const +{ + return params_; +} + +BridgeRtcCallResult::Data BridgeRtcCallResult::getData()const +{ + return data_; +} + +std::string BridgeRtcCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CancelAttendedTransferResult.cc b/ccc/src/model/CancelAttendedTransferResult.cc index c20ed8cd1..37576e46b 100644 --- a/ccc/src/model/CancelAttendedTransferResult.cc +++ b/ccc/src/model/CancelAttendedTransferResult.cc @@ -67,8 +67,6 @@ void CancelAttendedTransferResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/ChangeWorkModeRequest.cc b/ccc/src/model/ChangeWorkModeRequest.cc index 917f9c4ef..841f6004d 100644 --- a/ccc/src/model/ChangeWorkModeRequest.cc +++ b/ccc/src/model/ChangeWorkModeRequest.cc @@ -25,6 +25,24 @@ ChangeWorkModeRequest::ChangeWorkModeRequest() ChangeWorkModeRequest::~ChangeWorkModeRequest() {} +std::string ChangeWorkModeRequest::getSignedSkillGroupIdList() const { + return signedSkillGroupIdList_; +} + +void ChangeWorkModeRequest::setSignedSkillGroupIdList(const std::string &signedSkillGroupIdList) { + signedSkillGroupIdList_ = signedSkillGroupIdList; + setParameter(std::string("SignedSkillGroupIdList"), signedSkillGroupIdList); +} + +std::string ChangeWorkModeRequest::getMobile() const { + return mobile_; +} + +void ChangeWorkModeRequest::setMobile(const std::string &mobile) { + mobile_ = mobile; + setParameter(std::string("Mobile"), mobile); +} + std::string ChangeWorkModeRequest::getWorkMode() const { return workMode_; } diff --git a/ccc/src/model/CoachCallResult.cc b/ccc/src/model/CoachCallResult.cc index d8d09c5bb..dca17d817 100644 --- a/ccc/src/model/CoachCallResult.cc +++ b/ccc/src/model/CoachCallResult.cc @@ -67,8 +67,6 @@ void CoachCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/CommitContactFlowRequest.cc b/ccc/src/model/CommitContactFlowRequest.cc new file mode 100644 index 000000000..ef90d66f0 --- /dev/null +++ b/ccc/src/model/CommitContactFlowRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::CommitContactFlowRequest; + +CommitContactFlowRequest::CommitContactFlowRequest() + : RpcServiceRequest("ccc", "2020-07-01", "CommitContactFlow") { + setMethod(HttpRequest::Method::Post); +} + +CommitContactFlowRequest::~CommitContactFlowRequest() {} + +std::string CommitContactFlowRequest::getContactFlowId() const { + return contactFlowId_; +} + +void CommitContactFlowRequest::setContactFlowId(const std::string &contactFlowId) { + contactFlowId_ = contactFlowId; + setParameter(std::string("ContactFlowId"), contactFlowId); +} + +std::string CommitContactFlowRequest::getDraftId() const { + return draftId_; +} + +void CommitContactFlowRequest::setDraftId(const std::string &draftId) { + draftId_ = draftId; + setParameter(std::string("DraftId"), draftId); +} + +std::string CommitContactFlowRequest::getDescription() const { + return description_; +} + +void CommitContactFlowRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CommitContactFlowRequest::getInstanceId() const { + return instanceId_; +} + +void CommitContactFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CommitContactFlowRequest::getDefinition() const { + return definition_; +} + +void CommitContactFlowRequest::setDefinition(const std::string &definition) { + definition_ = definition; + setParameter(std::string("Definition"), definition); +} + diff --git a/ccc/src/model/CommitContactFlowResult.cc b/ccc/src/model/CommitContactFlowResult.cc new file mode 100644 index 000000000..6fb2f4b91 --- /dev/null +++ b/ccc/src/model/CommitContactFlowResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +CommitContactFlowResult::CommitContactFlowResult() : + ServiceResult() +{} + +CommitContactFlowResult::CommitContactFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CommitContactFlowResult::~CommitContactFlowResult() +{} + +void CommitContactFlowResult::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 CommitContactFlowResult::getMessage()const +{ + return message_; +} + +int CommitContactFlowResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CommitContactFlowResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CompleteAttendedTransferResult.cc b/ccc/src/model/CompleteAttendedTransferResult.cc index d2a0e2108..e00da959d 100644 --- a/ccc/src/model/CompleteAttendedTransferResult.cc +++ b/ccc/src/model/CompleteAttendedTransferResult.cc @@ -69,8 +69,6 @@ void CompleteAttendedTransferResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/CreateAudioFileRequest.cc b/ccc/src/model/CreateAudioFileRequest.cc new file mode 100644 index 000000000..afea48346 --- /dev/null +++ b/ccc/src/model/CreateAudioFileRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::CreateAudioFileRequest; + +CreateAudioFileRequest::CreateAudioFileRequest() + : RpcServiceRequest("ccc", "2020-07-01", "CreateAudioFile") { + setMethod(HttpRequest::Method::Post); +} + +CreateAudioFileRequest::~CreateAudioFileRequest() {} + +std::string CreateAudioFileRequest::getOssFileKey() const { + return ossFileKey_; +} + +void CreateAudioFileRequest::setOssFileKey(const std::string &ossFileKey) { + ossFileKey_ = ossFileKey; + setParameter(std::string("OssFileKey"), ossFileKey); +} + +std::string CreateAudioFileRequest::getInstanceId() const { + return instanceId_; +} + +void CreateAudioFileRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateAudioFileRequest::getAudioFileName() const { + return audioFileName_; +} + +void CreateAudioFileRequest::setAudioFileName(const std::string &audioFileName) { + audioFileName_ = audioFileName; + setParameter(std::string("AudioFileName"), audioFileName); +} + +std::string CreateAudioFileRequest::getName() const { + return name_; +} + +void CreateAudioFileRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/ccc/src/model/CreateAudioFileResult.cc b/ccc/src/model/CreateAudioFileResult.cc new file mode 100644 index 000000000..1685fc1ca --- /dev/null +++ b/ccc/src/model/CreateAudioFileResult.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; + +CreateAudioFileResult::CreateAudioFileResult() : + ServiceResult() +{} + +CreateAudioFileResult::CreateAudioFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAudioFileResult::~CreateAudioFileResult() +{} + +void CreateAudioFileResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateAudioFileResult::getMessage()const +{ + return message_; +} + +int CreateAudioFileResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateAudioFileResult::getData()const +{ + return data_; +} + +std::string CreateAudioFileResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CreateCampaignRequest.cc b/ccc/src/model/CreateCampaignRequest.cc index 1f358b32a..9f3fcc502 100644 --- a/ccc/src/model/CreateCampaignRequest.cc +++ b/ccc/src/model/CreateCampaignRequest.cc @@ -52,6 +52,15 @@ void CreateCampaignRequest::setSimulation(bool simulation) { setParameter(std::string("Simulation"), simulation ? "true" : "false"); } +bool CreateCampaignRequest::getExecutingUntilTimeout() const { + return executingUntilTimeout_; +} + +void CreateCampaignRequest::setExecutingUntilTimeout(bool executingUntilTimeout) { + executingUntilTimeout_ = executingUntilTimeout; + setParameter(std::string("ExecutingUntilTimeout"), executingUntilTimeout ? "true" : "false"); +} + std::string CreateCampaignRequest::getEndTime() const { return endTime_; } diff --git a/ccc/src/model/CreateContactFlowRequest.cc b/ccc/src/model/CreateContactFlowRequest.cc new file mode 100644 index 000000000..9406e243e --- /dev/null +++ b/ccc/src/model/CreateContactFlowRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::CreateContactFlowRequest; + +CreateContactFlowRequest::CreateContactFlowRequest() + : RpcServiceRequest("ccc", "2020-07-01", "CreateContactFlow") { + setMethod(HttpRequest::Method::Post); +} + +CreateContactFlowRequest::~CreateContactFlowRequest() {} + +std::string CreateContactFlowRequest::getDescription() const { + return description_; +} + +void CreateContactFlowRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateContactFlowRequest::getType() const { + return type_; +} + +void CreateContactFlowRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string CreateContactFlowRequest::getInstanceId() const { + return instanceId_; +} + +void CreateContactFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateContactFlowRequest::getName() const { + return name_; +} + +void CreateContactFlowRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateContactFlowRequest::getDefinition() const { + return definition_; +} + +void CreateContactFlowRequest::setDefinition(const std::string &definition) { + definition_ = definition; + setParameter(std::string("Definition"), definition); +} + diff --git a/ccc/src/model/CreateContactFlowResult.cc b/ccc/src/model/CreateContactFlowResult.cc new file mode 100644 index 000000000..a407f8940 --- /dev/null +++ b/ccc/src/model/CreateContactFlowResult.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; + +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()); + 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["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateContactFlowResult::getMessage()const +{ + return message_; +} + +int CreateContactFlowResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateContactFlowResult::getData()const +{ + return data_; +} + +std::string CreateContactFlowResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/CreateInstanceResult.cc b/ccc/src/model/CreateInstanceResult.cc index 1d018b7d9..f92a0438f 100644 --- a/ccc/src/model/CreateInstanceResult.cc +++ b/ccc/src/model/CreateInstanceResult.cc @@ -39,9 +39,6 @@ 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()); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) @@ -63,11 +60,6 @@ int CreateInstanceResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector CreateInstanceResult::getParams()const -{ - return params_; -} - std::string CreateInstanceResult::getData()const { return data_; diff --git a/ccc/src/model/CreateUserResult.cc b/ccc/src/model/CreateUserResult.cc index bdcbd4cf7..5e3b5bec7 100644 --- a/ccc/src/model/CreateUserResult.cc +++ b/ccc/src/model/CreateUserResult.cc @@ -54,9 +54,6 @@ void CreateUserResult::parse(const std::string &payload) data_.mobile = dataNode["Mobile"].asString(); if(!dataNode["UserId"].isNull()) data_.userId = dataNode["UserId"].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()) @@ -76,11 +73,6 @@ int CreateUserResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector CreateUserResult::getParams()const -{ - return params_; -} - CreateUserResult::Data CreateUserResult::getData()const { return data_; diff --git a/ccc/src/model/ListSipCallRecordsRequest.cc b/ccc/src/model/DeleteAudioFileRequest.cc similarity index 51% rename from ccc/src/model/ListSipCallRecordsRequest.cc rename to ccc/src/model/DeleteAudioFileRequest.cc index 6743cf019..e95167db3 100644 --- a/ccc/src/model/ListSipCallRecordsRequest.cc +++ b/ccc/src/model/DeleteAudioFileRequest.cc @@ -14,32 +14,32 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListSipCallRecordsRequest; +using AlibabaCloud::CCC::Model::DeleteAudioFileRequest; -ListSipCallRecordsRequest::ListSipCallRecordsRequest() - : RpcServiceRequest("ccc", "2020-07-01", "ListSipCallRecords") { +DeleteAudioFileRequest::DeleteAudioFileRequest() + : RpcServiceRequest("ccc", "2020-07-01", "DeleteAudioFile") { setMethod(HttpRequest::Method::Post); } -ListSipCallRecordsRequest::~ListSipCallRecordsRequest() {} +DeleteAudioFileRequest::~DeleteAudioFileRequest() {} -std::string ListSipCallRecordsRequest::getContactIdList() const { - return contactIdList_; -} - -void ListSipCallRecordsRequest::setContactIdList(const std::string &contactIdList) { - contactIdList_ = contactIdList; - setParameter(std::string("ContactIdList"), contactIdList); -} - -std::string ListSipCallRecordsRequest::getInstanceId() const { +std::string DeleteAudioFileRequest::getInstanceId() const { return instanceId_; } -void ListSipCallRecordsRequest::setInstanceId(const std::string &instanceId) { +void DeleteAudioFileRequest::setInstanceId(const std::string &instanceId) { instanceId_ = instanceId; setParameter(std::string("InstanceId"), instanceId); } +std::string DeleteAudioFileRequest::getAudioResourceId() const { + return audioResourceId_; +} + +void DeleteAudioFileRequest::setAudioResourceId(const std::string &audioResourceId) { + audioResourceId_ = audioResourceId; + setParameter(std::string("AudioResourceId"), audioResourceId); +} + diff --git a/ccc/src/model/DeleteAudioFileResult.cc b/ccc/src/model/DeleteAudioFileResult.cc new file mode 100644 index 000000000..fa9fb2c72 --- /dev/null +++ b/ccc/src/model/DeleteAudioFileResult.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; + +DeleteAudioFileResult::DeleteAudioFileResult() : + ServiceResult() +{} + +DeleteAudioFileResult::DeleteAudioFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAudioFileResult::~DeleteAudioFileResult() +{} + +void DeleteAudioFileResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteAudioFileResult::getMessage()const +{ + return message_; +} + +int DeleteAudioFileResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteAudioFileResult::getData()const +{ + return data_; +} + +std::string DeleteAudioFileResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/DeleteContactFlowRequest.cc b/ccc/src/model/DeleteContactFlowRequest.cc new file mode 100644 index 000000000..06bce73fe --- /dev/null +++ b/ccc/src/model/DeleteContactFlowRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::DeleteContactFlowRequest; + +DeleteContactFlowRequest::DeleteContactFlowRequest() + : RpcServiceRequest("ccc", "2020-07-01", "DeleteContactFlow") { + setMethod(HttpRequest::Method::Post); +} + +DeleteContactFlowRequest::~DeleteContactFlowRequest() {} + +std::string DeleteContactFlowRequest::getContactFlowId() const { + return contactFlowId_; +} + +void DeleteContactFlowRequest::setContactFlowId(const std::string &contactFlowId) { + contactFlowId_ = contactFlowId; + setParameter(std::string("ContactFlowId"), contactFlowId); +} + +std::string DeleteContactFlowRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteContactFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/DeleteContactFlowResult.cc b/ccc/src/model/DeleteContactFlowResult.cc new file mode 100644 index 000000000..9b41b71a1 --- /dev/null +++ b/ccc/src/model/DeleteContactFlowResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +DeleteContactFlowResult::DeleteContactFlowResult() : + ServiceResult() +{} + +DeleteContactFlowResult::DeleteContactFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteContactFlowResult::~DeleteContactFlowResult() +{} + +void DeleteContactFlowResult::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 DeleteContactFlowResult::getMessage()const +{ + return message_; +} + +int DeleteContactFlowResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteContactFlowResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/DiscardEditingContactFlowRequest.cc b/ccc/src/model/DiscardEditingContactFlowRequest.cc new file mode 100644 index 000000000..a79b6c4aa --- /dev/null +++ b/ccc/src/model/DiscardEditingContactFlowRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::DiscardEditingContactFlowRequest; + +DiscardEditingContactFlowRequest::DiscardEditingContactFlowRequest() + : RpcServiceRequest("ccc", "2020-07-01", "DiscardEditingContactFlow") { + setMethod(HttpRequest::Method::Post); +} + +DiscardEditingContactFlowRequest::~DiscardEditingContactFlowRequest() {} + +std::string DiscardEditingContactFlowRequest::getContactFlowId() const { + return contactFlowId_; +} + +void DiscardEditingContactFlowRequest::setContactFlowId(const std::string &contactFlowId) { + contactFlowId_ = contactFlowId; + setParameter(std::string("ContactFlowId"), contactFlowId); +} + +std::string DiscardEditingContactFlowRequest::getDraftId() const { + return draftId_; +} + +void DiscardEditingContactFlowRequest::setDraftId(const std::string &draftId) { + draftId_ = draftId; + setParameter(std::string("DraftId"), draftId); +} + +std::string DiscardEditingContactFlowRequest::getInstanceId() const { + return instanceId_; +} + +void DiscardEditingContactFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/DiscardEditingContactFlowResult.cc b/ccc/src/model/DiscardEditingContactFlowResult.cc new file mode 100644 index 000000000..5d795f252 --- /dev/null +++ b/ccc/src/model/DiscardEditingContactFlowResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +DiscardEditingContactFlowResult::DiscardEditingContactFlowResult() : + ServiceResult() +{} + +DiscardEditingContactFlowResult::DiscardEditingContactFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DiscardEditingContactFlowResult::~DiscardEditingContactFlowResult() +{} + +void DiscardEditingContactFlowResult::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 DiscardEditingContactFlowResult::getMessage()const +{ + return message_; +} + +int DiscardEditingContactFlowResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DiscardEditingContactFlowResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/EndConferenceRequest.cc b/ccc/src/model/EndConferenceRequest.cc new file mode 100644 index 000000000..5968ca3c1 --- /dev/null +++ b/ccc/src/model/EndConferenceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::EndConferenceRequest; + +EndConferenceRequest::EndConferenceRequest() + : RpcServiceRequest("ccc", "2020-07-01", "EndConference") { + setMethod(HttpRequest::Method::Post); +} + +EndConferenceRequest::~EndConferenceRequest() {} + +std::string EndConferenceRequest::getUserId() const { + return userId_; +} + +void EndConferenceRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string EndConferenceRequest::getJobId() const { + return jobId_; +} + +void EndConferenceRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string EndConferenceRequest::getInstanceId() const { + return instanceId_; +} + +void EndConferenceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/EndConferenceResult.cc b/ccc/src/model/EndConferenceResult.cc new file mode 100644 index 000000000..f325eb171 --- /dev/null +++ b/ccc/src/model/EndConferenceResult.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; + +EndConferenceResult::EndConferenceResult() : + ServiceResult() +{} + +EndConferenceResult::EndConferenceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EndConferenceResult::~EndConferenceResult() +{} + +void EndConferenceResult::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["JobId"].isNull()) + data_.callContext.jobId = callContextNode["JobId"].asString(); + if(!callContextNode["InstanceId"].isNull()) + data_.callContext.instanceId = callContextNode["InstanceId"].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["Timestamp"].isNull()) + channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].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["DeviceState"].isNull()) + data_.userContext.deviceState = userContextNode["DeviceState"].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 EndConferenceResult::getMessage()const +{ + return message_; +} + +int EndConferenceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector EndConferenceResult::getParams()const +{ + return params_; +} + +EndConferenceResult::Data EndConferenceResult::getData()const +{ + return data_; +} + +std::string EndConferenceResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ExportCustomCallTaggingResult.cc b/ccc/src/model/ExportCustomCallTaggingResult.cc index c71786dd8..3c0fcacea 100644 --- a/ccc/src/model/ExportCustomCallTaggingResult.cc +++ b/ccc/src/model/ExportCustomCallTaggingResult.cc @@ -39,9 +39,6 @@ void ExportCustomCallTaggingResult::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["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) @@ -63,11 +60,6 @@ int ExportCustomCallTaggingResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ExportCustomCallTaggingResult::getParams()const -{ - return params_; -} - std::string ExportCustomCallTaggingResult::getData()const { return data_; diff --git a/ccc/src/model/ExportDoNotCallNumbersResult.cc b/ccc/src/model/ExportDoNotCallNumbersResult.cc index d81863975..f828ed618 100644 --- a/ccc/src/model/ExportDoNotCallNumbersResult.cc +++ b/ccc/src/model/ExportDoNotCallNumbersResult.cc @@ -39,9 +39,6 @@ void ExportDoNotCallNumbersResult::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["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) @@ -63,11 +60,6 @@ int ExportDoNotCallNumbersResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ExportDoNotCallNumbersResult::getParams()const -{ - return params_; -} - std::string ExportDoNotCallNumbersResult::getData()const { return data_; diff --git a/ccc/src/model/GetAudioFileDownloadUrlRequest.cc b/ccc/src/model/GetAudioFileDownloadUrlRequest.cc new file mode 100644 index 000000000..175c37626 --- /dev/null +++ b/ccc/src/model/GetAudioFileDownloadUrlRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetAudioFileDownloadUrlRequest; + +GetAudioFileDownloadUrlRequest::GetAudioFileDownloadUrlRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetAudioFileDownloadUrl") { + setMethod(HttpRequest::Method::Post); +} + +GetAudioFileDownloadUrlRequest::~GetAudioFileDownloadUrlRequest() {} + +std::string GetAudioFileDownloadUrlRequest::getInstanceId() const { + return instanceId_; +} + +void GetAudioFileDownloadUrlRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GetAudioFileDownloadUrlRequest::getAudioResourceId() const { + return audioResourceId_; +} + +void GetAudioFileDownloadUrlRequest::setAudioResourceId(const std::string &audioResourceId) { + audioResourceId_ = audioResourceId; + setParameter(std::string("AudioResourceId"), audioResourceId); +} + diff --git a/ccc/src/model/GetAudioFileDownloadUrlResult.cc b/ccc/src/model/GetAudioFileDownloadUrlResult.cc new file mode 100644 index 000000000..735a9d0e7 --- /dev/null +++ b/ccc/src/model/GetAudioFileDownloadUrlResult.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; + +GetAudioFileDownloadUrlResult::GetAudioFileDownloadUrlResult() : + ServiceResult() +{} + +GetAudioFileDownloadUrlResult::GetAudioFileDownloadUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAudioFileDownloadUrlResult::~GetAudioFileDownloadUrlResult() +{} + +void GetAudioFileDownloadUrlResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string GetAudioFileDownloadUrlResult::getMessage()const +{ + return message_; +} + +int GetAudioFileDownloadUrlResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetAudioFileDownloadUrlResult::getData()const +{ + return data_; +} + +std::string GetAudioFileDownloadUrlResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListSipTracesRequest.cc b/ccc/src/model/GetAudioFileRequest.cc similarity index 53% rename from ccc/src/model/ListSipTracesRequest.cc rename to ccc/src/model/GetAudioFileRequest.cc index 54c65b3d6..b08e5d605 100644 --- a/ccc/src/model/ListSipTracesRequest.cc +++ b/ccc/src/model/GetAudioFileRequest.cc @@ -14,32 +14,32 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::CCC::Model::ListSipTracesRequest; +using AlibabaCloud::CCC::Model::GetAudioFileRequest; -ListSipTracesRequest::ListSipTracesRequest() - : RpcServiceRequest("ccc", "2020-07-01", "ListSipTraces") { +GetAudioFileRequest::GetAudioFileRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetAudioFile") { setMethod(HttpRequest::Method::Post); } -ListSipTracesRequest::~ListSipTracesRequest() {} +GetAudioFileRequest::~GetAudioFileRequest() {} -std::string ListSipTracesRequest::getCallId() const { - return callId_; -} - -void ListSipTracesRequest::setCallId(const std::string &callId) { - callId_ = callId; - setParameter(std::string("CallId"), callId); -} - -std::string ListSipTracesRequest::getInstanceId() const { +std::string GetAudioFileRequest::getInstanceId() const { return instanceId_; } -void ListSipTracesRequest::setInstanceId(const std::string &instanceId) { +void GetAudioFileRequest::setInstanceId(const std::string &instanceId) { instanceId_ = instanceId; setParameter(std::string("InstanceId"), instanceId); } +std::string GetAudioFileRequest::getAudioResourceId() const { + return audioResourceId_; +} + +void GetAudioFileRequest::setAudioResourceId(const std::string &audioResourceId) { + audioResourceId_ = audioResourceId; + setParameter(std::string("AudioResourceId"), audioResourceId); +} + diff --git a/ccc/src/model/GetAudioFileResult.cc b/ccc/src/model/GetAudioFileResult.cc new file mode 100644 index 000000000..f4be8dd80 --- /dev/null +++ b/ccc/src/model/GetAudioFileResult.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; + +GetAudioFileResult::GetAudioFileResult() : + ServiceResult() +{} + +GetAudioFileResult::GetAudioFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAudioFileResult::~GetAudioFileResult() +{} + +void GetAudioFileResult::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["AudioFileName"].isNull()) + data_.audioFileName = dataNode["AudioFileName"].asString(); + if(!dataNode["OssFileKey"].isNull()) + data_.ossFileKey = dataNode["OssFileKey"].asString(); + if(!dataNode["UpdatedTime"].isNull()) + data_.updatedTime = dataNode["UpdatedTime"].asString(); + if(!dataNode["AudioResourceId"].isNull()) + data_.audioResourceId = dataNode["AudioResourceId"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["CreatedTime"].isNull()) + data_.createdTime = dataNode["CreatedTime"].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(); + +} + +std::string GetAudioFileResult::getMessage()const +{ + return message_; +} + +int GetAudioFileResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetAudioFileResult::Data GetAudioFileResult::getData()const +{ + return data_; +} + +std::string GetAudioFileResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetAudioFileUploadParametersRequest.cc b/ccc/src/model/GetAudioFileUploadParametersRequest.cc new file mode 100644 index 000000000..2fa098a8e --- /dev/null +++ b/ccc/src/model/GetAudioFileUploadParametersRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetAudioFileUploadParametersRequest; + +GetAudioFileUploadParametersRequest::GetAudioFileUploadParametersRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetAudioFileUploadParameters") { + setMethod(HttpRequest::Method::Post); +} + +GetAudioFileUploadParametersRequest::~GetAudioFileUploadParametersRequest() {} + +std::string GetAudioFileUploadParametersRequest::getInstanceId() const { + return instanceId_; +} + +void GetAudioFileUploadParametersRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GetAudioFileUploadParametersRequest::getAudioFileName() const { + return audioFileName_; +} + +void GetAudioFileUploadParametersRequest::setAudioFileName(const std::string &audioFileName) { + audioFileName_ = audioFileName; + setParameter(std::string("AudioFileName"), audioFileName); +} + diff --git a/ccc/src/model/GetAudioFileUploadParametersResult.cc b/ccc/src/model/GetAudioFileUploadParametersResult.cc new file mode 100644 index 000000000..82f7a315a --- /dev/null +++ b/ccc/src/model/GetAudioFileUploadParametersResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetAudioFileUploadParametersResult::GetAudioFileUploadParametersResult() : + ServiceResult() +{} + +GetAudioFileUploadParametersResult::GetAudioFileUploadParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAudioFileUploadParametersResult::~GetAudioFileUploadParametersResult() +{} + +void GetAudioFileUploadParametersResult::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["FilePath"].isNull()) + data_.filePath = dataNode["FilePath"].asString(); + if(!dataNode["Signature"].isNull()) + data_.signature = dataNode["Signature"].asString(); + if(!dataNode["Host"].isNull()) + data_.host = dataNode["Host"].asString(); + if(!dataNode["Policy"].isNull()) + data_.policy = dataNode["Policy"].asString(); + if(!dataNode["ExpireTime"].isNull()) + data_.expireTime = std::stoi(dataNode["ExpireTime"].asString()); + if(!dataNode["AccessKeyId"].isNull()) + data_.accessKeyId = dataNode["AccessKeyId"].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(); + +} + +std::string GetAudioFileUploadParametersResult::getMessage()const +{ + return message_; +} + +int GetAudioFileUploadParametersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetAudioFileUploadParametersResult::Data GetAudioFileUploadParametersResult::getData()const +{ + return data_; +} + +std::string GetAudioFileUploadParametersResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetCallDetailRecordResult.cc b/ccc/src/model/GetCallDetailRecordResult.cc index 1636ecc0a..10971cff9 100644 --- a/ccc/src/model/GetCallDetailRecordResult.cc +++ b/ccc/src/model/GetCallDetailRecordResult.cc @@ -84,6 +84,8 @@ void GetCallDetailRecordResult::parse(const std::string &payload) data_.calleeLocation = dataNode["CalleeLocation"].asString(); if(!dataNode["EarlyMediaState"].isNull()) data_.earlyMediaState = dataNode["EarlyMediaState"].asString(); + if(!dataNode["ReleaseReason"].isNull()) + data_.releaseReason = dataNode["ReleaseReason"].asString(); auto allAgentEventsNode = dataNode["AgentEvents"]["AgentEventsItem"]; for (auto dataNodeAgentEventsAgentEventsItem : allAgentEventsNode) { diff --git a/ccc/src/model/GetCampaignResult.cc b/ccc/src/model/GetCampaignResult.cc index 0424606d8..15e172a74 100644 --- a/ccc/src/model/GetCampaignResult.cc +++ b/ccc/src/model/GetCampaignResult.cc @@ -84,8 +84,6 @@ void GetCampaignResult::parse(const std::string &payload) httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } @@ -104,8 +102,3 @@ std::string GetCampaignResult::getCode()const return code_; } -bool GetCampaignResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/GetContactFlowRequest.cc b/ccc/src/model/GetContactFlowRequest.cc new file mode 100644 index 000000000..b9ef40e3f --- /dev/null +++ b/ccc/src/model/GetContactFlowRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetContactFlowRequest; + +GetContactFlowRequest::GetContactFlowRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetContactFlow") { + setMethod(HttpRequest::Method::Post); +} + +GetContactFlowRequest::~GetContactFlowRequest() {} + +std::string GetContactFlowRequest::getContactFlowId() const { + return contactFlowId_; +} + +void GetContactFlowRequest::setContactFlowId(const std::string &contactFlowId) { + contactFlowId_ = contactFlowId; + setParameter(std::string("ContactFlowId"), contactFlowId); +} + +std::string GetContactFlowRequest::getDraftId() const { + return draftId_; +} + +void GetContactFlowRequest::setDraftId(const std::string &draftId) { + draftId_ = draftId; + setParameter(std::string("DraftId"), draftId); +} + +std::string GetContactFlowRequest::getInstanceId() const { + return instanceId_; +} + +void GetContactFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/GetContactFlowResult.cc b/ccc/src/model/GetContactFlowResult.cc new file mode 100644 index 000000000..793400f5b --- /dev/null +++ b/ccc/src/model/GetContactFlowResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetContactFlowResult::GetContactFlowResult() : + ServiceResult() +{} + +GetContactFlowResult::GetContactFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetContactFlowResult::~GetContactFlowResult() +{} + +void GetContactFlowResult::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["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!dataNode["Definition"].isNull()) + data_.definition = dataNode["Definition"].asString(); + if(!dataNode["DraftId"].isNull()) + data_.draftId = dataNode["DraftId"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["UpdatedTime"].isNull()) + data_.updatedTime = dataNode["UpdatedTime"].asString(); + if(!dataNode["Editor"].isNull()) + data_.editor = dataNode["Editor"].asString(); + if(!dataNode["Published"].isNull()) + data_.published = dataNode["Published"].asString() == "true"; + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["ContactFlowId"].isNull()) + data_.contactFlowId = dataNode["ContactFlowId"].asString(); + if(!dataNode["CreatedTime"].isNull()) + data_.createdTime = dataNode["CreatedTime"].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 GetContactFlowResult::getMessage()const +{ + return message_; +} + +int GetContactFlowResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetContactFlowResult::Data GetContactFlowResult::getData()const +{ + return data_; +} + +std::string GetContactFlowResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetConversationDetailRequest.cc b/ccc/src/model/GetConversationDetailRequest.cc new file mode 100644 index 000000000..0af970409 --- /dev/null +++ b/ccc/src/model/GetConversationDetailRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetConversationDetailRequest; + +GetConversationDetailRequest::GetConversationDetailRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetConversationDetail") { + setMethod(HttpRequest::Method::Post); +} + +GetConversationDetailRequest::~GetConversationDetailRequest() {} + +std::string GetConversationDetailRequest::getContactId() const { + return contactId_; +} + +void GetConversationDetailRequest::setContactId(const std::string &contactId) { + contactId_ = contactId; + setParameter(std::string("ContactId"), contactId); +} + +std::string GetConversationDetailRequest::getInstanceId() const { + return instanceId_; +} + +void GetConversationDetailRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/GetConversationDetailResult.cc b/ccc/src/model/GetConversationDetailResult.cc new file mode 100644 index 000000000..a561aec8a --- /dev/null +++ b/ccc/src/model/GetConversationDetailResult.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; + +GetConversationDetailResult::GetConversationDetailResult() : + ServiceResult() +{} + +GetConversationDetailResult::GetConversationDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConversationDetailResult::~GetConversationDetailResult() +{} + +void GetConversationDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPhrasesNode = value["Phrases"]["Phrase"]; + for (auto valuePhrasesPhrase : allPhrasesNode) + { + Phrase phrasesObject; + if(!valuePhrasesPhrase["Identity"].isNull()) + phrasesObject.identity = valuePhrasesPhrase["Identity"].asString(); + if(!valuePhrasesPhrase["Role"].isNull()) + phrasesObject.role = valuePhrasesPhrase["Role"].asString(); + if(!valuePhrasesPhrase["Begin"].isNull()) + phrasesObject.begin = std::stoi(valuePhrasesPhrase["Begin"].asString()); + if(!valuePhrasesPhrase["End"].isNull()) + phrasesObject.end = std::stoi(valuePhrasesPhrase["End"].asString()); + if(!valuePhrasesPhrase["Words"].isNull()) + phrasesObject.words = valuePhrasesPhrase["Words"].asString(); + phrases_.push_back(phrasesObject); + } + 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::vector GetConversationDetailResult::getPhrases()const +{ + return phrases_; +} + +std::string GetConversationDetailResult::getMessage()const +{ + return message_; +} + +int GetConversationDetailResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetConversationDetailResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetDataChannelCredentialsRequest.cc b/ccc/src/model/GetDataChannelCredentialsRequest.cc new file mode 100644 index 000000000..f32c1718d --- /dev/null +++ b/ccc/src/model/GetDataChannelCredentialsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetDataChannelCredentialsRequest; + +GetDataChannelCredentialsRequest::GetDataChannelCredentialsRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetDataChannelCredentials") { + setMethod(HttpRequest::Method::Post); +} + +GetDataChannelCredentialsRequest::~GetDataChannelCredentialsRequest() {} + +std::string GetDataChannelCredentialsRequest::getDeviceId() const { + return deviceId_; +} + +void GetDataChannelCredentialsRequest::setDeviceId(const std::string &deviceId) { + deviceId_ = deviceId; + setParameter(std::string("DeviceId"), deviceId); +} + +std::string GetDataChannelCredentialsRequest::getInstanceId() const { + return instanceId_; +} + +void GetDataChannelCredentialsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/GetDataChannelCredentialsResult.cc b/ccc/src/model/GetDataChannelCredentialsResult.cc new file mode 100644 index 000000000..21b0674ba --- /dev/null +++ b/ccc/src/model/GetDataChannelCredentialsResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetDataChannelCredentialsResult::GetDataChannelCredentialsResult() : + ServiceResult() +{} + +GetDataChannelCredentialsResult::GetDataChannelCredentialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDataChannelCredentialsResult::~GetDataChannelCredentialsResult() +{} + +void GetDataChannelCredentialsResult::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["Topic"].isNull()) + data_.topic = dataNode["Topic"].asString(); + if(!dataNode["ClientId"].isNull()) + data_.clientId = dataNode["ClientId"].asString(); + if(!dataNode["Endpoint"].isNull()) + data_.endpoint = dataNode["Endpoint"].asString(); + if(!dataNode["UserName"].isNull()) + data_.userName = dataNode["UserName"].asString(); + if(!dataNode["Password"].isNull()) + data_.password = dataNode["Password"].asString(); + if(!dataNode["ExpiredTime"].isNull()) + data_.expiredTime = std::stol(dataNode["ExpiredTime"].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 GetDataChannelCredentialsResult::getMessage()const +{ + return message_; +} + +int GetDataChannelCredentialsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetDataChannelCredentialsResult::getParams()const +{ + return params_; +} + +GetDataChannelCredentialsResult::Data GetDataChannelCredentialsResult::getData()const +{ + return data_; +} + +std::string GetDataChannelCredentialsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetEarlyMediaRecordingRequest.cc b/ccc/src/model/GetEarlyMediaRecordingRequest.cc new file mode 100644 index 000000000..cbf26b38d --- /dev/null +++ b/ccc/src/model/GetEarlyMediaRecordingRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetEarlyMediaRecordingRequest; + +GetEarlyMediaRecordingRequest::GetEarlyMediaRecordingRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetEarlyMediaRecording") { + setMethod(HttpRequest::Method::Post); +} + +GetEarlyMediaRecordingRequest::~GetEarlyMediaRecordingRequest() {} + +std::string GetEarlyMediaRecordingRequest::getContactId() const { + return contactId_; +} + +void GetEarlyMediaRecordingRequest::setContactId(const std::string &contactId) { + contactId_ = contactId; + setParameter(std::string("ContactId"), contactId); +} + +std::string GetEarlyMediaRecordingRequest::getInstanceId() const { + return instanceId_; +} + +void GetEarlyMediaRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/GetEarlyMediaRecordingResult.cc b/ccc/src/model/GetEarlyMediaRecordingResult.cc new file mode 100644 index 000000000..b1f7fc471 --- /dev/null +++ b/ccc/src/model/GetEarlyMediaRecordingResult.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 +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetEarlyMediaRecordingResult::GetEarlyMediaRecordingResult() : + ServiceResult() +{} + +GetEarlyMediaRecordingResult::GetEarlyMediaRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEarlyMediaRecordingResult::~GetEarlyMediaRecordingResult() +{} + +void GetEarlyMediaRecordingResult::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["FileUrl"].isNull()) + data_.fileUrl = dataNode["FileUrl"].asString(); + if(!dataNode["FileName"].isNull()) + data_.fileName = dataNode["FileName"].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 GetEarlyMediaRecordingResult::getMessage()const +{ + return message_; +} + +int GetEarlyMediaRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetEarlyMediaRecordingResult::Data GetEarlyMediaRecordingResult::getData()const +{ + return data_; +} + +std::string GetEarlyMediaRecordingResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetInstanceResult.cc b/ccc/src/model/GetInstanceResult.cc index 6597ceb58..5c18c4f2e 100644 --- a/ccc/src/model/GetInstanceResult.cc +++ b/ccc/src/model/GetInstanceResult.cc @@ -122,9 +122,6 @@ void GetInstanceResult::parse(const std::string &payload) } data_.numberList.push_back(phoneNumberObject); } - 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()) @@ -144,11 +141,6 @@ int GetInstanceResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector GetInstanceResult::getParams()const -{ - return params_; -} - GetInstanceResult::Data GetInstanceResult::getData()const { return data_; diff --git a/ccc/src/model/GetMonoRecordingResult.cc b/ccc/src/model/GetMonoRecordingResult.cc index 1a6300dde..27e4d4fdc 100644 --- a/ccc/src/model/GetMonoRecordingResult.cc +++ b/ccc/src/model/GetMonoRecordingResult.cc @@ -44,6 +44,8 @@ void GetMonoRecordingResult::parse(const std::string &payload) data_.fileUrl = dataNode["FileUrl"].asString(); if(!dataNode["FileName"].isNull()) data_.fileName = dataNode["FileName"].asString(); + if(!dataNode["Duration"].isNull()) + data_.duration = std::stol(dataNode["Duration"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) diff --git a/ccc/src/model/GetTurnCredentialsResult.cc b/ccc/src/model/GetTurnCredentialsResult.cc index 08fdcd947..209f5f648 100644 --- a/ccc/src/model/GetTurnCredentialsResult.cc +++ b/ccc/src/model/GetTurnCredentialsResult.cc @@ -44,9 +44,6 @@ void GetTurnCredentialsResult::parse(const std::string &payload) data_.userName = dataNode["UserName"].asString(); if(!dataNode["Password"].isNull()) data_.password = dataNode["Password"].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()) @@ -66,11 +63,6 @@ int GetTurnCredentialsResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector GetTurnCredentialsResult::getParams()const -{ - return params_; -} - GetTurnCredentialsResult::Data GetTurnCredentialsResult::getData()const { return data_; diff --git a/ccc/src/model/GetTurnServerListResult.cc b/ccc/src/model/GetTurnServerListResult.cc index 4c12caf44..5ad3fc58c 100644 --- a/ccc/src/model/GetTurnServerListResult.cc +++ b/ccc/src/model/GetTurnServerListResult.cc @@ -39,9 +39,6 @@ void GetTurnServerListResult::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["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) @@ -63,11 +60,6 @@ int GetTurnServerListResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector GetTurnServerListResult::getParams()const -{ - return params_; -} - std::string GetTurnServerListResult::getData()const { return data_; diff --git a/ccc/src/model/GetUploadAudioDataParamsRequest.cc b/ccc/src/model/GetUploadAudioDataParamsRequest.cc new file mode 100644 index 000000000..6560c276d --- /dev/null +++ b/ccc/src/model/GetUploadAudioDataParamsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetUploadAudioDataParamsRequest; + +GetUploadAudioDataParamsRequest::GetUploadAudioDataParamsRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetUploadAudioDataParams") { + setMethod(HttpRequest::Method::Get); +} + +GetUploadAudioDataParamsRequest::~GetUploadAudioDataParamsRequest() {} + +std::string GetUploadAudioDataParamsRequest::getContactId() const { + return contactId_; +} + +void GetUploadAudioDataParamsRequest::setContactId(const std::string &contactId) { + contactId_ = contactId; + setParameter(std::string("ContactId"), contactId); +} + +std::string GetUploadAudioDataParamsRequest::getInstanceId() const { + return instanceId_; +} + +void GetUploadAudioDataParamsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/GetUploadAudioDataParamsResult.cc b/ccc/src/model/GetUploadAudioDataParamsResult.cc new file mode 100644 index 000000000..61ea4af93 --- /dev/null +++ b/ccc/src/model/GetUploadAudioDataParamsResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetUploadAudioDataParamsResult::GetUploadAudioDataParamsResult() : + ServiceResult() +{} + +GetUploadAudioDataParamsResult::GetUploadAudioDataParamsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUploadAudioDataParamsResult::~GetUploadAudioDataParamsResult() +{} + +void GetUploadAudioDataParamsResult::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["ParamsStr"].isNull()) + data_.paramsStr = dataNode["ParamsStr"].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 GetUploadAudioDataParamsResult::getMessage()const +{ + return message_; +} + +int GetUploadAudioDataParamsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetUploadAudioDataParamsResult::Data GetUploadAudioDataParamsResult::getData()const +{ + return data_; +} + +std::string GetUploadAudioDataParamsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/GetUserResult.cc b/ccc/src/model/GetUserResult.cc index 492d73d01..36ebe5e33 100644 --- a/ccc/src/model/GetUserResult.cc +++ b/ccc/src/model/GetUserResult.cc @@ -68,9 +68,6 @@ void GetUserResult::parse(const std::string &payload) data_.deviceExt = dataNode["DeviceExt"].asString(); if(!dataNode["DeviceState"].isNull()) data_.deviceState = dataNode["DeviceState"].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()) @@ -90,11 +87,6 @@ int GetUserResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector GetUserResult::getParams()const -{ - return params_; -} - GetUserResult::Data GetUserResult::getData()const { return data_; diff --git a/ccc/src/model/GetVoicemailRecordingRequest.cc b/ccc/src/model/GetVoicemailRecordingRequest.cc new file mode 100644 index 000000000..3097f1e52 --- /dev/null +++ b/ccc/src/model/GetVoicemailRecordingRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::GetVoicemailRecordingRequest; + +GetVoicemailRecordingRequest::GetVoicemailRecordingRequest() + : RpcServiceRequest("ccc", "2020-07-01", "GetVoicemailRecording") { + setMethod(HttpRequest::Method::Post); +} + +GetVoicemailRecordingRequest::~GetVoicemailRecordingRequest() {} + +std::string GetVoicemailRecordingRequest::getContactId() const { + return contactId_; +} + +void GetVoicemailRecordingRequest::setContactId(const std::string &contactId) { + contactId_ = contactId; + setParameter(std::string("ContactId"), contactId); +} + +std::string GetVoicemailRecordingRequest::getInstanceId() const { + return instanceId_; +} + +void GetVoicemailRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/GetVoicemailRecordingResult.cc b/ccc/src/model/GetVoicemailRecordingResult.cc new file mode 100644 index 000000000..34b29ec52 --- /dev/null +++ b/ccc/src/model/GetVoicemailRecordingResult.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 +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetVoicemailRecordingResult::GetVoicemailRecordingResult() : + ServiceResult() +{} + +GetVoicemailRecordingResult::GetVoicemailRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVoicemailRecordingResult::~GetVoicemailRecordingResult() +{} + +void GetVoicemailRecordingResult::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["FileUrl"].isNull()) + data_.fileUrl = dataNode["FileUrl"].asString(); + if(!dataNode["FileName"].isNull()) + data_.fileName = dataNode["FileName"].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 GetVoicemailRecordingResult::getMessage()const +{ + return message_; +} + +int GetVoicemailRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetVoicemailRecordingResult::Data GetVoicemailRecordingResult::getData()const +{ + return data_; +} + +std::string GetVoicemailRecordingResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/HoldCallResult.cc b/ccc/src/model/HoldCallResult.cc index 4405d983e..fefade7e1 100644 --- a/ccc/src/model/HoldCallResult.cc +++ b/ccc/src/model/HoldCallResult.cc @@ -63,8 +63,6 @@ void HoldCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/ImportDoNotCallNumbersResult.cc b/ccc/src/model/ImportDoNotCallNumbersResult.cc index 4312212eb..b7e853d8c 100644 --- a/ccc/src/model/ImportDoNotCallNumbersResult.cc +++ b/ccc/src/model/ImportDoNotCallNumbersResult.cc @@ -39,9 +39,6 @@ void ImportDoNotCallNumbersResult::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["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) @@ -61,11 +58,6 @@ int ImportDoNotCallNumbersResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ImportDoNotCallNumbersResult::getParams()const -{ - return params_; -} - std::string ImportDoNotCallNumbersResult::getCode()const { return code_; diff --git a/ccc/src/model/InitiateAttendedTransferRequest.cc b/ccc/src/model/InitiateAttendedTransferRequest.cc index 16e14af1e..830ddca97 100644 --- a/ccc/src/model/InitiateAttendedTransferRequest.cc +++ b/ccc/src/model/InitiateAttendedTransferRequest.cc @@ -61,6 +61,15 @@ void InitiateAttendedTransferRequest::setDeviceId(const std::string &deviceId) { setParameter(std::string("DeviceId"), deviceId); } +std::string InitiateAttendedTransferRequest::getStrategyName() const { + return strategyName_; +} + +void InitiateAttendedTransferRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("StrategyName"), strategyName); +} + int InitiateAttendedTransferRequest::getTimeoutSeconds() const { return timeoutSeconds_; } @@ -88,3 +97,21 @@ void InitiateAttendedTransferRequest::setInstanceId(const std::string &instanceI setParameter(std::string("InstanceId"), instanceId); } +std::string InitiateAttendedTransferRequest::getStrategyParams() const { + return strategyParams_; +} + +void InitiateAttendedTransferRequest::setStrategyParams(const std::string &strategyParams) { + strategyParams_ = strategyParams; + setParameter(std::string("StrategyParams"), strategyParams); +} + +int InitiateAttendedTransferRequest::getCallPriority() const { + return callPriority_; +} + +void InitiateAttendedTransferRequest::setCallPriority(int callPriority) { + callPriority_ = callPriority; + setParameter(std::string("CallPriority"), std::to_string(callPriority)); +} + diff --git a/ccc/src/model/InitiateAttendedTransferResult.cc b/ccc/src/model/InitiateAttendedTransferResult.cc index 46f3348bf..69e91f42b 100644 --- a/ccc/src/model/InitiateAttendedTransferResult.cc +++ b/ccc/src/model/InitiateAttendedTransferResult.cc @@ -69,8 +69,6 @@ void InitiateAttendedTransferResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/InterceptCallResult.cc b/ccc/src/model/InterceptCallResult.cc index 6bc0aee83..4699feb4a 100644 --- a/ccc/src/model/InterceptCallResult.cc +++ b/ccc/src/model/InterceptCallResult.cc @@ -67,8 +67,6 @@ void InterceptCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/LaunchAuthenticationResult.cc b/ccc/src/model/LaunchAuthenticationResult.cc index 7da71520f..042551015 100644 --- a/ccc/src/model/LaunchAuthenticationResult.cc +++ b/ccc/src/model/LaunchAuthenticationResult.cc @@ -67,8 +67,6 @@ void LaunchAuthenticationResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/LaunchSurveyResult.cc b/ccc/src/model/LaunchSurveyResult.cc index fbffd8f35..a6a85fcb2 100644 --- a/ccc/src/model/LaunchSurveyResult.cc +++ b/ccc/src/model/LaunchSurveyResult.cc @@ -69,8 +69,6 @@ void LaunchSurveyResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/ListAgentStatesRequest.cc b/ccc/src/model/ListAgentStatesRequest.cc index f83197da6..fac55c457 100644 --- a/ccc/src/model/ListAgentStatesRequest.cc +++ b/ccc/src/model/ListAgentStatesRequest.cc @@ -88,3 +88,12 @@ void ListAgentStatesRequest::setState(const std::string &state) { setParameter(std::string("State"), state); } +bool ListAgentStatesRequest::getExcludeOfflineUsers() const { + return excludeOfflineUsers_; +} + +void ListAgentStatesRequest::setExcludeOfflineUsers(bool excludeOfflineUsers) { + excludeOfflineUsers_ = excludeOfflineUsers; + setParameter(std::string("ExcludeOfflineUsers"), excludeOfflineUsers ? "true" : "false"); +} + diff --git a/ccc/src/model/ListAgentStatesResult.cc b/ccc/src/model/ListAgentStatesResult.cc index a17b7fde2..d171b34a7 100644 --- a/ccc/src/model/ListAgentStatesResult.cc +++ b/ccc/src/model/ListAgentStatesResult.cc @@ -64,6 +64,10 @@ void ListAgentStatesResult::parse(const std::string &payload) realTimeAgentStateObject.agentName = dataNodeListRealTimeAgentState["AgentName"].asString(); if(!dataNodeListRealTimeAgentState["InstanceId"].isNull()) realTimeAgentStateObject.instanceId = dataNodeListRealTimeAgentState["InstanceId"].asString(); + if(!dataNodeListRealTimeAgentState["BreakCode"].isNull()) + realTimeAgentStateObject.breakCode = dataNodeListRealTimeAgentState["BreakCode"].asString(); + if(!dataNodeListRealTimeAgentState["OutboundScenario"].isNull()) + realTimeAgentStateObject.outboundScenario = dataNodeListRealTimeAgentState["OutboundScenario"].asString() == "true"; data_.list.push_back(realTimeAgentStateObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/ccc/src/model/ListAttemptsRequest.cc b/ccc/src/model/ListAttemptsRequest.cc index 727f986d4..b83b4beec 100644 --- a/ccc/src/model/ListAttemptsRequest.cc +++ b/ccc/src/model/ListAttemptsRequest.cc @@ -43,6 +43,15 @@ void ListAttemptsRequest::setCampaignId(const std::string &campaignId) { setParameter(std::string("CampaignId"), campaignId); } +std::string ListAttemptsRequest::getCriteria() const { + return criteria_; +} + +void ListAttemptsRequest::setCriteria(const std::string &criteria) { + criteria_ = criteria; + setParameter(std::string("Criteria"), criteria); +} + std::string ListAttemptsRequest::getCallee() const { return callee_; } diff --git a/ccc/src/model/ListAudioFilesRequest.cc b/ccc/src/model/ListAudioFilesRequest.cc new file mode 100644 index 000000000..290be0175 --- /dev/null +++ b/ccc/src/model/ListAudioFilesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ListAudioFilesRequest; + +ListAudioFilesRequest::ListAudioFilesRequest() + : RpcServiceRequest("ccc", "2020-07-01", "ListAudioFiles") { + setMethod(HttpRequest::Method::Post); +} + +ListAudioFilesRequest::~ListAudioFilesRequest() {} + +int ListAudioFilesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAudioFilesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListAudioFilesRequest::getInstanceId() const { + return instanceId_; +} + +void ListAudioFilesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListAudioFilesRequest::getPageSize() const { + return pageSize_; +} + +void ListAudioFilesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListAudioFilesResult.cc b/ccc/src/model/ListAudioFilesResult.cc new file mode 100644 index 000000000..65b219807 --- /dev/null +++ b/ccc/src/model/ListAudioFilesResult.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; + +ListAudioFilesResult::ListAudioFilesResult() : + ServiceResult() +{} + +ListAudioFilesResult::ListAudioFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAudioFilesResult::~ListAudioFilesResult() +{} + +void ListAudioFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allListNode = dataNode["List"]["ContactFlow"]; + for (auto dataNodeListContactFlow : allListNode) + { + Data::ContactFlow contactFlowObject; + if(!dataNodeListContactFlow["AudioFileName"].isNull()) + contactFlowObject.audioFileName = dataNodeListContactFlow["AudioFileName"].asString(); + if(!dataNodeListContactFlow["OssFileKey"].isNull()) + contactFlowObject.ossFileKey = dataNodeListContactFlow["OssFileKey"].asString(); + if(!dataNodeListContactFlow["UpdatedTime"].isNull()) + contactFlowObject.updatedTime = dataNodeListContactFlow["UpdatedTime"].asString(); + if(!dataNodeListContactFlow["AudioResourceId"].isNull()) + contactFlowObject.audioResourceId = dataNodeListContactFlow["AudioResourceId"].asString(); + if(!dataNodeListContactFlow["InstanceId"].isNull()) + contactFlowObject.instanceId = dataNodeListContactFlow["InstanceId"].asString(); + if(!dataNodeListContactFlow["Name"].isNull()) + contactFlowObject.name = dataNodeListContactFlow["Name"].asString(); + if(!dataNodeListContactFlow["CreatedTime"].isNull()) + contactFlowObject.createdTime = dataNodeListContactFlow["CreatedTime"].asString(); + data_.list.push_back(contactFlowObject); + } + 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(); + +} + +std::string ListAudioFilesResult::getMessage()const +{ + return message_; +} + +int ListAudioFilesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListAudioFilesResult::Data ListAudioFilesResult::getData()const +{ + return data_; +} + +std::string ListAudioFilesResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ListCallDetailRecordsResult.cc b/ccc/src/model/ListCallDetailRecordsResult.cc index f52e2235b..cbfe175d0 100644 --- a/ccc/src/model/ListCallDetailRecordsResult.cc +++ b/ccc/src/model/ListCallDetailRecordsResult.cc @@ -110,6 +110,12 @@ void ListCallDetailRecordsResult::parse(const std::string &payload) callDetailRecordObject.calleeLocation = dataNodeListCallDetailRecord["CalleeLocation"].asString(); if(!dataNodeListCallDetailRecord["EarlyMediaState"].isNull()) callDetailRecordObject.earlyMediaState = dataNodeListCallDetailRecord["EarlyMediaState"].asString(); + if(!dataNodeListCallDetailRecord["ReleaseReason"].isNull()) + callDetailRecordObject.releaseReason = dataNodeListCallDetailRecord["ReleaseReason"].asString(); + if(!dataNodeListCallDetailRecord["DialingTime"].isNull()) + callDetailRecordObject.dialingTime = std::stol(dataNodeListCallDetailRecord["DialingTime"].asString()); + if(!dataNodeListCallDetailRecord["TalkTime"].isNull()) + callDetailRecordObject.talkTime = std::stol(dataNodeListCallDetailRecord["TalkTime"].asString()); data_.list.push_back(callDetailRecordObject); } if(!value["Code"].isNull()) diff --git a/ccc/src/model/ListCasesRequest.cc b/ccc/src/model/ListCasesRequest.cc index d8502abae..a60529d17 100644 --- a/ccc/src/model/ListCasesRequest.cc +++ b/ccc/src/model/ListCasesRequest.cc @@ -61,6 +61,15 @@ void ListCasesRequest::setPageSize(long pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string ListCasesRequest::getState() const { + return state_; +} + +void ListCasesRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + long ListCasesRequest::getPageNumber() const { return pageNumber_; } diff --git a/ccc/src/model/ListCasesResult.cc b/ccc/src/model/ListCasesResult.cc index 2cdf15e08..c60b5742a 100644 --- a/ccc/src/model/ListCasesResult.cc +++ b/ccc/src/model/ListCasesResult.cc @@ -54,8 +54,6 @@ void ListCasesResult::parse(const std::string &payload) listItemObject.abandonType = dataNodeListlistItem["AbandonType"].asString(); if(!dataNodeListlistItem["AttemptCount"].isNull()) listItemObject.attemptCount = std::stol(dataNodeListlistItem["AttemptCount"].asString()); - if(!dataNodeListlistItem["ExpandInfo"].isNull()) - listItemObject.expandInfo = dataNodeListlistItem["ExpandInfo"].asString(); if(!dataNodeListlistItem["FailureReason"].isNull()) listItemObject.failureReason = dataNodeListlistItem["FailureReason"].asString(); if(!dataNodeListlistItem["PhoneNumber"].isNull()) @@ -74,8 +72,6 @@ void ListCasesResult::parse(const std::string &payload) httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } @@ -99,8 +95,3 @@ std::string ListCasesResult::getCode()const return code_; } -bool ListCasesResult::getSuccess()const -{ - return success_; -} - diff --git a/ccc/src/model/ListDoNotCallNumbersResult.cc b/ccc/src/model/ListDoNotCallNumbersResult.cc index e6b3dce04..32675ee41 100644 --- a/ccc/src/model/ListDoNotCallNumbersResult.cc +++ b/ccc/src/model/ListDoNotCallNumbersResult.cc @@ -62,9 +62,6 @@ void ListDoNotCallNumbersResult::parse(const std::string &payload) blockedNumberObject.creator = dataNodeListBlockedNumber["Creator"].asString(); data_.list.push_back(blockedNumberObject); } - 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()) @@ -84,11 +81,6 @@ int ListDoNotCallNumbersResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListDoNotCallNumbersResult::getParams()const -{ - return params_; -} - ListDoNotCallNumbersResult::Data ListDoNotCallNumbersResult::getData()const { return data_; diff --git a/ccc/src/model/ListHistoricalAgentReportResult.cc b/ccc/src/model/ListHistoricalAgentReportResult.cc index 786a7f095..7229b4bca 100644 --- a/ccc/src/model/ListHistoricalAgentReportResult.cc +++ b/ccc/src/model/ListHistoricalAgentReportResult.cc @@ -56,6 +56,10 @@ void ListHistoricalAgentReportResult::parse(const std::string &payload) itemsObject.agentId = dataNodeListItems["AgentId"].asString(); if(!dataNodeListItems["DisplayId"].isNull()) itemsObject.displayId = dataNodeListItems["DisplayId"].asString(); + if(!dataNodeListItems["SkillGroupIds"].isNull()) + itemsObject.skillGroupIds = dataNodeListItems["SkillGroupIds"].asString(); + if(!dataNodeListItems["SkillGroupNames"].isNull()) + itemsObject.skillGroupNames = dataNodeListItems["SkillGroupNames"].asString(); auto inboundNode = value["Inbound"]; if(!inboundNode["AverageRingTime"].isNull()) itemsObject.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString()); diff --git a/ccc/src/model/ListInstancesOfUserResult.cc b/ccc/src/model/ListInstancesOfUserResult.cc index 37c719946..4d038d465 100644 --- a/ccc/src/model/ListInstancesOfUserResult.cc +++ b/ccc/src/model/ListInstancesOfUserResult.cc @@ -134,9 +134,6 @@ void ListInstancesOfUserResult::parse(const std::string &payload) } 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()) @@ -156,11 +153,6 @@ int ListInstancesOfUserResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListInstancesOfUserResult::getParams()const -{ - return params_; -} - ListInstancesOfUserResult::Data ListInstancesOfUserResult::getData()const { return data_; diff --git a/ccc/src/model/ListInstancesResult.cc b/ccc/src/model/ListInstancesResult.cc index 796509a26..da50383ec 100644 --- a/ccc/src/model/ListInstancesResult.cc +++ b/ccc/src/model/ListInstancesResult.cc @@ -102,9 +102,6 @@ void ListInstancesResult::parse(const std::string &payload) } 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()) @@ -124,11 +121,6 @@ int ListInstancesResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListInstancesResult::getParams()const -{ - return params_; -} - ListInstancesResult::Data ListInstancesResult::getData()const { return data_; diff --git a/ccc/src/model/ListLegacyAgentEventLogsRequest.cc b/ccc/src/model/ListLegacyAgentEventLogsRequest.cc new file mode 100644 index 000000000..50ebc69da --- /dev/null +++ b/ccc/src/model/ListLegacyAgentEventLogsRequest.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 + +using AlibabaCloud::CCC::Model::ListLegacyAgentEventLogsRequest; + +ListLegacyAgentEventLogsRequest::ListLegacyAgentEventLogsRequest() + : RpcServiceRequest("ccc", "2020-07-01", "ListLegacyAgentEventLogs") { + setMethod(HttpRequest::Method::Post); +} + +ListLegacyAgentEventLogsRequest::~ListLegacyAgentEventLogsRequest() {} + +std::string ListLegacyAgentEventLogsRequest::getAgentId() const { + return agentId_; +} + +void ListLegacyAgentEventLogsRequest::setAgentId(const std::string &agentId) { + agentId_ = agentId; + setParameter(std::string("AgentId"), agentId); +} + +long ListLegacyAgentEventLogsRequest::getEndTime() const { + return endTime_; +} + +void ListLegacyAgentEventLogsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListLegacyAgentEventLogsRequest::getStartTime() const { + return startTime_; +} + +void ListLegacyAgentEventLogsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +int ListLegacyAgentEventLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListLegacyAgentEventLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListLegacyAgentEventLogsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListLegacyAgentEventLogsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListLegacyAgentEventLogsRequest::getInstanceId() const { + return instanceId_; +} + +void ListLegacyAgentEventLogsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListLegacyAgentEventLogsRequest::getPageSize() const { + return pageSize_; +} + +void ListLegacyAgentEventLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListLegacyAgentEventLogsResult.cc b/ccc/src/model/ListLegacyAgentEventLogsResult.cc new file mode 100644 index 000000000..466abf931 --- /dev/null +++ b/ccc/src/model/ListLegacyAgentEventLogsResult.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; + +ListLegacyAgentEventLogsResult::ListLegacyAgentEventLogsResult() : + ServiceResult() +{} + +ListLegacyAgentEventLogsResult::ListLegacyAgentEventLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLegacyAgentEventLogsResult::~ListLegacyAgentEventLogsResult() +{} + +void ListLegacyAgentEventLogsResult::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"]["AgentEventLog"]; + for (auto dataNodeListAgentEventLog : allListNode) + { + Data::AgentEventLog agentEventLogObject; + if(!dataNodeListAgentEventLog["TargetSelect"].isNull()) + agentEventLogObject.targetSelect = dataNodeListAgentEventLog["TargetSelect"].asString(); + if(!dataNodeListAgentEventLog["TargetRequest"].isNull()) + agentEventLogObject.targetRequest = dataNodeListAgentEventLog["TargetRequest"].asString(); + if(!dataNodeListAgentEventLog["StatisticDate"].isNull()) + agentEventLogObject.statisticDate = dataNodeListAgentEventLog["StatisticDate"].asString(); + if(!dataNodeListAgentEventLog["PhoneNo"].isNull()) + agentEventLogObject.phoneNo = dataNodeListAgentEventLog["PhoneNo"].asString(); + if(!dataNodeListAgentEventLog["GroupNo"].isNull()) + agentEventLogObject.groupNo = dataNodeListAgentEventLog["GroupNo"].asString(); + if(!dataNodeListAgentEventLog["Event"].isNull()) + agentEventLogObject.event = dataNodeListAgentEventLog["Event"].asString(); + if(!dataNodeListAgentEventLog["ConnId"].isNull()) + agentEventLogObject.connId = dataNodeListAgentEventLog["ConnId"].asString(); + if(!dataNodeListAgentEventLog["CallType"].isNull()) + agentEventLogObject.callType = dataNodeListAgentEventLog["CallType"].asString(); + if(!dataNodeListAgentEventLog["CallId"].isNull()) + agentEventLogObject.callId = dataNodeListAgentEventLog["CallId"].asString(); + if(!dataNodeListAgentEventLog["CallerId"].isNull()) + agentEventLogObject.callerId = dataNodeListAgentEventLog["CallerId"].asString(); + if(!dataNodeListAgentEventLog["CalleeId"].isNull()) + agentEventLogObject.calleeId = dataNodeListAgentEventLog["CalleeId"].asString(); + if(!dataNodeListAgentEventLog["AgentNo"].isNull()) + agentEventLogObject.agentNo = dataNodeListAgentEventLog["AgentNo"].asString(); + if(!dataNodeListAgentEventLog["AgentDropCall"].isNull()) + agentEventLogObject.agentDropCall = dataNodeListAgentEventLog["AgentDropCall"].asString(); + if(!dataNodeListAgentEventLog["TransferNumber"].isNull()) + agentEventLogObject.transferNumber = dataNodeListAgentEventLog["TransferNumber"].asString(); + if(!dataNodeListAgentEventLog["CallDir"].isNull()) + agentEventLogObject.callDir = dataNodeListAgentEventLog["CallDir"].asString(); + if(!dataNodeListAgentEventLog["CallMode"].isNull()) + agentEventLogObject.callMode = dataNodeListAgentEventLog["CallMode"].asString(); + if(!dataNodeListAgentEventLog["TenantId"].isNull()) + agentEventLogObject.tenantId = dataNodeListAgentEventLog["TenantId"].asString(); + if(!dataNodeListAgentEventLog["OutboundScenario"].isNull()) + agentEventLogObject.outboundScenario = dataNodeListAgentEventLog["OutboundScenario"].asString() == "true"; + data_.list.push_back(agentEventLogObject); + } + 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 ListLegacyAgentEventLogsResult::getMessage()const +{ + return message_; +} + +int ListLegacyAgentEventLogsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListLegacyAgentEventLogsResult::Data ListLegacyAgentEventLogsResult::getData()const +{ + return data_; +} + +std::string ListLegacyAgentEventLogsResult::getCode()const +{ + return code_; +} + +bool ListLegacyAgentEventLogsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListLegacyAgentStatusLogsRequest.cc b/ccc/src/model/ListLegacyAgentStatusLogsRequest.cc new file mode 100644 index 000000000..46fee8521 --- /dev/null +++ b/ccc/src/model/ListLegacyAgentStatusLogsRequest.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 + +using AlibabaCloud::CCC::Model::ListLegacyAgentStatusLogsRequest; + +ListLegacyAgentStatusLogsRequest::ListLegacyAgentStatusLogsRequest() + : RpcServiceRequest("ccc", "2020-07-01", "ListLegacyAgentStatusLogs") { + setMethod(HttpRequest::Method::Post); +} + +ListLegacyAgentStatusLogsRequest::~ListLegacyAgentStatusLogsRequest() {} + +std::string ListLegacyAgentStatusLogsRequest::getAgentId() const { + return agentId_; +} + +void ListLegacyAgentStatusLogsRequest::setAgentId(const std::string &agentId) { + agentId_ = agentId; + setParameter(std::string("AgentId"), agentId); +} + +long ListLegacyAgentStatusLogsRequest::getEndTime() const { + return endTime_; +} + +void ListLegacyAgentStatusLogsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListLegacyAgentStatusLogsRequest::getStartTime() const { + return startTime_; +} + +void ListLegacyAgentStatusLogsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +int ListLegacyAgentStatusLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListLegacyAgentStatusLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListLegacyAgentStatusLogsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListLegacyAgentStatusLogsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListLegacyAgentStatusLogsRequest::getInstanceId() const { + return instanceId_; +} + +void ListLegacyAgentStatusLogsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListLegacyAgentStatusLogsRequest::getPageSize() const { + return pageSize_; +} + +void ListLegacyAgentStatusLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListLegacyAgentStatusLogsResult.cc b/ccc/src/model/ListLegacyAgentStatusLogsResult.cc new file mode 100644 index 000000000..74c7daeed --- /dev/null +++ b/ccc/src/model/ListLegacyAgentStatusLogsResult.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; + +ListLegacyAgentStatusLogsResult::ListLegacyAgentStatusLogsResult() : + ServiceResult() +{} + +ListLegacyAgentStatusLogsResult::ListLegacyAgentStatusLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLegacyAgentStatusLogsResult::~ListLegacyAgentStatusLogsResult() +{} + +void ListLegacyAgentStatusLogsResult::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"]["AgentStatusLog"]; + for (auto dataNodeListAgentStatusLog : allListNode) + { + Data::AgentStatusLog agentStatusLogObject; + if(!dataNodeListAgentStatusLog["TransferNo"].isNull()) + agentStatusLogObject.transferNo = dataNodeListAgentStatusLog["TransferNo"].asString(); + if(!dataNodeListAgentStatusLog["TargetSelect"].isNull()) + agentStatusLogObject.targetSelect = dataNodeListAgentStatusLog["TargetSelect"].asString(); + if(!dataNodeListAgentStatusLog["TargetRequest"].isNull()) + agentStatusLogObject.targetRequest = dataNodeListAgentStatusLog["TargetRequest"].asString(); + if(!dataNodeListAgentStatusLog["Status"].isNull()) + agentStatusLogObject.status = dataNodeListAgentStatusLog["Status"].asString(); + if(!dataNodeListAgentStatusLog["StatisticDate"].isNull()) + agentStatusLogObject.statisticDate = dataNodeListAgentStatusLog["StatisticDate"].asString(); + if(!dataNodeListAgentStatusLog["StatisticTime"].isNull()) + agentStatusLogObject.statisticTime = std::stoi(dataNodeListAgentStatusLog["StatisticTime"].asString()); + if(!dataNodeListAgentStatusLog["PhoneNo"].isNull()) + agentStatusLogObject.phoneNo = dataNodeListAgentStatusLog["PhoneNo"].asString(); + if(!dataNodeListAgentStatusLog["MonitedAgentPhoneNo"].isNull()) + agentStatusLogObject.monitedAgentPhoneNo = dataNodeListAgentStatusLog["MonitedAgentPhoneNo"].asString(); + if(!dataNodeListAgentStatusLog["MonitedAgentNo"].isNull()) + agentStatusLogObject.monitedAgentNo = dataNodeListAgentStatusLog["MonitedAgentNo"].asString(); + if(!dataNodeListAgentStatusLog["GroupNo"].isNull()) + agentStatusLogObject.groupNo = dataNodeListAgentStatusLog["GroupNo"].asString(); + if(!dataNodeListAgentStatusLog["ConnId"].isNull()) + agentStatusLogObject.connId = dataNodeListAgentStatusLog["ConnId"].asString(); + if(!dataNodeListAgentStatusLog["CallType"].isNull()) + agentStatusLogObject.callType = dataNodeListAgentStatusLog["CallType"].asString(); + if(!dataNodeListAgentStatusLog["CallId"].isNull()) + agentStatusLogObject.callId = dataNodeListAgentStatusLog["CallId"].asString(); + if(!dataNodeListAgentStatusLog["CallerId"].isNull()) + agentStatusLogObject.callerId = dataNodeListAgentStatusLog["CallerId"].asString(); + if(!dataNodeListAgentStatusLog["CalleeId"].isNull()) + agentStatusLogObject.calleeId = dataNodeListAgentStatusLog["CalleeId"].asString(); + if(!dataNodeListAgentStatusLog["CallDir"].isNull()) + agentStatusLogObject.callDir = dataNodeListAgentStatusLog["CallDir"].asString(); + if(!dataNodeListAgentStatusLog["AgentNo"].isNull()) + agentStatusLogObject.agentNo = dataNodeListAgentStatusLog["AgentNo"].asString(); + if(!dataNodeListAgentStatusLog["AgentDropCall"].isNull()) + agentStatusLogObject.agentDropCall = dataNodeListAgentStatusLog["AgentDropCall"].asString(); + if(!dataNodeListAgentStatusLog["AliHangupCause"].isNull()) + agentStatusLogObject.aliHangupCause = dataNodeListAgentStatusLog["AliHangupCause"].asString(); + if(!dataNodeListAgentStatusLog["TransferNumber"].isNull()) + agentStatusLogObject.transferNumber = dataNodeListAgentStatusLog["TransferNumber"].asString(); + if(!dataNodeListAgentStatusLog["Extend1"].isNull()) + agentStatusLogObject.extend1 = dataNodeListAgentStatusLog["Extend1"].asString(); + if(!dataNodeListAgentStatusLog["Extend2"].isNull()) + agentStatusLogObject.extend2 = dataNodeListAgentStatusLog["Extend2"].asString(); + if(!dataNodeListAgentStatusLog["Extend3"].isNull()) + agentStatusLogObject.extend3 = dataNodeListAgentStatusLog["Extend3"].asString(); + if(!dataNodeListAgentStatusLog["Extend4"].isNull()) + agentStatusLogObject.extend4 = dataNodeListAgentStatusLog["Extend4"].asString(); + if(!dataNodeListAgentStatusLog["TenantId"].isNull()) + agentStatusLogObject.tenantId = dataNodeListAgentStatusLog["TenantId"].asString(); + if(!dataNodeListAgentStatusLog["OutboundScenario"].isNull()) + agentStatusLogObject.outboundScenario = dataNodeListAgentStatusLog["OutboundScenario"].asString() == "true"; + data_.list.push_back(agentStatusLogObject); + } + 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 ListLegacyAgentStatusLogsResult::getMessage()const +{ + return message_; +} + +int ListLegacyAgentStatusLogsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListLegacyAgentStatusLogsResult::Data ListLegacyAgentStatusLogsResult::getData()const +{ + return data_; +} + +std::string ListLegacyAgentStatusLogsResult::getCode()const +{ + return code_; +} + +bool ListLegacyAgentStatusLogsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListLegacyAppraiseLogsRequest.cc b/ccc/src/model/ListLegacyAppraiseLogsRequest.cc new file mode 100644 index 000000000..e8d80154c --- /dev/null +++ b/ccc/src/model/ListLegacyAppraiseLogsRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ListLegacyAppraiseLogsRequest; + +ListLegacyAppraiseLogsRequest::ListLegacyAppraiseLogsRequest() + : RpcServiceRequest("ccc", "2020-07-01", "ListLegacyAppraiseLogs") { + setMethod(HttpRequest::Method::Post); +} + +ListLegacyAppraiseLogsRequest::~ListLegacyAppraiseLogsRequest() {} + +long ListLegacyAppraiseLogsRequest::getEndTime() const { + return endTime_; +} + +void ListLegacyAppraiseLogsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListLegacyAppraiseLogsRequest::getStartTime() const { + return startTime_; +} + +void ListLegacyAppraiseLogsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +int ListLegacyAppraiseLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListLegacyAppraiseLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListLegacyAppraiseLogsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListLegacyAppraiseLogsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListLegacyAppraiseLogsRequest::getInstanceId() const { + return instanceId_; +} + +void ListLegacyAppraiseLogsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListLegacyAppraiseLogsRequest::getPageSize() const { + return pageSize_; +} + +void ListLegacyAppraiseLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListLegacyAppraiseLogsResult.cc b/ccc/src/model/ListLegacyAppraiseLogsResult.cc new file mode 100644 index 000000000..06dbf2d42 --- /dev/null +++ b/ccc/src/model/ListLegacyAppraiseLogsResult.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; + +ListLegacyAppraiseLogsResult::ListLegacyAppraiseLogsResult() : + ServiceResult() +{} + +ListLegacyAppraiseLogsResult::ListLegacyAppraiseLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLegacyAppraiseLogsResult::~ListLegacyAppraiseLogsResult() +{} + +void ListLegacyAppraiseLogsResult::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"]["AgentStatusLog"]; + for (auto dataNodeListAgentStatusLog : allListNode) + { + Data::AgentStatusLog agentStatusLogObject; + if(!dataNodeListAgentStatusLog["Id"].isNull()) + agentStatusLogObject.id = std::stol(dataNodeListAgentStatusLog["Id"].asString()); + if(!dataNodeListAgentStatusLog["Acid"].isNull()) + agentStatusLogObject.acid = dataNodeListAgentStatusLog["Acid"].asString(); + if(!dataNodeListAgentStatusLog["ContactType"].isNull()) + agentStatusLogObject.contactType = dataNodeListAgentStatusLog["ContactType"].asString(); + if(!dataNodeListAgentStatusLog["RamId"].isNull()) + agentStatusLogObject.ramId = dataNodeListAgentStatusLog["RamId"].asString(); + if(!dataNodeListAgentStatusLog["StatisticDate"].isNull()) + agentStatusLogObject.statisticDate = dataNodeListAgentStatusLog["StatisticDate"].asString(); + if(!dataNodeListAgentStatusLog["SkillGroupId"].isNull()) + agentStatusLogObject.skillGroupId = dataNodeListAgentStatusLog["SkillGroupId"].asString(); + if(!dataNodeListAgentStatusLog["InstanceId"].isNull()) + agentStatusLogObject.instanceId = dataNodeListAgentStatusLog["InstanceId"].asString(); + if(!dataNodeListAgentStatusLog["PressKey"].isNull()) + agentStatusLogObject.pressKey = dataNodeListAgentStatusLog["PressKey"].asString(); + if(!dataNodeListAgentStatusLog["Note"].isNull()) + agentStatusLogObject.note = dataNodeListAgentStatusLog["Note"].asString(); + if(!dataNodeListAgentStatusLog["ParentNote"].isNull()) + agentStatusLogObject.parentNote = dataNodeListAgentStatusLog["ParentNote"].asString(); + if(!dataNodeListAgentStatusLog["Type"].isNull()) + agentStatusLogObject.type = dataNodeListAgentStatusLog["Type"].asString(); + if(!dataNodeListAgentStatusLog["KeyMarkRelation"].isNull()) + agentStatusLogObject.keyMarkRelation = dataNodeListAgentStatusLog["KeyMarkRelation"].asString(); + data_.list.push_back(agentStatusLogObject); + } + 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 ListLegacyAppraiseLogsResult::getMessage()const +{ + return message_; +} + +int ListLegacyAppraiseLogsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListLegacyAppraiseLogsResult::Data ListLegacyAppraiseLogsResult::getData()const +{ + return data_; +} + +std::string ListLegacyAppraiseLogsResult::getCode()const +{ + return code_; +} + +bool ListLegacyAppraiseLogsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListLegacyQueueEventLogsRequest.cc b/ccc/src/model/ListLegacyQueueEventLogsRequest.cc new file mode 100644 index 000000000..5785fd4bf --- /dev/null +++ b/ccc/src/model/ListLegacyQueueEventLogsRequest.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 + +using AlibabaCloud::CCC::Model::ListLegacyQueueEventLogsRequest; + +ListLegacyQueueEventLogsRequest::ListLegacyQueueEventLogsRequest() + : RpcServiceRequest("ccc", "2020-07-01", "ListLegacyQueueEventLogs") { + setMethod(HttpRequest::Method::Post); +} + +ListLegacyQueueEventLogsRequest::~ListLegacyQueueEventLogsRequest() {} + +long ListLegacyQueueEventLogsRequest::getEndTime() const { + return endTime_; +} + +void ListLegacyQueueEventLogsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListLegacyQueueEventLogsRequest::getStartTime() const { + return startTime_; +} + +void ListLegacyQueueEventLogsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +int ListLegacyQueueEventLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListLegacyQueueEventLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListLegacyQueueEventLogsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListLegacyQueueEventLogsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListLegacyQueueEventLogsRequest::getInstanceId() const { + return instanceId_; +} + +void ListLegacyQueueEventLogsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListLegacyQueueEventLogsRequest::getSkillGroupId() const { + return skillGroupId_; +} + +void ListLegacyQueueEventLogsRequest::setSkillGroupId(const std::string &skillGroupId) { + skillGroupId_ = skillGroupId; + setParameter(std::string("SkillGroupId"), skillGroupId); +} + +int ListLegacyQueueEventLogsRequest::getPageSize() const { + return pageSize_; +} + +void ListLegacyQueueEventLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ccc/src/model/ListLegacyQueueEventLogsResult.cc b/ccc/src/model/ListLegacyQueueEventLogsResult.cc new file mode 100644 index 000000000..cee52c94d --- /dev/null +++ b/ccc/src/model/ListLegacyQueueEventLogsResult.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; + +ListLegacyQueueEventLogsResult::ListLegacyQueueEventLogsResult() : + ServiceResult() +{} + +ListLegacyQueueEventLogsResult::ListLegacyQueueEventLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLegacyQueueEventLogsResult::~ListLegacyQueueEventLogsResult() +{} + +void ListLegacyQueueEventLogsResult::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"]["QueueEventLog"]; + for (auto dataNodeListQueueEventLog : allListNode) + { + Data::QueueEventLog queueEventLogObject; + if(!dataNodeListQueueEventLog["Vq"].isNull()) + queueEventLogObject.vq = dataNodeListQueueEventLog["Vq"].asString(); + if(!dataNodeListQueueEventLog["StatisticDate"].isNull()) + queueEventLogObject.statisticDate = dataNodeListQueueEventLog["StatisticDate"].asString(); + if(!dataNodeListQueueEventLog["QueueTime"].isNull()) + queueEventLogObject.queueTime = std::stol(dataNodeListQueueEventLog["QueueTime"].asString()); + if(!dataNodeListQueueEventLog["Ani"].isNull()) + queueEventLogObject.ani = dataNodeListQueueEventLog["Ani"].asString(); + if(!dataNodeListQueueEventLog["Dnis"].isNull()) + queueEventLogObject.dnis = dataNodeListQueueEventLog["Dnis"].asString(); + if(!dataNodeListQueueEventLog["Cause"].isNull()) + queueEventLogObject.cause = dataNodeListQueueEventLog["Cause"].asString(); + if(!dataNodeListQueueEventLog["AnswerTime"].isNull()) + queueEventLogObject.answerTime = std::stol(dataNodeListQueueEventLog["AnswerTime"].asString()); + if(!dataNodeListQueueEventLog["AnswerPhone"].isNull()) + queueEventLogObject.answerPhone = dataNodeListQueueEventLog["AnswerPhone"].asString(); + if(!dataNodeListQueueEventLog["Acid"].isNull()) + queueEventLogObject.acid = dataNodeListQueueEventLog["Acid"].asString(); + if(!dataNodeListQueueEventLog["TenantId"].isNull()) + queueEventLogObject.tenantId = dataNodeListQueueEventLog["TenantId"].asString(); + if(!dataNodeListQueueEventLog["Id"].isNull()) + queueEventLogObject.id = std::stol(dataNodeListQueueEventLog["Id"].asString()); + data_.list.push_back(queueEventLogObject); + } + 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 ListLegacyQueueEventLogsResult::getMessage()const +{ + return message_; +} + +int ListLegacyQueueEventLogsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListLegacyQueueEventLogsResult::Data ListLegacyQueueEventLogsResult::getData()const +{ + return data_; +} + +std::string ListLegacyQueueEventLogsResult::getCode()const +{ + return code_; +} + +bool ListLegacyQueueEventLogsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListPhoneNumbersResult.cc b/ccc/src/model/ListPhoneNumbersResult.cc index 19c92bebf..afab369bd 100644 --- a/ccc/src/model/ListPhoneNumbersResult.cc +++ b/ccc/src/model/ListPhoneNumbersResult.cc @@ -96,10 +96,6 @@ void ListPhoneNumbersResult::parse(const std::string &payload) code_ = value["Code"].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()); } @@ -108,16 +104,6 @@ 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_; diff --git a/ccc/src/model/ListRamUsersResult.cc b/ccc/src/model/ListRamUsersResult.cc index 00ae548c8..5c0d7c68f 100644 --- a/ccc/src/model/ListRamUsersResult.cc +++ b/ccc/src/model/ListRamUsersResult.cc @@ -66,9 +66,6 @@ void ListRamUsersResult::parse(const std::string &payload) 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()) @@ -88,11 +85,6 @@ int ListRamUsersResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListRamUsersResult::getParams()const -{ - return params_; -} - ListRamUsersResult::Data ListRamUsersResult::getData()const { return data_; diff --git a/ccc/src/model/ListRealtimeAgentStatesRequest.cc b/ccc/src/model/ListRealtimeAgentStatesRequest.cc index 47f08ece6..a064f5688 100644 --- a/ccc/src/model/ListRealtimeAgentStatesRequest.cc +++ b/ccc/src/model/ListRealtimeAgentStatesRequest.cc @@ -25,6 +25,33 @@ ListRealtimeAgentStatesRequest::ListRealtimeAgentStatesRequest() ListRealtimeAgentStatesRequest::~ListRealtimeAgentStatesRequest() {} +std::string ListRealtimeAgentStatesRequest::getCallTypeList() const { + return callTypeList_; +} + +void ListRealtimeAgentStatesRequest::setCallTypeList(const std::string &callTypeList) { + callTypeList_ = callTypeList; + setParameter(std::string("CallTypeList"), callTypeList); +} + +std::string ListRealtimeAgentStatesRequest::getQuery() const { + return query_; +} + +void ListRealtimeAgentStatesRequest::setQuery(const std::string &query) { + query_ = query; + setParameter(std::string("Query"), query); +} + +bool ListRealtimeAgentStatesRequest::getOutboundScenario() const { + return outboundScenario_; +} + +void ListRealtimeAgentStatesRequest::setOutboundScenario(bool outboundScenario) { + outboundScenario_ = outboundScenario; + setParameter(std::string("OutboundScenario"), outboundScenario ? "true" : "false"); +} + int ListRealtimeAgentStatesRequest::getPageNumber() const { return pageNumber_; } @@ -43,6 +70,15 @@ void ListRealtimeAgentStatesRequest::setInstanceId(const std::string &instanceId setParameter(std::string("InstanceId"), instanceId); } +std::string ListRealtimeAgentStatesRequest::getWorkModeList() const { + return workModeList_; +} + +void ListRealtimeAgentStatesRequest::setWorkModeList(const std::string &workModeList) { + workModeList_ = workModeList; + setParameter(std::string("WorkModeList"), workModeList); +} + std::string ListRealtimeAgentStatesRequest::getAgentIdList() const { return agentIdList_; } diff --git a/ccc/src/model/ListRealtimeAgentStatesResult.cc b/ccc/src/model/ListRealtimeAgentStatesResult.cc index e91aae77d..3d4a7d703 100644 --- a/ccc/src/model/ListRealtimeAgentStatesResult.cc +++ b/ccc/src/model/ListRealtimeAgentStatesResult.cc @@ -66,6 +66,16 @@ void ListRealtimeAgentStatesResult::parse(const std::string &payload) agentStateObject.instanceId = dataNodeListAgentState["InstanceId"].asString(); if(!dataNodeListAgentState["CounterParty"].isNull()) agentStateObject.counterParty = dataNodeListAgentState["CounterParty"].asString(); + if(!dataNodeListAgentState["WorkMode"].isNull()) + agentStateObject.workMode = dataNodeListAgentState["WorkMode"].asString(); + if(!dataNodeListAgentState["OutboundScenario"].isNull()) + agentStateObject.outboundScenario = dataNodeListAgentState["OutboundScenario"].asString() == "true"; + if(!dataNodeListAgentState["Mobile"].isNull()) + agentStateObject.mobile = dataNodeListAgentState["Mobile"].asString(); + if(!dataNodeListAgentState["CallType"].isNull()) + agentStateObject.callType = dataNodeListAgentState["CallType"].asString(); + if(!dataNodeListAgentState["Duration"].isNull()) + agentStateObject.duration = std::stol(dataNodeListAgentState["Duration"].asString()); auto allSkillGroupIdList = value["SkillGroupIdList"]["SkillGroupId"]; for (auto value : allSkillGroupIdList) agentStateObject.skillGroupIdList.push_back(value.asString()); diff --git a/ccc/src/model/ListRealtimeSkillGroupStatesResult.cc b/ccc/src/model/ListRealtimeSkillGroupStatesResult.cc index c141b08e2..45382ab5d 100644 --- a/ccc/src/model/ListRealtimeSkillGroupStatesResult.cc +++ b/ccc/src/model/ListRealtimeSkillGroupStatesResult.cc @@ -70,6 +70,8 @@ void ListRealtimeSkillGroupStatesResult::parse(const std::string &payload) skillGroupStateObject.readyAgents = std::stol(dataNodeListSkillGroupState["ReadyAgents"].asString()); if(!dataNodeListSkillGroupState["InstanceId"].isNull()) skillGroupStateObject.instanceId = dataNodeListSkillGroupState["InstanceId"].asString(); + if(!dataNodeListSkillGroupState["OutboundScenarioReadyAgents"].isNull()) + skillGroupStateObject.outboundScenarioReadyAgents = std::stol(dataNodeListSkillGroupState["OutboundScenarioReadyAgents"].asString()); data_.list.push_back(skillGroupStateObject); } if(!value["Code"].isNull()) diff --git a/ccc/src/model/ListSipCallRecordsResult.cc b/ccc/src/model/ListSipCallRecordsResult.cc deleted file mode 100644 index 7de9e3294..000000000 --- a/ccc/src/model/ListSipCallRecordsResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -ListSipCallRecordsResult::ListSipCallRecordsResult() : - ServiceResult() -{} - -ListSipCallRecordsResult::ListSipCallRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSipCallRecordsResult::~ListSipCallRecordsResult() -{} - -void ListSipCallRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["sipCallRecords"]; - for (auto valueDatasipCallRecords : allDataNode) - { - SipCallRecords dataObject; - if(!valueDatasipCallRecords["InstanceId"].isNull()) - dataObject.instanceId = valueDatasipCallRecords["InstanceId"].asString(); - if(!valueDatasipCallRecords["CallId"].isNull()) - dataObject.callId = valueDatasipCallRecords["CallId"].asString(); - if(!valueDatasipCallRecords["ContactId"].isNull()) - dataObject.contactId = valueDatasipCallRecords["ContactId"].asString(); - if(!valueDatasipCallRecords["Caller"].isNull()) - dataObject.caller = valueDatasipCallRecords["Caller"].asString(); - if(!valueDatasipCallRecords["Callee"].isNull()) - dataObject.callee = valueDatasipCallRecords["Callee"].asString(); - if(!valueDatasipCallRecords["CallerClusterId"].isNull()) - dataObject.callerClusterId = valueDatasipCallRecords["CallerClusterId"].asString(); - if(!valueDatasipCallRecords["CalleeClusterId"].isNull()) - dataObject.calleeClusterId = valueDatasipCallRecords["CalleeClusterId"].asString(); - if(!valueDatasipCallRecords["LastResponseCode"].isNull()) - dataObject.lastResponseCode = std::stoi(valueDatasipCallRecords["LastResponseCode"].asString()); - if(!valueDatasipCallRecords["LastResponseText"].isNull()) - dataObject.lastResponseText = valueDatasipCallRecords["LastResponseText"].asString(); - if(!valueDatasipCallRecords["InviteTime"].isNull()) - dataObject.inviteTime = std::stol(valueDatasipCallRecords["InviteTime"].asString()); - if(!valueDatasipCallRecords["RingTime"].isNull()) - dataObject.ringTime = std::stol(valueDatasipCallRecords["RingTime"].asString()); - if(!valueDatasipCallRecords["EstablishedTime"].isNull()) - dataObject.establishedTime = std::stol(valueDatasipCallRecords["EstablishedTime"].asString()); - if(!valueDatasipCallRecords["ReleasedTime"].isNull()) - dataObject.releasedTime = std::stol(valueDatasipCallRecords["ReleasedTime"].asString()); - if(!valueDatasipCallRecords["ReleaseReasonCode"].isNull()) - dataObject.releaseReasonCode = std::stoi(valueDatasipCallRecords["ReleaseReasonCode"].asString()); - if(!valueDatasipCallRecords["EarlyMediaUrl"].isNull()) - dataObject.earlyMediaUrl = valueDatasipCallRecords["EarlyMediaUrl"].asString(); - if(!valueDatasipCallRecords["EarlyMediaText"].isNull()) - dataObject.earlyMediaText = valueDatasipCallRecords["EarlyMediaText"].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 ListSipCallRecordsResult::getMessage()const -{ - return message_; -} - -int ListSipCallRecordsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListSipCallRecordsResult::getData()const -{ - return data_; -} - -std::string ListSipCallRecordsResult::getCode()const -{ - return code_; -} - diff --git a/ccc/src/model/ListSipTracesResult.cc b/ccc/src/model/ListSipTracesResult.cc deleted file mode 100644 index 77ea71a44..000000000 --- a/ccc/src/model/ListSipTracesResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CCC; -using namespace AlibabaCloud::CCC::Model; - -ListSipTracesResult::ListSipTracesResult() : - ServiceResult() -{} - -ListSipTracesResult::ListSipTracesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSipTracesResult::~ListSipTracesResult() -{} - -void ListSipTracesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["CallTraces"]; - for (auto valueDataCallTraces : allDataNode) - { - CallTraces dataObject; - if(!valueDataCallTraces["CallId"].isNull()) - dataObject.callId = valueDataCallTraces["CallId"].asString(); - if(!valueDataCallTraces["ContactId"].isNull()) - dataObject.contactId = valueDataCallTraces["ContactId"].asString(); - if(!valueDataCallTraces["FirstLine"].isNull()) - dataObject.firstLine = valueDataCallTraces["FirstLine"].asString(); - if(!valueDataCallTraces["DestinationNodeIp"].isNull()) - dataObject.destinationNodeIp = valueDataCallTraces["DestinationNodeIp"].asString(); - if(!valueDataCallTraces["SourceNodeIp"].isNull()) - dataObject.sourceNodeIp = valueDataCallTraces["SourceNodeIp"].asString(); - if(!valueDataCallTraces["Payload"].isNull()) - dataObject.payload = valueDataCallTraces["Payload"].asString(); - if(!valueDataCallTraces["Timestamp"].isNull()) - dataObject.timestamp = std::stol(valueDataCallTraces["Timestamp"].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 ListSipTracesResult::getMessage()const -{ - return message_; -} - -int ListSipTracesResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector ListSipTracesResult::getData()const -{ - return data_; -} - -std::string ListSipTracesResult::getCode()const -{ - return code_; -} - diff --git a/ccc/src/model/ListSkillGroupStatesResult.cc b/ccc/src/model/ListSkillGroupStatesResult.cc index eac41413c..93eb5a528 100644 --- a/ccc/src/model/ListSkillGroupStatesResult.cc +++ b/ccc/src/model/ListSkillGroupStatesResult.cc @@ -70,6 +70,20 @@ void ListSkillGroupStatesResult::parse(const std::string &payload) realTimeSkillGroupStateObject.readyAgents = std::stol(dataNodeListRealTimeSkillGroupState["ReadyAgents"].asString()); if(!dataNodeListRealTimeSkillGroupState["InstanceId"].isNull()) realTimeSkillGroupStateObject.instanceId = dataNodeListRealTimeSkillGroupState["InstanceId"].asString(); + if(!dataNodeListRealTimeSkillGroupState["AverageWaitingTime"].isNull()) + realTimeSkillGroupStateObject.averageWaitingTime = std::stol(dataNodeListRealTimeSkillGroupState["AverageWaitingTime"].asString()); + if(!dataNodeListRealTimeSkillGroupState["WaitingCallsLevel10"].isNull()) + realTimeSkillGroupStateObject.waitingCallsLevel10 = std::stol(dataNodeListRealTimeSkillGroupState["WaitingCallsLevel10"].asString()); + if(!dataNodeListRealTimeSkillGroupState["WaitingCallsLevel20"].isNull()) + realTimeSkillGroupStateObject.waitingCallsLevel20 = std::stol(dataNodeListRealTimeSkillGroupState["WaitingCallsLevel20"].asString()); + if(!dataNodeListRealTimeSkillGroupState["WaitingCallsLevel30"].isNull()) + realTimeSkillGroupStateObject.waitingCallsLevel30 = std::stol(dataNodeListRealTimeSkillGroupState["WaitingCallsLevel30"].asString()); + if(!dataNodeListRealTimeSkillGroupState["OutboundScenarioReadyAgents"].isNull()) + realTimeSkillGroupStateObject.outboundScenarioReadyAgents = std::stol(dataNodeListRealTimeSkillGroupState["OutboundScenarioReadyAgents"].asString()); + if(!dataNodeListRealTimeSkillGroupState["InboundTalkingAgents"].isNull()) + realTimeSkillGroupStateObject.inboundTalkingAgents = std::stol(dataNodeListRealTimeSkillGroupState["InboundTalkingAgents"].asString()); + if(!dataNodeListRealTimeSkillGroupState["OutboundTalkingAgents"].isNull()) + realTimeSkillGroupStateObject.outboundTalkingAgents = std::stol(dataNodeListRealTimeSkillGroupState["OutboundTalkingAgents"].asString()); data_.list.push_back(realTimeSkillGroupStateObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc index bf17846bd..0be1377ca 100644 --- a/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc +++ b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc @@ -146,6 +146,12 @@ void ListSkillGroupSummaryReportsSinceMidnightResult::parse(const std::string &p skillGroupSummaryReportObject.inbound.callsServiceLevel20 = std::stol(inboundNode["CallsServiceLevel20"].asString()); if(!inboundNode["CallsServiceLevel30"].isNull()) skillGroupSummaryReportObject.inbound.callsServiceLevel30 = std::stol(inboundNode["CallsServiceLevel30"].asString()); + if(!inboundNode["CallsServiceLevel10"].isNull()) + skillGroupSummaryReportObject.inbound.callsServiceLevel10 = std::stol(inboundNode["CallsServiceLevel10"].asString()); + if(!inboundNode["CallsAttendedTransferOut"].isNull()) + skillGroupSummaryReportObject.inbound.callsAttendedTransferOut = std::stol(inboundNode["CallsAttendedTransferOut"].asString()); + if(!inboundNode["CallsBlindTransferOut"].isNull()) + skillGroupSummaryReportObject.inbound.callsBlindTransferOut = std::stol(inboundNode["CallsBlindTransferOut"].asString()); auto outboundNode = value["Outbound"]; if(!outboundNode["TotalTalkTime"].isNull()) skillGroupSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); @@ -177,6 +183,8 @@ void ListSkillGroupSummaryReportsSinceMidnightResult::parse(const std::string &p skillGroupSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); if(!outboundNode["AverageDialingTime"].isNull()) skillGroupSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["CallsServiceLevel30"].isNull()) + skillGroupSummaryReportObject.outbound.callsServiceLevel30 = outboundNode["CallsServiceLevel30"].asString(); pagedSkillGroupSummaryReport_.list.push_back(skillGroupSummaryReportObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/ccc/src/model/ListUnassignedNumbersRequest.cc b/ccc/src/model/ListUnassignedNumbersRequest.cc index e2204dced..2f82abc88 100644 --- a/ccc/src/model/ListUnassignedNumbersRequest.cc +++ b/ccc/src/model/ListUnassignedNumbersRequest.cc @@ -43,15 +43,6 @@ void ListUnassignedNumbersRequest::setSearchPattern(const std::string &searchPat setParameter(std::string("SearchPattern"), searchPattern); } -std::string ListUnassignedNumbersRequest::getInstanceId() const { - return instanceId_; -} - -void ListUnassignedNumbersRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - int ListUnassignedNumbersRequest::getPageSize() const { return pageSize_; } diff --git a/ccc/src/model/ListUnassignedNumbersResult.cc b/ccc/src/model/ListUnassignedNumbersResult.cc index 6aa954bbb..de9de6aa1 100644 --- a/ccc/src/model/ListUnassignedNumbersResult.cc +++ b/ccc/src/model/ListUnassignedNumbersResult.cc @@ -52,12 +52,8 @@ void ListUnassignedNumbersResult::parse(const std::string &payload) Data::PhoneNumber phoneNumberObject; if(!dataNodeListPhoneNumber["Number"].isNull()) phoneNumberObject.number = dataNodeListPhoneNumber["Number"].asString(); - if(!dataNodeListPhoneNumber["Active"].isNull()) - phoneNumberObject.active = dataNodeListPhoneNumber["Active"].asString() == "true"; if(!dataNodeListPhoneNumber["City"].isNull()) phoneNumberObject.city = dataNodeListPhoneNumber["City"].asString(); - if(!dataNodeListPhoneNumber["Usage"].isNull()) - phoneNumberObject.usage = dataNodeListPhoneNumber["Usage"].asString() == "true"; if(!dataNodeListPhoneNumber["Province"].isNull()) phoneNumberObject.province = dataNodeListPhoneNumber["Province"].asString(); data_.list.push_back(phoneNumberObject); diff --git a/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc b/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc index 92a07d308..a9067dfcb 100644 --- a/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc +++ b/ccc/src/model/ListUserLevelsOfSkillGroupResult.cc @@ -66,6 +66,8 @@ void ListUserLevelsOfSkillGroupResult::parse(const std::string &payload) userSkillLevelObject.roleName = dataNodeListUserSkillLevel["RoleName"].asString(); if(!dataNodeListUserSkillLevel["RoleId"].isNull()) userSkillLevelObject.roleId = dataNodeListUserSkillLevel["RoleId"].asString(); + if(!dataNodeListUserSkillLevel["RamId"].isNull()) + userSkillLevelObject.ramId = dataNodeListUserSkillLevel["RamId"].asString(); data_.list.push_back(userSkillLevelObject); } if(!value["Code"].isNull()) diff --git a/ccc/src/model/ListUsersResult.cc b/ccc/src/model/ListUsersResult.cc index cf971058f..9ca16b342 100644 --- a/ccc/src/model/ListUsersResult.cc +++ b/ccc/src/model/ListUsersResult.cc @@ -110,9 +110,6 @@ void ListUsersResult::parse(const std::string &payload) } data_.list.push_back(userDetailObject); } - 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()) @@ -132,11 +129,6 @@ int ListUsersResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ListUsersResult::getParams()const -{ - return params_; -} - ListUsersResult::Data ListUsersResult::getData()const { return data_; diff --git a/ccc/src/model/MakeCallResult.cc b/ccc/src/model/MakeCallResult.cc index 6e1cbf981..d6daa5c54 100644 --- a/ccc/src/model/MakeCallResult.cc +++ b/ccc/src/model/MakeCallResult.cc @@ -65,8 +65,6 @@ void MakeCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/ModifyAudioFileRequest.cc b/ccc/src/model/ModifyAudioFileRequest.cc new file mode 100644 index 000000000..85925f81b --- /dev/null +++ b/ccc/src/model/ModifyAudioFileRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifyAudioFileRequest; + +ModifyAudioFileRequest::ModifyAudioFileRequest() + : RpcServiceRequest("ccc", "2020-07-01", "ModifyAudioFile") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAudioFileRequest::~ModifyAudioFileRequest() {} + +std::string ModifyAudioFileRequest::getOssFileKey() const { + return ossFileKey_; +} + +void ModifyAudioFileRequest::setOssFileKey(const std::string &ossFileKey) { + ossFileKey_ = ossFileKey; + setParameter(std::string("OssFileKey"), ossFileKey); +} + +std::string ModifyAudioFileRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyAudioFileRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ModifyAudioFileRequest::getAudioFileName() const { + return audioFileName_; +} + +void ModifyAudioFileRequest::setAudioFileName(const std::string &audioFileName) { + audioFileName_ = audioFileName; + setParameter(std::string("AudioFileName"), audioFileName); +} + +std::string ModifyAudioFileRequest::getName() const { + return name_; +} + +void ModifyAudioFileRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string ModifyAudioFileRequest::getAudioResourceId() const { + return audioResourceId_; +} + +void ModifyAudioFileRequest::setAudioResourceId(const std::string &audioResourceId) { + audioResourceId_ = audioResourceId; + setParameter(std::string("AudioResourceId"), audioResourceId); +} + diff --git a/ccc/src/model/ModifyAudioFileResult.cc b/ccc/src/model/ModifyAudioFileResult.cc new file mode 100644 index 000000000..b84186fe3 --- /dev/null +++ b/ccc/src/model/ModifyAudioFileResult.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; + +ModifyAudioFileResult::ModifyAudioFileResult() : + ServiceResult() +{} + +ModifyAudioFileResult::ModifyAudioFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAudioFileResult::~ModifyAudioFileResult() +{} + +void ModifyAudioFileResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ModifyAudioFileResult::getMessage()const +{ + return message_; +} + +int ModifyAudioFileResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyAudioFileResult::getData()const +{ + return data_; +} + +std::string ModifyAudioFileResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ModifyInstanceResult.cc b/ccc/src/model/ModifyInstanceResult.cc index f95cae761..7455c1ed3 100644 --- a/ccc/src/model/ModifyInstanceResult.cc +++ b/ccc/src/model/ModifyInstanceResult.cc @@ -39,9 +39,6 @@ void ModifyInstanceResult::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["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) @@ -63,11 +60,6 @@ int ModifyInstanceResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ModifyInstanceResult::getParams()const -{ - return params_; -} - std::string ModifyInstanceResult::getData()const { return data_; diff --git a/ccc/src/model/ModifySkillLevelsOfUserResult.cc b/ccc/src/model/ModifySkillLevelsOfUserResult.cc index a64ba3a32..c72ed105f 100644 --- a/ccc/src/model/ModifySkillLevelsOfUserResult.cc +++ b/ccc/src/model/ModifySkillLevelsOfUserResult.cc @@ -39,9 +39,6 @@ void ModifySkillLevelsOfUserResult::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["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) @@ -61,11 +58,6 @@ int ModifySkillLevelsOfUserResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ModifySkillLevelsOfUserResult::getParams()const -{ - return params_; -} - std::string ModifySkillLevelsOfUserResult::getCode()const { return code_; diff --git a/ccc/src/model/ModifyUserRequest.cc b/ccc/src/model/ModifyUserRequest.cc index a75e1be62..6695ae5aa 100644 --- a/ccc/src/model/ModifyUserRequest.cc +++ b/ccc/src/model/ModifyUserRequest.cc @@ -70,6 +70,24 @@ void ModifyUserRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } +std::string ModifyUserRequest::getDisplayName() const { + return displayName_; +} + +void ModifyUserRequest::setDisplayName(const std::string &displayName) { + displayName_ = displayName; + setParameter(std::string("DisplayName"), displayName); +} + +bool ModifyUserRequest::getForce() const { + return force_; +} + +void ModifyUserRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); +} + std::string ModifyUserRequest::getDisplayId() const { return displayId_; } diff --git a/ccc/src/model/ModifyUserResult.cc b/ccc/src/model/ModifyUserResult.cc index 090b58636..8c8b69293 100644 --- a/ccc/src/model/ModifyUserResult.cc +++ b/ccc/src/model/ModifyUserResult.cc @@ -39,9 +39,6 @@ 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["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) @@ -63,11 +60,6 @@ int ModifyUserResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector ModifyUserResult::getParams()const -{ - return params_; -} - std::string ModifyUserResult::getData()const { return data_; diff --git a/ccc/src/model/MonitorCallResult.cc b/ccc/src/model/MonitorCallResult.cc index 43cea1832..4101f600c 100644 --- a/ccc/src/model/MonitorCallResult.cc +++ b/ccc/src/model/MonitorCallResult.cc @@ -67,8 +67,6 @@ void MonitorCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/MuteCallResult.cc b/ccc/src/model/MuteCallResult.cc index 906dc46e6..164dddbfe 100644 --- a/ccc/src/model/MuteCallResult.cc +++ b/ccc/src/model/MuteCallResult.cc @@ -65,8 +65,6 @@ void MuteCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/PollUserStatusResult.cc b/ccc/src/model/PollUserStatusResult.cc index 9098dd399..fd2bdcb7c 100644 --- a/ccc/src/model/PollUserStatusResult.cc +++ b/ccc/src/model/PollUserStatusResult.cc @@ -49,6 +49,8 @@ void PollUserStatusResult::parse(const std::string &payload) data_.callContext.instanceId = callContextNode["InstanceId"].asString(); if(!callContextNode["JobId"].isNull()) data_.callContext.jobId = callContextNode["JobId"].asString(); + if(!callContextNode["CallVariables"].isNull()) + data_.callContext.callVariables = callContextNode["CallVariables"].asString(); auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"]; for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode) { @@ -69,8 +71,6 @@ void PollUserStatusResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/PublishContactFlowRequest.cc b/ccc/src/model/PublishContactFlowRequest.cc new file mode 100644 index 000000000..c6a778acd --- /dev/null +++ b/ccc/src/model/PublishContactFlowRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::PublishContactFlowRequest; + +PublishContactFlowRequest::PublishContactFlowRequest() + : RpcServiceRequest("ccc", "2020-07-01", "PublishContactFlow") { + setMethod(HttpRequest::Method::Post); +} + +PublishContactFlowRequest::~PublishContactFlowRequest() {} + +std::string PublishContactFlowRequest::getContactFlowId() const { + return contactFlowId_; +} + +void PublishContactFlowRequest::setContactFlowId(const std::string &contactFlowId) { + contactFlowId_ = contactFlowId; + setParameter(std::string("ContactFlowId"), contactFlowId); +} + +std::string PublishContactFlowRequest::getDraftId() const { + return draftId_; +} + +void PublishContactFlowRequest::setDraftId(const std::string &draftId) { + draftId_ = draftId; + setParameter(std::string("DraftId"), draftId); +} + +std::string PublishContactFlowRequest::getInstanceId() const { + return instanceId_; +} + +void PublishContactFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/PublishContactFlowResult.cc b/ccc/src/model/PublishContactFlowResult.cc new file mode 100644 index 000000000..58b48cd76 --- /dev/null +++ b/ccc/src/model/PublishContactFlowResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +PublishContactFlowResult::PublishContactFlowResult() : + ServiceResult() +{} + +PublishContactFlowResult::PublishContactFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishContactFlowResult::~PublishContactFlowResult() +{} + +void PublishContactFlowResult::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 PublishContactFlowResult::getMessage()const +{ + return message_; +} + +int PublishContactFlowResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PublishContactFlowResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/RedialCallRequest.cc b/ccc/src/model/RedialCallRequest.cc new file mode 100644 index 000000000..f0c8f641d --- /dev/null +++ b/ccc/src/model/RedialCallRequest.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::RedialCallRequest; + +RedialCallRequest::RedialCallRequest() + : RpcServiceRequest("ccc", "2020-07-01", "RedialCall") { + setMethod(HttpRequest::Method::Post); +} + +RedialCallRequest::~RedialCallRequest() {} + +std::string RedialCallRequest::getCallee() const { + return callee_; +} + +void RedialCallRequest::setCallee(const std::string &callee) { + callee_ = callee; + setParameter(std::string("Callee"), callee); +} + +std::string RedialCallRequest::getUserId() const { + return userId_; +} + +void RedialCallRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string RedialCallRequest::getDeviceId() const { + return deviceId_; +} + +void RedialCallRequest::setDeviceId(const std::string &deviceId) { + deviceId_ = deviceId; + setParameter(std::string("DeviceId"), deviceId); +} + +std::string RedialCallRequest::getTags() const { + return tags_; +} + +void RedialCallRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +int RedialCallRequest::getTimeoutSeconds() const { + return timeoutSeconds_; +} + +void RedialCallRequest::setTimeoutSeconds(int timeoutSeconds) { + timeoutSeconds_ = timeoutSeconds; + setParameter(std::string("TimeoutSeconds"), std::to_string(timeoutSeconds)); +} + +std::string RedialCallRequest::getJobId() const { + return jobId_; +} + +void RedialCallRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string RedialCallRequest::getCaller() const { + return caller_; +} + +void RedialCallRequest::setCaller(const std::string &caller) { + caller_ = caller; + setParameter(std::string("Caller"), caller); +} + +std::string RedialCallRequest::getInstanceId() const { + return instanceId_; +} + +void RedialCallRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/RedialCallResult.cc b/ccc/src/model/RedialCallResult.cc new file mode 100644 index 000000000..4b3adf66b --- /dev/null +++ b/ccc/src/model/RedialCallResult.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; + +RedialCallResult::RedialCallResult() : + ServiceResult() +{} + +RedialCallResult::RedialCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RedialCallResult::~RedialCallResult() +{} + +void RedialCallResult::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["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 RedialCallResult::getMessage()const +{ + return message_; +} + +int RedialCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector RedialCallResult::getParams()const +{ + return params_; +} + +RedialCallResult::Data RedialCallResult::getData()const +{ + return data_; +} + +std::string RedialCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/ReleaseCallResult.cc b/ccc/src/model/ReleaseCallResult.cc index d82ed3dbb..b208aafa2 100644 --- a/ccc/src/model/ReleaseCallResult.cc +++ b/ccc/src/model/ReleaseCallResult.cc @@ -61,8 +61,6 @@ void ReleaseCallResult::parse(const std::string &payload) channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].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()) diff --git a/ccc/src/model/RemoveDoNotCallNumbersResult.cc b/ccc/src/model/RemoveDoNotCallNumbersResult.cc index 9cfb7e258..b1504a577 100644 --- a/ccc/src/model/RemoveDoNotCallNumbersResult.cc +++ b/ccc/src/model/RemoveDoNotCallNumbersResult.cc @@ -39,9 +39,6 @@ void RemoveDoNotCallNumbersResult::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["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) @@ -63,11 +60,6 @@ int RemoveDoNotCallNumbersResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector RemoveDoNotCallNumbersResult::getParams()const -{ - return params_; -} - std::string RemoveDoNotCallNumbersResult::getData()const { return data_; diff --git a/ccc/src/model/RemovePhoneNumbersResult.cc b/ccc/src/model/RemovePhoneNumbersResult.cc index 0202d205a..6c0d158e5 100644 --- a/ccc/src/model/RemovePhoneNumbersResult.cc +++ b/ccc/src/model/RemovePhoneNumbersResult.cc @@ -42,9 +42,6 @@ void RemovePhoneNumbersResult::parse(const std::string &payload) auto allData = value["Data"]["Number"]; for (const auto &item : allData) data_.push_back(item.asString()); - auto allParams = value["Params"]["Param"]; - for (const auto &item : allParams) - params_.push_back(item.asString()); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) @@ -64,11 +61,6 @@ int RemovePhoneNumbersResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector RemovePhoneNumbersResult::getParams()const -{ - return params_; -} - std::vector RemovePhoneNumbersResult::getData()const { return data_; diff --git a/ccc/src/model/RemoveUsersRequest.cc b/ccc/src/model/RemoveUsersRequest.cc index bb95e22d1..58b2f0d98 100644 --- a/ccc/src/model/RemoveUsersRequest.cc +++ b/ccc/src/model/RemoveUsersRequest.cc @@ -43,3 +43,12 @@ void RemoveUsersRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } +bool RemoveUsersRequest::getForce() const { + return force_; +} + +void RemoveUsersRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); +} + diff --git a/ccc/src/model/RestoreArchivedRecordingsRequest.cc b/ccc/src/model/RestoreArchivedRecordingsRequest.cc new file mode 100644 index 000000000..511410875 --- /dev/null +++ b/ccc/src/model/RestoreArchivedRecordingsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::RestoreArchivedRecordingsRequest; + +RestoreArchivedRecordingsRequest::RestoreArchivedRecordingsRequest() + : RpcServiceRequest("ccc", "2020-07-01", "RestoreArchivedRecordings") { + setMethod(HttpRequest::Method::Post); +} + +RestoreArchivedRecordingsRequest::~RestoreArchivedRecordingsRequest() {} + +std::string RestoreArchivedRecordingsRequest::getContactIds() const { + return contactIds_; +} + +void RestoreArchivedRecordingsRequest::setContactIds(const std::string &contactIds) { + contactIds_ = contactIds; + setParameter(std::string("ContactIds"), contactIds); +} + +std::string RestoreArchivedRecordingsRequest::getInstanceId() const { + return instanceId_; +} + +void RestoreArchivedRecordingsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/RestoreArchivedRecordingsResult.cc b/ccc/src/model/RestoreArchivedRecordingsResult.cc new file mode 100644 index 000000000..4e2d49ab2 --- /dev/null +++ b/ccc/src/model/RestoreArchivedRecordingsResult.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 +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +RestoreArchivedRecordingsResult::RestoreArchivedRecordingsResult() : + ServiceResult() +{} + +RestoreArchivedRecordingsResult::RestoreArchivedRecordingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestoreArchivedRecordingsResult::~RestoreArchivedRecordingsResult() +{} + +void RestoreArchivedRecordingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["RecordingRestoreDetail"]; + for (auto valueDataRecordingRestoreDetail : allDataNode) + { + RecordingRestoreDetail dataObject; + if(!valueDataRecordingRestoreDetail["Exists"].isNull()) + dataObject.exists = valueDataRecordingRestoreDetail["Exists"].asString(); + if(!valueDataRecordingRestoreDetail["ContactId"].isNull()) + dataObject.contactId = valueDataRecordingRestoreDetail["ContactId"].asString(); + if(!valueDataRecordingRestoreDetail["Status"].isNull()) + dataObject.status = valueDataRecordingRestoreDetail["Status"].asString(); + if(!valueDataRecordingRestoreDetail["StorageType"].isNull()) + dataObject.storageType = valueDataRecordingRestoreDetail["StorageType"].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 RestoreArchivedRecordingsResult::getMessage()const +{ + return message_; +} + +int RestoreArchivedRecordingsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector RestoreArchivedRecordingsResult::getData()const +{ + return data_; +} + +std::string RestoreArchivedRecordingsResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/RetrieveCallResult.cc b/ccc/src/model/RetrieveCallResult.cc index fa911d17c..bdc376917 100644 --- a/ccc/src/model/RetrieveCallResult.cc +++ b/ccc/src/model/RetrieveCallResult.cc @@ -63,8 +63,6 @@ void RetrieveCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/SendDtmfSignalingResult.cc b/ccc/src/model/SendDtmfSignalingResult.cc index ffa41969f..188f22414 100644 --- a/ccc/src/model/SendDtmfSignalingResult.cc +++ b/ccc/src/model/SendDtmfSignalingResult.cc @@ -67,8 +67,6 @@ void SendDtmfSignalingResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/StartBack2BackCallResult.cc b/ccc/src/model/StartBack2BackCallResult.cc index d4256d4c9..e29c77641 100644 --- a/ccc/src/model/StartBack2BackCallResult.cc +++ b/ccc/src/model/StartBack2BackCallResult.cc @@ -63,8 +63,6 @@ void StartBack2BackCallResult::parse(const std::string &payload) 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()) @@ -98,8 +96,6 @@ void StartBack2BackCallResult::parse(const std::string &payload) data_.userContext.instanceId = userContextNode["InstanceId"].asString(); if(!userContextNode["OutboundScenario"].isNull()) data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true"; - if(!userContextNode["Uri"].isNull()) - data_.userContext.uri = userContextNode["Uri"].asString(); if(!userContextNode["DeviceState"].isNull()) data_.userContext.deviceState = userContextNode["DeviceState"].asString(); if(!userContextNode["Mobile"].isNull()) diff --git a/ccc/src/model/StartConferenceRequest.cc b/ccc/src/model/StartConferenceRequest.cc new file mode 100644 index 000000000..933792027 --- /dev/null +++ b/ccc/src/model/StartConferenceRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::StartConferenceRequest; + +StartConferenceRequest::StartConferenceRequest() + : RpcServiceRequest("ccc", "2020-07-01", "StartConference") { + setMethod(HttpRequest::Method::Post); +} + +StartConferenceRequest::~StartConferenceRequest() {} + +std::string StartConferenceRequest::getUserId() const { + return userId_; +} + +void StartConferenceRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string StartConferenceRequest::getTags() const { + return tags_; +} + +void StartConferenceRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +int StartConferenceRequest::getTimeoutSeconds() const { + return timeoutSeconds_; +} + +void StartConferenceRequest::setTimeoutSeconds(int timeoutSeconds) { + timeoutSeconds_ = timeoutSeconds; + setParameter(std::string("TimeoutSeconds"), std::to_string(timeoutSeconds)); +} + +std::string StartConferenceRequest::getInstanceId() const { + return instanceId_; +} + +void StartConferenceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string StartConferenceRequest::getParticipantListJson() const { + return participantListJson_; +} + +void StartConferenceRequest::setParticipantListJson(const std::string &participantListJson) { + participantListJson_ = participantListJson; + setParameter(std::string("ParticipantListJson"), participantListJson); +} + diff --git a/ccc/src/model/StartConferenceResult.cc b/ccc/src/model/StartConferenceResult.cc new file mode 100644 index 000000000..0d0f8ea5f --- /dev/null +++ b/ccc/src/model/StartConferenceResult.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; + +StartConferenceResult::StartConferenceResult() : + ServiceResult() +{} + +StartConferenceResult::StartConferenceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartConferenceResult::~StartConferenceResult() +{} + +void StartConferenceResult::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["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 StartConferenceResult::getMessage()const +{ + return message_; +} + +int StartConferenceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector StartConferenceResult::getParams()const +{ + return params_; +} + +StartConferenceResult::Data StartConferenceResult::getData()const +{ + return data_; +} + +std::string StartConferenceResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/StartEditContactFlowRequest.cc b/ccc/src/model/StartEditContactFlowRequest.cc new file mode 100644 index 000000000..a0ab68e04 --- /dev/null +++ b/ccc/src/model/StartEditContactFlowRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::StartEditContactFlowRequest; + +StartEditContactFlowRequest::StartEditContactFlowRequest() + : RpcServiceRequest("ccc", "2020-07-01", "StartEditContactFlow") { + setMethod(HttpRequest::Method::Post); +} + +StartEditContactFlowRequest::~StartEditContactFlowRequest() {} + +std::string StartEditContactFlowRequest::getContactFlowId() const { + return contactFlowId_; +} + +void StartEditContactFlowRequest::setContactFlowId(const std::string &contactFlowId) { + contactFlowId_ = contactFlowId; + setParameter(std::string("ContactFlowId"), contactFlowId); +} + +std::string StartEditContactFlowRequest::getInstanceId() const { + return instanceId_; +} + +void StartEditContactFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/StartEditContactFlowResult.cc b/ccc/src/model/StartEditContactFlowResult.cc new file mode 100644 index 000000000..275fb7214 --- /dev/null +++ b/ccc/src/model/StartEditContactFlowResult.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; + +StartEditContactFlowResult::StartEditContactFlowResult() : + ServiceResult() +{} + +StartEditContactFlowResult::StartEditContactFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartEditContactFlowResult::~StartEditContactFlowResult() +{} + +void StartEditContactFlowResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string StartEditContactFlowResult::getMessage()const +{ + return message_; +} + +int StartEditContactFlowResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StartEditContactFlowResult::getData()const +{ + return data_; +} + +std::string StartEditContactFlowResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/StartPredictiveCallResult.cc b/ccc/src/model/StartPredictiveCallResult.cc index 320480170..f5172713e 100644 --- a/ccc/src/model/StartPredictiveCallResult.cc +++ b/ccc/src/model/StartPredictiveCallResult.cc @@ -63,8 +63,6 @@ void StartPredictiveCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/StartPrivacyCallRequest.cc b/ccc/src/model/StartPrivacyCallRequest.cc new file mode 100644 index 000000000..11be779fb --- /dev/null +++ b/ccc/src/model/StartPrivacyCallRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::StartPrivacyCallRequest; + +StartPrivacyCallRequest::StartPrivacyCallRequest() + : RpcServiceRequest("ccc", "2020-07-01", "StartPrivacyCall") { + setMethod(HttpRequest::Method::Post); +} + +StartPrivacyCallRequest::~StartPrivacyCallRequest() {} + +std::string StartPrivacyCallRequest::getCallee() const { + return callee_; +} + +void StartPrivacyCallRequest::setCallee(const std::string &callee) { + callee_ = callee; + setParameter(std::string("Callee"), callee); +} + +std::string StartPrivacyCallRequest::getCaller() const { + return caller_; +} + +void StartPrivacyCallRequest::setCaller(const std::string &caller) { + caller_ = caller; + setParameter(std::string("Caller"), caller); +} + +std::string StartPrivacyCallRequest::getInstanceId() const { + return instanceId_; +} + +void StartPrivacyCallRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string StartPrivacyCallRequest::getAppId() const { + return appId_; +} + +void StartPrivacyCallRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ccc/src/model/StartPrivacyCallResult.cc b/ccc/src/model/StartPrivacyCallResult.cc new file mode 100644 index 000000000..d3937e4e8 --- /dev/null +++ b/ccc/src/model/StartPrivacyCallResult.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; + +StartPrivacyCallResult::StartPrivacyCallResult() : + ServiceResult() +{} + +StartPrivacyCallResult::StartPrivacyCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartPrivacyCallResult::~StartPrivacyCallResult() +{} + +void StartPrivacyCallResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string StartPrivacyCallResult::getMessage()const +{ + return message_; +} + +int StartPrivacyCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector StartPrivacyCallResult::getParams()const +{ + return params_; +} + +std::string StartPrivacyCallResult::getData()const +{ + return data_; +} + +std::string StartPrivacyCallResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/SwitchToConferenceRequest.cc b/ccc/src/model/SwitchToConferenceRequest.cc new file mode 100644 index 000000000..777156b43 --- /dev/null +++ b/ccc/src/model/SwitchToConferenceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::SwitchToConferenceRequest; + +SwitchToConferenceRequest::SwitchToConferenceRequest() + : RpcServiceRequest("ccc", "2020-07-01", "SwitchToConference") { + setMethod(HttpRequest::Method::Post); +} + +SwitchToConferenceRequest::~SwitchToConferenceRequest() {} + +std::string SwitchToConferenceRequest::getUserId() const { + return userId_; +} + +void SwitchToConferenceRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string SwitchToConferenceRequest::getDeviceId() const { + return deviceId_; +} + +void SwitchToConferenceRequest::setDeviceId(const std::string &deviceId) { + deviceId_ = deviceId; + setParameter(std::string("DeviceId"), deviceId); +} + +std::string SwitchToConferenceRequest::getJobId() const { + return jobId_; +} + +void SwitchToConferenceRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string SwitchToConferenceRequest::getInstanceId() const { + return instanceId_; +} + +void SwitchToConferenceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ccc/src/model/SwitchToConferenceResult.cc b/ccc/src/model/SwitchToConferenceResult.cc new file mode 100644 index 000000000..af303433d --- /dev/null +++ b/ccc/src/model/SwitchToConferenceResult.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; + +SwitchToConferenceResult::SwitchToConferenceResult() : + ServiceResult() +{} + +SwitchToConferenceResult::SwitchToConferenceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchToConferenceResult::~SwitchToConferenceResult() +{} + +void SwitchToConferenceResult::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["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["SkillGroupId"].isNull()) + channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].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["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["Heartbeat"].isNull()) + data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString()); + 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["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["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 SwitchToConferenceResult::getMessage()const +{ + return message_; +} + +int SwitchToConferenceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector SwitchToConferenceResult::getParams()const +{ + return params_; +} + +SwitchToConferenceResult::Data SwitchToConferenceResult::getData()const +{ + return data_; +} + +std::string SwitchToConferenceResult::getCode()const +{ + return code_; +} + diff --git a/ccc/src/model/UnmuteCallResult.cc b/ccc/src/model/UnmuteCallResult.cc index 81b778e9d..8bf6a896a 100644 --- a/ccc/src/model/UnmuteCallResult.cc +++ b/ccc/src/model/UnmuteCallResult.cc @@ -67,8 +67,6 @@ void UnmuteCallResult::parse(const std::string &payload) 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()) diff --git a/ccc/src/model/UpdateConfigItemsResult.cc b/ccc/src/model/UpdateConfigItemsResult.cc index ddac3eb23..721187ce6 100644 --- a/ccc/src/model/UpdateConfigItemsResult.cc +++ b/ccc/src/model/UpdateConfigItemsResult.cc @@ -39,9 +39,6 @@ void UpdateConfigItemsResult::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["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) @@ -61,11 +58,6 @@ int UpdateConfigItemsResult::getHttpStatusCode()const return httpStatusCode_; } -std::vector UpdateConfigItemsResult::getParams()const -{ - return params_; -} - std::string UpdateConfigItemsResult::getCode()const { return code_;