From a8f72c5f44cfac17db7bbb0680bb111f9a9c4910 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 13 Jan 2023 03:09:57 +0000 Subject: [PATCH] Supported new features for outbound. --- VERSION | 2 +- outboundbot/CMakeLists.txt | 16 ++ .../outboundbot/OutboundBotClient.h | 32 ++++ .../outboundbot/model/CreateScriptRequest.h | 3 + .../model/DeleteScriptRecordingRequest.h | 48 ++++++ .../model/DeleteScriptRecordingResult.h | 57 +++++++ .../outboundbot/model/DescribeScriptResult.h | 1 + .../outboundbot/model/DialogueResult.h | 1 + .../model/DownloadScriptRecordingRequest.h | 48 ++++++ .../model/DownloadScriptRecordingResult.h | 64 ++++++++ .../outboundbot/model/ListInstancesResult.h | 1 + .../model/ListScriptRecordingRequest.h | 60 +++++++ .../model/ListScriptRecordingResult.h | 81 ++++++++++ .../outboundbot/model/ListScriptsResult.h | 2 + .../outboundbot/model/ModifyScriptRequest.h | 3 + .../model/QueryJobsWithResultRequest.h | 3 + .../model/UploadScriptRecordingRequest.h | 54 +++++++ .../model/UploadScriptRecordingResult.h | 59 +++++++ outboundbot/src/OutboundBotClient.cc | 150 +++++++++++++++++- outboundbot/src/model/CreateScriptRequest.cc | 9 ++ .../src/model/DeleteScriptRecordingRequest.cc | 54 +++++++ .../src/model/DeleteScriptRecordingResult.cc | 72 +++++++++ outboundbot/src/model/DescribeScriptResult.cc | 2 + outboundbot/src/model/DialogueResult.cc | 2 + .../model/DownloadScriptRecordingRequest.cc | 54 +++++++ .../model/DownloadScriptRecordingResult.cc | 82 ++++++++++ outboundbot/src/model/ListInstancesResult.cc | 2 + .../src/model/ListScriptRecordingRequest.cc | 90 +++++++++++ .../src/model/ListScriptRecordingResult.cc | 130 +++++++++++++++ outboundbot/src/model/ListScriptsResult.cc | 4 + outboundbot/src/model/ModifyScriptRequest.cc | 9 ++ .../src/model/QueryJobsWithResultRequest.cc | 9 ++ .../src/model/UploadScriptRecordingRequest.cc | 72 +++++++++ .../src/model/UploadScriptRecordingResult.cc | 79 +++++++++ 34 files changed, 1351 insertions(+), 4 deletions(-) create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRecordingRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRecordingResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DownloadScriptRecordingRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DownloadScriptRecordingResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListScriptRecordingRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListScriptRecordingResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/UploadScriptRecordingRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/UploadScriptRecordingResult.h create mode 100644 outboundbot/src/model/DeleteScriptRecordingRequest.cc create mode 100644 outboundbot/src/model/DeleteScriptRecordingResult.cc create mode 100644 outboundbot/src/model/DownloadScriptRecordingRequest.cc create mode 100644 outboundbot/src/model/DownloadScriptRecordingResult.cc create mode 100644 outboundbot/src/model/ListScriptRecordingRequest.cc create mode 100644 outboundbot/src/model/ListScriptRecordingResult.cc create mode 100644 outboundbot/src/model/UploadScriptRecordingRequest.cc create mode 100644 outboundbot/src/model/UploadScriptRecordingResult.cc diff --git a/VERSION b/VERSION index f35890e63..37982f889 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1420 \ No newline at end of file +1.36.1421 \ No newline at end of file diff --git a/outboundbot/CMakeLists.txt b/outboundbot/CMakeLists.txt index 75dcde3d8..6f83daff7 100644 --- a/outboundbot/CMakeLists.txt +++ b/outboundbot/CMakeLists.txt @@ -85,6 +85,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/DeleteOutboundCallNumberResult.h include/alibabacloud/outboundbot/model/DeleteScriptRequest.h include/alibabacloud/outboundbot/model/DeleteScriptResult.h + include/alibabacloud/outboundbot/model/DeleteScriptRecordingRequest.h + include/alibabacloud/outboundbot/model/DeleteScriptRecordingResult.h include/alibabacloud/outboundbot/model/DeleteScriptWaveformRequest.h include/alibabacloud/outboundbot/model/DeleteScriptWaveformResult.h include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h @@ -129,6 +131,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultResult.h include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h include/alibabacloud/outboundbot/model/DownloadRecordingResult.h + include/alibabacloud/outboundbot/model/DownloadScriptRecordingRequest.h + include/alibabacloud/outboundbot/model/DownloadScriptRecordingResult.h include/alibabacloud/outboundbot/model/DuplicateScriptRequest.h include/alibabacloud/outboundbot/model/DuplicateScriptResult.h include/alibabacloud/outboundbot/model/ExportScriptRequest.h @@ -197,6 +201,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/ListSchedulerInstancesResult.h include/alibabacloud/outboundbot/model/ListScriptPublishHistoriesRequest.h include/alibabacloud/outboundbot/model/ListScriptPublishHistoriesResult.h + include/alibabacloud/outboundbot/model/ListScriptRecordingRequest.h + include/alibabacloud/outboundbot/model/ListScriptRecordingResult.h include/alibabacloud/outboundbot/model/ListScriptVoiceConfigsRequest.h include/alibabacloud/outboundbot/model/ListScriptVoiceConfigsResult.h include/alibabacloud/outboundbot/model/ListScriptsRequest.h @@ -283,6 +289,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/TerminateCallResult.h include/alibabacloud/outboundbot/model/UntagResourcesRequest.h include/alibabacloud/outboundbot/model/UntagResourcesResult.h + include/alibabacloud/outboundbot/model/UploadScriptRecordingRequest.h + include/alibabacloud/outboundbot/model/UploadScriptRecordingResult.h include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h include/alibabacloud/outboundbot/model/WithdrawScriptReviewResult.h ) @@ -352,6 +360,8 @@ set(outboundbot_src src/model/DeleteOutboundCallNumberResult.cc src/model/DeleteScriptRequest.cc src/model/DeleteScriptResult.cc + src/model/DeleteScriptRecordingRequest.cc + src/model/DeleteScriptRecordingResult.cc src/model/DeleteScriptWaveformRequest.cc src/model/DeleteScriptWaveformResult.cc src/model/DescribeDialogueNodeStatisticsRequest.cc @@ -396,6 +406,8 @@ set(outboundbot_src src/model/DismissNumberDistrictInfoParsingResultResult.cc src/model/DownloadRecordingRequest.cc src/model/DownloadRecordingResult.cc + src/model/DownloadScriptRecordingRequest.cc + src/model/DownloadScriptRecordingResult.cc src/model/DuplicateScriptRequest.cc src/model/DuplicateScriptResult.cc src/model/ExportScriptRequest.cc @@ -464,6 +476,8 @@ set(outboundbot_src src/model/ListSchedulerInstancesResult.cc src/model/ListScriptPublishHistoriesRequest.cc src/model/ListScriptPublishHistoriesResult.cc + src/model/ListScriptRecordingRequest.cc + src/model/ListScriptRecordingResult.cc src/model/ListScriptVoiceConfigsRequest.cc src/model/ListScriptVoiceConfigsResult.cc src/model/ListScriptsRequest.cc @@ -550,6 +564,8 @@ set(outboundbot_src src/model/TerminateCallResult.cc src/model/UntagResourcesRequest.cc src/model/UntagResourcesResult.cc + src/model/UploadScriptRecordingRequest.cc + src/model/UploadScriptRecordingResult.cc src/model/WithdrawScriptReviewRequest.cc src/model/WithdrawScriptReviewResult.cc ) diff --git a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h index 350f3af30..83a787553 100644 --- a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h +++ b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h @@ -86,6 +86,8 @@ #include "model/DeleteOutboundCallNumberResult.h" #include "model/DeleteScriptRequest.h" #include "model/DeleteScriptResult.h" +#include "model/DeleteScriptRecordingRequest.h" +#include "model/DeleteScriptRecordingResult.h" #include "model/DeleteScriptWaveformRequest.h" #include "model/DeleteScriptWaveformResult.h" #include "model/DescribeDialogueNodeStatisticsRequest.h" @@ -130,6 +132,8 @@ #include "model/DismissNumberDistrictInfoParsingResultResult.h" #include "model/DownloadRecordingRequest.h" #include "model/DownloadRecordingResult.h" +#include "model/DownloadScriptRecordingRequest.h" +#include "model/DownloadScriptRecordingResult.h" #include "model/DuplicateScriptRequest.h" #include "model/DuplicateScriptResult.h" #include "model/ExportScriptRequest.h" @@ -198,6 +202,8 @@ #include "model/ListSchedulerInstancesResult.h" #include "model/ListScriptPublishHistoriesRequest.h" #include "model/ListScriptPublishHistoriesResult.h" +#include "model/ListScriptRecordingRequest.h" +#include "model/ListScriptRecordingResult.h" #include "model/ListScriptVoiceConfigsRequest.h" #include "model/ListScriptVoiceConfigsResult.h" #include "model/ListScriptsRequest.h" @@ -284,6 +290,8 @@ #include "model/TerminateCallResult.h" #include "model/UntagResourcesRequest.h" #include "model/UntagResourcesResult.h" +#include "model/UploadScriptRecordingRequest.h" +#include "model/UploadScriptRecordingResult.h" #include "model/WithdrawScriptReviewRequest.h" #include "model/WithdrawScriptReviewResult.h" @@ -391,6 +399,9 @@ namespace AlibabaCloud typedef Outcome DeleteScriptOutcome; typedef std::future DeleteScriptOutcomeCallable; typedef std::function&)> DeleteScriptAsyncHandler; + typedef Outcome DeleteScriptRecordingOutcome; + typedef std::future DeleteScriptRecordingOutcomeCallable; + typedef std::function&)> DeleteScriptRecordingAsyncHandler; typedef Outcome DeleteScriptWaveformOutcome; typedef std::future DeleteScriptWaveformOutcomeCallable; typedef std::function&)> DeleteScriptWaveformAsyncHandler; @@ -457,6 +468,9 @@ namespace AlibabaCloud typedef Outcome DownloadRecordingOutcome; typedef std::future DownloadRecordingOutcomeCallable; typedef std::function&)> DownloadRecordingAsyncHandler; + typedef Outcome DownloadScriptRecordingOutcome; + typedef std::future DownloadScriptRecordingOutcomeCallable; + typedef std::function&)> DownloadScriptRecordingAsyncHandler; typedef Outcome DuplicateScriptOutcome; typedef std::future DuplicateScriptOutcomeCallable; typedef std::function&)> DuplicateScriptAsyncHandler; @@ -559,6 +573,9 @@ namespace AlibabaCloud typedef Outcome ListScriptPublishHistoriesOutcome; typedef std::future ListScriptPublishHistoriesOutcomeCallable; typedef std::function&)> ListScriptPublishHistoriesAsyncHandler; + typedef Outcome ListScriptRecordingOutcome; + typedef std::future ListScriptRecordingOutcomeCallable; + typedef std::function&)> ListScriptRecordingAsyncHandler; typedef Outcome ListScriptVoiceConfigsOutcome; typedef std::future ListScriptVoiceConfigsOutcomeCallable; typedef std::function&)> ListScriptVoiceConfigsAsyncHandler; @@ -688,6 +705,9 @@ namespace AlibabaCloud typedef Outcome UntagResourcesOutcome; typedef std::future UntagResourcesOutcomeCallable; typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UploadScriptRecordingOutcome; + typedef std::future UploadScriptRecordingOutcomeCallable; + typedef std::function&)> UploadScriptRecordingAsyncHandler; typedef Outcome WithdrawScriptReviewOutcome; typedef std::future WithdrawScriptReviewOutcomeCallable; typedef std::function&)> WithdrawScriptReviewAsyncHandler; @@ -792,6 +812,9 @@ namespace AlibabaCloud DeleteScriptOutcome deleteScript(const Model::DeleteScriptRequest &request)const; void deleteScriptAsync(const Model::DeleteScriptRequest& request, const DeleteScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteScriptOutcomeCallable deleteScriptCallable(const Model::DeleteScriptRequest& request) const; + DeleteScriptRecordingOutcome deleteScriptRecording(const Model::DeleteScriptRecordingRequest &request)const; + void deleteScriptRecordingAsync(const Model::DeleteScriptRecordingRequest& request, const DeleteScriptRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteScriptRecordingOutcomeCallable deleteScriptRecordingCallable(const Model::DeleteScriptRecordingRequest& request) const; DeleteScriptWaveformOutcome deleteScriptWaveform(const Model::DeleteScriptWaveformRequest &request)const; void deleteScriptWaveformAsync(const Model::DeleteScriptWaveformRequest& request, const DeleteScriptWaveformAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteScriptWaveformOutcomeCallable deleteScriptWaveformCallable(const Model::DeleteScriptWaveformRequest& request) const; @@ -858,6 +881,9 @@ namespace AlibabaCloud DownloadRecordingOutcome downloadRecording(const Model::DownloadRecordingRequest &request)const; void downloadRecordingAsync(const Model::DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DownloadRecordingOutcomeCallable downloadRecordingCallable(const Model::DownloadRecordingRequest& request) const; + DownloadScriptRecordingOutcome downloadScriptRecording(const Model::DownloadScriptRecordingRequest &request)const; + void downloadScriptRecordingAsync(const Model::DownloadScriptRecordingRequest& request, const DownloadScriptRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadScriptRecordingOutcomeCallable downloadScriptRecordingCallable(const Model::DownloadScriptRecordingRequest& request) const; DuplicateScriptOutcome duplicateScript(const Model::DuplicateScriptRequest &request)const; void duplicateScriptAsync(const Model::DuplicateScriptRequest& request, const DuplicateScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DuplicateScriptOutcomeCallable duplicateScriptCallable(const Model::DuplicateScriptRequest& request) const; @@ -960,6 +986,9 @@ namespace AlibabaCloud ListScriptPublishHistoriesOutcome listScriptPublishHistories(const Model::ListScriptPublishHistoriesRequest &request)const; void listScriptPublishHistoriesAsync(const Model::ListScriptPublishHistoriesRequest& request, const ListScriptPublishHistoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListScriptPublishHistoriesOutcomeCallable listScriptPublishHistoriesCallable(const Model::ListScriptPublishHistoriesRequest& request) const; + ListScriptRecordingOutcome listScriptRecording(const Model::ListScriptRecordingRequest &request)const; + void listScriptRecordingAsync(const Model::ListScriptRecordingRequest& request, const ListScriptRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScriptRecordingOutcomeCallable listScriptRecordingCallable(const Model::ListScriptRecordingRequest& request) const; ListScriptVoiceConfigsOutcome listScriptVoiceConfigs(const Model::ListScriptVoiceConfigsRequest &request)const; void listScriptVoiceConfigsAsync(const Model::ListScriptVoiceConfigsRequest& request, const ListScriptVoiceConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListScriptVoiceConfigsOutcomeCallable listScriptVoiceConfigsCallable(const Model::ListScriptVoiceConfigsRequest& request) const; @@ -1089,6 +1118,9 @@ namespace AlibabaCloud UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + UploadScriptRecordingOutcome uploadScriptRecording(const Model::UploadScriptRecordingRequest &request)const; + void uploadScriptRecordingAsync(const Model::UploadScriptRecordingRequest& request, const UploadScriptRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadScriptRecordingOutcomeCallable uploadScriptRecordingCallable(const Model::UploadScriptRecordingRequest& request) const; WithdrawScriptReviewOutcome withdrawScriptReview(const Model::WithdrawScriptReviewRequest &request)const; void withdrawScriptReviewAsync(const Model::WithdrawScriptReviewRequest& request, const WithdrawScriptReviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; WithdrawScriptReviewOutcomeCallable withdrawScriptReviewCallable(const Model::WithdrawScriptReviewRequest& request) const; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h index 57a507f79..c5b710eac 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h @@ -44,6 +44,8 @@ public: void setAsrConfig(const std::string &asrConfig); std::string getMiniPlaybackConfigListJsonString() const; void setMiniPlaybackConfigListJsonString(const std::string &miniPlaybackConfigListJsonString); + bool getEmotionEnable() const; + void setEmotionEnable(bool emotionEnable); bool getNewBargeInEnable() const; void setNewBargeInEnable(bool newBargeInEnable); bool getMiniPlaybackEnable() const; @@ -67,6 +69,7 @@ private: std::vector scriptWaveform_; std::string asrConfig_; std::string miniPlaybackConfigListJsonString_; + bool emotionEnable_; bool newBargeInEnable_; bool miniPlaybackEnable_; std::string chatbotId_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRecordingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRecordingRequest.h new file mode 100644 index 000000000..b717fde32 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRecordingRequest.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_OUTBOUNDBOT_MODEL_DELETESCRIPTRECORDINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTRECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteScriptRecordingRequest : public RpcServiceRequest { +public: + DeleteScriptRecordingRequest(); + ~DeleteScriptRecordingRequest(); + std::string getUuidsJson() const; + void setUuidsJson(const std::string &uuidsJson); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string uuidsJson_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTRECORDINGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRecordingResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRecordingResult.h new file mode 100644 index 000000000..08a802fb7 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRecordingResult.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_OUTBOUNDBOT_MODEL_DELETESCRIPTRECORDINGRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteScriptRecordingResult : public ServiceResult + { + public: + + + DeleteScriptRecordingResult(); + explicit DeleteScriptRecordingResult(const std::string &payload); + ~DeleteScriptRecordingResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTRECORDINGRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h index a196fe96f..78f042b3a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud std::string ttsConfig; bool longWaitEnable; bool miniPlaybackEnable; + bool emotionEnable; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DialogueResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DialogueResult.h index 026e47849..87d4b2e1f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DialogueResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DialogueResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud bool interruptible; std::string content; std::string actionParams; + std::string contentParams; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DownloadScriptRecordingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DownloadScriptRecordingRequest.h new file mode 100644 index 000000000..6637d1546 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DownloadScriptRecordingRequest.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_OUTBOUNDBOT_MODEL_DOWNLOADSCRIPTRECORDINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADSCRIPTRECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadScriptRecordingRequest : public RpcServiceRequest { +public: + DownloadScriptRecordingRequest(); + ~DownloadScriptRecordingRequest(); + std::string getUuid() const; + void setUuid(const std::string &uuid); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string uuid_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADSCRIPTRECORDINGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DownloadScriptRecordingResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DownloadScriptRecordingResult.h new file mode 100644 index 000000000..0aa060887 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DownloadScriptRecordingResult.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_OUTBOUNDBOT_MODEL_DOWNLOADSCRIPTRECORDINGRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADSCRIPTRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadScriptRecordingResult : public ServiceResult + { + public: + struct DownloadParams + { + std::string fileName; + std::string signatureUrl; + }; + + + DownloadScriptRecordingResult(); + explicit DownloadScriptRecordingResult(const std::string &payload); + ~DownloadScriptRecordingResult(); + DownloadParams getDownloadParams()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DownloadParams downloadParams_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADSCRIPTRECORDINGRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h index 0024f2e85..ba4cf5f07 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h @@ -55,6 +55,7 @@ namespace AlibabaCloud std::string callCenterInstanceId; std::string instanceName; int maxConcurrentConversation; + bool isPreset; long creationTime; std::string instanceDescription; std::string nluServiceType; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptRecordingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptRecordingRequest.h new file mode 100644 index 000000000..59fcbccf3 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptRecordingRequest.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_OUTBOUNDBOT_MODEL_LISTSCRIPTRECORDINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTRECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListScriptRecordingRequest : public RpcServiceRequest { +public: + ListScriptRecordingRequest(); + ~ListScriptRecordingRequest(); + std::string getUuidsJson() const; + void setUuidsJson(const std::string &uuidsJson); + std::string getStatesJson() const; + void setStatesJson(const std::string &statesJson); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getSearch() const; + void setSearch(const std::string &search); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string uuidsJson_; + std::string statesJson_; + int pageNumber_; + std::string scriptId_; + std::string search_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTRECORDINGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptRecordingResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptRecordingResult.h new file mode 100644 index 000000000..840845c51 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptRecordingResult.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_OUTBOUNDBOT_MODEL_LISTSCRIPTRECORDINGRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListScriptRecordingResult : public ServiceResult + { + public: + struct ScriptRecording + { + std::string storageUuid; + std::string stateExtend; + std::string instanceId; + std::string recordingName; + std::string recordingContent; + long gmtModified; + std::string innerId; + std::string scriptId; + long gmtCreate; + std::string uuid; + int state; + long gmtUpload; + int recordingDuration; + }; + + + ListScriptRecordingResult(); + explicit ListScriptRecordingResult(const std::string &payload); + ~ListScriptRecordingResult(); + long getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + std::vector getScriptRecordings()const; + int getPageNumber()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string message_; + int pageSize_; + std::vector scriptRecordings_; + int pageNumber_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTRECORDINGRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h index a6f9e3758..09824f713 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h @@ -46,11 +46,13 @@ namespace AlibabaCloud bool isDebugDrafted; std::string industry; bool isDrafted; + bool isPreset; std::string scriptName; long updateTime; std::string rejectReason; bool longWaitEnable; bool miniPlaybackEnable; + bool emotionEnable; }; int totalCount; int pageSize; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h index 9be14cb17..fcec7e53b 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h @@ -46,6 +46,8 @@ public: void setAsrConfig(const std::string &asrConfig); std::string getMiniPlaybackConfigListJsonString() const; void setMiniPlaybackConfigListJsonString(const std::string &miniPlaybackConfigListJsonString); + bool getEmotionEnable() const; + void setEmotionEnable(bool emotionEnable); std::string getNlsConfig() const; void setNlsConfig(const std::string &nlsConfig); bool getNewBargeInEnable() const; @@ -72,6 +74,7 @@ private: std::vector scriptWaveform_; std::string asrConfig_; std::string miniPlaybackConfigListJsonString_; + bool emotionEnable_; std::string nlsConfig_; bool newBargeInEnable_; bool miniPlaybackEnable_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h index b34dee5a9..731e390f5 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h @@ -34,6 +34,8 @@ public: void setHasReachedEndOfFlowFilter(bool hasReachedEndOfFlowFilter); bool getHasAnsweredFilter() const; void setHasAnsweredFilter(bool hasAnsweredFilter); + std::string getTaskStatusFilter() const; + void setTaskStatusFilter(const std::string &taskStatusFilter); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getQueryText() const; @@ -52,6 +54,7 @@ public: private: bool hasReachedEndOfFlowFilter_; bool hasAnsweredFilter_; + std::string taskStatusFilter_; int pageNumber_; std::string queryText_; bool hasHangUpByRejectionFilter_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/UploadScriptRecordingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/UploadScriptRecordingRequest.h new file mode 100644 index 000000000..ddac8c400 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/UploadScriptRecordingRequest.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_OUTBOUNDBOT_MODEL_UPLOADSCRIPTRECORDINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_UPLOADSCRIPTRECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT UploadScriptRecordingRequest : public RpcServiceRequest { +public: + UploadScriptRecordingRequest(); + ~UploadScriptRecordingRequest(); + std::string getContent() const; + void setContent(const std::string &content); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getFileName() const; + void setFileName(const std::string &fileName); + std::string getFileId() const; + void setFileId(const std::string &fileId); + +private: + std::string content_; + std::string scriptId_; + std::string instanceId_; + std::string fileName_; + std::string fileId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_UPLOADSCRIPTRECORDINGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/UploadScriptRecordingResult.h b/outboundbot/include/alibabacloud/outboundbot/model/UploadScriptRecordingResult.h new file mode 100644 index 000000000..650f4fa9c --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/UploadScriptRecordingResult.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_OUTBOUNDBOT_MODEL_UPLOADSCRIPTRECORDINGRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_UPLOADSCRIPTRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT UploadScriptRecordingResult : public ServiceResult + { + public: + + + UploadScriptRecordingResult(); + explicit UploadScriptRecordingResult(const std::string &payload); + ~UploadScriptRecordingResult(); + std::string getUuid()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string uuid_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_UPLOADSCRIPTRECORDINGRESULT_H_ \ No newline at end of file diff --git a/outboundbot/src/OutboundBotClient.cc b/outboundbot/src/OutboundBotClient.cc index 54435cb9e..ab6da1928 100644 --- a/outboundbot/src/OutboundBotClient.cc +++ b/outboundbot/src/OutboundBotClient.cc @@ -31,21 +31,21 @@ OutboundBotClient::OutboundBotClient(const Credentials &credentials, const Clien RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "outboundbot"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } OutboundBotClient::OutboundBotClient(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, "outboundbot"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } OutboundBotClient::OutboundBotClient(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, "outboundbot"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } OutboundBotClient::~OutboundBotClient() @@ -1203,6 +1203,42 @@ OutboundBotClient::DeleteScriptOutcomeCallable OutboundBotClient::deleteScriptCa return task->get_future(); } +OutboundBotClient::DeleteScriptRecordingOutcome OutboundBotClient::deleteScriptRecording(const DeleteScriptRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteScriptRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteScriptRecordingOutcome(DeleteScriptRecordingResult(outcome.result())); + else + return DeleteScriptRecordingOutcome(outcome.error()); +} + +void OutboundBotClient::deleteScriptRecordingAsync(const DeleteScriptRecordingRequest& request, const DeleteScriptRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteScriptRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DeleteScriptRecordingOutcomeCallable OutboundBotClient::deleteScriptRecordingCallable(const DeleteScriptRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteScriptRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DeleteScriptWaveformOutcome OutboundBotClient::deleteScriptWaveform(const DeleteScriptWaveformRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +2031,42 @@ OutboundBotClient::DownloadRecordingOutcomeCallable OutboundBotClient::downloadR return task->get_future(); } +OutboundBotClient::DownloadScriptRecordingOutcome OutboundBotClient::downloadScriptRecording(const DownloadScriptRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadScriptRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadScriptRecordingOutcome(DownloadScriptRecordingResult(outcome.result())); + else + return DownloadScriptRecordingOutcome(outcome.error()); +} + +void OutboundBotClient::downloadScriptRecordingAsync(const DownloadScriptRecordingRequest& request, const DownloadScriptRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadScriptRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DownloadScriptRecordingOutcomeCallable OutboundBotClient::downloadScriptRecordingCallable(const DownloadScriptRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadScriptRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DuplicateScriptOutcome OutboundBotClient::duplicateScript(const DuplicateScriptRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3291,42 @@ OutboundBotClient::ListScriptPublishHistoriesOutcomeCallable OutboundBotClient:: return task->get_future(); } +OutboundBotClient::ListScriptRecordingOutcome OutboundBotClient::listScriptRecording(const ListScriptRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScriptRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScriptRecordingOutcome(ListScriptRecordingResult(outcome.result())); + else + return ListScriptRecordingOutcome(outcome.error()); +} + +void OutboundBotClient::listScriptRecordingAsync(const ListScriptRecordingRequest& request, const ListScriptRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScriptRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::ListScriptRecordingOutcomeCallable OutboundBotClient::listScriptRecordingCallable(const ListScriptRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScriptRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::ListScriptVoiceConfigsOutcome OutboundBotClient::listScriptVoiceConfigs(const ListScriptVoiceConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4767,6 +4875,42 @@ OutboundBotClient::UntagResourcesOutcomeCallable OutboundBotClient::untagResourc return task->get_future(); } +OutboundBotClient::UploadScriptRecordingOutcome OutboundBotClient::uploadScriptRecording(const UploadScriptRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadScriptRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadScriptRecordingOutcome(UploadScriptRecordingResult(outcome.result())); + else + return UploadScriptRecordingOutcome(outcome.error()); +} + +void OutboundBotClient::uploadScriptRecordingAsync(const UploadScriptRecordingRequest& request, const UploadScriptRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadScriptRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::UploadScriptRecordingOutcomeCallable OutboundBotClient::uploadScriptRecordingCallable(const UploadScriptRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadScriptRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::WithdrawScriptReviewOutcome OutboundBotClient::withdrawScriptReview(const WithdrawScriptReviewRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/outboundbot/src/model/CreateScriptRequest.cc b/outboundbot/src/model/CreateScriptRequest.cc index 6cc2fe9fd..12dd043b9 100644 --- a/outboundbot/src/model/CreateScriptRequest.cc +++ b/outboundbot/src/model/CreateScriptRequest.cc @@ -87,6 +87,15 @@ void CreateScriptRequest::setMiniPlaybackConfigListJsonString(const std::string setParameter(std::string("MiniPlaybackConfigListJsonString"), miniPlaybackConfigListJsonString); } +bool CreateScriptRequest::getEmotionEnable() const { + return emotionEnable_; +} + +void CreateScriptRequest::setEmotionEnable(bool emotionEnable) { + emotionEnable_ = emotionEnable; + setParameter(std::string("EmotionEnable"), emotionEnable ? "true" : "false"); +} + bool CreateScriptRequest::getNewBargeInEnable() const { return newBargeInEnable_; } diff --git a/outboundbot/src/model/DeleteScriptRecordingRequest.cc b/outboundbot/src/model/DeleteScriptRecordingRequest.cc new file mode 100644 index 000000000..728a9d65f --- /dev/null +++ b/outboundbot/src/model/DeleteScriptRecordingRequest.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::OutboundBot::Model::DeleteScriptRecordingRequest; + +DeleteScriptRecordingRequest::DeleteScriptRecordingRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScriptRecording") { + setMethod(HttpRequest::Method::Post); +} + +DeleteScriptRecordingRequest::~DeleteScriptRecordingRequest() {} + +std::string DeleteScriptRecordingRequest::getUuidsJson() const { + return uuidsJson_; +} + +void DeleteScriptRecordingRequest::setUuidsJson(const std::string &uuidsJson) { + uuidsJson_ = uuidsJson; + setParameter(std::string("UuidsJson"), uuidsJson); +} + +std::string DeleteScriptRecordingRequest::getScriptId() const { + return scriptId_; +} + +void DeleteScriptRecordingRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); +} + +std::string DeleteScriptRecordingRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteScriptRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/outboundbot/src/model/DeleteScriptRecordingResult.cc b/outboundbot/src/model/DeleteScriptRecordingResult.cc new file mode 100644 index 000000000..45cb3202a --- /dev/null +++ b/outboundbot/src/model/DeleteScriptRecordingResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DeleteScriptRecordingResult::DeleteScriptRecordingResult() : + ServiceResult() +{} + +DeleteScriptRecordingResult::DeleteScriptRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteScriptRecordingResult::~DeleteScriptRecordingResult() +{} + +void DeleteScriptRecordingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteScriptRecordingResult::getMessage()const +{ + return message_; +} + +int DeleteScriptRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteScriptRecordingResult::getCode()const +{ + return code_; +} + +bool DeleteScriptRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/DescribeScriptResult.cc b/outboundbot/src/model/DescribeScriptResult.cc index 33d118612..0ddf62be8 100644 --- a/outboundbot/src/model/DescribeScriptResult.cc +++ b/outboundbot/src/model/DescribeScriptResult.cc @@ -72,6 +72,8 @@ void DescribeScriptResult::parse(const std::string &payload) script_.newBargeInEnable = scriptNode["NewBargeInEnable"].asString() == "true"; if(!scriptNode["LongWaitEnable"].isNull()) script_.longWaitEnable = scriptNode["LongWaitEnable"].asString() == "true"; + if(!scriptNode["EmotionEnable"].isNull()) + script_.emotionEnable = scriptNode["EmotionEnable"].asString() == "true"; if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DialogueResult.cc b/outboundbot/src/model/DialogueResult.cc index d74ed0147..3703e6324 100644 --- a/outboundbot/src/model/DialogueResult.cc +++ b/outboundbot/src/model/DialogueResult.cc @@ -48,6 +48,8 @@ void DialogueResult::parse(const std::string &payload) feedback_.content = feedbackNode["Content"].asString(); if(!feedbackNode["Interruptible"].isNull()) feedback_.interruptible = feedbackNode["Interruptible"].asString() == "true"; + if(!feedbackNode["ContentParams"].isNull()) + feedback_.contentParams = feedbackNode["ContentParams"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) diff --git a/outboundbot/src/model/DownloadScriptRecordingRequest.cc b/outboundbot/src/model/DownloadScriptRecordingRequest.cc new file mode 100644 index 000000000..7e0cfae57 --- /dev/null +++ b/outboundbot/src/model/DownloadScriptRecordingRequest.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::OutboundBot::Model::DownloadScriptRecordingRequest; + +DownloadScriptRecordingRequest::DownloadScriptRecordingRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DownloadScriptRecording") { + setMethod(HttpRequest::Method::Post); +} + +DownloadScriptRecordingRequest::~DownloadScriptRecordingRequest() {} + +std::string DownloadScriptRecordingRequest::getUuid() const { + return uuid_; +} + +void DownloadScriptRecordingRequest::setUuid(const std::string &uuid) { + uuid_ = uuid; + setParameter(std::string("Uuid"), uuid); +} + +std::string DownloadScriptRecordingRequest::getScriptId() const { + return scriptId_; +} + +void DownloadScriptRecordingRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); +} + +std::string DownloadScriptRecordingRequest::getInstanceId() const { + return instanceId_; +} + +void DownloadScriptRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/outboundbot/src/model/DownloadScriptRecordingResult.cc b/outboundbot/src/model/DownloadScriptRecordingResult.cc new file mode 100644 index 000000000..e3a8cdeea --- /dev/null +++ b/outboundbot/src/model/DownloadScriptRecordingResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DownloadScriptRecordingResult::DownloadScriptRecordingResult() : + ServiceResult() +{} + +DownloadScriptRecordingResult::DownloadScriptRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadScriptRecordingResult::~DownloadScriptRecordingResult() +{} + +void DownloadScriptRecordingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto downloadParamsNode = value["DownloadParams"]; + if(!downloadParamsNode["SignatureUrl"].isNull()) + downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString(); + if(!downloadParamsNode["FileName"].isNull()) + downloadParams_.fileName = downloadParamsNode["FileName"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +DownloadScriptRecordingResult::DownloadParams DownloadScriptRecordingResult::getDownloadParams()const +{ + return downloadParams_; +} + +std::string DownloadScriptRecordingResult::getMessage()const +{ + return message_; +} + +int DownloadScriptRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DownloadScriptRecordingResult::getCode()const +{ + return code_; +} + +bool DownloadScriptRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ListInstancesResult.cc b/outboundbot/src/model/ListInstancesResult.cc index 916e715a0..10dfd8f35 100644 --- a/outboundbot/src/model/ListInstancesResult.cc +++ b/outboundbot/src/model/ListInstancesResult.cc @@ -69,6 +69,8 @@ void ListInstancesResult::parse(const std::string &payload) instancesObject.creatorName = valueInstancesInstance["CreatorName"].asString(); if(!valueInstancesInstance["MaxConcurrentConversation"].isNull()) instancesObject.maxConcurrentConversation = std::stoi(valueInstancesInstance["MaxConcurrentConversation"].asString()); + if(!valueInstancesInstance["IsPreset"].isNull()) + instancesObject.isPreset = valueInstancesInstance["IsPreset"].asString() == "true"; auto allResourceTagsNode = valueInstancesInstance["ResourceTags"]["ResourceTag"]; for (auto valueInstancesInstanceResourceTagsResourceTag : allResourceTagsNode) { diff --git a/outboundbot/src/model/ListScriptRecordingRequest.cc b/outboundbot/src/model/ListScriptRecordingRequest.cc new file mode 100644 index 000000000..6fd600487 --- /dev/null +++ b/outboundbot/src/model/ListScriptRecordingRequest.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::OutboundBot::Model::ListScriptRecordingRequest; + +ListScriptRecordingRequest::ListScriptRecordingRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListScriptRecording") { + setMethod(HttpRequest::Method::Post); +} + +ListScriptRecordingRequest::~ListScriptRecordingRequest() {} + +std::string ListScriptRecordingRequest::getUuidsJson() const { + return uuidsJson_; +} + +void ListScriptRecordingRequest::setUuidsJson(const std::string &uuidsJson) { + uuidsJson_ = uuidsJson; + setParameter(std::string("UuidsJson"), uuidsJson); +} + +std::string ListScriptRecordingRequest::getStatesJson() const { + return statesJson_; +} + +void ListScriptRecordingRequest::setStatesJson(const std::string &statesJson) { + statesJson_ = statesJson; + setParameter(std::string("StatesJson"), statesJson); +} + +int ListScriptRecordingRequest::getPageNumber() const { + return pageNumber_; +} + +void ListScriptRecordingRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListScriptRecordingRequest::getScriptId() const { + return scriptId_; +} + +void ListScriptRecordingRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); +} + +std::string ListScriptRecordingRequest::getSearch() const { + return search_; +} + +void ListScriptRecordingRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("Search"), search); +} + +std::string ListScriptRecordingRequest::getInstanceId() const { + return instanceId_; +} + +void ListScriptRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListScriptRecordingRequest::getPageSize() const { + return pageSize_; +} + +void ListScriptRecordingRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/outboundbot/src/model/ListScriptRecordingResult.cc b/outboundbot/src/model/ListScriptRecordingResult.cc new file mode 100644 index 000000000..c1ed99836 --- /dev/null +++ b/outboundbot/src/model/ListScriptRecordingResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +ListScriptRecordingResult::ListScriptRecordingResult() : + ServiceResult() +{} + +ListScriptRecordingResult::ListScriptRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListScriptRecordingResult::~ListScriptRecordingResult() +{} + +void ListScriptRecordingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allScriptRecordingsNode = value["ScriptRecordings"]["ScriptRecording"]; + for (auto valueScriptRecordingsScriptRecording : allScriptRecordingsNode) + { + ScriptRecording scriptRecordingsObject; + if(!valueScriptRecordingsScriptRecording["RecordingContent"].isNull()) + scriptRecordingsObject.recordingContent = valueScriptRecordingsScriptRecording["RecordingContent"].asString(); + if(!valueScriptRecordingsScriptRecording["State"].isNull()) + scriptRecordingsObject.state = std::stoi(valueScriptRecordingsScriptRecording["State"].asString()); + if(!valueScriptRecordingsScriptRecording["StorageUuid"].isNull()) + scriptRecordingsObject.storageUuid = valueScriptRecordingsScriptRecording["StorageUuid"].asString(); + if(!valueScriptRecordingsScriptRecording["StateExtend"].isNull()) + scriptRecordingsObject.stateExtend = valueScriptRecordingsScriptRecording["StateExtend"].asString(); + if(!valueScriptRecordingsScriptRecording["InstanceId"].isNull()) + scriptRecordingsObject.instanceId = valueScriptRecordingsScriptRecording["InstanceId"].asString(); + if(!valueScriptRecordingsScriptRecording["GmtModified"].isNull()) + scriptRecordingsObject.gmtModified = std::stol(valueScriptRecordingsScriptRecording["GmtModified"].asString()); + if(!valueScriptRecordingsScriptRecording["ScriptId"].isNull()) + scriptRecordingsObject.scriptId = valueScriptRecordingsScriptRecording["ScriptId"].asString(); + if(!valueScriptRecordingsScriptRecording["Uuid"].isNull()) + scriptRecordingsObject.uuid = valueScriptRecordingsScriptRecording["Uuid"].asString(); + if(!valueScriptRecordingsScriptRecording["GmtUpload"].isNull()) + scriptRecordingsObject.gmtUpload = std::stol(valueScriptRecordingsScriptRecording["GmtUpload"].asString()); + if(!valueScriptRecordingsScriptRecording["RecordingDuration"].isNull()) + scriptRecordingsObject.recordingDuration = std::stoi(valueScriptRecordingsScriptRecording["RecordingDuration"].asString()); + if(!valueScriptRecordingsScriptRecording["RecordingName"].isNull()) + scriptRecordingsObject.recordingName = valueScriptRecordingsScriptRecording["RecordingName"].asString(); + if(!valueScriptRecordingsScriptRecording["GmtCreate"].isNull()) + scriptRecordingsObject.gmtCreate = std::stol(valueScriptRecordingsScriptRecording["GmtCreate"].asString()); + if(!valueScriptRecordingsScriptRecording["InnerId"].isNull()) + scriptRecordingsObject.innerId = valueScriptRecordingsScriptRecording["InnerId"].asString(); + scriptRecordings_.push_back(scriptRecordingsObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListScriptRecordingResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListScriptRecordingResult::getMessage()const +{ + return message_; +} + +int ListScriptRecordingResult::getPageSize()const +{ + return pageSize_; +} + +std::vector ListScriptRecordingResult::getScriptRecordings()const +{ + return scriptRecordings_; +} + +int ListScriptRecordingResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListScriptRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListScriptRecordingResult::getCode()const +{ + return code_; +} + +bool ListScriptRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ListScriptsResult.cc b/outboundbot/src/model/ListScriptsResult.cc index 7136f7e38..2e238bfc9 100644 --- a/outboundbot/src/model/ListScriptsResult.cc +++ b/outboundbot/src/model/ListScriptsResult.cc @@ -80,6 +80,10 @@ void ListScriptsResult::parse(const std::string &payload) scriptObject.newBargeInEnable = scriptsNodeListScript["NewBargeInEnable"].asString() == "true"; if(!scriptsNodeListScript["LongWaitEnable"].isNull()) scriptObject.longWaitEnable = scriptsNodeListScript["LongWaitEnable"].asString() == "true"; + if(!scriptsNodeListScript["EmotionEnable"].isNull()) + scriptObject.emotionEnable = scriptsNodeListScript["EmotionEnable"].asString() == "true"; + if(!scriptsNodeListScript["IsPreset"].isNull()) + scriptObject.isPreset = scriptsNodeListScript["IsPreset"].asString() == "true"; scripts_.list.push_back(scriptObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/outboundbot/src/model/ModifyScriptRequest.cc b/outboundbot/src/model/ModifyScriptRequest.cc index 99db537e6..08699defe 100644 --- a/outboundbot/src/model/ModifyScriptRequest.cc +++ b/outboundbot/src/model/ModifyScriptRequest.cc @@ -96,6 +96,15 @@ void ModifyScriptRequest::setMiniPlaybackConfigListJsonString(const std::string setParameter(std::string("MiniPlaybackConfigListJsonString"), miniPlaybackConfigListJsonString); } +bool ModifyScriptRequest::getEmotionEnable() const { + return emotionEnable_; +} + +void ModifyScriptRequest::setEmotionEnable(bool emotionEnable) { + emotionEnable_ = emotionEnable; + setParameter(std::string("EmotionEnable"), emotionEnable ? "true" : "false"); +} + std::string ModifyScriptRequest::getNlsConfig() const { return nlsConfig_; } diff --git a/outboundbot/src/model/QueryJobsWithResultRequest.cc b/outboundbot/src/model/QueryJobsWithResultRequest.cc index f4fb6ce5b..914f12afa 100644 --- a/outboundbot/src/model/QueryJobsWithResultRequest.cc +++ b/outboundbot/src/model/QueryJobsWithResultRequest.cc @@ -43,6 +43,15 @@ void QueryJobsWithResultRequest::setHasAnsweredFilter(bool hasAnsweredFilter) { setParameter(std::string("HasAnsweredFilter"), hasAnsweredFilter ? "true" : "false"); } +std::string QueryJobsWithResultRequest::getTaskStatusFilter() const { + return taskStatusFilter_; +} + +void QueryJobsWithResultRequest::setTaskStatusFilter(const std::string &taskStatusFilter) { + taskStatusFilter_ = taskStatusFilter; + setParameter(std::string("TaskStatusFilter"), taskStatusFilter); +} + int QueryJobsWithResultRequest::getPageNumber() const { return pageNumber_; } diff --git a/outboundbot/src/model/UploadScriptRecordingRequest.cc b/outboundbot/src/model/UploadScriptRecordingRequest.cc new file mode 100644 index 000000000..7d66cc4d7 --- /dev/null +++ b/outboundbot/src/model/UploadScriptRecordingRequest.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::OutboundBot::Model::UploadScriptRecordingRequest; + +UploadScriptRecordingRequest::UploadScriptRecordingRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "UploadScriptRecording") { + setMethod(HttpRequest::Method::Post); +} + +UploadScriptRecordingRequest::~UploadScriptRecordingRequest() {} + +std::string UploadScriptRecordingRequest::getContent() const { + return content_; +} + +void UploadScriptRecordingRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + +std::string UploadScriptRecordingRequest::getScriptId() const { + return scriptId_; +} + +void UploadScriptRecordingRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); +} + +std::string UploadScriptRecordingRequest::getInstanceId() const { + return instanceId_; +} + +void UploadScriptRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UploadScriptRecordingRequest::getFileName() const { + return fileName_; +} + +void UploadScriptRecordingRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("FileName"), fileName); +} + +std::string UploadScriptRecordingRequest::getFileId() const { + return fileId_; +} + +void UploadScriptRecordingRequest::setFileId(const std::string &fileId) { + fileId_ = fileId; + setParameter(std::string("FileId"), fileId); +} + diff --git a/outboundbot/src/model/UploadScriptRecordingResult.cc b/outboundbot/src/model/UploadScriptRecordingResult.cc new file mode 100644 index 000000000..515da645b --- /dev/null +++ b/outboundbot/src/model/UploadScriptRecordingResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +UploadScriptRecordingResult::UploadScriptRecordingResult() : + ServiceResult() +{} + +UploadScriptRecordingResult::UploadScriptRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UploadScriptRecordingResult::~UploadScriptRecordingResult() +{} + +void UploadScriptRecordingResult::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["Uuid"].isNull()) + uuid_ = value["Uuid"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UploadScriptRecordingResult::getUuid()const +{ + return uuid_; +} + +std::string UploadScriptRecordingResult::getMessage()const +{ + return message_; +} + +int UploadScriptRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UploadScriptRecordingResult::getCode()const +{ + return code_; +} + +bool UploadScriptRecordingResult::getSuccess()const +{ + return success_; +} +