Supported new features for outbound.

This commit is contained in:
sdk-team
2022-03-07 12:29:43 +00:00
parent e23adc1324
commit a0cde540cb
37 changed files with 1672 additions and 74 deletions

View File

@@ -411,6 +411,42 @@ OutboundBotClient::CreateInstanceOutcomeCallable OutboundBotClient::createInstan
return task->get_future();
}
OutboundBotClient::CreateInstanceBindNumberOutcome OutboundBotClient::createInstanceBindNumber(const CreateInstanceBindNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateInstanceBindNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateInstanceBindNumberOutcome(CreateInstanceBindNumberResult(outcome.result()));
else
return CreateInstanceBindNumberOutcome(outcome.error());
}
void OutboundBotClient::createInstanceBindNumberAsync(const CreateInstanceBindNumberRequest& request, const CreateInstanceBindNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createInstanceBindNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::CreateInstanceBindNumberOutcomeCallable OutboundBotClient::createInstanceBindNumberCallable(const CreateInstanceBindNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateInstanceBindNumberOutcome()>>(
[this, request]()
{
return this->createInstanceBindNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::CreateIntentOutcome OutboundBotClient::createIntent(const CreateIntentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -771,6 +807,42 @@ OutboundBotClient::CreateTagOutcomeCallable OutboundBotClient::createTagCallable
return task->get_future();
}
OutboundBotClient::CreateTaskExportTaskOutcome OutboundBotClient::createTaskExportTask(const CreateTaskExportTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateTaskExportTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateTaskExportTaskOutcome(CreateTaskExportTaskResult(outcome.result()));
else
return CreateTaskExportTaskOutcome(outcome.error());
}
void OutboundBotClient::createTaskExportTaskAsync(const CreateTaskExportTaskRequest& request, const CreateTaskExportTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createTaskExportTask(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::CreateTaskExportTaskOutcomeCallable OutboundBotClient::createTaskExportTaskCallable(const CreateTaskExportTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateTaskExportTaskOutcome()>>(
[this, request]()
{
return this->createTaskExportTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DeleteAllNumberDistrictInfoOutcome OutboundBotClient::deleteAllNumberDistrictInfo(const DeleteAllNumberDistrictInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1779,6 +1851,42 @@ OutboundBotClient::DescribeTagHitsSummaryOutcomeCallable OutboundBotClient::desc
return task->get_future();
}
OutboundBotClient::DescribeTenantBindNumberOutcome OutboundBotClient::describeTenantBindNumber(const DescribeTenantBindNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeTenantBindNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeTenantBindNumberOutcome(DescribeTenantBindNumberResult(outcome.result()));
else
return DescribeTenantBindNumberOutcome(outcome.error());
}
void OutboundBotClient::describeTenantBindNumberAsync(const DescribeTenantBindNumberRequest& request, const DescribeTenantBindNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeTenantBindNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::DescribeTenantBindNumberOutcomeCallable OutboundBotClient::describeTenantBindNumberCallable(const DescribeTenantBindNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeTenantBindNumberOutcome()>>(
[this, request]()
{
return this->describeTenantBindNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DialogueOutcome OutboundBotClient::dialogue(const DialogueRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2571,6 +2679,42 @@ OutboundBotClient::InflightTaskTimeoutOutcomeCallable OutboundBotClient::infligh
return task->get_future();
}
OutboundBotClient::ListAllTenantBindNumberBindingOutcome OutboundBotClient::listAllTenantBindNumberBinding(const ListAllTenantBindNumberBindingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAllTenantBindNumberBindingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAllTenantBindNumberBindingOutcome(ListAllTenantBindNumberBindingResult(outcome.result()));
else
return ListAllTenantBindNumberBindingOutcome(outcome.error());
}
void OutboundBotClient::listAllTenantBindNumberBindingAsync(const ListAllTenantBindNumberBindingRequest& request, const ListAllTenantBindNumberBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAllTenantBindNumberBinding(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::ListAllTenantBindNumberBindingOutcomeCallable OutboundBotClient::listAllTenantBindNumberBindingCallable(const ListAllTenantBindNumberBindingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAllTenantBindNumberBindingOutcome()>>(
[this, request]()
{
return this->listAllTenantBindNumberBinding(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::ListChatbotInstancesOutcome OutboundBotClient::listChatbotInstances(const ListChatbotInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -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 <alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateInstanceBindNumberRequest;
CreateInstanceBindNumberRequest::CreateInstanceBindNumberRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstanceBindNumber")
{
setMethod(HttpRequest::Method::Post);
}
CreateInstanceBindNumberRequest::~CreateInstanceBindNumberRequest()
{}
std::string CreateInstanceBindNumberRequest::getInstanceList()const
{
return instanceList_;
}
void CreateInstanceBindNumberRequest::setInstanceList(const std::string& instanceList)
{
instanceList_ = instanceList;
setParameter("InstanceList", instanceList);
}
std::string CreateInstanceBindNumberRequest::getNumber()const
{
return number_;
}
void CreateInstanceBindNumberRequest::setNumber(const std::string& number)
{
number_ = number;
setParameter("Number", number);
}

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/CreateInstanceBindNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateInstanceBindNumberResult::CreateInstanceBindNumberResult() :
ServiceResult()
{}
CreateInstanceBindNumberResult::CreateInstanceBindNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstanceBindNumberResult::~CreateInstanceBindNumberResult()
{}
void CreateInstanceBindNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allListNode = dataNode["List"]["ListItem"];
for (auto dataNodeListListItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListListItem["InstanceId"].isNull())
listItemObject.instanceId = dataNodeListListItem["InstanceId"].asString();
if(!dataNodeListListItem["Success"].isNull())
listItemObject.success = dataNodeListListItem["Success"].asString() == "true";
data_.list.push_back(listItemObject);
}
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 CreateInstanceBindNumberResult::getMessage()const
{
return message_;
}
int CreateInstanceBindNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
CreateInstanceBindNumberResult::Data CreateInstanceBindNumberResult::getData()const
{
return data_;
}
std::string CreateInstanceBindNumberResult::getCode()const
{
return code_;
}
bool CreateInstanceBindNumberResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,315 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/CreateTaskExportTaskRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateTaskExportTaskRequest;
CreateTaskExportTaskRequest::CreateTaskExportTaskRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateTaskExportTask")
{
setMethod(HttpRequest::Method::Get);
}
CreateTaskExportTaskRequest::~CreateTaskExportTaskRequest()
{}
bool CreateTaskExportTaskRequest::getHasAnswered()const
{
return hasAnswered_;
}
void CreateTaskExportTaskRequest::setHasAnswered(bool hasAnswered)
{
hasAnswered_ = hasAnswered;
setParameter("HasAnswered", hasAnswered ? "true" : "false");
}
long CreateTaskExportTaskRequest::getActualTimeLte()const
{
return actualTimeLte_;
}
void CreateTaskExportTaskRequest::setActualTimeLte(long actualTimeLte)
{
actualTimeLte_ = actualTimeLte;
setParameter("ActualTimeLte", std::to_string(actualTimeLte));
}
std::string CreateTaskExportTaskRequest::getOtherId()const
{
return otherId_;
}
void CreateTaskExportTaskRequest::setOtherId(const std::string& otherId)
{
otherId_ = otherId;
setParameter("OtherId", otherId);
}
long CreateTaskExportTaskRequest::getTaskCreateTimeLte()const
{
return taskCreateTimeLte_;
}
void CreateTaskExportTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte)
{
taskCreateTimeLte_ = taskCreateTimeLte;
setParameter("TaskCreateTimeLte", std::to_string(taskCreateTimeLte));
}
std::string CreateTaskExportTaskRequest::getJobId()const
{
return jobId_;
}
void CreateTaskExportTaskRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
long CreateTaskExportTaskRequest::getTaskCreateTimeGte()const
{
return taskCreateTimeGte_;
}
void CreateTaskExportTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte)
{
taskCreateTimeGte_ = taskCreateTimeGte;
setParameter("TaskCreateTimeGte", std::to_string(taskCreateTimeGte));
}
std::string CreateTaskExportTaskRequest::getCalledNumber()const
{
return calledNumber_;
}
void CreateTaskExportTaskRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
}
std::string CreateTaskExportTaskRequest::getUserIdMatch()const
{
return userIdMatch_;
}
void CreateTaskExportTaskRequest::setUserIdMatch(const std::string& userIdMatch)
{
userIdMatch_ = userIdMatch;
setParameter("UserIdMatch", userIdMatch);
}
int CreateTaskExportTaskRequest::getPageSize()const
{
return pageSize_;
}
void CreateTaskExportTaskRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string CreateTaskExportTaskRequest::getScriptNameQuery()const
{
return scriptNameQuery_;
}
void CreateTaskExportTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery)
{
scriptNameQuery_ = scriptNameQuery;
setParameter("ScriptNameQuery", scriptNameQuery);
}
int CreateTaskExportTaskRequest::getPageIndex()const
{
return pageIndex_;
}
void CreateTaskExportTaskRequest::setPageIndex(int pageIndex)
{
pageIndex_ = pageIndex;
setParameter("PageIndex", std::to_string(pageIndex));
}
std::string CreateTaskExportTaskRequest::getSortOrder()const
{
return sortOrder_;
}
void CreateTaskExportTaskRequest::setSortOrder(const std::string& sortOrder)
{
sortOrder_ = sortOrder;
setParameter("SortOrder", sortOrder);
}
std::string CreateTaskExportTaskRequest::getTaskStatusStringList()const
{
return taskStatusStringList_;
}
void CreateTaskExportTaskRequest::setTaskStatusStringList(const std::string& taskStatusStringList)
{
taskStatusStringList_ = taskStatusStringList;
setParameter("TaskStatusStringList", taskStatusStringList);
}
std::string CreateTaskExportTaskRequest::getJobGroupNameQuery()const
{
return jobGroupNameQuery_;
}
void CreateTaskExportTaskRequest::setJobGroupNameQuery(const std::string& jobGroupNameQuery)
{
jobGroupNameQuery_ = jobGroupNameQuery;
setParameter("JobGroupNameQuery", jobGroupNameQuery);
}
std::string CreateTaskExportTaskRequest::getTaskId()const
{
return taskId_;
}
void CreateTaskExportTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
bool CreateTaskExportTaskRequest::getHasHangUpByRejection()const
{
return hasHangUpByRejection_;
}
void CreateTaskExportTaskRequest::setHasHangUpByRejection(bool hasHangUpByRejection)
{
hasHangUpByRejection_ = hasHangUpByRejection;
setParameter("HasHangUpByRejection", hasHangUpByRejection ? "true" : "false");
}
bool CreateTaskExportTaskRequest::getHasReachedEndOfFlow()const
{
return hasReachedEndOfFlow_;
}
void CreateTaskExportTaskRequest::setHasReachedEndOfFlow(bool hasReachedEndOfFlow)
{
hasReachedEndOfFlow_ = hasReachedEndOfFlow;
setParameter("HasReachedEndOfFlow", hasReachedEndOfFlow ? "true" : "false");
}
std::string CreateTaskExportTaskRequest::getInstanceId()const
{
return instanceId_;
}
void CreateTaskExportTaskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
long CreateTaskExportTaskRequest::getRecordingDurationGte()const
{
return recordingDurationGte_;
}
void CreateTaskExportTaskRequest::setRecordingDurationGte(long recordingDurationGte)
{
recordingDurationGte_ = recordingDurationGte;
setParameter("RecordingDurationGte", std::to_string(recordingDurationGte));
}
long CreateTaskExportTaskRequest::getCallDurationLte()const
{
return callDurationLte_;
}
void CreateTaskExportTaskRequest::setCallDurationLte(long callDurationLte)
{
callDurationLte_ = callDurationLte;
setParameter("CallDurationLte", std::to_string(callDurationLte));
}
std::string CreateTaskExportTaskRequest::getJobGroupId()const
{
return jobGroupId_;
}
void CreateTaskExportTaskRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
std::string CreateTaskExportTaskRequest::getSortBy()const
{
return sortBy_;
}
void CreateTaskExportTaskRequest::setSortBy(const std::string& sortBy)
{
sortBy_ = sortBy;
setParameter("SortBy", sortBy);
}
std::string CreateTaskExportTaskRequest::getJobStatusStringList()const
{
return jobStatusStringList_;
}
void CreateTaskExportTaskRequest::setJobStatusStringList(const std::string& jobStatusStringList)
{
jobStatusStringList_ = jobStatusStringList;
setParameter("JobStatusStringList", jobStatusStringList);
}
long CreateTaskExportTaskRequest::getActualTimeGte()const
{
return actualTimeGte_;
}
void CreateTaskExportTaskRequest::setActualTimeGte(long actualTimeGte)
{
actualTimeGte_ = actualTimeGte;
setParameter("ActualTimeGte", std::to_string(actualTimeGte));
}
long CreateTaskExportTaskRequest::getCallDurationGte()const
{
return callDurationGte_;
}
void CreateTaskExportTaskRequest::setCallDurationGte(long callDurationGte)
{
callDurationGte_ = callDurationGte;
setParameter("CallDurationGte", std::to_string(callDurationGte));
}
long CreateTaskExportTaskRequest::getRecordingDurationLte()const
{
return recordingDurationLte_;
}
void CreateTaskExportTaskRequest::setRecordingDurationLte(long recordingDurationLte)
{
recordingDurationLte_ = recordingDurationLte;
setParameter("RecordingDurationLte", std::to_string(recordingDurationLte));
}

View 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/CreateTaskExportTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateTaskExportTaskResult::CreateTaskExportTaskResult() :
ServiceResult()
{}
CreateTaskExportTaskResult::CreateTaskExportTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTaskExportTaskResult::~CreateTaskExportTaskResult()
{}
void CreateTaskExportTaskResult::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["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["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string CreateTaskExportTaskResult::getTaskId()const
{
return taskId_;
}
std::string CreateTaskExportTaskResult::getMessage()const
{
return message_;
}
int CreateTaskExportTaskResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateTaskExportTaskResult::getCode()const
{
return code_;
}
bool CreateTaskExportTaskResult::getSuccess()const
{
return success_;
}

View File

@@ -40,48 +40,50 @@ void DescribeScriptResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto scriptNode = value["Script"];
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["Status"].isNull())
script_.status = scriptNode["Status"].asString();
if(!scriptNode["UpdateTime"].isNull())
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
if(!scriptNode["ChatbotId"].isNull())
script_.chatbotId = scriptNode["ChatbotId"].asString();
if(!scriptNode["AsrConfig"].isNull())
script_.asrConfig = scriptNode["AsrConfig"].asString();
if(!scriptNode["TtsConfig"].isNull())
script_.ttsConfig = scriptNode["TtsConfig"].asString();
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["MiniPlaybackConfigEnabled"].isNull())
script_.miniPlaybackConfigEnabled = scriptNode["MiniPlaybackConfigEnabled"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["TtsConfig"].isNull())
script_.ttsConfig = scriptNode["TtsConfig"].asString();
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["AsrConfig"].isNull())
script_.asrConfig = scriptNode["AsrConfig"].asString();
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ChatbotId"].isNull())
chatbotId_ = value["ChatbotId"].asString();
if(!value["AsrConfig"].isNull())
asrConfig_ = value["AsrConfig"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["TtsConfig"].isNull())
ttsConfig_ = value["TtsConfig"].asString();
if(!value["AsrConfig"].isNull())
asrConfig_ = value["AsrConfig"].asString();
if(!value["NlsConfig"].isNull())
nlsConfig_ = value["NlsConfig"].asString();
}
@@ -125,3 +127,8 @@ bool DescribeScriptResult::getSuccess()const
return success_;
}
std::string DescribeScriptResult::getNlsConfig()const
{
return nlsConfig_;
}

View File

@@ -40,22 +40,22 @@ void DescribeTTSConfigResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto tTSConfigNode = value["TTSConfig"];
if(!tTSConfigNode["Id"].isNull())
tTSConfig_.id = tTSConfigNode["Id"].asString();
if(!tTSConfigNode["InstanceId"].isNull())
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString();
if(!tTSConfigNode["ScriptId"].isNull())
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
if(!tTSConfigNode["SpeechRate"].isNull())
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
if(!tTSConfigNode["Voice"].isNull())
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
if(!tTSConfigNode["SpeechRate"].isNull())
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
if(!tTSConfigNode["Volume"].isNull())
tTSConfig_.volume = tTSConfigNode["Volume"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!tTSConfigNode["InstanceId"].isNull())
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString();
if(!tTSConfigNode["NlsServiceType"].isNull())
tTSConfig_.nlsServiceType = tTSConfigNode["NlsServiceType"].asString();
if(!tTSConfigNode["AppKey"].isNull())
tTSConfig_.appKey = tTSConfigNode["AppKey"].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())

View File

@@ -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 <alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeTenantBindNumberRequest;
DescribeTenantBindNumberRequest::DescribeTenantBindNumberRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTenantBindNumber")
{
setMethod(HttpRequest::Method::Post);
}
DescribeTenantBindNumberRequest::~DescribeTenantBindNumberRequest()
{}
std::string DescribeTenantBindNumberRequest::getNumber()const
{
return number_;
}
void DescribeTenantBindNumberRequest::setNumber(const std::string& number)
{
number_ = number;
setParameter("Number", number);
}

View 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/DescribeTenantBindNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeTenantBindNumberResult::DescribeTenantBindNumberResult() :
ServiceResult()
{}
DescribeTenantBindNumberResult::DescribeTenantBindNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeTenantBindNumberResult::~DescribeTenantBindNumberResult()
{}
void DescribeTenantBindNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allListNode = dataNode["List"]["ListItem"];
for (auto dataNodeListListItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListListItem["InstanceId"].isNull())
listItemObject.instanceId = dataNodeListListItem["InstanceId"].asString();
if(!dataNodeListListItem["InstanceName"].isNull())
listItemObject.instanceName = dataNodeListListItem["InstanceName"].asString();
if(!dataNodeListListItem["IsBinding"].isNull())
listItemObject.isBinding = dataNodeListListItem["IsBinding"].asString() == "true";
data_.list.push_back(listItemObject);
}
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 DescribeTenantBindNumberResult::getMessage()const
{
return message_;
}
int DescribeTenantBindNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DescribeTenantBindNumberResult::Data DescribeTenantBindNumberResult::getData()const
{
return data_;
}
std::string DescribeTenantBindNumberResult::getCode()const
{
return code_;
}
bool DescribeTenantBindNumberResult::getSuccess()const
{
return success_;
}

View File

@@ -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 <alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h>
using AlibabaCloud::OutboundBot::Model::ListAllTenantBindNumberBindingRequest;
ListAllTenantBindNumberBindingRequest::ListAllTenantBindNumberBindingRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListAllTenantBindNumberBinding")
{
setMethod(HttpRequest::Method::Post);
}
ListAllTenantBindNumberBindingRequest::~ListAllTenantBindNumberBindingRequest()
{}
std::string ListAllTenantBindNumberBindingRequest::getTenant()const
{
return tenant_;
}
void ListAllTenantBindNumberBindingRequest::setTenant(const std::string& tenant)
{
tenant_ = tenant;
setParameter("Tenant", tenant);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListAllTenantBindNumberBindingResult::ListAllTenantBindNumberBindingResult() :
ServiceResult()
{}
ListAllTenantBindNumberBindingResult::ListAllTenantBindNumberBindingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAllTenantBindNumberBindingResult::~ListAllTenantBindNumberBindingResult()
{}
void ListAllTenantBindNumberBindingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allListNode = dataNode["List"]["ListItem"];
for (auto dataNodeListListItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListListItem["BindingId"].isNull())
listItemObject.bindingId = dataNodeListListItem["BindingId"].asString();
if(!dataNodeListListItem["Number"].isNull())
listItemObject.number = dataNodeListListItem["Number"].asString();
if(!dataNodeListListItem["TrunkName"].isNull())
listItemObject.trunkName = dataNodeListListItem["TrunkName"].asString();
if(!dataNodeListListItem["SerializedParams"].isNull())
listItemObject.serializedParams = dataNodeListListItem["SerializedParams"].asString();
auto allInstanceNameList = value["InstanceNameList"]["InstanceNameList"];
for (auto value : allInstanceNameList)
listItemObject.instanceNameList.push_back(value.asString());
data_.list.push_back(listItemObject);
}
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 ListAllTenantBindNumberBindingResult::getMessage()const
{
return message_;
}
int ListAllTenantBindNumberBindingResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListAllTenantBindNumberBindingResult::Data ListAllTenantBindNumberBindingResult::getData()const
{
return data_;
}
std::string ListAllTenantBindNumberBindingResult::getCode()const
{
return code_;
}
bool ListAllTenantBindNumberBindingResult::getSuccess()const
{
return success_;
}

View File

@@ -106,6 +106,17 @@ void ModifyScriptRequest::setAsrConfig(const std::string& asrConfig)
setParameter("AsrConfig", asrConfig);
}
std::string ModifyScriptRequest::getNlsConfig()const
{
return nlsConfig_;
}
void ModifyScriptRequest::setNlsConfig(const std::string& nlsConfig)
{
nlsConfig_ = nlsConfig;
setParameter("NlsConfig", nlsConfig);
}
bool ModifyScriptRequest::getMiniPlaybackEnabled()const
{
return miniPlaybackEnabled_;

View File

@@ -40,36 +40,36 @@ void ModifyScriptResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto scriptNode = value["Script"];
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["Status"].isNull())
script_.status = scriptNode["Status"].asString();
if(!scriptNode["UpdateTime"].isNull())
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ChatbotId"].isNull())
chatbotId_ = value["ChatbotId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}

View File

@@ -38,6 +38,17 @@ void ModifyTTSConfigRequest::setVoice(const std::string& voice)
setParameter("Voice", voice);
}
std::string ModifyTTSConfigRequest::getNlsServiceType()const
{
return nlsServiceType_;
}
void ModifyTTSConfigRequest::setNlsServiceType(const std::string& nlsServiceType)
{
nlsServiceType_ = nlsServiceType;
setParameter("NlsServiceType", nlsServiceType);
}
std::string ModifyTTSConfigRequest::getVolume()const
{
return volume_;
@@ -71,6 +82,17 @@ void ModifyTTSConfigRequest::setInstanceId(const std::string& instanceId)
setParameter("InstanceId", instanceId);
}
std::string ModifyTTSConfigRequest::getAppKey()const
{
return appKey_;
}
void ModifyTTSConfigRequest::setAppKey(const std::string& appKey)
{
appKey_ = appKey;
setParameter("AppKey", appKey);
}
std::string ModifyTTSConfigRequest::getSpeechRate()const
{
return speechRate_;

View File

@@ -40,22 +40,22 @@ void ModifyTTSConfigResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto tTSConfigNode = value["TTSConfig"];
if(!tTSConfigNode["Voice"].isNull())
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
if(!tTSConfigNode["TTSConfigId"].isNull())
tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString();
if(!tTSConfigNode["SpeechRate"].isNull())
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
if(!tTSConfigNode["Volume"].isNull())
tTSConfig_.volume = tTSConfigNode["Volume"].asString();
if(!tTSConfigNode["InstanceId"].isNull())
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString();
if(!tTSConfigNode["ScriptId"].isNull())
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
if(!tTSConfigNode["SpeechRate"].isNull())
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
if(!tTSConfigNode["TTSConfigId"].isNull())
tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString();
if(!tTSConfigNode["Voice"].isNull())
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
if(!tTSConfigNode["Volume"].isNull())
tTSConfig_.volume = tTSConfigNode["Volume"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].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())

View File

@@ -115,6 +115,17 @@ void SearchTaskRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
std::string SearchTaskRequest::getScriptNameQuery()const
{
return scriptNameQuery_;
}
void SearchTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery)
{
scriptNameQuery_ = scriptNameQuery;
setParameter("ScriptNameQuery", scriptNameQuery);
}
int SearchTaskRequest::getPageIndex()const
{
return pageIndex_;

View File

@@ -95,6 +95,8 @@ void SearchTaskResult::parse(const std::string &payload)
searchTaskInfoListObject.dialExceptionOld = valueSearchTaskInfoListSearchTaskInfo["DialExceptionOld"].asString();
if(!valueSearchTaskInfoListSearchTaskInfo["HasLastPlaybackCompleted"].isNull())
searchTaskInfoListObject.hasLastPlaybackCompleted = valueSearchTaskInfoListSearchTaskInfo["HasLastPlaybackCompleted"].asString() == "true";
if(!valueSearchTaskInfoListSearchTaskInfo["ScriptName"].isNull())
searchTaskInfoListObject.scriptName = valueSearchTaskInfoListSearchTaskInfo["ScriptName"].asString();
auto allDialExceptionCodes = value["DialExceptionCodes"]["String"];
for (auto value : allDialExceptionCodes)
searchTaskInfoListObject.dialExceptionCodes.push_back(value.asString());