From 4fc4cdd7b87a22c8f7084716a197fc211e83541b Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 19 Aug 2021 06:58:06 +0000 Subject: [PATCH] Supported new features for outbound. --- CHANGELOG | 3 + VERSION | 2 +- outboundbot/CMakeLists.txt | 12 ++ .../outboundbot/OutboundBotClient.h | 24 ++++ .../outboundbot/model/CreateInstanceRequest.h | 3 + .../outboundbot/model/CreateScriptRequest.h | 6 + .../outboundbot/model/DescribeJobResult.h | 1 + .../outboundbot/model/DescribeScriptResult.h | 1 + .../GetConcurrentConversationQuotaRequest.h | 45 ++++++++ .../GetConcurrentConversationQuotaResult.h | 61 ++++++++++ .../model/GetCurrentConcurrencyRequest.h | 48 ++++++++ .../model/GetCurrentConcurrencyResult.h | 63 ++++++++++ .../model/ListJobGroupsAsyncResult.h | 1 + .../outboundbot/model/ListJobGroupsResult.h | 1 + .../model/ListSchedulerInstancesResult.h | 1 + .../outboundbot/model/ListScriptsResult.h | 11 +- .../outboundbot/model/ModifyInstanceRequest.h | 3 + .../outboundbot/model/ModifyScriptRequest.h | 15 ++- .../model/QueryJobsWithResultResult.h | 6 + .../outboundbot/model/StartJobRequest.h | 3 + .../outboundbot/model/StartJobResult.h | 2 + .../outboundbot/model/TerminateCallRequest.h | 51 +++++++++ .../outboundbot/model/TerminateCallResult.h | 57 +++++++++ outboundbot/src/OutboundBotClient.cc | 108 ++++++++++++++++++ .../src/model/CreateInstanceRequest.cc | 13 +++ outboundbot/src/model/CreateScriptRequest.cc | 26 +++++ outboundbot/src/model/DescribeJobResult.cc | 2 + outboundbot/src/model/DescribeScriptResult.cc | 2 + .../GetConcurrentConversationQuotaRequest.cc | 29 +++++ .../GetConcurrentConversationQuotaResult.cc | 86 ++++++++++++++ .../src/model/GetCurrentConcurrencyRequest.cc | 40 +++++++ .../src/model/GetCurrentConcurrencyResult.cc | 93 +++++++++++++++ .../src/model/ListJobGroupsAsyncResult.cc | 2 + outboundbot/src/model/ListJobGroupsResult.cc | 2 + .../src/model/ListSchedulerInstancesResult.cc | 2 + outboundbot/src/model/ListScriptsResult.cc | 2 + .../src/model/ModifyInstanceRequest.cc | 13 +++ outboundbot/src/model/ModifyScriptRequest.cc | 59 ++++++++-- .../src/model/QueryJobsWithResultResult.cc | 10 ++ outboundbot/src/model/StartJobRequest.cc | 11 ++ outboundbot/src/model/StartJobResult.cc | 15 +++ outboundbot/src/model/TerminateCallRequest.cc | 51 +++++++++ outboundbot/src/model/TerminateCallResult.cc | 72 ++++++++++++ 43 files changed, 1038 insertions(+), 20 deletions(-) create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/TerminateCallResult.h create mode 100644 outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc create mode 100644 outboundbot/src/model/GetConcurrentConversationQuotaResult.cc create mode 100644 outboundbot/src/model/GetCurrentConcurrencyRequest.cc create mode 100644 outboundbot/src/model/GetCurrentConcurrencyResult.cc create mode 100644 outboundbot/src/model/TerminateCallRequest.cc create mode 100644 outboundbot/src/model/TerminateCallResult.cc diff --git a/CHANGELOG b/CHANGELOG index 3a51f54b6..f145da628 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-08-19 Version: 1.36.854 +- Supported new features for outbound. + 2021-08-19 Version: 1.36.853 - Release BeautifyBody. diff --git a/VERSION b/VERSION index 8e18b4f2b..64e7b25d2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.853 \ No newline at end of file +1.36.854 \ No newline at end of file diff --git a/outboundbot/CMakeLists.txt b/outboundbot/CMakeLists.txt index fcfef832d..7646a2a84 100644 --- a/outboundbot/CMakeLists.txt +++ b/outboundbot/CMakeLists.txt @@ -119,10 +119,14 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/GetAsrServerInfoResult.h include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodResult.h + include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h + include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.h include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h include/alibabacloud/outboundbot/model/GetContactBlockListResult.h include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h + include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h + include/alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.h include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h @@ -243,6 +247,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/TagResourcesResult.h include/alibabacloud/outboundbot/model/TaskPreparingRequest.h include/alibabacloud/outboundbot/model/TaskPreparingResult.h + include/alibabacloud/outboundbot/model/TerminateCallRequest.h + include/alibabacloud/outboundbot/model/TerminateCallResult.h include/alibabacloud/outboundbot/model/UntagResourcesRequest.h include/alibabacloud/outboundbot/model/UntagResourcesResult.h include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h @@ -348,10 +354,14 @@ set(outboundbot_src src/model/GetAsrServerInfoResult.cc src/model/GetBaseStrategyPeriodRequest.cc src/model/GetBaseStrategyPeriodResult.cc + src/model/GetConcurrentConversationQuotaRequest.cc + src/model/GetConcurrentConversationQuotaResult.cc src/model/GetContactBlockListRequest.cc src/model/GetContactBlockListResult.cc src/model/GetContactWhiteListRequest.cc src/model/GetContactWhiteListResult.cc + src/model/GetCurrentConcurrencyRequest.cc + src/model/GetCurrentConcurrencyResult.cc src/model/GetEffectiveDaysRequest.cc src/model/GetEffectiveDaysResult.cc src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc @@ -472,6 +482,8 @@ set(outboundbot_src src/model/TagResourcesResult.cc src/model/TaskPreparingRequest.cc src/model/TaskPreparingResult.cc + src/model/TerminateCallRequest.cc + src/model/TerminateCallResult.cc src/model/UntagResourcesRequest.cc src/model/UntagResourcesResult.cc src/model/WithdrawScriptReviewRequest.cc diff --git a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h index 4718ce079..f455c7466 100644 --- a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h +++ b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h @@ -120,10 +120,14 @@ #include "model/GetAsrServerInfoResult.h" #include "model/GetBaseStrategyPeriodRequest.h" #include "model/GetBaseStrategyPeriodResult.h" +#include "model/GetConcurrentConversationQuotaRequest.h" +#include "model/GetConcurrentConversationQuotaResult.h" #include "model/GetContactBlockListRequest.h" #include "model/GetContactBlockListResult.h" #include "model/GetContactWhiteListRequest.h" #include "model/GetContactWhiteListResult.h" +#include "model/GetCurrentConcurrencyRequest.h" +#include "model/GetCurrentConcurrencyResult.h" #include "model/GetEffectiveDaysRequest.h" #include "model/GetEffectiveDaysResult.h" #include "model/GetEmptyNumberNoMoreCallsInfoRequest.h" @@ -244,6 +248,8 @@ #include "model/TagResourcesResult.h" #include "model/TaskPreparingRequest.h" #include "model/TaskPreparingResult.h" +#include "model/TerminateCallRequest.h" +#include "model/TerminateCallResult.h" #include "model/UntagResourcesRequest.h" #include "model/UntagResourcesResult.h" #include "model/WithdrawScriptReviewRequest.h" @@ -404,12 +410,18 @@ namespace AlibabaCloud typedef Outcome GetBaseStrategyPeriodOutcome; typedef std::future GetBaseStrategyPeriodOutcomeCallable; typedef std::function&)> GetBaseStrategyPeriodAsyncHandler; + typedef Outcome GetConcurrentConversationQuotaOutcome; + typedef std::future GetConcurrentConversationQuotaOutcomeCallable; + typedef std::function&)> GetConcurrentConversationQuotaAsyncHandler; typedef Outcome GetContactBlockListOutcome; typedef std::future GetContactBlockListOutcomeCallable; typedef std::function&)> GetContactBlockListAsyncHandler; typedef Outcome GetContactWhiteListOutcome; typedef std::future GetContactWhiteListOutcomeCallable; typedef std::function&)> GetContactWhiteListAsyncHandler; + typedef Outcome GetCurrentConcurrencyOutcome; + typedef std::future GetCurrentConcurrencyOutcomeCallable; + typedef std::function&)> GetCurrentConcurrencyAsyncHandler; typedef Outcome GetEffectiveDaysOutcome; typedef std::future GetEffectiveDaysOutcomeCallable; typedef std::function&)> GetEffectiveDaysAsyncHandler; @@ -590,6 +602,9 @@ namespace AlibabaCloud typedef Outcome TaskPreparingOutcome; typedef std::future TaskPreparingOutcomeCallable; typedef std::function&)> TaskPreparingAsyncHandler; + typedef Outcome TerminateCallOutcome; + typedef std::future TerminateCallOutcomeCallable; + typedef std::function&)> TerminateCallAsyncHandler; typedef Outcome UntagResourcesOutcome; typedef std::future UntagResourcesOutcomeCallable; typedef std::function&)> UntagResourcesAsyncHandler; @@ -748,12 +763,18 @@ namespace AlibabaCloud GetBaseStrategyPeriodOutcome getBaseStrategyPeriod(const Model::GetBaseStrategyPeriodRequest &request)const; void getBaseStrategyPeriodAsync(const Model::GetBaseStrategyPeriodRequest& request, const GetBaseStrategyPeriodAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetBaseStrategyPeriodOutcomeCallable getBaseStrategyPeriodCallable(const Model::GetBaseStrategyPeriodRequest& request) const; + GetConcurrentConversationQuotaOutcome getConcurrentConversationQuota(const Model::GetConcurrentConversationQuotaRequest &request)const; + void getConcurrentConversationQuotaAsync(const Model::GetConcurrentConversationQuotaRequest& request, const GetConcurrentConversationQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConcurrentConversationQuotaOutcomeCallable getConcurrentConversationQuotaCallable(const Model::GetConcurrentConversationQuotaRequest& request) const; GetContactBlockListOutcome getContactBlockList(const Model::GetContactBlockListRequest &request)const; void getContactBlockListAsync(const Model::GetContactBlockListRequest& request, const GetContactBlockListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetContactBlockListOutcomeCallable getContactBlockListCallable(const Model::GetContactBlockListRequest& request) const; GetContactWhiteListOutcome getContactWhiteList(const Model::GetContactWhiteListRequest &request)const; void getContactWhiteListAsync(const Model::GetContactWhiteListRequest& request, const GetContactWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetContactWhiteListOutcomeCallable getContactWhiteListCallable(const Model::GetContactWhiteListRequest& request) const; + GetCurrentConcurrencyOutcome getCurrentConcurrency(const Model::GetCurrentConcurrencyRequest &request)const; + void getCurrentConcurrencyAsync(const Model::GetCurrentConcurrencyRequest& request, const GetCurrentConcurrencyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCurrentConcurrencyOutcomeCallable getCurrentConcurrencyCallable(const Model::GetCurrentConcurrencyRequest& request) const; GetEffectiveDaysOutcome getEffectiveDays(const Model::GetEffectiveDaysRequest &request)const; void getEffectiveDaysAsync(const Model::GetEffectiveDaysRequest& request, const GetEffectiveDaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetEffectiveDaysOutcomeCallable getEffectiveDaysCallable(const Model::GetEffectiveDaysRequest& request) const; @@ -934,6 +955,9 @@ namespace AlibabaCloud TaskPreparingOutcome taskPreparing(const Model::TaskPreparingRequest &request)const; void taskPreparingAsync(const Model::TaskPreparingRequest& request, const TaskPreparingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TaskPreparingOutcomeCallable taskPreparingCallable(const Model::TaskPreparingRequest& request) const; + TerminateCallOutcome terminateCall(const Model::TerminateCallRequest &request)const; + void terminateCallAsync(const Model::TerminateCallRequest& request, const TerminateCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TerminateCallOutcomeCallable terminateCallCallable(const Model::TerminateCallRequest& request) const; 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; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h index 208c3b12f..0e1b864bc 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setResourceGroupId(const std::string& resourceGroupId); std::string getEndpoint()const; void setEndpoint(const std::string& endpoint); + std::vector getCallingNumber()const; + void setCallingNumber(const std::vector& callingNumber); std::string getInstanceName()const; void setInstanceName(const std::string& instanceName); std::string getCallCenterInstanceId()const; @@ -59,6 +61,7 @@ namespace AlibabaCloud std::string secretKey_; std::string resourceGroupId_; std::string endpoint_; + std::vector callingNumber_; std::string instanceName_; std::string callCenterInstanceId_; std::string accessKey_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h index 5be1de530..1bcf3b500 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h @@ -47,10 +47,14 @@ namespace AlibabaCloud void setChatbotId(const std::string& chatbotId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::vector getScriptWaveform()const; + void setScriptWaveform(const std::vector& scriptWaveform); std::string getAsrConfig()const; void setAsrConfig(const std::string& asrConfig); std::string getScriptDescription()const; void setScriptDescription(const std::string& scriptDescription); + std::vector getScriptContent()const; + void setScriptContent(const std::vector& scriptContent); private: std::string ttsConfig_; @@ -59,8 +63,10 @@ namespace AlibabaCloud std::string scene_; std::string chatbotId_; std::string instanceId_; + std::vector scriptWaveform_; std::string asrConfig_; std::string scriptDescription_; + std::vector scriptContent_; }; } diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h index 2e655067c..24c41ec2e 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h @@ -97,6 +97,7 @@ namespace AlibabaCloud int duration; std::string brief; std::string callingNumber; + std::string endReason; Contact3 contact3; std::string jobId; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h index 856ee2796..95f4282e7 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string status; std::string chatbotId; + bool miniPlaybackConfigEnabled; std::string scriptDescription; std::string scriptId; std::string debugStatus; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h new file mode 100644 index 000000000..9c1678599 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.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_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetConcurrentConversationQuotaRequest : public RpcServiceRequest + { + + public: + GetConcurrentConversationQuotaRequest(); + ~GetConcurrentConversationQuotaRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.h new file mode 100644 index 000000000..ef168b193 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.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_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTARESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetConcurrentConversationQuotaResult : public ServiceResult + { + public: + + + GetConcurrentConversationQuotaResult(); + explicit GetConcurrentConversationQuotaResult(const std::string &payload); + ~GetConcurrentConversationQuotaResult(); + int getRemainingConcurrent()const; + std::string getMessage()const; + int getMaxConcurrent()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int remainingConcurrent_; + std::string message_; + int maxConcurrent_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTARESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h new file mode 100644 index 000000000..bd4a055d8 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.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_GETCURRENTCONCURRENCYREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetCurrentConcurrencyRequest : public RpcServiceRequest + { + + public: + GetCurrentConcurrencyRequest(); + ~GetCurrentConcurrencyRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.h new file mode 100644 index 000000000..c18ebdb8d --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.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_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetCurrentConcurrencyResult : public ServiceResult + { + public: + + + GetCurrentConcurrencyResult(); + explicit GetCurrentConcurrencyResult(const std::string &payload); + ~GetCurrentConcurrencyResult(); + std::string getMessage()const; + int getMaxConcurrentConversation()const; + std::string getInstanceId()const; + int getCurrentConcurrency()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int maxConcurrentConversation_; + std::string instanceId_; + int currentConcurrency_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h index 99fa8cd15..5a16fb947 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h @@ -69,6 +69,7 @@ namespace AlibabaCloud std::string jobGroupDescription; std::string jobGroupId; std::string scriptName; + int totalCallNum; long creationTime; Strategy strategy; ExportProgress exportProgress; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h index ab97be4a7..00f45f115 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h @@ -71,6 +71,7 @@ namespace AlibabaCloud std::string jobGroupDescription; std::string jobGroupId; std::string scriptName; + int totalCallNum; long creationTime; Strategy strategy; ExportProgress exportProgress; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesResult.h index b7c37cb64..7512656b5 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string ownerId; std::string instanceId; int maxConcurrency; + std::string baseStrategy; std::string business; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h index 005c82290..66245e9be 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h @@ -36,18 +36,19 @@ namespace AlibabaCloud { struct Script { - std::string industry; std::string status; - bool isDrafted; - std::string scriptName; std::string scriptDescription; - long updateTime; - std::string rejectReason; std::string scriptId; std::string failReason; std::string debugStatus; std::string scene; + bool miniPlaybackEnabled; bool isDebugDrafted; + std::string industry; + bool isDrafted; + std::string scriptName; + long updateTime; + std::string rejectReason; }; int totalCount; int pageSize; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h index 88d294815..8db55f02c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setSecretKey(const std::string& secretKey); std::string getEndpoint()const; void setEndpoint(const std::string& endpoint); + std::vector getCallingNumber()const; + void setCallingNumber(const std::vector& callingNumber); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getInstanceName()const; @@ -58,6 +60,7 @@ namespace AlibabaCloud int maxConcurrentConversation_; std::string secretKey_; std::string endpoint_; + std::vector callingNumber_; std::string instanceId_; std::string instanceName_; std::string callCenterInstanceId_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h index 8675a1f69..0242c0416 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h @@ -45,14 +45,20 @@ namespace AlibabaCloud void setScene(const std::string& scene); std::string getScriptId()const; void setScriptId(const std::string& scriptId); + std::vector getScriptWaveform()const; + void setScriptWaveform(const std::vector& scriptWaveform); + std::string getAsrConfig()const; + void setAsrConfig(const std::string& asrConfig); + bool getMiniPlaybackEnabled()const; + void setMiniPlaybackEnabled(bool miniPlaybackEnabled); std::string getChatbotId()const; void setChatbotId(const std::string& chatbotId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getAsrConfig()const; - void setAsrConfig(const std::string& asrConfig); std::string getScriptDescription()const; void setScriptDescription(const std::string& scriptDescription); + std::vector getScriptContent()const; + void setScriptContent(const std::vector& scriptContent); private: std::string ttsConfig_; @@ -60,10 +66,13 @@ namespace AlibabaCloud std::string scriptName_; std::string scene_; std::string scriptId_; + std::vector scriptWaveform_; + std::string asrConfig_; + bool miniPlaybackEnabled_; std::string chatbotId_; std::string instanceId_; - std::string asrConfig_; std::string scriptDescription_; + std::vector scriptContent_; }; } diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h index 0fe7ddef9..acce230cb 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h @@ -56,10 +56,16 @@ namespace AlibabaCloud std::string value; std::string key; }; + struct TagHit + { + std::string tagName; + std::string tagGroup; + }; bool hasAnswered; std::string status; bool hasHangUpByRejection; std::string taskEndReason; + std::vector tagHits; std::string callDurationDisplay; std::string statusName; long callTime; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h index f0f25aaeb..54239fa3c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setJobJson(const std::string& jobJson); std::vector getCallingNumber()const; void setCallingNumber(const std::vector& callingNumber); + std::string getScriptId()const; + void setScriptId(const std::string& scriptId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getJobGroupId()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud private: std::string jobJson_; std::vector callingNumber_; + std::string scriptId_; std::string instanceId_; std::string jobGroupId_; bool selfHostedCallCenter_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/StartJobResult.h b/outboundbot/include/alibabacloud/outboundbot/model/StartJobResult.h index 90c67b318..9c7f7976f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/StartJobResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/StartJobResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud StartJobResult(); explicit StartJobResult(const std::string &payload); ~StartJobResult(); + std::vector getCallIds()const; std::vector getTaskIds()const; std::string getMessage()const; int getHttpStatusCode()const; @@ -51,6 +52,7 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: + std::vector callIds_; std::vector taskIds_; std::string message_; int httpStatusCode_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.h new file mode 100644 index 000000000..2924d74fc --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.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_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TerminateCallRequest : public RpcServiceRequest + { + + public: + TerminateCallRequest(); + ~TerminateCallRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string callId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallResult.h b/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallResult.h new file mode 100644 index 000000000..21faeb847 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallResult.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_TERMINATECALLRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TerminateCallResult : public ServiceResult + { + public: + + + TerminateCallResult(); + explicit TerminateCallResult(const std::string &payload); + ~TerminateCallResult(); + 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_TERMINATECALLRESULT_H_ \ No newline at end of file diff --git a/outboundbot/src/OutboundBotClient.cc b/outboundbot/src/OutboundBotClient.cc index 5f9513c00..2ea6407bd 100644 --- a/outboundbot/src/OutboundBotClient.cc +++ b/outboundbot/src/OutboundBotClient.cc @@ -1815,6 +1815,42 @@ OutboundBotClient::GetBaseStrategyPeriodOutcomeCallable OutboundBotClient::getBa return task->get_future(); } +OutboundBotClient::GetConcurrentConversationQuotaOutcome OutboundBotClient::getConcurrentConversationQuota(const GetConcurrentConversationQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConcurrentConversationQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConcurrentConversationQuotaOutcome(GetConcurrentConversationQuotaResult(outcome.result())); + else + return GetConcurrentConversationQuotaOutcome(outcome.error()); +} + +void OutboundBotClient::getConcurrentConversationQuotaAsync(const GetConcurrentConversationQuotaRequest& request, const GetConcurrentConversationQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConcurrentConversationQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetConcurrentConversationQuotaOutcomeCallable OutboundBotClient::getConcurrentConversationQuotaCallable(const GetConcurrentConversationQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConcurrentConversationQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::GetContactBlockListOutcome OutboundBotClient::getContactBlockList(const GetContactBlockListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +1923,42 @@ OutboundBotClient::GetContactWhiteListOutcomeCallable OutboundBotClient::getCont return task->get_future(); } +OutboundBotClient::GetCurrentConcurrencyOutcome OutboundBotClient::getCurrentConcurrency(const GetCurrentConcurrencyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCurrentConcurrencyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCurrentConcurrencyOutcome(GetCurrentConcurrencyResult(outcome.result())); + else + return GetCurrentConcurrencyOutcome(outcome.error()); +} + +void OutboundBotClient::getCurrentConcurrencyAsync(const GetCurrentConcurrencyRequest& request, const GetCurrentConcurrencyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCurrentConcurrency(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetCurrentConcurrencyOutcomeCallable OutboundBotClient::getCurrentConcurrencyCallable(const GetCurrentConcurrencyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCurrentConcurrency(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::GetEffectiveDaysOutcome OutboundBotClient::getEffectiveDays(const GetEffectiveDaysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4047,6 +4119,42 @@ OutboundBotClient::TaskPreparingOutcomeCallable OutboundBotClient::taskPreparing return task->get_future(); } +OutboundBotClient::TerminateCallOutcome OutboundBotClient::terminateCall(const TerminateCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TerminateCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TerminateCallOutcome(TerminateCallResult(outcome.result())); + else + return TerminateCallOutcome(outcome.error()); +} + +void OutboundBotClient::terminateCallAsync(const TerminateCallRequest& request, const TerminateCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, terminateCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::TerminateCallOutcomeCallable OutboundBotClient::terminateCallCallable(const TerminateCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->terminateCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::UntagResourcesOutcome OutboundBotClient::untagResources(const UntagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/outboundbot/src/model/CreateInstanceRequest.cc b/outboundbot/src/model/CreateInstanceRequest.cc index d8fbf5b74..ad589cbed 100644 --- a/outboundbot/src/model/CreateInstanceRequest.cc +++ b/outboundbot/src/model/CreateInstanceRequest.cc @@ -71,6 +71,19 @@ void CreateInstanceRequest::setEndpoint(const std::string& endpoint) setParameter("Endpoint", endpoint); } +std::vector CreateInstanceRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void CreateInstanceRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) { + setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); + } +} + std::string CreateInstanceRequest::getInstanceName()const { return instanceName_; diff --git a/outboundbot/src/model/CreateScriptRequest.cc b/outboundbot/src/model/CreateScriptRequest.cc index bc6c81a6d..904b099bd 100644 --- a/outboundbot/src/model/CreateScriptRequest.cc +++ b/outboundbot/src/model/CreateScriptRequest.cc @@ -93,6 +93,19 @@ void CreateScriptRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } +std::vector CreateScriptRequest::getScriptWaveform()const +{ + return scriptWaveform_; +} + +void CreateScriptRequest::setScriptWaveform(const std::vector& scriptWaveform) +{ + scriptWaveform_ = scriptWaveform; + for(int dep1 = 0; dep1!= scriptWaveform.size(); dep1++) { + setParameter("ScriptWaveform."+ std::to_string(dep1), scriptWaveform.at(dep1)); + } +} + std::string CreateScriptRequest::getAsrConfig()const { return asrConfig_; @@ -115,3 +128,16 @@ void CreateScriptRequest::setScriptDescription(const std::string& scriptDescript setParameter("ScriptDescription", scriptDescription); } +std::vector CreateScriptRequest::getScriptContent()const +{ + return scriptContent_; +} + +void CreateScriptRequest::setScriptContent(const std::vector& scriptContent) +{ + scriptContent_ = scriptContent; + for(int dep1 = 0; dep1!= scriptContent.size(); dep1++) { + setParameter("ScriptContent."+ std::to_string(dep1), scriptContent.at(dep1)); + } +} + diff --git a/outboundbot/src/model/DescribeJobResult.cc b/outboundbot/src/model/DescribeJobResult.cc index f8dcaa562..d113ac11d 100644 --- a/outboundbot/src/model/DescribeJobResult.cc +++ b/outboundbot/src/model/DescribeJobResult.cc @@ -144,6 +144,8 @@ void DescribeJobResult::parse(const std::string &payload) taskObject.taskId = jobNodeTasksTask["TaskId"].asString(); if(!jobNodeTasksTask["EndTime"].isNull()) taskObject.endTime = std::stol(jobNodeTasksTask["EndTime"].asString()); + if(!jobNodeTasksTask["EndReason"].isNull()) + taskObject.endReason = jobNodeTasksTask["EndReason"].asString(); auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"]; for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode) { diff --git a/outboundbot/src/model/DescribeScriptResult.cc b/outboundbot/src/model/DescribeScriptResult.cc index 6aa446277..02059e479 100644 --- a/outboundbot/src/model/DescribeScriptResult.cc +++ b/outboundbot/src/model/DescribeScriptResult.cc @@ -66,6 +66,8 @@ void DescribeScriptResult::parse(const std::string &payload) script_.asrConfig = scriptNode["AsrConfig"].asString(); if(!scriptNode["TtsConfig"].isNull()) script_.ttsConfig = scriptNode["TtsConfig"].asString(); + if(!scriptNode["MiniPlaybackConfigEnabled"].isNull()) + script_.miniPlaybackConfigEnabled = scriptNode["MiniPlaybackConfigEnabled"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) diff --git a/outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc b/outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc new file mode 100644 index 000000000..3eda70e01 --- /dev/null +++ b/outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc @@ -0,0 +1,29 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetConcurrentConversationQuotaRequest; + +GetConcurrentConversationQuotaRequest::GetConcurrentConversationQuotaRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetConcurrentConversationQuota") +{ + setMethod(HttpRequest::Method::Post); +} + +GetConcurrentConversationQuotaRequest::~GetConcurrentConversationQuotaRequest() +{} + diff --git a/outboundbot/src/model/GetConcurrentConversationQuotaResult.cc b/outboundbot/src/model/GetConcurrentConversationQuotaResult.cc new file mode 100644 index 000000000..b67a32ed7 --- /dev/null +++ b/outboundbot/src/model/GetConcurrentConversationQuotaResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetConcurrentConversationQuotaResult::GetConcurrentConversationQuotaResult() : + ServiceResult() +{} + +GetConcurrentConversationQuotaResult::GetConcurrentConversationQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConcurrentConversationQuotaResult::~GetConcurrentConversationQuotaResult() +{} + +void GetConcurrentConversationQuotaResult::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["MaxConcurrent"].isNull()) + maxConcurrent_ = std::stoi(value["MaxConcurrent"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["RemainingConcurrent"].isNull()) + remainingConcurrent_ = std::stoi(value["RemainingConcurrent"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int GetConcurrentConversationQuotaResult::getRemainingConcurrent()const +{ + return remainingConcurrent_; +} + +std::string GetConcurrentConversationQuotaResult::getMessage()const +{ + return message_; +} + +int GetConcurrentConversationQuotaResult::getMaxConcurrent()const +{ + return maxConcurrent_; +} + +int GetConcurrentConversationQuotaResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetConcurrentConversationQuotaResult::getCode()const +{ + return code_; +} + +bool GetConcurrentConversationQuotaResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetCurrentConcurrencyRequest.cc b/outboundbot/src/model/GetCurrentConcurrencyRequest.cc new file mode 100644 index 000000000..97341f132 --- /dev/null +++ b/outboundbot/src/model/GetCurrentConcurrencyRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetCurrentConcurrencyRequest; + +GetCurrentConcurrencyRequest::GetCurrentConcurrencyRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetCurrentConcurrency") +{ + setMethod(HttpRequest::Method::Post); +} + +GetCurrentConcurrencyRequest::~GetCurrentConcurrencyRequest() +{} + +std::string GetCurrentConcurrencyRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetCurrentConcurrencyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/outboundbot/src/model/GetCurrentConcurrencyResult.cc b/outboundbot/src/model/GetCurrentConcurrencyResult.cc new file mode 100644 index 000000000..5d84badb5 --- /dev/null +++ b/outboundbot/src/model/GetCurrentConcurrencyResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetCurrentConcurrencyResult::GetCurrentConcurrencyResult() : + ServiceResult() +{} + +GetCurrentConcurrencyResult::GetCurrentConcurrencyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCurrentConcurrencyResult::~GetCurrentConcurrencyResult() +{} + +void GetCurrentConcurrencyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["MaxConcurrentConversation"].isNull()) + maxConcurrentConversation_ = std::stoi(value["MaxConcurrentConversation"].asString()); + if(!value["CurrentConcurrency"].isNull()) + currentConcurrency_ = std::stoi(value["CurrentConcurrency"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string GetCurrentConcurrencyResult::getMessage()const +{ + return message_; +} + +int GetCurrentConcurrencyResult::getMaxConcurrentConversation()const +{ + return maxConcurrentConversation_; +} + +std::string GetCurrentConcurrencyResult::getInstanceId()const +{ + return instanceId_; +} + +int GetCurrentConcurrencyResult::getCurrentConcurrency()const +{ + return currentConcurrency_; +} + +int GetCurrentConcurrencyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetCurrentConcurrencyResult::getCode()const +{ + return code_; +} + +bool GetCurrentConcurrencyResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ListJobGroupsAsyncResult.cc b/outboundbot/src/model/ListJobGroupsAsyncResult.cc index e97e55942..2507c331c 100644 --- a/outboundbot/src/model/ListJobGroupsAsyncResult.cc +++ b/outboundbot/src/model/ListJobGroupsAsyncResult.cc @@ -63,6 +63,8 @@ void ListJobGroupsAsyncResult::parse(const std::string &payload) jobGroupsObject.modifyTime = valueJobGroupsJobGroup["ModifyTime"].asString(); if(!valueJobGroupsJobGroup["ScriptVersion"].isNull()) jobGroupsObject.scriptVersion = valueJobGroupsJobGroup["ScriptVersion"].asString(); + if(!valueJobGroupsJobGroup["TotalCallNum"].isNull()) + jobGroupsObject.totalCallNum = std::stoi(valueJobGroupsJobGroup["TotalCallNum"].asString()); auto strategyNode = value["Strategy"]; if(!strategyNode["StartTime"].isNull()) jobGroupsObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); diff --git a/outboundbot/src/model/ListJobGroupsResult.cc b/outboundbot/src/model/ListJobGroupsResult.cc index 6f077f139..7d6380ef0 100644 --- a/outboundbot/src/model/ListJobGroupsResult.cc +++ b/outboundbot/src/model/ListJobGroupsResult.cc @@ -70,6 +70,8 @@ void ListJobGroupsResult::parse(const std::string &payload) jobGroupObject.scriptVersion = jobGroupsNodeListJobGroup["ScriptVersion"].asString(); if(!jobGroupsNodeListJobGroup["Status"].isNull()) jobGroupObject.status = jobGroupsNodeListJobGroup["Status"].asString(); + if(!jobGroupsNodeListJobGroup["TotalCallNum"].isNull()) + jobGroupObject.totalCallNum = std::stoi(jobGroupsNodeListJobGroup["TotalCallNum"].asString()); auto progressNode = value["Progress"]; if(!progressNode["Duration"].isNull()) jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString()); diff --git a/outboundbot/src/model/ListSchedulerInstancesResult.cc b/outboundbot/src/model/ListSchedulerInstancesResult.cc index acbc7d633..ee50ac424 100644 --- a/outboundbot/src/model/ListSchedulerInstancesResult.cc +++ b/outboundbot/src/model/ListSchedulerInstancesResult.cc @@ -51,6 +51,8 @@ void ListSchedulerInstancesResult::parse(const std::string &payload) schedulerInstancesObject.business = valueSchedulerInstancesSchedulerInstance["Business"].asString(); if(!valueSchedulerInstancesSchedulerInstance["MaxConcurrency"].isNull()) schedulerInstancesObject.maxConcurrency = std::stoi(valueSchedulerInstancesSchedulerInstance["MaxConcurrency"].asString()); + if(!valueSchedulerInstancesSchedulerInstance["BaseStrategy"].isNull()) + schedulerInstancesObject.baseStrategy = valueSchedulerInstancesSchedulerInstance["BaseStrategy"].asString(); schedulerInstances_.push_back(schedulerInstancesObject); } if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListScriptsResult.cc b/outboundbot/src/model/ListScriptsResult.cc index bacc8ba92..18bc42367 100644 --- a/outboundbot/src/model/ListScriptsResult.cc +++ b/outboundbot/src/model/ListScriptsResult.cc @@ -74,6 +74,8 @@ void ListScriptsResult::parse(const std::string &payload) scriptObject.updateTime = std::stol(scriptsNodeListScript["UpdateTime"].asString()); if(!scriptsNodeListScript["RejectReason"].isNull()) scriptObject.rejectReason = scriptsNodeListScript["RejectReason"].asString(); + if(!scriptsNodeListScript["MiniPlaybackEnabled"].isNull()) + scriptObject.miniPlaybackEnabled = scriptsNodeListScript["MiniPlaybackEnabled"].asString() == "true"; scripts_.list.push_back(scriptObject); } if(!value["Code"].isNull()) diff --git a/outboundbot/src/model/ModifyInstanceRequest.cc b/outboundbot/src/model/ModifyInstanceRequest.cc index a4e09a3d6..0898cb9a4 100644 --- a/outboundbot/src/model/ModifyInstanceRequest.cc +++ b/outboundbot/src/model/ModifyInstanceRequest.cc @@ -60,6 +60,19 @@ void ModifyInstanceRequest::setEndpoint(const std::string& endpoint) setParameter("Endpoint", endpoint); } +std::vector ModifyInstanceRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void ModifyInstanceRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) { + setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); + } +} + std::string ModifyInstanceRequest::getInstanceId()const { return instanceId_; diff --git a/outboundbot/src/model/ModifyScriptRequest.cc b/outboundbot/src/model/ModifyScriptRequest.cc index 6ab75dad6..a42b48ad9 100644 --- a/outboundbot/src/model/ModifyScriptRequest.cc +++ b/outboundbot/src/model/ModifyScriptRequest.cc @@ -82,6 +82,41 @@ void ModifyScriptRequest::setScriptId(const std::string& scriptId) setParameter("ScriptId", scriptId); } +std::vector ModifyScriptRequest::getScriptWaveform()const +{ + return scriptWaveform_; +} + +void ModifyScriptRequest::setScriptWaveform(const std::vector& scriptWaveform) +{ + scriptWaveform_ = scriptWaveform; + for(int dep1 = 0; dep1!= scriptWaveform.size(); dep1++) { + setParameter("ScriptWaveform."+ std::to_string(dep1), scriptWaveform.at(dep1)); + } +} + +std::string ModifyScriptRequest::getAsrConfig()const +{ + return asrConfig_; +} + +void ModifyScriptRequest::setAsrConfig(const std::string& asrConfig) +{ + asrConfig_ = asrConfig; + setParameter("AsrConfig", asrConfig); +} + +bool ModifyScriptRequest::getMiniPlaybackEnabled()const +{ + return miniPlaybackEnabled_; +} + +void ModifyScriptRequest::setMiniPlaybackEnabled(bool miniPlaybackEnabled) +{ + miniPlaybackEnabled_ = miniPlaybackEnabled; + setParameter("MiniPlaybackEnabled", miniPlaybackEnabled ? "true" : "false"); +} + std::string ModifyScriptRequest::getChatbotId()const { return chatbotId_; @@ -104,17 +139,6 @@ void ModifyScriptRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } -std::string ModifyScriptRequest::getAsrConfig()const -{ - return asrConfig_; -} - -void ModifyScriptRequest::setAsrConfig(const std::string& asrConfig) -{ - asrConfig_ = asrConfig; - setParameter("AsrConfig", asrConfig); -} - std::string ModifyScriptRequest::getScriptDescription()const { return scriptDescription_; @@ -126,3 +150,16 @@ void ModifyScriptRequest::setScriptDescription(const std::string& scriptDescript setParameter("ScriptDescription", scriptDescription); } +std::vector ModifyScriptRequest::getScriptContent()const +{ + return scriptContent_; +} + +void ModifyScriptRequest::setScriptContent(const std::vector& scriptContent) +{ + scriptContent_ = scriptContent; + for(int dep1 = 0; dep1!= scriptContent.size(); dep1++) { + setParameter("ScriptContent."+ std::to_string(dep1), scriptContent.at(dep1)); + } +} + diff --git a/outboundbot/src/model/QueryJobsWithResultResult.cc b/outboundbot/src/model/QueryJobsWithResultResult.cc index 39279fe17..c65810cdf 100644 --- a/outboundbot/src/model/QueryJobsWithResultResult.cc +++ b/outboundbot/src/model/QueryJobsWithResultResult.cc @@ -89,6 +89,16 @@ void QueryJobsWithResultResult::parse(const std::string &payload) extraObject.value = latestTaskNodeExtrasExtra["Value"].asString(); jobObject.latestTask.extras.push_back(extraObject); } + auto allTagHitsNode = latestTaskNode["TagHits"]["TagHit"]; + for (auto latestTaskNodeTagHitsTagHit : allTagHitsNode) + { + Jobs::Job::LatestTask::TagHit tagHitObject; + if(!latestTaskNodeTagHitsTagHit["TagGroup"].isNull()) + tagHitObject.tagGroup = latestTaskNodeTagHitsTagHit["TagGroup"].asString(); + if(!latestTaskNodeTagHitsTagHit["TagName"].isNull()) + tagHitObject.tagName = latestTaskNodeTagHitsTagHit["TagName"].asString(); + jobObject.latestTask.tagHits.push_back(tagHitObject); + } auto contactNode = latestTaskNode["Contact"]; if(!contactNode["PreferredPhoneNumber"].isNull()) jobObject.latestTask.contact.preferredPhoneNumber = contactNode["PreferredPhoneNumber"].asString(); diff --git a/outboundbot/src/model/StartJobRequest.cc b/outboundbot/src/model/StartJobRequest.cc index 001bf2b7f..315e48ecd 100644 --- a/outboundbot/src/model/StartJobRequest.cc +++ b/outboundbot/src/model/StartJobRequest.cc @@ -51,6 +51,17 @@ void StartJobRequest::setCallingNumber(const std::vector& callingNu } } +std::string StartJobRequest::getScriptId()const +{ + return scriptId_; +} + +void StartJobRequest::setScriptId(const std::string& scriptId) +{ + scriptId_ = scriptId; + setParameter("ScriptId", scriptId); +} + std::string StartJobRequest::getInstanceId()const { return instanceId_; diff --git a/outboundbot/src/model/StartJobResult.cc b/outboundbot/src/model/StartJobResult.cc index 4bdf404b1..a2fd29081 100644 --- a/outboundbot/src/model/StartJobResult.cc +++ b/outboundbot/src/model/StartJobResult.cc @@ -49,6 +49,16 @@ void StartJobResult::parse(const std::string &payload) taskIdsObject.value = valueTaskIdsKeyValuePair["Value"].asString(); taskIds_.push_back(taskIdsObject); } + auto allCallIdsNode = value["CallIds"]["KeyValuePair"]; + for (auto valueCallIdsKeyValuePair : allCallIdsNode) + { + KeyValuePair callIdsObject; + if(!valueCallIdsKeyValuePair["Key"].isNull()) + callIdsObject.key = valueCallIdsKeyValuePair["Key"].asString(); + if(!valueCallIdsKeyValuePair["Value"].isNull()) + callIdsObject.value = valueCallIdsKeyValuePair["Value"].asString(); + callIds_.push_back(callIdsObject); + } if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) @@ -60,6 +70,11 @@ void StartJobResult::parse(const std::string &payload) } +std::vector StartJobResult::getCallIds()const +{ + return callIds_; +} + std::vector StartJobResult::getTaskIds()const { return taskIds_; diff --git a/outboundbot/src/model/TerminateCallRequest.cc b/outboundbot/src/model/TerminateCallRequest.cc new file mode 100644 index 000000000..a2a751075 --- /dev/null +++ b/outboundbot/src/model/TerminateCallRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::TerminateCallRequest; + +TerminateCallRequest::TerminateCallRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "TerminateCall") +{ + setMethod(HttpRequest::Method::Post); +} + +TerminateCallRequest::~TerminateCallRequest() +{} + +std::string TerminateCallRequest::getCallId()const +{ + return callId_; +} + +void TerminateCallRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setParameter("CallId", callId); +} + +std::string TerminateCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void TerminateCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/outboundbot/src/model/TerminateCallResult.cc b/outboundbot/src/model/TerminateCallResult.cc new file mode 100644 index 000000000..2ad751b62 --- /dev/null +++ b/outboundbot/src/model/TerminateCallResult.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; + +TerminateCallResult::TerminateCallResult() : + ServiceResult() +{} + +TerminateCallResult::TerminateCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TerminateCallResult::~TerminateCallResult() +{} + +void TerminateCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string TerminateCallResult::getMessage()const +{ + return message_; +} + +int TerminateCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string TerminateCallResult::getCode()const +{ + return code_; +} + +bool TerminateCallResult::getSuccess()const +{ + return success_; +} +