Supported new features for outbound.

This commit is contained in:
sdk-team
2022-01-12 12:30:44 +00:00
parent b4ecf9926e
commit ad478b719d
59 changed files with 2377 additions and 63 deletions

View File

@@ -51,6 +51,42 @@ OutboundBotClient::OutboundBotClient(const std::string & accessKeyId, const std:
OutboundBotClient::~OutboundBotClient()
{}
OutboundBotClient::ApplyNumberDistrictInfoParsingResultOutcome OutboundBotClient::applyNumberDistrictInfoParsingResult(const ApplyNumberDistrictInfoParsingResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ApplyNumberDistrictInfoParsingResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ApplyNumberDistrictInfoParsingResultOutcome(ApplyNumberDistrictInfoParsingResultResult(outcome.result()));
else
return ApplyNumberDistrictInfoParsingResultOutcome(outcome.error());
}
void OutboundBotClient::applyNumberDistrictInfoParsingResultAsync(const ApplyNumberDistrictInfoParsingResultRequest& request, const ApplyNumberDistrictInfoParsingResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, applyNumberDistrictInfoParsingResult(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::ApplyNumberDistrictInfoParsingResultOutcomeCallable OutboundBotClient::applyNumberDistrictInfoParsingResultCallable(const ApplyNumberDistrictInfoParsingResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ApplyNumberDistrictInfoParsingResultOutcome()>>(
[this, request]()
{
return this->applyNumberDistrictInfoParsingResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::AssignJobsOutcome OutboundBotClient::assignJobs(const AssignJobsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,6 +555,78 @@ OutboundBotClient::CreateJobGroupExportTaskOutcomeCallable OutboundBotClient::cr
return task->get_future();
}
OutboundBotClient::CreateNumberDistrictInfoDownloadUrlOutcome OutboundBotClient::createNumberDistrictInfoDownloadUrl(const CreateNumberDistrictInfoDownloadUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateNumberDistrictInfoDownloadUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateNumberDistrictInfoDownloadUrlOutcome(CreateNumberDistrictInfoDownloadUrlResult(outcome.result()));
else
return CreateNumberDistrictInfoDownloadUrlOutcome(outcome.error());
}
void OutboundBotClient::createNumberDistrictInfoDownloadUrlAsync(const CreateNumberDistrictInfoDownloadUrlRequest& request, const CreateNumberDistrictInfoDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createNumberDistrictInfoDownloadUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::CreateNumberDistrictInfoDownloadUrlOutcomeCallable OutboundBotClient::createNumberDistrictInfoDownloadUrlCallable(const CreateNumberDistrictInfoDownloadUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateNumberDistrictInfoDownloadUrlOutcome()>>(
[this, request]()
{
return this->createNumberDistrictInfoDownloadUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::CreateNumberDistrictInfoParsingTaskOutcome OutboundBotClient::createNumberDistrictInfoParsingTask(const CreateNumberDistrictInfoParsingTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateNumberDistrictInfoParsingTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateNumberDistrictInfoParsingTaskOutcome(CreateNumberDistrictInfoParsingTaskResult(outcome.result()));
else
return CreateNumberDistrictInfoParsingTaskOutcome(outcome.error());
}
void OutboundBotClient::createNumberDistrictInfoParsingTaskAsync(const CreateNumberDistrictInfoParsingTaskRequest& request, const CreateNumberDistrictInfoParsingTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createNumberDistrictInfoParsingTask(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::CreateNumberDistrictInfoParsingTaskOutcomeCallable OutboundBotClient::createNumberDistrictInfoParsingTaskCallable(const CreateNumberDistrictInfoParsingTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateNumberDistrictInfoParsingTaskOutcome()>>(
[this, request]()
{
return this->createNumberDistrictInfoParsingTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::CreateOutboundCallNumberOutcome OutboundBotClient::createOutboundCallNumber(const CreateOutboundCallNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +771,42 @@ OutboundBotClient::CreateTagOutcomeCallable OutboundBotClient::createTagCallable
return task->get_future();
}
OutboundBotClient::DeleteAllNumberDistrictInfoOutcome OutboundBotClient::deleteAllNumberDistrictInfo(const DeleteAllNumberDistrictInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteAllNumberDistrictInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteAllNumberDistrictInfoOutcome(DeleteAllNumberDistrictInfoResult(outcome.result()));
else
return DeleteAllNumberDistrictInfoOutcome(outcome.error());
}
void OutboundBotClient::deleteAllNumberDistrictInfoAsync(const DeleteAllNumberDistrictInfoRequest& request, const DeleteAllNumberDistrictInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteAllNumberDistrictInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::DeleteAllNumberDistrictInfoOutcomeCallable OutboundBotClient::deleteAllNumberDistrictInfoCallable(const DeleteAllNumberDistrictInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteAllNumberDistrictInfoOutcome()>>(
[this, request]()
{
return this->deleteAllNumberDistrictInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DeleteContactBlockListOutcome OutboundBotClient::deleteContactBlockList(const DeleteContactBlockListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1419,6 +1563,42 @@ OutboundBotClient::DescribeJobGroupExportTaskProgressOutcomeCallable OutboundBot
return task->get_future();
}
OutboundBotClient::DescribeNumberDistrictInfoStatusOutcome OutboundBotClient::describeNumberDistrictInfoStatus(const DescribeNumberDistrictInfoStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeNumberDistrictInfoStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeNumberDistrictInfoStatusOutcome(DescribeNumberDistrictInfoStatusResult(outcome.result()));
else
return DescribeNumberDistrictInfoStatusOutcome(outcome.error());
}
void OutboundBotClient::describeNumberDistrictInfoStatusAsync(const DescribeNumberDistrictInfoStatusRequest& request, const DescribeNumberDistrictInfoStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeNumberDistrictInfoStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::DescribeNumberDistrictInfoStatusOutcomeCallable OutboundBotClient::describeNumberDistrictInfoStatusCallable(const DescribeNumberDistrictInfoStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeNumberDistrictInfoStatusOutcome()>>(
[this, request]()
{
return this->describeNumberDistrictInfoStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DescribeScriptOutcome OutboundBotClient::describeScript(const DescribeScriptRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1635,6 +1815,42 @@ OutboundBotClient::DialogueOutcomeCallable OutboundBotClient::dialogueCallable(c
return task->get_future();
}
OutboundBotClient::DismissNumberDistrictInfoParsingResultOutcome OutboundBotClient::dismissNumberDistrictInfoParsingResult(const DismissNumberDistrictInfoParsingResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DismissNumberDistrictInfoParsingResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DismissNumberDistrictInfoParsingResultOutcome(DismissNumberDistrictInfoParsingResultResult(outcome.result()));
else
return DismissNumberDistrictInfoParsingResultOutcome(outcome.error());
}
void OutboundBotClient::dismissNumberDistrictInfoParsingResultAsync(const DismissNumberDistrictInfoParsingResultRequest& request, const DismissNumberDistrictInfoParsingResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, dismissNumberDistrictInfoParsingResult(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::DismissNumberDistrictInfoParsingResultOutcomeCallable OutboundBotClient::dismissNumberDistrictInfoParsingResultCallable(const DismissNumberDistrictInfoParsingResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DismissNumberDistrictInfoParsingResultOutcome()>>(
[this, request]()
{
return this->dismissNumberDistrictInfoParsingResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DownloadRecordingOutcome OutboundBotClient::downloadRecording(const DownloadRecordingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2139,6 +2355,42 @@ OutboundBotClient::GetMaxAttemptsPerDayOutcomeCallable OutboundBotClient::getMax
return task->get_future();
}
OutboundBotClient::GetNumberDistrictInfoTemplateDownloadUrlOutcome OutboundBotClient::getNumberDistrictInfoTemplateDownloadUrl(const GetNumberDistrictInfoTemplateDownloadUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetNumberDistrictInfoTemplateDownloadUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetNumberDistrictInfoTemplateDownloadUrlOutcome(GetNumberDistrictInfoTemplateDownloadUrlResult(outcome.result()));
else
return GetNumberDistrictInfoTemplateDownloadUrlOutcome(outcome.error());
}
void OutboundBotClient::getNumberDistrictInfoTemplateDownloadUrlAsync(const GetNumberDistrictInfoTemplateDownloadUrlRequest& request, const GetNumberDistrictInfoTemplateDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getNumberDistrictInfoTemplateDownloadUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::GetNumberDistrictInfoTemplateDownloadUrlOutcomeCallable OutboundBotClient::getNumberDistrictInfoTemplateDownloadUrlCallable(const GetNumberDistrictInfoTemplateDownloadUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetNumberDistrictInfoTemplateDownloadUrlOutcome()>>(
[this, request]()
{
return this->getNumberDistrictInfoTemplateDownloadUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::GetSummaryInfoOutcome OutboundBotClient::getSummaryInfo(const GetSummaryInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2319,6 +2571,42 @@ OutboundBotClient::InflightTaskTimeoutOutcomeCallable OutboundBotClient::infligh
return task->get_future();
}
OutboundBotClient::ListChatbotInstancesOutcome OutboundBotClient::listChatbotInstances(const ListChatbotInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListChatbotInstancesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListChatbotInstancesOutcome(ListChatbotInstancesResult(outcome.result()));
else
return ListChatbotInstancesOutcome(outcome.error());
}
void OutboundBotClient::listChatbotInstancesAsync(const ListChatbotInstancesRequest& request, const ListChatbotInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listChatbotInstances(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::ListChatbotInstancesOutcomeCallable OutboundBotClient::listChatbotInstancesCallable(const ListChatbotInstancesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListChatbotInstancesOutcome()>>(
[this, request]()
{
return this->listChatbotInstances(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::ListDialogueFlowsOutcome OutboundBotClient::listDialogueFlows(const ListDialogueFlowsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

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/ApplyNumberDistrictInfoParsingResultRequest.h>
using AlibabaCloud::OutboundBot::Model::ApplyNumberDistrictInfoParsingResultRequest;
ApplyNumberDistrictInfoParsingResultRequest::ApplyNumberDistrictInfoParsingResultRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ApplyNumberDistrictInfoParsingResult")
{
setMethod(HttpRequest::Method::Post);
}
ApplyNumberDistrictInfoParsingResultRequest::~ApplyNumberDistrictInfoParsingResultRequest()
{}
std::string ApplyNumberDistrictInfoParsingResultRequest::getVersionId()const
{
return versionId_;
}
void ApplyNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}

View 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/ApplyNumberDistrictInfoParsingResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ApplyNumberDistrictInfoParsingResultResult::ApplyNumberDistrictInfoParsingResultResult() :
ServiceResult()
{}
ApplyNumberDistrictInfoParsingResultResult::ApplyNumberDistrictInfoParsingResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyNumberDistrictInfoParsingResultResult::~ApplyNumberDistrictInfoParsingResultResult()
{}
void ApplyNumberDistrictInfoParsingResultResult::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 ApplyNumberDistrictInfoParsingResultResult::getMessage()const
{
return message_;
}
int ApplyNumberDistrictInfoParsingResultResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ApplyNumberDistrictInfoParsingResultResult::getCode()const
{
return code_;
}
bool ApplyNumberDistrictInfoParsingResultResult::getSuccess()const
{
return success_;
}

View File

@@ -128,3 +128,14 @@ void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string& sourceGrou
setParameter("SourceGroupId", sourceGroupId);
}
long CreateBatchRepeatJobRequest::getRingingDuration()const
{
return ringingDuration_;
}
void CreateBatchRepeatJobRequest::setRingingDuration(long ringingDuration)
{
ringingDuration_ = ringingDuration;
setParameter("RingingDuration", std::to_string(ringingDuration));
}

View File

@@ -42,6 +42,8 @@ void CreateBatchRepeatJobResult::parse(const std::string &payload)
auto jobGroupNode = value["JobGroup"];
if(!jobGroupNode["Id"].isNull())
jobGroup_.id = jobGroupNode["Id"].asString();
if(!jobGroupNode["RingingDuration"].isNull())
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())

View File

@@ -106,6 +106,17 @@ void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson)
setParameter("StrategyJson", strategyJson);
}
long CreateJobGroupRequest::getRingingDuration()const
{
return ringingDuration_;
}
void CreateJobGroupRequest::setRingingDuration(long ringingDuration)
{
ringingDuration_ = ringingDuration;
setParameter("RingingDuration", std::to_string(ringingDuration));
}
std::string CreateJobGroupRequest::getScenarioId()const
{
return scenarioId_;

View File

@@ -62,6 +62,8 @@ void CreateJobGroupResult::parse(const std::string &payload)
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["ModifyTime"].isNull())
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["RingingDuration"].isNull())
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();

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/CreateNumberDistrictInfoDownloadUrlRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoDownloadUrlRequest;
CreateNumberDistrictInfoDownloadUrlRequest::CreateNumberDistrictInfoDownloadUrlRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
CreateNumberDistrictInfoDownloadUrlRequest::~CreateNumberDistrictInfoDownloadUrlRequest()
{}
std::string CreateNumberDistrictInfoDownloadUrlRequest::getVersionId()const
{
return versionId_;
}
void CreateNumberDistrictInfoDownloadUrlRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}

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

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/CreateNumberDistrictInfoParsingTaskRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoParsingTaskRequest;
CreateNumberDistrictInfoParsingTaskRequest::CreateNumberDistrictInfoParsingTaskRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoParsingTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateNumberDistrictInfoParsingTaskRequest::~CreateNumberDistrictInfoParsingTaskRequest()
{}
long CreateNumberDistrictInfoParsingTaskRequest::getFileSize()const
{
return fileSize_;
}
void CreateNumberDistrictInfoParsingTaskRequest::setFileSize(long fileSize)
{
fileSize_ = fileSize;
setParameter("FileSize", std::to_string(fileSize));
}
std::string CreateNumberDistrictInfoParsingTaskRequest::getFilePath()const
{
return filePath_;
}
void CreateNumberDistrictInfoParsingTaskRequest::setFilePath(const std::string& filePath)
{
filePath_ = filePath;
setParameter("FilePath", filePath);
}

View 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/CreateNumberDistrictInfoParsingTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateNumberDistrictInfoParsingTaskResult::CreateNumberDistrictInfoParsingTaskResult() :
ServiceResult()
{}
CreateNumberDistrictInfoParsingTaskResult::CreateNumberDistrictInfoParsingTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNumberDistrictInfoParsingTaskResult::~CreateNumberDistrictInfoParsingTaskResult()
{}
void CreateNumberDistrictInfoParsingTaskResult::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 CreateNumberDistrictInfoParsingTaskResult::getMessage()const
{
return message_;
}
int CreateNumberDistrictInfoParsingTaskResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateNumberDistrictInfoParsingTaskResult::getCode()const
{
return code_;
}
bool CreateNumberDistrictInfoParsingTaskResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteAllNumberDistrictInfoRequest;
DeleteAllNumberDistrictInfoRequest::DeleteAllNumberDistrictInfoRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteAllNumberDistrictInfo")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAllNumberDistrictInfoRequest::~DeleteAllNumberDistrictInfoRequest()
{}

View 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/DeleteAllNumberDistrictInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteAllNumberDistrictInfoResult::DeleteAllNumberDistrictInfoResult() :
ServiceResult()
{}
DeleteAllNumberDistrictInfoResult::DeleteAllNumberDistrictInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAllNumberDistrictInfoResult::~DeleteAllNumberDistrictInfoResult()
{}
void DeleteAllNumberDistrictInfoResult::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 DeleteAllNumberDistrictInfoResult::getMessage()const
{
return message_;
}
int DeleteAllNumberDistrictInfoResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteAllNumberDistrictInfoResult::getCode()const
{
return code_;
}
bool DeleteAllNumberDistrictInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -40,24 +40,26 @@ void DescribeJobDataParsingTaskProgressResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto progressNode = value["Progress"];
if(!progressNode["Status"].isNull())
progress_.status = progressNode["Status"].asString();
if(!progressNode["FailErrorCode"].isNull())
progress_.failErrorCode = progressNode["FailErrorCode"].asString();
if(!progressNode["FailReason"].isNull())
progress_.failReason = progressNode["FailReason"].asString();
if(!progressNode["TotalJobCount"].isNull())
progress_.totalJobCount = std::stoi(progressNode["TotalJobCount"].asString());
if(!progressNode["Status"].isNull())
progress_.status = progressNode["Status"].asString();
if(!progressNode["HandledJobCount"].isNull())
progress_.handledJobCount = std::stoi(progressNode["HandledJobCount"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!progressNode["TotalJobCount"].isNull())
progress_.totalJobCount = std::stoi(progressNode["TotalJobCount"].asString());
if(!progressNode["FailReason"].isNull())
progress_.failReason = progressNode["FailReason"].asString();
if(!progressNode["FeedbackUrl"].isNull())
progress_.feedbackUrl = progressNode["FeedbackUrl"].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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -64,6 +64,8 @@ void DescribeJobGroupResult::parse(const std::string &payload)
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["ScriptVersion"].isNull())
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["RingingDuration"].isNull())
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();

View File

@@ -0,0 +1,29 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeNumberDistrictInfoStatusRequest;
DescribeNumberDistrictInfoStatusRequest::DescribeNumberDistrictInfoStatusRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeNumberDistrictInfoStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribeNumberDistrictInfoStatusRequest::~DescribeNumberDistrictInfoStatusRequest()
{}

View File

@@ -0,0 +1,105 @@
/*
* 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/DescribeNumberDistrictInfoStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeNumberDistrictInfoStatusResult::DescribeNumberDistrictInfoStatusResult() :
ServiceResult()
{}
DescribeNumberDistrictInfoStatusResult::DescribeNumberDistrictInfoStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeNumberDistrictInfoStatusResult::~DescribeNumberDistrictInfoStatusResult()
{}
void DescribeNumberDistrictInfoStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto appliedVersionNode = value["AppliedVersion"];
if(!appliedVersionNode["VersionId"].isNull())
appliedVersion_.versionId = appliedVersionNode["VersionId"].asString();
if(!appliedVersionNode["FileName"].isNull())
appliedVersion_.fileName = appliedVersionNode["FileName"].asString();
if(!appliedVersionNode["FileSize"].isNull())
appliedVersion_.fileSize = std::stol(appliedVersionNode["FileSize"].asString());
auto parsingVersionNode = value["ParsingVersion"];
if(!parsingVersionNode["VersionId"].isNull())
parsingVersion_.versionId = parsingVersionNode["VersionId"].asString();
if(!parsingVersionNode["FileName"].isNull())
parsingVersion_.fileName = parsingVersionNode["FileName"].asString();
if(!parsingVersionNode["FileSize"].isNull())
parsingVersion_.fileSize = std::stol(parsingVersionNode["FileSize"].asString());
if(!parsingVersionNode["ParseProgress"].isNull())
parsingVersion_.parseProgress = std::stol(parsingVersionNode["ParseProgress"].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";
if(!value["Status"].isNull())
status_ = value["Status"].asString();
}
std::string DescribeNumberDistrictInfoStatusResult::getStatus()const
{
return status_;
}
DescribeNumberDistrictInfoStatusResult::AppliedVersion DescribeNumberDistrictInfoStatusResult::getAppliedVersion()const
{
return appliedVersion_;
}
DescribeNumberDistrictInfoStatusResult::ParsingVersion DescribeNumberDistrictInfoStatusResult::getParsingVersion()const
{
return parsingVersion_;
}
std::string DescribeNumberDistrictInfoStatusResult::getMessage()const
{
return message_;
}
int DescribeNumberDistrictInfoStatusResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeNumberDistrictInfoStatusResult::getCode()const
{
return code_;
}
bool DescribeNumberDistrictInfoStatusResult::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/DismissNumberDistrictInfoParsingResultRequest.h>
using AlibabaCloud::OutboundBot::Model::DismissNumberDistrictInfoParsingResultRequest;
DismissNumberDistrictInfoParsingResultRequest::DismissNumberDistrictInfoParsingResultRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DismissNumberDistrictInfoParsingResult")
{
setMethod(HttpRequest::Method::Post);
}
DismissNumberDistrictInfoParsingResultRequest::~DismissNumberDistrictInfoParsingResultRequest()
{}
std::string DismissNumberDistrictInfoParsingResultRequest::getVersionId()const
{
return versionId_;
}
void DismissNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}

View 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/DismissNumberDistrictInfoParsingResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DismissNumberDistrictInfoParsingResultResult::DismissNumberDistrictInfoParsingResultResult() :
ServiceResult()
{}
DismissNumberDistrictInfoParsingResultResult::DismissNumberDistrictInfoParsingResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DismissNumberDistrictInfoParsingResultResult::~DismissNumberDistrictInfoParsingResultResult()
{}
void DismissNumberDistrictInfoParsingResultResult::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 DismissNumberDistrictInfoParsingResultResult::getMessage()const
{
return message_;
}
int DismissNumberDistrictInfoParsingResultResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DismissNumberDistrictInfoParsingResultResult::getCode()const
{
return code_;
}
bool DismissNumberDistrictInfoParsingResultResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h>
using AlibabaCloud::OutboundBot::Model::GetNumberDistrictInfoTemplateDownloadUrlRequest;
GetNumberDistrictInfoTemplateDownloadUrlRequest::GetNumberDistrictInfoTemplateDownloadUrlRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetNumberDistrictInfoTemplateDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
GetNumberDistrictInfoTemplateDownloadUrlRequest::~GetNumberDistrictInfoTemplateDownloadUrlRequest()
{}

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

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/ListChatbotInstancesRequest.h>
using AlibabaCloud::OutboundBot::Model::ListChatbotInstancesRequest;
ListChatbotInstancesRequest::ListChatbotInstancesRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListChatbotInstances")
{
setMethod(HttpRequest::Method::Post);
}
ListChatbotInstancesRequest::~ListChatbotInstancesRequest()
{}
int ListChatbotInstancesRequest::getPageNumber()const
{
return pageNumber_;
}
void ListChatbotInstancesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListChatbotInstancesRequest::getPageSize()const
{
return pageSize_;
}
void ListChatbotInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,118 @@
/*
* 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/ListChatbotInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListChatbotInstancesResult::ListChatbotInstancesResult() :
ServiceResult()
{}
ListChatbotInstancesResult::ListChatbotInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListChatbotInstancesResult::~ListChatbotInstancesResult()
{}
void ListChatbotInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBotsNode = value["Bots"]["Bot"];
for (auto valueBotsBot : allBotsNode)
{
Bot botsObject;
if(!valueBotsBot["Introduction"].isNull())
botsObject.introduction = valueBotsBot["Introduction"].asString();
if(!valueBotsBot["Avatar"].isNull())
botsObject.avatar = valueBotsBot["Avatar"].asString();
if(!valueBotsBot["TimeZone"].isNull())
botsObject.timeZone = valueBotsBot["TimeZone"].asString();
if(!valueBotsBot["CreateTime"].isNull())
botsObject.createTime = valueBotsBot["CreateTime"].asString();
if(!valueBotsBot["LanguageCode"].isNull())
botsObject.languageCode = valueBotsBot["LanguageCode"].asString();
if(!valueBotsBot["InstanceId"].isNull())
botsObject.instanceId = valueBotsBot["InstanceId"].asString();
if(!valueBotsBot["Name"].isNull())
botsObject.name = valueBotsBot["Name"].asString();
bots_.push_back(botsObject);
}
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";
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListChatbotInstancesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListChatbotInstancesResult::Bot> ListChatbotInstancesResult::getBots()const
{
return bots_;
}
std::string ListChatbotInstancesResult::getMessage()const
{
return message_;
}
long ListChatbotInstancesResult::getPageSize()const
{
return pageSize_;
}
long ListChatbotInstancesResult::getPageNumber()const
{
return pageNumber_;
}
int ListChatbotInstancesResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListChatbotInstancesResult::getCode()const
{
return code_;
}
bool ListChatbotInstancesResult::getSuccess()const
{
return success_;
}

View File

@@ -60,6 +60,50 @@ void ModifyJobGroupRequest::setScriptId(const std::string& scriptId)
setParameter("ScriptId", scriptId);
}
std::string ModifyJobGroupRequest::getStrategyJson()const
{
return strategyJson_;
}
void ModifyJobGroupRequest::setStrategyJson(const std::string& strategyJson)
{
strategyJson_ = strategyJson;
setParameter("StrategyJson", strategyJson);
}
long ModifyJobGroupRequest::getRingingDuration()const
{
return ringingDuration_;
}
void ModifyJobGroupRequest::setRingingDuration(long ringingDuration)
{
ringingDuration_ = ringingDuration;
setParameter("RingingDuration", std::to_string(ringingDuration));
}
std::string ModifyJobGroupRequest::getScenarioId()const
{
return scenarioId_;
}
void ModifyJobGroupRequest::setScenarioId(const std::string& scenarioId)
{
scenarioId_ = scenarioId;
setParameter("ScenarioId", scenarioId);
}
std::string ModifyJobGroupRequest::getJobGroupStatus()const
{
return jobGroupStatus_;
}
void ModifyJobGroupRequest::setJobGroupStatus(const std::string& jobGroupStatus)
{
jobGroupStatus_ = jobGroupStatus;
setParameter("JobGroupStatus", jobGroupStatus);
}
std::vector<std::string> ModifyJobGroupRequest::getCallingNumber()const
{
return callingNumber_;
@@ -84,17 +128,6 @@ void ModifyJobGroupRequest::setInstanceId(const std::string& instanceId)
setParameter("InstanceId", instanceId);
}
std::string ModifyJobGroupRequest::getStrategyJson()const
{
return strategyJson_;
}
void ModifyJobGroupRequest::setStrategyJson(const std::string& strategyJson)
{
strategyJson_ = strategyJson;
setParameter("StrategyJson", strategyJson);
}
std::string ModifyJobGroupRequest::getJobGroupId()const
{
return jobGroupId_;
@@ -117,14 +150,3 @@ void ModifyJobGroupRequest::setName(const std::string& name)
setParameter("Name", name);
}
std::string ModifyJobGroupRequest::getScenarioId()const
{
return scenarioId_;
}
void ModifyJobGroupRequest::setScenarioId(const std::string& scenarioId)
{
scenarioId_ = scenarioId;
setParameter("ScenarioId", scenarioId);
}

View File

@@ -62,6 +62,8 @@ void ModifyJobGroupResult::parse(const std::string &payload)
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["ModifyTime"].isNull())
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["RingingDuration"].isNull())
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();

View File

@@ -39,14 +39,14 @@ void SaveAfterAnswerDelayPlaybackResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -39,14 +39,14 @@ void SaveBaseStrategyPeriodResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -39,16 +39,16 @@ void SaveContactBlockListResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["AffectedRows"].isNull())
affectedRows_ = std::stoi(value["AffectedRows"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["AffectedRows"].isNull())
affectedRows_ = std::stoi(value["AffectedRows"].asString());
}

View File

@@ -39,16 +39,16 @@ void SaveContactWhiteListResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["AffectedRows"].isNull())
affectedRows_ = std::stoi(value["AffectedRows"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["AffectedRows"].isNull())
affectedRows_ = std::stoi(value["AffectedRows"].asString());
}

View File

@@ -39,14 +39,14 @@ void SaveMaxAttemptsPerDayResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -39,14 +39,14 @@ void SuspendCallResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}