Supported new features for outbound.
This commit is contained in:
@@ -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 )
|
||||
|
||||
|
||||
@@ -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<Error, Model::DeleteScriptResult> DeleteScriptOutcome;
|
||||
typedef std::future<DeleteScriptOutcome> DeleteScriptOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DeleteScriptRequest&, const DeleteScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteScriptRecordingResult> DeleteScriptRecordingOutcome;
|
||||
typedef std::future<DeleteScriptRecordingOutcome> DeleteScriptRecordingOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DeleteScriptRecordingRequest&, const DeleteScriptRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteScriptRecordingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteScriptWaveformResult> DeleteScriptWaveformOutcome;
|
||||
typedef std::future<DeleteScriptWaveformOutcome> DeleteScriptWaveformOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DeleteScriptWaveformRequest&, const DeleteScriptWaveformOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteScriptWaveformAsyncHandler;
|
||||
@@ -457,6 +468,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DownloadRecordingResult> DownloadRecordingOutcome;
|
||||
typedef std::future<DownloadRecordingOutcome> DownloadRecordingOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DownloadRecordingRequest&, const DownloadRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadRecordingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadScriptRecordingResult> DownloadScriptRecordingOutcome;
|
||||
typedef std::future<DownloadScriptRecordingOutcome> DownloadScriptRecordingOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DownloadScriptRecordingRequest&, const DownloadScriptRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadScriptRecordingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DuplicateScriptResult> DuplicateScriptOutcome;
|
||||
typedef std::future<DuplicateScriptOutcome> DuplicateScriptOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DuplicateScriptRequest&, const DuplicateScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DuplicateScriptAsyncHandler;
|
||||
@@ -559,6 +573,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListScriptPublishHistoriesResult> ListScriptPublishHistoriesOutcome;
|
||||
typedef std::future<ListScriptPublishHistoriesOutcome> ListScriptPublishHistoriesOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListScriptPublishHistoriesRequest&, const ListScriptPublishHistoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScriptPublishHistoriesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListScriptRecordingResult> ListScriptRecordingOutcome;
|
||||
typedef std::future<ListScriptRecordingOutcome> ListScriptRecordingOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListScriptRecordingRequest&, const ListScriptRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScriptRecordingAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListScriptVoiceConfigsResult> ListScriptVoiceConfigsOutcome;
|
||||
typedef std::future<ListScriptVoiceConfigsOutcome> ListScriptVoiceConfigsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListScriptVoiceConfigsRequest&, const ListScriptVoiceConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScriptVoiceConfigsAsyncHandler;
|
||||
@@ -688,6 +705,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UploadScriptRecordingResult> UploadScriptRecordingOutcome;
|
||||
typedef std::future<UploadScriptRecordingOutcome> UploadScriptRecordingOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::UploadScriptRecordingRequest&, const UploadScriptRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadScriptRecordingAsyncHandler;
|
||||
typedef Outcome<Error, Model::WithdrawScriptReviewResult> WithdrawScriptReviewOutcome;
|
||||
typedef std::future<WithdrawScriptReviewOutcome> WithdrawScriptReviewOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::WithdrawScriptReviewRequest&, const WithdrawScriptReviewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
WithdrawScriptReviewOutcomeCallable withdrawScriptReviewCallable(const Model::WithdrawScriptReviewRequest& request) const;
|
||||
|
||||
@@ -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<std::string> scriptWaveform_;
|
||||
std::string asrConfig_;
|
||||
std::string miniPlaybackConfigListJsonString_;
|
||||
bool emotionEnable_;
|
||||
bool newBargeInEnable_;
|
||||
bool miniPlaybackEnable_;
|
||||
std::string chatbotId_;
|
||||
|
||||
@@ -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 <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
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_
|
||||
@@ -50,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string ttsConfig;
|
||||
bool longWaitEnable;
|
||||
bool miniPlaybackEnable;
|
||||
bool emotionEnable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
bool interruptible;
|
||||
std::string content;
|
||||
std::string actionParams;
|
||||
std::string contentParams;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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 <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
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_
|
||||
@@ -55,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string callCenterInstanceId;
|
||||
std::string instanceName;
|
||||
int maxConcurrentConversation;
|
||||
bool isPreset;
|
||||
long creationTime;
|
||||
std::string instanceDescription;
|
||||
std::string nluServiceType;
|
||||
|
||||
@@ -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 <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
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<ScriptRecording> 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<ScriptRecording> scriptRecordings_;
|
||||
int pageNumber_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTRECORDINGRESULT_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;
|
||||
|
||||
@@ -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<std::string> scriptWaveform_;
|
||||
std::string asrConfig_;
|
||||
std::string miniPlaybackConfigListJsonString_;
|
||||
bool emotionEnable_;
|
||||
std::string nlsConfig_;
|
||||
bool newBargeInEnable_;
|
||||
bool miniPlaybackEnable_;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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 <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
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_
|
||||
@@ -31,21 +31,21 @@ OutboundBotClient::OutboundBotClient(const Credentials &credentials, const Clien
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "outboundbot");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
OutboundBotClient::OutboundBotClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "outboundbot");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
OutboundBotClient::OutboundBotClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "outboundbot");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(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<const AsyncCallerContext>& 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<std::packaged_task<DeleteScriptRecordingOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DownloadScriptRecordingOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<ListScriptRecordingOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<UploadScriptRecordingOutcome()>>(
|
||||
[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();
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
54
outboundbot/src/model/DeleteScriptRecordingRequest.cc
Normal file
54
outboundbot/src/model/DeleteScriptRecordingRequest.cc
Normal file
@@ -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 <alibabacloud/outboundbot/model/DeleteScriptRecordingRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
72
outboundbot/src/model/DeleteScriptRecordingResult.cc
Normal file
72
outboundbot/src/model/DeleteScriptRecordingResult.cc
Normal file
@@ -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 <alibabacloud/outboundbot/model/DeleteScriptRecordingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
54
outboundbot/src/model/DownloadScriptRecordingRequest.cc
Normal file
54
outboundbot/src/model/DownloadScriptRecordingRequest.cc
Normal file
@@ -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 <alibabacloud/outboundbot/model/DownloadScriptRecordingRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
82
outboundbot/src/model/DownloadScriptRecordingResult.cc
Normal file
82
outboundbot/src/model/DownloadScriptRecordingResult.cc
Normal file
@@ -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 <alibabacloud/outboundbot/model/DownloadScriptRecordingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
90
outboundbot/src/model/ListScriptRecordingRequest.cc
Normal file
90
outboundbot/src/model/ListScriptRecordingRequest.cc
Normal file
@@ -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 <alibabacloud/outboundbot/model/ListScriptRecordingRequest.h>
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
130
outboundbot/src/model/ListScriptRecordingResult.cc
Normal file
130
outboundbot/src/model/ListScriptRecordingResult.cc
Normal file
@@ -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 <alibabacloud/outboundbot/model/ListScriptRecordingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::ScriptRecording> 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_;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
72
outboundbot/src/model/UploadScriptRecordingRequest.cc
Normal file
72
outboundbot/src/model/UploadScriptRecordingRequest.cc
Normal file
@@ -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 <alibabacloud/outboundbot/model/UploadScriptRecordingRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
79
outboundbot/src/model/UploadScriptRecordingResult.cc
Normal file
79
outboundbot/src/model/UploadScriptRecordingResult.cc
Normal file
@@ -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 <alibabacloud/outboundbot/model/UploadScriptRecordingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user