Generated 2019-12-26 for OutboundBot.

This commit is contained in:
sdk-team
2020-02-24 10:29:40 +08:00
parent 1f51485d2b
commit 259f151f36
342 changed files with 29824 additions and 1 deletions

File diff suppressed because it is too large Load Diff

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/AssignJobsRequest.h>
using AlibabaCloud::OutboundBot::Model::AssignJobsRequest;
AssignJobsRequest::AssignJobsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "AssignJobs")
{
setMethod(HttpRequest::Method::Post);
}
AssignJobsRequest::~AssignJobsRequest()
{}
std::vector<std::string> AssignJobsRequest::getJobsJson()const
{
return jobsJson_;
}
void AssignJobsRequest::setJobsJson(const std::vector<std::string>& jobsJson)
{
jobsJson_ = jobsJson;
for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) {
setParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1));
}
}
std::vector<std::string> AssignJobsRequest::getCallingNumber()const
{
return callingNumber_;
}
void AssignJobsRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
{
callingNumber_ = callingNumber;
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
}
}
std::string AssignJobsRequest::getInstanceId()const
{
return instanceId_;
}
void AssignJobsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AssignJobsRequest::getStrategyJson()const
{
return strategyJson_;
}
void AssignJobsRequest::setStrategyJson(const std::string& strategyJson)
{
strategyJson_ = strategyJson;
setParameter("StrategyJson", strategyJson);
}
std::string AssignJobsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void AssignJobsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

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/AssignJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
AssignJobsResult::AssignJobsResult() :
ServiceResult()
{}
AssignJobsResult::AssignJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssignJobsResult::~AssignJobsResult()
{}
void AssignJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["JobGroupId"].isNull())
jobGroupId_ = value["JobGroupId"].asString();
}
std::string AssignJobsResult::getJobGroupId()const
{
return jobGroupId_;
}
std::string AssignJobsResult::getMessage()const
{
return message_;
}
int AssignJobsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string AssignJobsResult::getCode()const
{
return code_;
}
bool AssignJobsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,99 @@
/*
* 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/CancelJobsRequest.h>
using AlibabaCloud::OutboundBot::Model::CancelJobsRequest;
CancelJobsRequest::CancelJobsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CancelJobs")
{
setMethod(HttpRequest::Method::Post);
}
CancelJobsRequest::~CancelJobsRequest()
{}
bool CancelJobsRequest::getAll()const
{
return all_;
}
void CancelJobsRequest::setAll(bool all)
{
all_ = all;
setParameter("All", all ? "true" : "false");
}
std::vector<std::string> CancelJobsRequest::getJobReferenceId()const
{
return jobReferenceId_;
}
void CancelJobsRequest::setJobReferenceId(const std::vector<std::string>& jobReferenceId)
{
jobReferenceId_ = jobReferenceId;
for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) {
setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1));
}
}
std::vector<std::string> CancelJobsRequest::getJobId()const
{
return jobId_;
}
void CancelJobsRequest::setJobId(const std::vector<std::string>& jobId)
{
jobId_ = jobId;
for(int dep1 = 0; dep1!= jobId.size(); dep1++) {
setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1));
}
}
std::string CancelJobsRequest::getInstanceId()const
{
return instanceId_;
}
void CancelJobsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CancelJobsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void CancelJobsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
std::string CancelJobsRequest::getScenarioId()const
{
return scenarioId_;
}
void CancelJobsRequest::setScenarioId(const std::string& scenarioId)
{
scenarioId_ = scenarioId;
setParameter("ScenarioId", scenarioId);
}

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/CancelJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CancelJobsResult::CancelJobsResult() :
ServiceResult()
{}
CancelJobsResult::CancelJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelJobsResult::~CancelJobsResult()
{}
void CancelJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string CancelJobsResult::getMessage()const
{
return message_;
}
int CancelJobsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CancelJobsResult::getCode()const
{
return code_;
}
bool CancelJobsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,130 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/CreateBatchJobsRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateBatchJobsRequest;
CreateBatchJobsRequest::CreateBatchJobsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchJobs")
{
setMethod(HttpRequest::Method::Post);
}
CreateBatchJobsRequest::~CreateBatchJobsRequest()
{}
std::string CreateBatchJobsRequest::getJobFilePath()const
{
return jobFilePath_;
}
void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath)
{
jobFilePath_ = jobFilePath;
setParameter("JobFilePath", jobFilePath);
}
std::string CreateBatchJobsRequest::getScriptId()const
{
return scriptId_;
}
void CreateBatchJobsRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::vector<std::string> CreateBatchJobsRequest::getCallingNumber()const
{
return callingNumber_;
}
void CreateBatchJobsRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
{
callingNumber_ = callingNumber;
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
}
}
std::string CreateBatchJobsRequest::getInstanceId()const
{
return instanceId_;
}
void CreateBatchJobsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
bool CreateBatchJobsRequest::getSubmitted()const
{
return submitted_;
}
void CreateBatchJobsRequest::setSubmitted(bool submitted)
{
submitted_ = submitted;
setParameter("Submitted", submitted ? "true" : "false");
}
std::string CreateBatchJobsRequest::getBatchJobName()const
{
return batchJobName_;
}
void CreateBatchJobsRequest::setBatchJobName(const std::string& batchJobName)
{
batchJobName_ = batchJobName;
setParameter("BatchJobName", batchJobName);
}
std::string CreateBatchJobsRequest::getStrategyJson()const
{
return strategyJson_;
}
void CreateBatchJobsRequest::setStrategyJson(const std::string& strategyJson)
{
strategyJson_ = strategyJson;
setParameter("StrategyJson", strategyJson);
}
std::string CreateBatchJobsRequest::getBatchJobDescription()const
{
return batchJobDescription_;
}
void CreateBatchJobsRequest::setBatchJobDescription(const std::string& batchJobDescription)
{
batchJobDescription_ = batchJobDescription;
setParameter("BatchJobDescription", batchJobDescription);
}
std::string CreateBatchJobsRequest::getScenarioId()const
{
return scenarioId_;
}
void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId)
{
scenarioId_ = scenarioId;
setParameter("ScenarioId", scenarioId);
}

View File

@@ -0,0 +1,133 @@
/*
* 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/CreateBatchJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateBatchJobsResult::CreateBatchJobsResult() :
ServiceResult()
{}
CreateBatchJobsResult::CreateBatchJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBatchJobsResult::~CreateBatchJobsResult()
{}
void CreateBatchJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto batchJobNode = value["BatchJob"];
if(!batchJobNode["BatchJobId"].isNull())
batchJob_.batchJobId = batchJobNode["BatchJobId"].asString();
if(!batchJobNode["JobGroupName"].isNull())
batchJob_.jobGroupName = batchJobNode["JobGroupName"].asString();
if(!batchJobNode["JobGroupDescription"].isNull())
batchJob_.jobGroupDescription = batchJobNode["JobGroupDescription"].asString();
if(!batchJobNode["ScenarioId"].isNull())
batchJob_.scenarioId = batchJobNode["ScenarioId"].asString();
if(!batchJobNode["JobFilePath"].isNull())
batchJob_.jobFilePath = batchJobNode["JobFilePath"].asString();
if(!batchJobNode["CreationTime"].isNull())
batchJob_.creationTime = std::stol(batchJobNode["CreationTime"].asString());
auto strategyNode = batchJobNode["Strategy"];
if(!strategyNode["StrategyId"].isNull())
batchJob_.strategy.strategyId = strategyNode["StrategyId"].asString();
if(!strategyNode["StrategyName"].isNull())
batchJob_.strategy.strategyName = strategyNode["StrategyName"].asString();
if(!strategyNode["StrategyDescription"].isNull())
batchJob_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
if(!strategyNode["Type"].isNull())
batchJob_.strategy.type = strategyNode["Type"].asString();
if(!strategyNode["StartTime"].isNull())
batchJob_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
if(!strategyNode["EndTime"].isNull())
batchJob_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
if(!strategyNode["RepeatBy"].isNull())
batchJob_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
if(!strategyNode["MaxAttemptsPerDay"].isNull())
batchJob_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
if(!strategyNode["MinAttemptInterval"].isNull())
batchJob_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
if(!strategyNode["Customized"].isNull())
batchJob_.strategy.customized = strategyNode["Customized"].asString();
if(!strategyNode["RoutingStrategy"].isNull())
batchJob_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
if(!strategyNode["FollowUpStrategy"].isNull())
batchJob_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
if(!strategyNode["IsTemplate"].isNull())
batchJob_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
{
BatchJob::Strategy::TimeFrame timeFrameObject;
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
batchJob_.strategy.workingTime.push_back(timeFrameObject);
}
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
for (auto value : allRepeatDays)
batchJob_.strategy.repeatDays.push_back(value.asString());
auto allCallingNumbers = batchJobNode["CallingNumbers"]["String"];
for (auto value : allCallingNumbers)
batchJob_.callingNumbers.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string CreateBatchJobsResult::getMessage()const
{
return message_;
}
int CreateBatchJobsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
CreateBatchJobsResult::BatchJob CreateBatchJobsResult::getBatchJob()const
{
return batchJob_;
}
std::string CreateBatchJobsResult::getCode()const
{
return code_;
}
bool CreateBatchJobsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/CreateDialogueFlowRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateDialogueFlowRequest;
CreateDialogueFlowRequest::CreateDialogueFlowRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateDialogueFlow")
{
setMethod(HttpRequest::Method::Post);
}
CreateDialogueFlowRequest::~CreateDialogueFlowRequest()
{}
std::string CreateDialogueFlowRequest::getDialogueFlowType()const
{
return dialogueFlowType_;
}
void CreateDialogueFlowRequest::setDialogueFlowType(const std::string& dialogueFlowType)
{
dialogueFlowType_ = dialogueFlowType;
setParameter("DialogueFlowType", dialogueFlowType);
}
std::string CreateDialogueFlowRequest::getDialogueName()const
{
return dialogueName_;
}
void CreateDialogueFlowRequest::setDialogueName(const std::string& dialogueName)
{
dialogueName_ = dialogueName;
setParameter("DialogueName", dialogueName);
}
std::string CreateDialogueFlowRequest::getScriptId()const
{
return scriptId_;
}
void CreateDialogueFlowRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string CreateDialogueFlowRequest::getInstanceId()const
{
return instanceId_;
}
void CreateDialogueFlowRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/CreateDialogueFlowResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateDialogueFlowResult::CreateDialogueFlowResult() :
ServiceResult()
{}
CreateDialogueFlowResult::CreateDialogueFlowResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDialogueFlowResult::~CreateDialogueFlowResult()
{}
void CreateDialogueFlowResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["DialogueFlowId"].isNull())
dialogueFlowId_ = value["DialogueFlowId"].asString();
}
std::string CreateDialogueFlowResult::getMessage()const
{
return message_;
}
int CreateDialogueFlowResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateDialogueFlowResult::getDialogueFlowId()const
{
return dialogueFlowId_;
}
std::string CreateDialogueFlowResult::getCode()const
{
return code_;
}
bool CreateDialogueFlowResult::getSuccess()const
{
return success_;
}

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/CreateGlobalQuestionRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateGlobalQuestionRequest;
CreateGlobalQuestionRequest::CreateGlobalQuestionRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateGlobalQuestion")
{
setMethod(HttpRequest::Method::Post);
}
CreateGlobalQuestionRequest::~CreateGlobalQuestionRequest()
{}
std::string CreateGlobalQuestionRequest::getGlobalQuestionName()const
{
return globalQuestionName_;
}
void CreateGlobalQuestionRequest::setGlobalQuestionName(const std::string& globalQuestionName)
{
globalQuestionName_ = globalQuestionName;
setParameter("GlobalQuestionName", globalQuestionName);
}
std::string CreateGlobalQuestionRequest::getQuestions()const
{
return questions_;
}
void CreateGlobalQuestionRequest::setQuestions(const std::string& questions)
{
questions_ = questions;
setParameter("Questions", questions);
}
std::string CreateGlobalQuestionRequest::getAnswers()const
{
return answers_;
}
void CreateGlobalQuestionRequest::setAnswers(const std::string& answers)
{
answers_ = answers;
setParameter("Answers", answers);
}
std::string CreateGlobalQuestionRequest::getScriptId()const
{
return scriptId_;
}
void CreateGlobalQuestionRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string CreateGlobalQuestionRequest::getInstanceId()const
{
return instanceId_;
}
void CreateGlobalQuestionRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateGlobalQuestionRequest::getGlobalQuestionType()const
{
return globalQuestionType_;
}
void CreateGlobalQuestionRequest::setGlobalQuestionType(const std::string& globalQuestionType)
{
globalQuestionType_ = globalQuestionType;
setParameter("GlobalQuestionType", globalQuestionType);
}

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/CreateGlobalQuestionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateGlobalQuestionResult::CreateGlobalQuestionResult() :
ServiceResult()
{}
CreateGlobalQuestionResult::CreateGlobalQuestionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGlobalQuestionResult::~CreateGlobalQuestionResult()
{}
void CreateGlobalQuestionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["GlobalQuestionId"].isNull())
globalQuestionId_ = value["GlobalQuestionId"].asString();
}
std::string CreateGlobalQuestionResult::getMessage()const
{
return message_;
}
int CreateGlobalQuestionResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateGlobalQuestionResult::getGlobalQuestionId()const
{
return globalQuestionId_;
}
std::string CreateGlobalQuestionResult::getCode()const
{
return code_;
}
bool CreateGlobalQuestionResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/CreateInstanceRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateInstanceRequest;
CreateInstanceRequest::CreateInstanceRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstance")
{
setMethod(HttpRequest::Method::Post);
}
CreateInstanceRequest::~CreateInstanceRequest()
{}
int CreateInstanceRequest::getMaxConcurrentConversation()const
{
return maxConcurrentConversation_;
}
void CreateInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation)
{
maxConcurrentConversation_ = maxConcurrentConversation;
setParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation));
}
std::string CreateInstanceRequest::getInstanceName()const
{
return instanceName_;
}
void CreateInstanceRequest::setInstanceName(const std::string& instanceName)
{
instanceName_ = instanceName;
setParameter("InstanceName", instanceName);
}
std::string CreateInstanceRequest::getCallCenterInstanceId()const
{
return callCenterInstanceId_;
}
void CreateInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId)
{
callCenterInstanceId_ = callCenterInstanceId;
setParameter("CallCenterInstanceId", callCenterInstanceId);
}
std::string CreateInstanceRequest::getInstanceDescription()const
{
return instanceDescription_;
}
void CreateInstanceRequest::setInstanceDescription(const std::string& instanceDescription)
{
instanceDescription_ = instanceDescription;
setParameter("InstanceDescription", instanceDescription);
}

View File

@@ -0,0 +1,92 @@
/*
* 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/CreateInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateInstanceResult::CreateInstanceResult() :
ServiceResult()
{}
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstanceResult::~CreateInstanceResult()
{}
void CreateInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto instanceNode = value["Instance"];
if(!instanceNode["InstanceId"].isNull())
instance_.instanceId = instanceNode["InstanceId"].asString();
if(!instanceNode["InstanceName"].isNull())
instance_.instanceName = instanceNode["InstanceName"].asString();
if(!instanceNode["InstanceDescription"].isNull())
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
if(!instanceNode["MaxConcurrentConversation"].isNull())
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
if(!instanceNode["Owner"].isNull())
instance_.owner = instanceNode["Owner"].asString();
if(!instanceNode["CreationTime"].isNull())
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
if(!instanceNode["CallCenterInstanceId"].isNull())
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string CreateInstanceResult::getMessage()const
{
return message_;
}
CreateInstanceResult::Instance CreateInstanceResult::getInstance()const
{
return instance_;
}
int CreateInstanceResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateInstanceResult::getCode()const
{
return code_;
}
bool CreateInstanceResult::getSuccess()const
{
return success_;
}

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/CreateIntentRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateIntentRequest;
CreateIntentRequest::CreateIntentRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateIntent")
{
setMethod(HttpRequest::Method::Post);
}
CreateIntentRequest::~CreateIntentRequest()
{}
std::string CreateIntentRequest::getUtterances()const
{
return utterances_;
}
void CreateIntentRequest::setUtterances(const std::string& utterances)
{
utterances_ = utterances;
setParameter("Utterances", utterances);
}
std::string CreateIntentRequest::getKeywords()const
{
return keywords_;
}
void CreateIntentRequest::setKeywords(const std::string& keywords)
{
keywords_ = keywords;
setParameter("Keywords", keywords);
}
std::string CreateIntentRequest::getIntentDescription()const
{
return intentDescription_;
}
void CreateIntentRequest::setIntentDescription(const std::string& intentDescription)
{
intentDescription_ = intentDescription;
setParameter("IntentDescription", intentDescription);
}
std::string CreateIntentRequest::getScriptId()const
{
return scriptId_;
}
void CreateIntentRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string CreateIntentRequest::getInstanceId()const
{
return instanceId_;
}
void CreateIntentRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateIntentRequest::getIntentName()const
{
return intentName_;
}
void CreateIntentRequest::setIntentName(const std::string& intentName)
{
intentName_ = intentName;
setParameter("IntentName", intentName);
}

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/CreateIntentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateIntentResult::CreateIntentResult() :
ServiceResult()
{}
CreateIntentResult::CreateIntentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateIntentResult::~CreateIntentResult()
{}
void CreateIntentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["IntentId"].isNull())
intentId_ = value["IntentId"].asString();
}
std::string CreateIntentResult::getMessage()const
{
return message_;
}
int CreateIntentResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateIntentResult::getCode()const
{
return code_;
}
bool CreateIntentResult::getSuccess()const
{
return success_;
}
std::string CreateIntentResult::getIntentId()const
{
return intentId_;
}

View File

@@ -0,0 +1,108 @@
/*
* 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/CreateJobGroupRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateJobGroupRequest;
CreateJobGroupRequest::CreateJobGroupRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateJobGroupRequest::~CreateJobGroupRequest()
{}
std::string CreateJobGroupRequest::getJobGroupDescription()const
{
return jobGroupDescription_;
}
void CreateJobGroupRequest::setJobGroupDescription(const std::string& jobGroupDescription)
{
jobGroupDescription_ = jobGroupDescription;
setParameter("JobGroupDescription", jobGroupDescription);
}
std::string CreateJobGroupRequest::getJobGroupName()const
{
return jobGroupName_;
}
void CreateJobGroupRequest::setJobGroupName(const std::string& jobGroupName)
{
jobGroupName_ = jobGroupName;
setParameter("JobGroupName", jobGroupName);
}
std::string CreateJobGroupRequest::getScriptId()const
{
return scriptId_;
}
void CreateJobGroupRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::vector<std::string> CreateJobGroupRequest::getCallingNumber()const
{
return callingNumber_;
}
void CreateJobGroupRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
{
callingNumber_ = callingNumber;
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
}
}
std::string CreateJobGroupRequest::getInstanceId()const
{
return instanceId_;
}
void CreateJobGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateJobGroupRequest::getStrategyJson()const
{
return strategyJson_;
}
void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson)
{
strategyJson_ = strategyJson;
setParameter("StrategyJson", strategyJson);
}
std::string CreateJobGroupRequest::getScenarioId()const
{
return scenarioId_;
}
void CreateJobGroupRequest::setScenarioId(const std::string& scenarioId)
{
scenarioId_ = scenarioId;
setParameter("ScenarioId", scenarioId);
}

View File

@@ -0,0 +1,133 @@
/*
* 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/CreateJobGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateJobGroupResult::CreateJobGroupResult() :
ServiceResult()
{}
CreateJobGroupResult::CreateJobGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateJobGroupResult::~CreateJobGroupResult()
{}
void CreateJobGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobGroupNode = value["JobGroup"];
if(!jobGroupNode["JobGroupId"].isNull())
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
if(!jobGroupNode["JobGroupName"].isNull())
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
if(!jobGroupNode["JobGroupDescription"].isNull())
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
if(!jobGroupNode["ScenarioId"].isNull())
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
if(!jobGroupNode["JobFilePath"].isNull())
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
if(!jobGroupNode["CreationTime"].isNull())
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
auto strategyNode = jobGroupNode["Strategy"];
if(!strategyNode["StrategyId"].isNull())
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
if(!strategyNode["StrategyName"].isNull())
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
if(!strategyNode["StrategyDescription"].isNull())
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
if(!strategyNode["Type"].isNull())
jobGroup_.strategy.type = strategyNode["Type"].asString();
if(!strategyNode["StartTime"].isNull())
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
if(!strategyNode["EndTime"].isNull())
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
if(!strategyNode["RepeatBy"].isNull())
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
if(!strategyNode["MaxAttemptsPerDay"].isNull())
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
if(!strategyNode["MinAttemptInterval"].isNull())
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
if(!strategyNode["Customized"].isNull())
jobGroup_.strategy.customized = strategyNode["Customized"].asString();
if(!strategyNode["RoutingStrategy"].isNull())
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
if(!strategyNode["FollowUpStrategy"].isNull())
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
if(!strategyNode["IsTemplate"].isNull())
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
{
JobGroup::Strategy::TimeFrame timeFrameObject;
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
jobGroup_.strategy.workingTime.push_back(timeFrameObject);
}
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
for (auto value : allRepeatDays)
jobGroup_.strategy.repeatDays.push_back(value.asString());
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
for (auto value : allCallingNumbers)
jobGroup_.callingNumbers.push_back(value.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());
}
CreateJobGroupResult::JobGroup CreateJobGroupResult::getJobGroup()const
{
return jobGroup_;
}
std::string CreateJobGroupResult::getMessage()const
{
return message_;
}
int CreateJobGroupResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateJobGroupResult::getCode()const
{
return code_;
}
bool CreateJobGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/CreateOutboundCallNumberRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateOutboundCallNumberRequest;
CreateOutboundCallNumberRequest::CreateOutboundCallNumberRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateOutboundCallNumber")
{
setMethod(HttpRequest::Method::Post);
}
CreateOutboundCallNumberRequest::~CreateOutboundCallNumberRequest()
{}
int CreateOutboundCallNumberRequest::getRateLimitCount()const
{
return rateLimitCount_;
}
void CreateOutboundCallNumberRequest::setRateLimitCount(int rateLimitCount)
{
rateLimitCount_ = rateLimitCount;
setParameter("RateLimitCount", std::to_string(rateLimitCount));
}
std::string CreateOutboundCallNumberRequest::getNumber()const
{
return number_;
}
void CreateOutboundCallNumberRequest::setNumber(const std::string& number)
{
number_ = number;
setParameter("Number", number);
}
std::string CreateOutboundCallNumberRequest::getInstanceId()const
{
return instanceId_;
}
void CreateOutboundCallNumberRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int CreateOutboundCallNumberRequest::getRateLimitPeriod()const
{
return rateLimitPeriod_;
}
void CreateOutboundCallNumberRequest::setRateLimitPeriod(int rateLimitPeriod)
{
rateLimitPeriod_ = rateLimitPeriod;
setParameter("RateLimitPeriod", std::to_string(rateLimitPeriod));
}

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/CreateOutboundCallNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateOutboundCallNumberResult::CreateOutboundCallNumberResult() :
ServiceResult()
{}
CreateOutboundCallNumberResult::CreateOutboundCallNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateOutboundCallNumberResult::~CreateOutboundCallNumberResult()
{}
void CreateOutboundCallNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["OutboundCallNumberId"].isNull())
outboundCallNumberId_ = value["OutboundCallNumberId"].asString();
}
std::string CreateOutboundCallNumberResult::getMessage()const
{
return message_;
}
int CreateOutboundCallNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateOutboundCallNumberResult::getCode()const
{
return code_;
}
bool CreateOutboundCallNumberResult::getSuccess()const
{
return success_;
}
std::string CreateOutboundCallNumberResult::getOutboundCallNumberId()const
{
return outboundCallNumberId_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/CreateScriptRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateScriptRequest;
CreateScriptRequest::CreateScriptRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateScript")
{
setMethod(HttpRequest::Method::Post);
}
CreateScriptRequest::~CreateScriptRequest()
{}
std::string CreateScriptRequest::getIndustry()const
{
return industry_;
}
void CreateScriptRequest::setIndustry(const std::string& industry)
{
industry_ = industry;
setParameter("Industry", industry);
}
std::string CreateScriptRequest::getScriptName()const
{
return scriptName_;
}
void CreateScriptRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
}
std::string CreateScriptRequest::getScene()const
{
return scene_;
}
void CreateScriptRequest::setScene(const std::string& scene)
{
scene_ = scene;
setParameter("Scene", scene);
}
std::string CreateScriptRequest::getInstanceId()const
{
return instanceId_;
}
void CreateScriptRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateScriptRequest::getScriptDescription()const
{
return scriptDescription_;
}
void CreateScriptRequest::setScriptDescription(const std::string& scriptDescription)
{
scriptDescription_ = scriptDescription;
setParameter("ScriptDescription", scriptDescription);
}

View File

@@ -0,0 +1,98 @@
/*
* 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/CreateScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateScriptResult::CreateScriptResult() :
ServiceResult()
{}
CreateScriptResult::CreateScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateScriptResult::~CreateScriptResult()
{}
void CreateScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto scriptNode = value["Script"];
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["Status"].isNull())
script_.status = scriptNode["Status"].asString();
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["UpdateTime"].isNull())
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
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());
}
CreateScriptResult::Script CreateScriptResult::getScript()const
{
return script_;
}
std::string CreateScriptResult::getMessage()const
{
return message_;
}
int CreateScriptResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateScriptResult::getCode()const
{
return code_;
}
bool CreateScriptResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/CreateScriptWaveformRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateScriptWaveformRequest;
CreateScriptWaveformRequest::CreateScriptWaveformRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateScriptWaveform")
{
setMethod(HttpRequest::Method::Post);
}
CreateScriptWaveformRequest::~CreateScriptWaveformRequest()
{}
std::string CreateScriptWaveformRequest::getScriptId()const
{
return scriptId_;
}
void CreateScriptWaveformRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string CreateScriptWaveformRequest::getInstanceId()const
{
return instanceId_;
}
void CreateScriptWaveformRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateScriptWaveformRequest::getFileName()const
{
return fileName_;
}
void CreateScriptWaveformRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
}
std::string CreateScriptWaveformRequest::getScriptContent()const
{
return scriptContent_;
}
void CreateScriptWaveformRequest::setScriptContent(const std::string& scriptContent)
{
scriptContent_ = scriptContent;
setParameter("ScriptContent", scriptContent);
}
std::string CreateScriptWaveformRequest::getFileId()const
{
return fileId_;
}
void CreateScriptWaveformRequest::setFileId(const std::string& fileId)
{
fileId_ = fileId;
setParameter("FileId", fileId);
}

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/CreateScriptWaveformResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateScriptWaveformResult::CreateScriptWaveformResult() :
ServiceResult()
{}
CreateScriptWaveformResult::CreateScriptWaveformResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateScriptWaveformResult::~CreateScriptWaveformResult()
{}
void CreateScriptWaveformResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["ScriptWaveformId"].isNull())
scriptWaveformId_ = value["ScriptWaveformId"].asString();
}
std::string CreateScriptWaveformResult::getScriptWaveformId()const
{
return scriptWaveformId_;
}
std::string CreateScriptWaveformResult::getMessage()const
{
return message_;
}
int CreateScriptWaveformResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateScriptWaveformResult::getCode()const
{
return code_;
}
bool CreateScriptWaveformResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/CreateTagRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateTagRequest;
CreateTagRequest::CreateTagRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateTag")
{
setMethod(HttpRequest::Method::Post);
}
CreateTagRequest::~CreateTagRequest()
{}
std::string CreateTagRequest::getTagGroup()const
{
return tagGroup_;
}
void CreateTagRequest::setTagGroup(const std::string& tagGroup)
{
tagGroup_ = tagGroup;
setParameter("TagGroup", tagGroup);
}
std::string CreateTagRequest::getScriptId()const
{
return scriptId_;
}
void CreateTagRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string CreateTagRequest::getTagName()const
{
return tagName_;
}
void CreateTagRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setParameter("TagName", tagName);
}
std::string CreateTagRequest::getInstanceId()const
{
return instanceId_;
}
void CreateTagRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/CreateTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateTagResult::CreateTagResult() :
ServiceResult()
{}
CreateTagResult::CreateTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTagResult::~CreateTagResult()
{}
void CreateTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["TagId"].isNull())
tagId_ = value["TagId"].asString();
}
std::string CreateTagResult::getMessage()const
{
return message_;
}
int CreateTagResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateTagResult::getTagId()const
{
return tagId_;
}
std::string CreateTagResult::getCode()const
{
return code_;
}
bool CreateTagResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteDialogueFlowRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteDialogueFlowRequest;
DeleteDialogueFlowRequest::DeleteDialogueFlowRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteDialogueFlow")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDialogueFlowRequest::~DeleteDialogueFlowRequest()
{}
std::string DeleteDialogueFlowRequest::getScriptId()const
{
return scriptId_;
}
void DeleteDialogueFlowRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DeleteDialogueFlowRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteDialogueFlowRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteDialogueFlowRequest::getDialogueFlowId()const
{
return dialogueFlowId_;
}
void DeleteDialogueFlowRequest::setDialogueFlowId(const std::string& dialogueFlowId)
{
dialogueFlowId_ = dialogueFlowId;
setParameter("DialogueFlowId", dialogueFlowId);
}

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/DeleteDialogueFlowResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteDialogueFlowResult::DeleteDialogueFlowResult() :
ServiceResult()
{}
DeleteDialogueFlowResult::DeleteDialogueFlowResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDialogueFlowResult::~DeleteDialogueFlowResult()
{}
void DeleteDialogueFlowResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DeleteDialogueFlowResult::getMessage()const
{
return message_;
}
int DeleteDialogueFlowResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteDialogueFlowResult::getCode()const
{
return code_;
}
bool DeleteDialogueFlowResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteGlobalQuestionRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteGlobalQuestionRequest;
DeleteGlobalQuestionRequest::DeleteGlobalQuestionRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteGlobalQuestion")
{
setMethod(HttpRequest::Method::Post);
}
DeleteGlobalQuestionRequest::~DeleteGlobalQuestionRequest()
{}
std::string DeleteGlobalQuestionRequest::getGlobalQuestionId()const
{
return globalQuestionId_;
}
void DeleteGlobalQuestionRequest::setGlobalQuestionId(const std::string& globalQuestionId)
{
globalQuestionId_ = globalQuestionId;
setParameter("GlobalQuestionId", globalQuestionId);
}
std::string DeleteGlobalQuestionRequest::getScriptId()const
{
return scriptId_;
}
void DeleteGlobalQuestionRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DeleteGlobalQuestionRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteGlobalQuestionRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/DeleteGlobalQuestionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteGlobalQuestionResult::DeleteGlobalQuestionResult() :
ServiceResult()
{}
DeleteGlobalQuestionResult::DeleteGlobalQuestionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGlobalQuestionResult::~DeleteGlobalQuestionResult()
{}
void DeleteGlobalQuestionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DeleteGlobalQuestionResult::getMessage()const
{
return message_;
}
int DeleteGlobalQuestionResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteGlobalQuestionResult::getCode()const
{
return code_;
}
bool DeleteGlobalQuestionResult::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/DeleteInstanceRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteInstanceRequest;
DeleteInstanceRequest::DeleteInstanceRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteInstance")
{
setMethod(HttpRequest::Method::Post);
}
DeleteInstanceRequest::~DeleteInstanceRequest()
{}
std::string DeleteInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/DeleteInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteInstanceResult::DeleteInstanceResult() :
ServiceResult()
{}
DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteInstanceResult::~DeleteInstanceResult()
{}
void DeleteInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DeleteInstanceResult::getMessage()const
{
return message_;
}
int DeleteInstanceResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteInstanceResult::getCode()const
{
return code_;
}
bool DeleteInstanceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteIntentRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteIntentRequest;
DeleteIntentRequest::DeleteIntentRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteIntent")
{
setMethod(HttpRequest::Method::Post);
}
DeleteIntentRequest::~DeleteIntentRequest()
{}
std::string DeleteIntentRequest::getIntentId()const
{
return intentId_;
}
void DeleteIntentRequest::setIntentId(const std::string& intentId)
{
intentId_ = intentId;
setParameter("IntentId", intentId);
}
std::string DeleteIntentRequest::getScriptId()const
{
return scriptId_;
}
void DeleteIntentRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DeleteIntentRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteIntentRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/DeleteIntentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteIntentResult::DeleteIntentResult() :
ServiceResult()
{}
DeleteIntentResult::DeleteIntentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteIntentResult::~DeleteIntentResult()
{}
void DeleteIntentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DeleteIntentResult::getMessage()const
{
return message_;
}
int DeleteIntentResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteIntentResult::getCode()const
{
return code_;
}
bool DeleteIntentResult::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/DeleteJobGroupRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteJobGroupRequest;
DeleteJobGroupRequest::DeleteJobGroupRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteJobGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteJobGroupRequest::~DeleteJobGroupRequest()
{}
std::string DeleteJobGroupRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteJobGroupRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DeleteJobGroupRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

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/DeleteJobGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteJobGroupResult::DeleteJobGroupResult() :
ServiceResult()
{}
DeleteJobGroupResult::DeleteJobGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteJobGroupResult::~DeleteJobGroupResult()
{}
void DeleteJobGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DeleteJobGroupResult::getMessage()const
{
return message_;
}
int DeleteJobGroupResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteJobGroupResult::getCode()const
{
return code_;
}
bool DeleteJobGroupResult::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/DeleteOutboundCallNumberRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteOutboundCallNumberRequest;
DeleteOutboundCallNumberRequest::DeleteOutboundCallNumberRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteOutboundCallNumber")
{
setMethod(HttpRequest::Method::Post);
}
DeleteOutboundCallNumberRequest::~DeleteOutboundCallNumberRequest()
{}
std::string DeleteOutboundCallNumberRequest::getOutboundCallNumberId()const
{
return outboundCallNumberId_;
}
void DeleteOutboundCallNumberRequest::setOutboundCallNumberId(const std::string& outboundCallNumberId)
{
outboundCallNumberId_ = outboundCallNumberId;
setParameter("OutboundCallNumberId", outboundCallNumberId);
}
std::string DeleteOutboundCallNumberRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteOutboundCallNumberRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/DeleteOutboundCallNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteOutboundCallNumberResult::DeleteOutboundCallNumberResult() :
ServiceResult()
{}
DeleteOutboundCallNumberResult::DeleteOutboundCallNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteOutboundCallNumberResult::~DeleteOutboundCallNumberResult()
{}
void DeleteOutboundCallNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DeleteOutboundCallNumberResult::getMessage()const
{
return message_;
}
int DeleteOutboundCallNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteOutboundCallNumberResult::getCode()const
{
return code_;
}
bool DeleteOutboundCallNumberResult::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/DeleteScriptRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteScriptRequest;
DeleteScriptRequest::DeleteScriptRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScript")
{
setMethod(HttpRequest::Method::Post);
}
DeleteScriptRequest::~DeleteScriptRequest()
{}
std::string DeleteScriptRequest::getScriptId()const
{
return scriptId_;
}
void DeleteScriptRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DeleteScriptRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteScriptRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/DeleteScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteScriptResult::DeleteScriptResult() :
ServiceResult()
{}
DeleteScriptResult::DeleteScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteScriptResult::~DeleteScriptResult()
{}
void DeleteScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DeleteScriptResult::getMessage()const
{
return message_;
}
int DeleteScriptResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteScriptResult::getCode()const
{
return code_;
}
bool DeleteScriptResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteScriptWaveformRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteScriptWaveformRequest;
DeleteScriptWaveformRequest::DeleteScriptWaveformRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScriptWaveform")
{
setMethod(HttpRequest::Method::Post);
}
DeleteScriptWaveformRequest::~DeleteScriptWaveformRequest()
{}
std::string DeleteScriptWaveformRequest::getScriptWaveformId()const
{
return scriptWaveformId_;
}
void DeleteScriptWaveformRequest::setScriptWaveformId(const std::string& scriptWaveformId)
{
scriptWaveformId_ = scriptWaveformId;
setParameter("ScriptWaveformId", scriptWaveformId);
}
std::string DeleteScriptWaveformRequest::getScriptId()const
{
return scriptId_;
}
void DeleteScriptWaveformRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DeleteScriptWaveformRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteScriptWaveformRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/DeleteScriptWaveformResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteScriptWaveformResult::DeleteScriptWaveformResult() :
ServiceResult()
{}
DeleteScriptWaveformResult::DeleteScriptWaveformResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteScriptWaveformResult::~DeleteScriptWaveformResult()
{}
void DeleteScriptWaveformResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DeleteScriptWaveformResult::getMessage()const
{
return message_;
}
int DeleteScriptWaveformResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteScriptWaveformResult::getCode()const
{
return code_;
}
bool DeleteScriptWaveformResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DescribeGlobalQuestionRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeGlobalQuestionRequest;
DescribeGlobalQuestionRequest::DescribeGlobalQuestionRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGlobalQuestion")
{
setMethod(HttpRequest::Method::Post);
}
DescribeGlobalQuestionRequest::~DescribeGlobalQuestionRequest()
{}
std::string DescribeGlobalQuestionRequest::getGlobalQuestionId()const
{
return globalQuestionId_;
}
void DescribeGlobalQuestionRequest::setGlobalQuestionId(const std::string& globalQuestionId)
{
globalQuestionId_ = globalQuestionId;
setParameter("GlobalQuestionId", globalQuestionId);
}
std::string DescribeGlobalQuestionRequest::getScriptId()const
{
return scriptId_;
}
void DescribeGlobalQuestionRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DescribeGlobalQuestionRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeGlobalQuestionRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/DescribeGlobalQuestionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeGlobalQuestionResult::DescribeGlobalQuestionResult() :
ServiceResult()
{}
DescribeGlobalQuestionResult::DescribeGlobalQuestionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGlobalQuestionResult::~DescribeGlobalQuestionResult()
{}
void DescribeGlobalQuestionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto globalQuestionNode = value["GlobalQuestion"];
if(!globalQuestionNode["GlobalQuestionId"].isNull())
globalQuestion_.globalQuestionId = globalQuestionNode["GlobalQuestionId"].asString();
if(!globalQuestionNode["ScriptId"].isNull())
globalQuestion_.scriptId = globalQuestionNode["ScriptId"].asString();
if(!globalQuestionNode["GlobalQuestionName"].isNull())
globalQuestion_.globalQuestionName = globalQuestionNode["GlobalQuestionName"].asString();
if(!globalQuestionNode["GlobalQuestionType"].isNull())
globalQuestion_.globalQuestionType = globalQuestionNode["GlobalQuestionType"].asString();
if(!globalQuestionNode["Questions"].isNull())
globalQuestion_.questions = globalQuestionNode["Questions"].asString();
if(!globalQuestionNode["Answers"].isNull())
globalQuestion_.answers = globalQuestionNode["Answers"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeGlobalQuestionResult::getMessage()const
{
return message_;
}
DescribeGlobalQuestionResult::GlobalQuestion DescribeGlobalQuestionResult::getGlobalQuestion()const
{
return globalQuestion_;
}
int DescribeGlobalQuestionResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeGlobalQuestionResult::getCode()const
{
return code_;
}
bool DescribeGlobalQuestionResult::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/DescribeInstanceRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeInstanceRequest;
DescribeInstanceRequest::DescribeInstanceRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeInstance")
{
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceRequest::~DescribeInstanceRequest()
{}
std::string DescribeInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,92 @@
/*
* 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/DescribeInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeInstanceResult::DescribeInstanceResult() :
ServiceResult()
{}
DescribeInstanceResult::DescribeInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceResult::~DescribeInstanceResult()
{}
void DescribeInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto instanceNode = value["Instance"];
if(!instanceNode["InstanceId"].isNull())
instance_.instanceId = instanceNode["InstanceId"].asString();
if(!instanceNode["InstanceName"].isNull())
instance_.instanceName = instanceNode["InstanceName"].asString();
if(!instanceNode["InstanceDescription"].isNull())
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
if(!instanceNode["MaxConcurrentConversation"].isNull())
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
if(!instanceNode["Owner"].isNull())
instance_.owner = instanceNode["Owner"].asString();
if(!instanceNode["CreationTime"].isNull())
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
if(!instanceNode["CallCenterInstanceId"].isNull())
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeInstanceResult::getMessage()const
{
return message_;
}
DescribeInstanceResult::Instance DescribeInstanceResult::getInstance()const
{
return instance_;
}
int DescribeInstanceResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeInstanceResult::getCode()const
{
return code_;
}
bool DescribeInstanceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DescribeIntentRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeIntentRequest;
DescribeIntentRequest::DescribeIntentRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntent")
{
setMethod(HttpRequest::Method::Post);
}
DescribeIntentRequest::~DescribeIntentRequest()
{}
std::string DescribeIntentRequest::getIntentId()const
{
return intentId_;
}
void DescribeIntentRequest::setIntentId(const std::string& intentId)
{
intentId_ = intentId;
setParameter("IntentId", intentId);
}
std::string DescribeIntentRequest::getScriptId()const
{
return scriptId_;
}
void DescribeIntentRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DescribeIntentRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeIntentRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,94 @@
/*
* 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/DescribeIntentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeIntentResult::DescribeIntentResult() :
ServiceResult()
{}
DescribeIntentResult::DescribeIntentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeIntentResult::~DescribeIntentResult()
{}
void DescribeIntentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto intentNode = value["Intent"];
if(!intentNode["IntentId"].isNull())
intent_.intentId = intentNode["IntentId"].asString();
if(!intentNode["ScriptId"].isNull())
intent_.scriptId = intentNode["ScriptId"].asString();
if(!intentNode["IntentName"].isNull())
intent_.intentName = intentNode["IntentName"].asString();
if(!intentNode["IntentDescription"].isNull())
intent_.intentDescription = intentNode["IntentDescription"].asString();
if(!intentNode["Utterances"].isNull())
intent_.utterances = intentNode["Utterances"].asString();
if(!intentNode["Keywords"].isNull())
intent_.keywords = intentNode["Keywords"].asString();
if(!intentNode["CreateTime"].isNull())
intent_.createTime = std::stol(intentNode["CreateTime"].asString());
if(!intentNode["UpdateTime"].isNull())
intent_.updateTime = std::stol(intentNode["UpdateTime"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeIntentResult::getMessage()const
{
return message_;
}
int DescribeIntentResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DescribeIntentResult::Intent DescribeIntentResult::getIntent()const
{
return intent_;
}
std::string DescribeIntentResult::getCode()const
{
return code_;
}
bool DescribeIntentResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DescribeJobGroupRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeJobGroupRequest;
DescribeJobGroupRequest::DescribeJobGroupRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroup")
{
setMethod(HttpRequest::Method::Post);
}
DescribeJobGroupRequest::~DescribeJobGroupRequest()
{}
std::vector<std::string> DescribeJobGroupRequest::getBriefTypes()const
{
return briefTypes_;
}
void DescribeJobGroupRequest::setBriefTypes(const std::vector<std::string>& briefTypes)
{
briefTypes_ = briefTypes;
for(int dep1 = 0; dep1!= briefTypes.size(); dep1++) {
setParameter("BriefTypes."+ std::to_string(dep1), briefTypes.at(dep1));
}
}
std::string DescribeJobGroupRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeJobGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeJobGroupRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DescribeJobGroupRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,180 @@
/*
* 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/DescribeJobGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeJobGroupResult::DescribeJobGroupResult() :
ServiceResult()
{}
DescribeJobGroupResult::DescribeJobGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeJobGroupResult::~DescribeJobGroupResult()
{}
void DescribeJobGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobGroupNode = value["JobGroup"];
if(!jobGroupNode["JobGroupId"].isNull())
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
if(!jobGroupNode["JobGroupName"].isNull())
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
if(!jobGroupNode["JobGroupDescription"].isNull())
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
if(!jobGroupNode["ScenarioId"].isNull())
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
if(!jobGroupNode["ScriptId"].isNull())
jobGroup_.scriptId = jobGroupNode["ScriptId"].asString();
if(!jobGroupNode["ScriptName"].isNull())
jobGroup_.scriptName = jobGroupNode["ScriptName"].asString();
if(!jobGroupNode["JobFilePath"].isNull())
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
if(!jobGroupNode["CreationTime"].isNull())
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
auto strategyNode = jobGroupNode["Strategy"];
if(!strategyNode["StrategyId"].isNull())
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
if(!strategyNode["StrategyName"].isNull())
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
if(!strategyNode["StrategyDescription"].isNull())
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
if(!strategyNode["Type"].isNull())
jobGroup_.strategy.type = strategyNode["Type"].asString();
if(!strategyNode["StartTime"].isNull())
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
if(!strategyNode["EndTime"].isNull())
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
if(!strategyNode["RepeatBy"].isNull())
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
if(!strategyNode["MaxAttemptsPerDay"].isNull())
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
if(!strategyNode["MinAttemptInterval"].isNull())
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
if(!strategyNode["Customized"].isNull())
jobGroup_.strategy.customized = strategyNode["Customized"].asString();
if(!strategyNode["RoutingStrategy"].isNull())
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
if(!strategyNode["FollowUpStrategy"].isNull())
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
if(!strategyNode["IsTemplate"].isNull())
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
{
JobGroup::Strategy::TimeFrame timeFrameObject;
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
jobGroup_.strategy.workingTime.push_back(timeFrameObject);
}
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
for (auto value : allRepeatDays)
jobGroup_.strategy.repeatDays.push_back(value.asString());
auto progressNode = jobGroupNode["Progress"];
if(!progressNode["TotalJobs"].isNull())
jobGroup_.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
if(!progressNode["Status"].isNull())
jobGroup_.progress.status = progressNode["Status"].asString();
if(!progressNode["TotalNotAnswered"].isNull())
jobGroup_.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
if(!progressNode["TotalCompleted"].isNull())
jobGroup_.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
if(!progressNode["StartTime"].isNull())
jobGroup_.progress.startTime = std::stol(progressNode["StartTime"].asString());
if(!progressNode["Duration"].isNull())
jobGroup_.progress.duration = std::stoi(progressNode["Duration"].asString());
if(!progressNode["Scheduling"].isNull())
jobGroup_.progress.scheduling = std::stoi(progressNode["Scheduling"].asString());
if(!progressNode["Executing"].isNull())
jobGroup_.progress.executing = std::stoi(progressNode["Executing"].asString());
if(!progressNode["Paused"].isNull())
jobGroup_.progress.paused = std::stoi(progressNode["Paused"].asString());
if(!progressNode["Failed"].isNull())
jobGroup_.progress.failed = std::stoi(progressNode["Failed"].asString());
if(!progressNode["Cancelled"].isNull())
jobGroup_.progress.cancelled = std::stoi(progressNode["Cancelled"].asString());
auto allCategoriesNode = progressNode["Categories"]["KeyValuePair"];
for (auto progressNodeCategoriesKeyValuePair : allCategoriesNode)
{
JobGroup::Progress::KeyValuePair keyValuePairObject;
if(!progressNodeCategoriesKeyValuePair["Key"].isNull())
keyValuePairObject.key = progressNodeCategoriesKeyValuePair["Key"].asString();
if(!progressNodeCategoriesKeyValuePair["Value"].isNull())
keyValuePairObject.value = progressNodeCategoriesKeyValuePair["Value"].asString();
jobGroup_.progress.categories.push_back(keyValuePairObject);
}
auto allBriefsNode = progressNode["Briefs"]["KeyValuePair"];
for (auto progressNodeBriefsKeyValuePair : allBriefsNode)
{
JobGroup::Progress::KeyValuePair keyValuePairObject;
if(!progressNodeBriefsKeyValuePair["Key"].isNull())
keyValuePairObject.key = progressNodeBriefsKeyValuePair["Key"].asString();
if(!progressNodeBriefsKeyValuePair["Value"].isNull())
keyValuePairObject.value = progressNodeBriefsKeyValuePair["Value"].asString();
jobGroup_.progress.briefs.push_back(keyValuePairObject);
}
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
for (auto value : allCallingNumbers)
jobGroup_.callingNumbers.push_back(value.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());
}
DescribeJobGroupResult::JobGroup DescribeJobGroupResult::getJobGroup()const
{
return jobGroup_;
}
std::string DescribeJobGroupResult::getMessage()const
{
return message_;
}
int DescribeJobGroupResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeJobGroupResult::getCode()const
{
return code_;
}
bool DescribeJobGroupResult::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/DescribeJobRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeJobRequest;
DescribeJobRequest::DescribeJobRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJob")
{
setMethod(HttpRequest::Method::Post);
}
DescribeJobRequest::~DescribeJobRequest()
{}
std::string DescribeJobRequest::getJobId()const
{
return jobId_;
}
void DescribeJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
std::string DescribeJobRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeJobRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,214 @@
/*
* 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/DescribeJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeJobResult::DescribeJobResult() :
ServiceResult()
{}
DescribeJobResult::DescribeJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeJobResult::~DescribeJobResult()
{}
void DescribeJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobNode = value["Job"];
if(!jobNode["JobId"].isNull())
job_.jobId = jobNode["JobId"].asString();
if(!jobNode["JobGroupId"].isNull())
job_.jobGroupId = jobNode["JobGroupId"].asString();
if(!jobNode["ScenarioId"].isNull())
job_.scenarioId = jobNode["ScenarioId"].asString();
if(!jobNode["StrategyId"].isNull())
job_.strategyId = jobNode["StrategyId"].asString();
if(!jobNode["Priority"].isNull())
job_.priority = std::stoi(jobNode["Priority"].asString());
if(!jobNode["SystemPriority"].isNull())
job_.systemPriority = std::stoi(jobNode["SystemPriority"].asString());
if(!jobNode["Status"].isNull())
job_.status = jobNode["Status"].asString();
if(!jobNode["ReferenceId"].isNull())
job_.referenceId = jobNode["ReferenceId"].asString();
if(!jobNode["FailureReason"].isNull())
job_.failureReason = jobNode["FailureReason"].asString();
auto allContactsNode = jobNode["Contacts"]["Contact"];
for (auto jobNodeContactsContact : allContactsNode)
{
Job::Contact contactObject;
if(!jobNodeContactsContact["ContactId"].isNull())
contactObject.contactId = jobNodeContactsContact["ContactId"].asString();
if(!jobNodeContactsContact["ContactName"].isNull())
contactObject.contactName = jobNodeContactsContact["ContactName"].asString();
if(!jobNodeContactsContact["Honorific"].isNull())
contactObject.honorific = jobNodeContactsContact["Honorific"].asString();
if(!jobNodeContactsContact["Role"].isNull())
contactObject.role = jobNodeContactsContact["Role"].asString();
if(!jobNodeContactsContact["PhoneNumber"].isNull())
contactObject.phoneNumber = jobNodeContactsContact["PhoneNumber"].asString();
if(!jobNodeContactsContact["State"].isNull())
contactObject.state = jobNodeContactsContact["State"].asString();
if(!jobNodeContactsContact["ReferenceId"].isNull())
contactObject.referenceId = jobNodeContactsContact["ReferenceId"].asString();
if(!jobNodeContactsContact["JobId"].isNull())
contactObject.jobId = jobNodeContactsContact["JobId"].asString();
job_.contacts.push_back(contactObject);
}
auto allExtrasNode = jobNode["Extras"]["KeyValuePair"];
for (auto jobNodeExtrasKeyValuePair : allExtrasNode)
{
Job::KeyValuePair keyValuePairObject;
if(!jobNodeExtrasKeyValuePair["Key"].isNull())
keyValuePairObject.key = jobNodeExtrasKeyValuePair["Key"].asString();
if(!jobNodeExtrasKeyValuePair["Value"].isNull())
keyValuePairObject.value = jobNodeExtrasKeyValuePair["Value"].asString();
job_.extras.push_back(keyValuePairObject);
}
auto allTasksNode = jobNode["Tasks"]["Task"];
for (auto jobNodeTasksTask : allTasksNode)
{
Job::Task taskObject;
if(!jobNodeTasksTask["TaskId"].isNull())
taskObject.taskId = jobNodeTasksTask["TaskId"].asString();
if(!jobNodeTasksTask["JobId"].isNull())
taskObject.jobId = jobNodeTasksTask["JobId"].asString();
if(!jobNodeTasksTask["ScenarioId"].isNull())
taskObject.scenarioId = jobNodeTasksTask["ScenarioId"].asString();
if(!jobNodeTasksTask["ChatbotId"].isNull())
taskObject.chatbotId = jobNodeTasksTask["ChatbotId"].asString();
if(!jobNodeTasksTask["PlanedTime"].isNull())
taskObject.planedTime = std::stol(jobNodeTasksTask["PlanedTime"].asString());
if(!jobNodeTasksTask["ActualTime"].isNull())
taskObject.actualTime = std::stol(jobNodeTasksTask["ActualTime"].asString());
if(!jobNodeTasksTask["CallingNumber"].isNull())
taskObject.callingNumber = jobNodeTasksTask["CallingNumber"].asString();
if(!jobNodeTasksTask["CalledNumber"].isNull())
taskObject.calledNumber = jobNodeTasksTask["CalledNumber"].asString();
if(!jobNodeTasksTask["CallId"].isNull())
taskObject.callId = jobNodeTasksTask["CallId"].asString();
if(!jobNodeTasksTask["Status"].isNull())
taskObject.status = jobNodeTasksTask["Status"].asString();
if(!jobNodeTasksTask["Brief"].isNull())
taskObject.brief = jobNodeTasksTask["Brief"].asString();
if(!jobNodeTasksTask["Duration"].isNull())
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
{
Job::Task::ConversationDetail conversationObject;
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
{
Job::Task::ConversationDetail::SummaryItem summary1Object;
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
conversationObject.summary1.push_back(summary1Object);
}
taskObject.conversation.push_back(conversationObject);
}
auto contact2Node = value["Contact"];
if(!contact2Node["ContactId"].isNull())
taskObject.contact2.contactId = contact2Node["ContactId"].asString();
if(!contact2Node["ContactName"].isNull())
taskObject.contact2.contactName = contact2Node["ContactName"].asString();
if(!contact2Node["Honorific"].isNull())
taskObject.contact2.honorific = contact2Node["Honorific"].asString();
if(!contact2Node["Role"].isNull())
taskObject.contact2.role = contact2Node["Role"].asString();
if(!contact2Node["PhoneNumber"].isNull())
taskObject.contact2.phoneNumber = contact2Node["PhoneNumber"].asString();
if(!contact2Node["State"].isNull())
taskObject.contact2.state = contact2Node["State"].asString();
if(!contact2Node["ReferenceId"].isNull())
taskObject.contact2.referenceId = contact2Node["ReferenceId"].asString();
if(!contact2Node["JobId"].isNull())
taskObject.contact2.jobId = contact2Node["JobId"].asString();
job_.tasks.push_back(taskObject);
}
auto allSummaryNode = jobNode["Summary"]["SummaryItem"];
for (auto jobNodeSummarySummaryItem : allSummaryNode)
{
Job::SummaryItem3 summaryItem3Object;
if(!jobNodeSummarySummaryItem["Category"].isNull())
summaryItem3Object.category = jobNodeSummarySummaryItem["Category"].asString();
if(!jobNodeSummarySummaryItem["SummaryName"].isNull())
summaryItem3Object.summaryName = jobNodeSummarySummaryItem["SummaryName"].asString();
if(!jobNodeSummarySummaryItem["Content"].isNull())
summaryItem3Object.content = jobNodeSummarySummaryItem["Content"].asString();
job_.summary.push_back(summaryItem3Object);
}
auto allCallingNumbers = jobNode["CallingNumbers"]["String"];
for (auto value : allCallingNumbers)
job_.callingNumbers.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeJobResult::getMessage()const
{
return message_;
}
int DescribeJobResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DescribeJobResult::Job DescribeJobResult::getJob()const
{
return job_;
}
std::string DescribeJobResult::getCode()const
{
return code_;
}
bool DescribeJobResult::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/DescribeScriptRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeScriptRequest;
DescribeScriptRequest::DescribeScriptRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScript")
{
setMethod(HttpRequest::Method::Post);
}
DescribeScriptRequest::~DescribeScriptRequest()
{}
std::string DescribeScriptRequest::getScriptId()const
{
return scriptId_;
}
void DescribeScriptRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DescribeScriptRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeScriptRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,98 @@
/*
* 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/DescribeScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeScriptResult::DescribeScriptResult() :
ServiceResult()
{}
DescribeScriptResult::DescribeScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeScriptResult::~DescribeScriptResult()
{}
void DescribeScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto scriptNode = value["Script"];
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["Status"].isNull())
script_.status = scriptNode["Status"].asString();
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["UpdateTime"].isNull())
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
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());
}
DescribeScriptResult::Script DescribeScriptResult::getScript()const
{
return script_;
}
std::string DescribeScriptResult::getMessage()const
{
return message_;
}
int DescribeScriptResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeScriptResult::getCode()const
{
return code_;
}
bool DescribeScriptResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DescribeScriptVoiceConfigRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeScriptVoiceConfigRequest;
DescribeScriptVoiceConfigRequest::DescribeScriptVoiceConfigRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScriptVoiceConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeScriptVoiceConfigRequest::~DescribeScriptVoiceConfigRequest()
{}
std::string DescribeScriptVoiceConfigRequest::getScriptId()const
{
return scriptId_;
}
void DescribeScriptVoiceConfigRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DescribeScriptVoiceConfigRequest::getScriptVoiceConfigId()const
{
return scriptVoiceConfigId_;
}
void DescribeScriptVoiceConfigRequest::setScriptVoiceConfigId(const std::string& scriptVoiceConfigId)
{
scriptVoiceConfigId_ = scriptVoiceConfigId;
setParameter("ScriptVoiceConfigId", scriptVoiceConfigId);
}
std::string DescribeScriptVoiceConfigRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeScriptVoiceConfigRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,92 @@
/*
* 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/DescribeScriptVoiceConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeScriptVoiceConfigResult::DescribeScriptVoiceConfigResult() :
ServiceResult()
{}
DescribeScriptVoiceConfigResult::DescribeScriptVoiceConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeScriptVoiceConfigResult::~DescribeScriptVoiceConfigResult()
{}
void DescribeScriptVoiceConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto scriptVoiceConfigNode = value["ScriptVoiceConfig"];
if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull())
scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString();
if(!scriptVoiceConfigNode["InstanceId"].isNull())
scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString();
if(!scriptVoiceConfigNode["ScriptId"].isNull())
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
if(!scriptVoiceConfigNode["ScriptContent"].isNull())
scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString();
if(!scriptVoiceConfigNode["Source"].isNull())
scriptVoiceConfig_.source = scriptVoiceConfigNode["Source"].asString();
if(!scriptVoiceConfigNode["Type"].isNull())
scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString();
if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull())
scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeScriptVoiceConfigResult::getMessage()const
{
return message_;
}
int DescribeScriptVoiceConfigResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeScriptVoiceConfigResult::getCode()const
{
return code_;
}
bool DescribeScriptVoiceConfigResult::getSuccess()const
{
return success_;
}
DescribeScriptVoiceConfigResult::ScriptVoiceConfig DescribeScriptVoiceConfigResult::getScriptVoiceConfig()const
{
return scriptVoiceConfig_;
}

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/DescribeTTSConfigRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeTTSConfigRequest;
DescribeTTSConfigRequest::DescribeTTSConfigRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeTTSConfigRequest::~DescribeTTSConfigRequest()
{}
std::string DescribeTTSConfigRequest::getScriptId()const
{
return scriptId_;
}
void DescribeTTSConfigRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string DescribeTTSConfigRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeTTSConfigRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/DescribeTTSConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeTTSConfigResult::DescribeTTSConfigResult() :
ServiceResult()
{}
DescribeTTSConfigResult::DescribeTTSConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeTTSConfigResult::~DescribeTTSConfigResult()
{}
void DescribeTTSConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto tTSConfigNode = value["TTSConfig"];
if(!tTSConfigNode["Id"].isNull())
tTSConfig_.id = tTSConfigNode["Id"].asString();
if(!tTSConfigNode["ScriptId"].isNull())
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
if(!tTSConfigNode["InstanceId"].isNull())
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].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["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 DescribeTTSConfigResult::getMessage()const
{
return message_;
}
DescribeTTSConfigResult::TTSConfig DescribeTTSConfigResult::getTTSConfig()const
{
return tTSConfig_;
}
int DescribeTTSConfigResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeTTSConfigResult::getCode()const
{
return code_;
}
bool DescribeTTSConfigResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,150 @@
/*
* 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/DialogueRequest.h>
using AlibabaCloud::OutboundBot::Model::DialogueRequest;
DialogueRequest::DialogueRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "Dialogue")
{
setMethod(HttpRequest::Method::Post);
}
DialogueRequest::~DialogueRequest()
{}
std::string DialogueRequest::getCallId()const
{
return callId_;
}
void DialogueRequest::setCallId(const std::string& callId)
{
callId_ = callId;
setParameter("CallId", callId);
}
std::string DialogueRequest::getActionParams()const
{
return actionParams_;
}
void DialogueRequest::setActionParams(const std::string& actionParams)
{
actionParams_ = actionParams;
setParameter("ActionParams", actionParams);
}
std::string DialogueRequest::getCallingNumber()const
{
return callingNumber_;
}
void DialogueRequest::setCallingNumber(const std::string& callingNumber)
{
callingNumber_ = callingNumber;
setParameter("CallingNumber", callingNumber);
}
std::string DialogueRequest::getInstanceId()const
{
return instanceId_;
}
void DialogueRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
long DialogueRequest::getInstanceOwnerId()const
{
return instanceOwnerId_;
}
void DialogueRequest::setInstanceOwnerId(long instanceOwnerId)
{
instanceOwnerId_ = instanceOwnerId;
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
}
std::string DialogueRequest::getCalledNumber()const
{
return calledNumber_;
}
void DialogueRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
}
std::string DialogueRequest::getActionKey()const
{
return actionKey_;
}
void DialogueRequest::setActionKey(const std::string& actionKey)
{
actionKey_ = actionKey;
setParameter("ActionKey", actionKey);
}
std::string DialogueRequest::getCallType()const
{
return callType_;
}
void DialogueRequest::setCallType(const std::string& callType)
{
callType_ = callType;
setParameter("CallType", callType);
}
std::string DialogueRequest::getScenarioId()const
{
return scenarioId_;
}
void DialogueRequest::setScenarioId(const std::string& scenarioId)
{
scenarioId_ = scenarioId;
setParameter("ScenarioId", scenarioId);
}
std::string DialogueRequest::getTaskId()const
{
return taskId_;
}
void DialogueRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
std::string DialogueRequest::getUtterance()const
{
return utterance_;
}
void DialogueRequest::setUtterance(const std::string& utterance)
{
utterance_ = utterance;
setParameter("Utterance", utterance);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DialogueResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DialogueResult::DialogueResult() :
ServiceResult()
{}
DialogueResult::DialogueResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DialogueResult::~DialogueResult()
{}
void DialogueResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto feedbackNode = value["Feedback"];
if(!feedbackNode["Content"].isNull())
feedback_.content = feedbackNode["Content"].asString();
if(!feedbackNode["Action"].isNull())
feedback_.action = feedbackNode["Action"].asString();
if(!feedbackNode["ActionParams"].isNull())
feedback_.actionParams = feedbackNode["ActionParams"].asString();
if(!feedbackNode["Interruptible"].isNull())
feedback_.interruptible = feedbackNode["Interruptible"].asString() == "true";
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 DialogueResult::getMessage()const
{
return message_;
}
DialogueResult::Feedback DialogueResult::getFeedback()const
{
return feedback_;
}
int DialogueResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DialogueResult::getCode()const
{
return code_;
}
bool DialogueResult::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/DownloadBasicStatisticsReportRequest.h>
using AlibabaCloud::OutboundBot::Model::DownloadBasicStatisticsReportRequest;
DownloadBasicStatisticsReportRequest::DownloadBasicStatisticsReportRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadBasicStatisticsReport")
{
setMethod(HttpRequest::Method::Post);
}
DownloadBasicStatisticsReportRequest::~DownloadBasicStatisticsReportRequest()
{}
std::string DownloadBasicStatisticsReportRequest::getInstanceId()const
{
return instanceId_;
}
void DownloadBasicStatisticsReportRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DownloadBasicStatisticsReportRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DownloadBasicStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/DownloadBasicStatisticsReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DownloadBasicStatisticsReportResult::DownloadBasicStatisticsReportResult() :
ServiceResult()
{}
DownloadBasicStatisticsReportResult::DownloadBasicStatisticsReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DownloadBasicStatisticsReportResult::~DownloadBasicStatisticsReportResult()
{}
void DownloadBasicStatisticsReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto downloadParamsNode = value["DownloadParams"];
if(!downloadParamsNode["SignatureUrl"].isNull())
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
if(!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());
}
DownloadBasicStatisticsReportResult::DownloadParams DownloadBasicStatisticsReportResult::getDownloadParams()const
{
return downloadParams_;
}
std::string DownloadBasicStatisticsReportResult::getMessage()const
{
return message_;
}
int DownloadBasicStatisticsReportResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DownloadBasicStatisticsReportResult::getCode()const
{
return code_;
}
bool DownloadBasicStatisticsReportResult::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/DownloadConversationDetailsRequest.h>
using AlibabaCloud::OutboundBot::Model::DownloadConversationDetailsRequest;
DownloadConversationDetailsRequest::DownloadConversationDetailsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadConversationDetails")
{
setMethod(HttpRequest::Method::Post);
}
DownloadConversationDetailsRequest::~DownloadConversationDetailsRequest()
{}
std::string DownloadConversationDetailsRequest::getInstanceId()const
{
return instanceId_;
}
void DownloadConversationDetailsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DownloadConversationDetailsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DownloadConversationDetailsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/DownloadConversationDetailsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DownloadConversationDetailsResult::DownloadConversationDetailsResult() :
ServiceResult()
{}
DownloadConversationDetailsResult::DownloadConversationDetailsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DownloadConversationDetailsResult::~DownloadConversationDetailsResult()
{}
void DownloadConversationDetailsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto downloadParamsNode = value["DownloadParams"];
if(!downloadParamsNode["SignatureUrl"].isNull())
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
if(!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());
}
DownloadConversationDetailsResult::DownloadParams DownloadConversationDetailsResult::getDownloadParams()const
{
return downloadParams_;
}
std::string DownloadConversationDetailsResult::getMessage()const
{
return message_;
}
int DownloadConversationDetailsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DownloadConversationDetailsResult::getCode()const
{
return code_;
}
bool DownloadConversationDetailsResult::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/DownloadRecordingRequest.h>
using AlibabaCloud::OutboundBot::Model::DownloadRecordingRequest;
DownloadRecordingRequest::DownloadRecordingRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadRecording")
{
setMethod(HttpRequest::Method::Post);
}
DownloadRecordingRequest::~DownloadRecordingRequest()
{}
std::string DownloadRecordingRequest::getInstanceId()const
{
return instanceId_;
}
void DownloadRecordingRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DownloadRecordingRequest::getTaskId()const
{
return taskId_;
}
void DownloadRecordingRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DownloadRecordingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DownloadRecordingResult::DownloadRecordingResult() :
ServiceResult()
{}
DownloadRecordingResult::DownloadRecordingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DownloadRecordingResult::~DownloadRecordingResult()
{}
void DownloadRecordingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto downloadParamsNode = value["DownloadParams"];
if(!downloadParamsNode["SignatureUrl"].isNull())
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
if(!downloadParamsNode["FileName"].isNull())
downloadParams_.fileName = downloadParamsNode["FileName"].asString();
if(!value["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());
}
DownloadRecordingResult::DownloadParams DownloadRecordingResult::getDownloadParams()const
{
return downloadParams_;
}
std::string DownloadRecordingResult::getMessage()const
{
return message_;
}
int DownloadRecordingResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DownloadRecordingResult::getCode()const
{
return code_;
}
bool DownloadRecordingResult::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/DownloadUnreachableContactsRequest.h>
using AlibabaCloud::OutboundBot::Model::DownloadUnreachableContactsRequest;
DownloadUnreachableContactsRequest::DownloadUnreachableContactsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadUnreachableContacts")
{
setMethod(HttpRequest::Method::Post);
}
DownloadUnreachableContactsRequest::~DownloadUnreachableContactsRequest()
{}
std::string DownloadUnreachableContactsRequest::getInstanceId()const
{
return instanceId_;
}
void DownloadUnreachableContactsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DownloadUnreachableContactsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DownloadUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/DownloadUnreachableContactsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DownloadUnreachableContactsResult::DownloadUnreachableContactsResult() :
ServiceResult()
{}
DownloadUnreachableContactsResult::DownloadUnreachableContactsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DownloadUnreachableContactsResult::~DownloadUnreachableContactsResult()
{}
void DownloadUnreachableContactsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto downloadParamsNode = value["DownloadParams"];
if(!downloadParamsNode["SignatureUrl"].isNull())
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
if(!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());
}
DownloadUnreachableContactsResult::DownloadParams DownloadUnreachableContactsResult::getDownloadParams()const
{
return downloadParams_;
}
std::string DownloadUnreachableContactsResult::getMessage()const
{
return message_;
}
int DownloadUnreachableContactsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DownloadUnreachableContactsResult::getCode()const
{
return code_;
}
bool DownloadUnreachableContactsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DuplicateScriptRequest.h>
using AlibabaCloud::OutboundBot::Model::DuplicateScriptRequest;
DuplicateScriptRequest::DuplicateScriptRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DuplicateScript")
{
setMethod(HttpRequest::Method::Post);
}
DuplicateScriptRequest::~DuplicateScriptRequest()
{}
std::string DuplicateScriptRequest::getInstanceId()const
{
return instanceId_;
}
void DuplicateScriptRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DuplicateScriptRequest::getSourceScriptId()const
{
return sourceScriptId_;
}
void DuplicateScriptRequest::setSourceScriptId(const std::string& sourceScriptId)
{
sourceScriptId_ = sourceScriptId;
setParameter("SourceScriptId", sourceScriptId);
}
std::string DuplicateScriptRequest::getName()const
{
return name_;
}
void DuplicateScriptRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

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/DuplicateScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DuplicateScriptResult::DuplicateScriptResult() :
ServiceResult()
{}
DuplicateScriptResult::DuplicateScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DuplicateScriptResult::~DuplicateScriptResult()
{}
void DuplicateScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["ScriptId"].isNull())
scriptId_ = value["ScriptId"].asString();
}
std::string DuplicateScriptResult::getMessage()const
{
return message_;
}
int DuplicateScriptResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DuplicateScriptResult::getScriptId()const
{
return scriptId_;
}
std::string DuplicateScriptResult::getCode()const
{
return code_;
}
bool DuplicateScriptResult::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/ExportScriptRequest.h>
using AlibabaCloud::OutboundBot::Model::ExportScriptRequest;
ExportScriptRequest::ExportScriptRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ExportScript")
{
setMethod(HttpRequest::Method::Post);
}
ExportScriptRequest::~ExportScriptRequest()
{}
std::string ExportScriptRequest::getScriptId()const
{
return scriptId_;
}
void ExportScriptRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string ExportScriptRequest::getInstanceId()const
{
return instanceId_;
}
void ExportScriptRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/ExportScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ExportScriptResult::ExportScriptResult() :
ServiceResult()
{}
ExportScriptResult::ExportScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExportScriptResult::~ExportScriptResult()
{}
void ExportScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto downloadParamsNode = value["DownloadParams"];
if(!downloadParamsNode["SignatureUrl"].isNull())
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
if(!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());
}
ExportScriptResult::DownloadParams ExportScriptResult::getDownloadParams()const
{
return downloadParams_;
}
std::string ExportScriptResult::getMessage()const
{
return message_;
}
int ExportScriptResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ExportScriptResult::getCode()const
{
return code_;
}
bool ExportScriptResult::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/GenerateBasicStatisticsReportRequest.h>
using AlibabaCloud::OutboundBot::Model::GenerateBasicStatisticsReportRequest;
GenerateBasicStatisticsReportRequest::GenerateBasicStatisticsReportRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GenerateBasicStatisticsReport")
{
setMethod(HttpRequest::Method::Post);
}
GenerateBasicStatisticsReportRequest::~GenerateBasicStatisticsReportRequest()
{}
std::string GenerateBasicStatisticsReportRequest::getInstanceId()const
{
return instanceId_;
}
void GenerateBasicStatisticsReportRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GenerateBasicStatisticsReportRequest::getJobGroupId()const
{
return jobGroupId_;
}
void GenerateBasicStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,114 @@
/*
* 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/GenerateBasicStatisticsReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GenerateBasicStatisticsReportResult::GenerateBasicStatisticsReportResult() :
ServiceResult()
{}
GenerateBasicStatisticsReportResult::GenerateBasicStatisticsReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GenerateBasicStatisticsReportResult::~GenerateBasicStatisticsReportResult()
{}
void GenerateBasicStatisticsReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto basicStatisticsReportNode = value["BasicStatisticsReport"];
auto allItemsNode = basicStatisticsReportNode["Items"]["BasicStatisticsReportItem"];
for (auto basicStatisticsReportNodeItemsBasicStatisticsReportItem : allItemsNode)
{
BasicStatisticsReport::BasicStatisticsReportItem basicStatisticsReportItemObject;
if(!basicStatisticsReportNodeItemsBasicStatisticsReportItem["Title"].isNull())
basicStatisticsReportItemObject.title = basicStatisticsReportNodeItemsBasicStatisticsReportItem["Title"].asString();
if(!basicStatisticsReportNodeItemsBasicStatisticsReportItem["TotalCount"].isNull())
basicStatisticsReportItemObject.totalCount = std::stoi(basicStatisticsReportNodeItemsBasicStatisticsReportItem["TotalCount"].asString());
if(!basicStatisticsReportNodeItemsBasicStatisticsReportItem["GraphType"].isNull())
basicStatisticsReportItemObject.graphType = basicStatisticsReportNodeItemsBasicStatisticsReportItem["GraphType"].asString();
auto allSubItemsNode = allItemsNode["SubItems"]["BasicStatisticsReportSubItem"];
for (auto allItemsNodeSubItemsBasicStatisticsReportSubItem : allSubItemsNode)
{
BasicStatisticsReport::BasicStatisticsReportItem::BasicStatisticsReportSubItem subItemsObject;
if(!allItemsNodeSubItemsBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].isNull())
subItemsObject.basicStatisticsReportSubItemName = allItemsNodeSubItemsBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].asString();
if(!allItemsNodeSubItemsBasicStatisticsReportSubItem["Value"].isNull())
subItemsObject.value = allItemsNodeSubItemsBasicStatisticsReportSubItem["Value"].asString();
if(!allItemsNodeSubItemsBasicStatisticsReportSubItem["Count"].isNull())
subItemsObject.count = std::stoi(allItemsNodeSubItemsBasicStatisticsReportSubItem["Count"].asString());
if(!allItemsNodeSubItemsBasicStatisticsReportSubItem["Percentage"].isNull())
subItemsObject.percentage = std::stoi(allItemsNodeSubItemsBasicStatisticsReportSubItem["Percentage"].asString());
auto allDetailsNode = allSubItemsNode["Details"]["KeyValuePair"];
for (auto allSubItemsNodeDetailsKeyValuePair : allDetailsNode)
{
BasicStatisticsReport::BasicStatisticsReportItem::BasicStatisticsReportSubItem::KeyValuePair detailsObject;
if(!allSubItemsNodeDetailsKeyValuePair["Key"].isNull())
detailsObject.key = allSubItemsNodeDetailsKeyValuePair["Key"].asString();
if(!allSubItemsNodeDetailsKeyValuePair["Value"].isNull())
detailsObject.value = allSubItemsNodeDetailsKeyValuePair["Value"].asString();
subItemsObject.details.push_back(detailsObject);
}
basicStatisticsReportItemObject.subItems.push_back(subItemsObject);
}
basicStatisticsReport_.items.push_back(basicStatisticsReportItemObject);
}
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());
}
GenerateBasicStatisticsReportResult::BasicStatisticsReport GenerateBasicStatisticsReportResult::getBasicStatisticsReport()const
{
return basicStatisticsReport_;
}
std::string GenerateBasicStatisticsReportResult::getMessage()const
{
return message_;
}
int GenerateBasicStatisticsReportResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GenerateBasicStatisticsReportResult::getCode()const
{
return code_;
}
bool GenerateBasicStatisticsReportResult::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/GenerateOverallStatisticsReportRequest.h>
using AlibabaCloud::OutboundBot::Model::GenerateOverallStatisticsReportRequest;
GenerateOverallStatisticsReportRequest::GenerateOverallStatisticsReportRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GenerateOverallStatisticsReport")
{
setMethod(HttpRequest::Method::Post);
}
GenerateOverallStatisticsReportRequest::~GenerateOverallStatisticsReportRequest()
{}
std::string GenerateOverallStatisticsReportRequest::getInstanceId()const
{
return instanceId_;
}
void GenerateOverallStatisticsReportRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GenerateOverallStatisticsReportRequest::getJobGroupId()const
{
return jobGroupId_;
}
void GenerateOverallStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,108 @@
/*
* 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/GenerateOverallStatisticsReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GenerateOverallStatisticsReportResult::GenerateOverallStatisticsReportResult() :
ServiceResult()
{}
GenerateOverallStatisticsReportResult::GenerateOverallStatisticsReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GenerateOverallStatisticsReportResult::~GenerateOverallStatisticsReportResult()
{}
void GenerateOverallStatisticsReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto overallStatisticsReportNode = value["OverallStatisticsReport"];
auto allIndicatorsNode = overallStatisticsReportNode["Indicators"]["KeyValuePair"];
for (auto overallStatisticsReportNodeIndicatorsKeyValuePair : allIndicatorsNode)
{
OverallStatisticsReport::KeyValuePair keyValuePairObject;
if(!overallStatisticsReportNodeIndicatorsKeyValuePair["Key"].isNull())
keyValuePairObject.key = overallStatisticsReportNodeIndicatorsKeyValuePair["Key"].asString();
if(!overallStatisticsReportNodeIndicatorsKeyValuePair["Value"].isNull())
keyValuePairObject.value = overallStatisticsReportNodeIndicatorsKeyValuePair["Value"].asString();
overallStatisticsReport_.indicators.push_back(keyValuePairObject);
}
auto allBriefsNode = overallStatisticsReportNode["Briefs"]["KeyValuePair"];
for (auto overallStatisticsReportNodeBriefsKeyValuePair : allBriefsNode)
{
OverallStatisticsReport::KeyValuePair keyValuePairObject;
if(!overallStatisticsReportNodeBriefsKeyValuePair["Key"].isNull())
keyValuePairObject.key = overallStatisticsReportNodeBriefsKeyValuePair["Key"].asString();
if(!overallStatisticsReportNodeBriefsKeyValuePair["Value"].isNull())
keyValuePairObject.value = overallStatisticsReportNodeBriefsKeyValuePair["Value"].asString();
overallStatisticsReport_.briefs.push_back(keyValuePairObject);
}
auto allSummariesNode = overallStatisticsReportNode["Summaries"]["KeyValuePair"];
for (auto overallStatisticsReportNodeSummariesKeyValuePair : allSummariesNode)
{
OverallStatisticsReport::KeyValuePair keyValuePairObject;
if(!overallStatisticsReportNodeSummariesKeyValuePair["Key"].isNull())
keyValuePairObject.key = overallStatisticsReportNodeSummariesKeyValuePair["Key"].asString();
if(!overallStatisticsReportNodeSummariesKeyValuePair["Value"].isNull())
keyValuePairObject.value = overallStatisticsReportNodeSummariesKeyValuePair["Value"].asString();
overallStatisticsReport_.summaries.push_back(keyValuePairObject);
}
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());
}
GenerateOverallStatisticsReportResult::OverallStatisticsReport GenerateOverallStatisticsReportResult::getOverallStatisticsReport()const
{
return overallStatisticsReport_;
}
std::string GenerateOverallStatisticsReportResult::getMessage()const
{
return message_;
}
int GenerateOverallStatisticsReportResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GenerateOverallStatisticsReportResult::getCode()const
{
return code_;
}
bool GenerateOverallStatisticsReportResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetJobByPhoneNumberRequest.h>
using AlibabaCloud::OutboundBot::Model::GetJobByPhoneNumberRequest;
GetJobByPhoneNumberRequest::GetJobByPhoneNumberRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetJobByPhoneNumber")
{
setMethod(HttpRequest::Method::Post);
}
GetJobByPhoneNumberRequest::~GetJobByPhoneNumberRequest()
{}
std::string GetJobByPhoneNumberRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void GetJobByPhoneNumberRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
std::string GetJobByPhoneNumberRequest::getInstanceId()const
{
return instanceId_;
}
void GetJobByPhoneNumberRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GetJobByPhoneNumberRequest::getJobGroupId()const
{
return jobGroupId_;
}
void GetJobByPhoneNumberRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,219 @@
/*
* 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/GetJobByPhoneNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetJobByPhoneNumberResult::GetJobByPhoneNumberResult() :
ServiceResult()
{}
GetJobByPhoneNumberResult::GetJobByPhoneNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetJobByPhoneNumberResult::~GetJobByPhoneNumberResult()
{}
void GetJobByPhoneNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobsNode = value["Jobs"]["Job"];
for (auto valueJobsJob : allJobsNode)
{
Job jobsObject;
if(!valueJobsJob["JobId"].isNull())
jobsObject.jobId = valueJobsJob["JobId"].asString();
if(!valueJobsJob["GroupId"].isNull())
jobsObject.groupId = valueJobsJob["GroupId"].asString();
if(!valueJobsJob["ScenarioId"].isNull())
jobsObject.scenarioId = valueJobsJob["ScenarioId"].asString();
if(!valueJobsJob["StrategyId"].isNull())
jobsObject.strategyId = valueJobsJob["StrategyId"].asString();
if(!valueJobsJob["Priority"].isNull())
jobsObject.priority = std::stoi(valueJobsJob["Priority"].asString());
if(!valueJobsJob["SystemPriority"].isNull())
jobsObject.systemPriority = std::stoi(valueJobsJob["SystemPriority"].asString());
if(!valueJobsJob["Status"].isNull())
jobsObject.status = valueJobsJob["Status"].asString();
if(!valueJobsJob["ReferenceId"].isNull())
jobsObject.referenceId = valueJobsJob["ReferenceId"].asString();
if(!valueJobsJob["FailureReason"].isNull())
jobsObject.failureReason = valueJobsJob["FailureReason"].asString();
auto allContactsNode = allJobsNode["Contacts"]["Contact"];
for (auto allJobsNodeContactsContact : allContactsNode)
{
Job::Contact contactsObject;
if(!allJobsNodeContactsContact["ContactId"].isNull())
contactsObject.contactId = allJobsNodeContactsContact["ContactId"].asString();
if(!allJobsNodeContactsContact["ContactName"].isNull())
contactsObject.contactName = allJobsNodeContactsContact["ContactName"].asString();
if(!allJobsNodeContactsContact["Honorific"].isNull())
contactsObject.honorific = allJobsNodeContactsContact["Honorific"].asString();
if(!allJobsNodeContactsContact["Role"].isNull())
contactsObject.role = allJobsNodeContactsContact["Role"].asString();
if(!allJobsNodeContactsContact["PhoneNumber"].isNull())
contactsObject.phoneNumber = allJobsNodeContactsContact["PhoneNumber"].asString();
if(!allJobsNodeContactsContact["State"].isNull())
contactsObject.state = allJobsNodeContactsContact["State"].asString();
if(!allJobsNodeContactsContact["ReferenceId"].isNull())
contactsObject.referenceId = allJobsNodeContactsContact["ReferenceId"].asString();
if(!allJobsNodeContactsContact["JobId"].isNull())
contactsObject.jobId = allJobsNodeContactsContact["JobId"].asString();
jobsObject.contacts.push_back(contactsObject);
}
auto allExtrasNode = allJobsNode["Extras"]["KeyValuePair"];
for (auto allJobsNodeExtrasKeyValuePair : allExtrasNode)
{
Job::KeyValuePair extrasObject;
if(!allJobsNodeExtrasKeyValuePair["Key"].isNull())
extrasObject.key = allJobsNodeExtrasKeyValuePair["Key"].asString();
if(!allJobsNodeExtrasKeyValuePair["Value"].isNull())
extrasObject.value = allJobsNodeExtrasKeyValuePair["Value"].asString();
jobsObject.extras.push_back(extrasObject);
}
auto allTasksNode = allJobsNode["Tasks"]["Task"];
for (auto allJobsNodeTasksTask : allTasksNode)
{
Job::Task tasksObject;
if(!allJobsNodeTasksTask["TaskId"].isNull())
tasksObject.taskId = allJobsNodeTasksTask["TaskId"].asString();
if(!allJobsNodeTasksTask["JobId"].isNull())
tasksObject.jobId = allJobsNodeTasksTask["JobId"].asString();
if(!allJobsNodeTasksTask["ScenarioId"].isNull())
tasksObject.scenarioId = allJobsNodeTasksTask["ScenarioId"].asString();
if(!allJobsNodeTasksTask["ChatbotId"].isNull())
tasksObject.chatbotId = allJobsNodeTasksTask["ChatbotId"].asString();
if(!allJobsNodeTasksTask["PlanedTime"].isNull())
tasksObject.planedTime = std::stol(allJobsNodeTasksTask["PlanedTime"].asString());
if(!allJobsNodeTasksTask["ActualTime"].isNull())
tasksObject.actualTime = std::stol(allJobsNodeTasksTask["ActualTime"].asString());
if(!allJobsNodeTasksTask["CallingNumber"].isNull())
tasksObject.callingNumber = allJobsNodeTasksTask["CallingNumber"].asString();
if(!allJobsNodeTasksTask["CalledNumber"].isNull())
tasksObject.calledNumber = allJobsNodeTasksTask["CalledNumber"].asString();
if(!allJobsNodeTasksTask["CallId"].isNull())
tasksObject.callId = allJobsNodeTasksTask["CallId"].asString();
if(!allJobsNodeTasksTask["Status"].isNull())
tasksObject.status = allJobsNodeTasksTask["Status"].asString();
if(!allJobsNodeTasksTask["Brief"].isNull())
tasksObject.brief = allJobsNodeTasksTask["Brief"].asString();
if(!allJobsNodeTasksTask["Duration"].isNull())
tasksObject.duration = std::stoi(allJobsNodeTasksTask["Duration"].asString());
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
{
Job::Task::ConversationDetail conversationObject;
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
{
Job::Task::ConversationDetail::SummaryItem summary1Object;
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
conversationObject.summary1.push_back(summary1Object);
}
tasksObject.conversation.push_back(conversationObject);
}
auto contact2Node = value["Contact"];
if(!contact2Node["ContactId"].isNull())
tasksObject.contact2.contactId = contact2Node["ContactId"].asString();
if(!contact2Node["ContactName"].isNull())
tasksObject.contact2.contactName = contact2Node["ContactName"].asString();
if(!contact2Node["Honorific"].isNull())
tasksObject.contact2.honorific = contact2Node["Honorific"].asString();
if(!contact2Node["Role"].isNull())
tasksObject.contact2.role = contact2Node["Role"].asString();
if(!contact2Node["PhoneNumber"].isNull())
tasksObject.contact2.phoneNumber = contact2Node["PhoneNumber"].asString();
if(!contact2Node["State"].isNull())
tasksObject.contact2.state = contact2Node["State"].asString();
if(!contact2Node["ReferenceId"].isNull())
tasksObject.contact2.referenceId = contact2Node["ReferenceId"].asString();
if(!contact2Node["JobId"].isNull())
tasksObject.contact2.jobId = contact2Node["JobId"].asString();
jobsObject.tasks.push_back(tasksObject);
}
auto allSummaryNode = allJobsNode["Summary"]["SummaryItem"];
for (auto allJobsNodeSummarySummaryItem : allSummaryNode)
{
Job::SummaryItem3 summaryObject;
if(!allJobsNodeSummarySummaryItem["Category"].isNull())
summaryObject.category = allJobsNodeSummarySummaryItem["Category"].asString();
if(!allJobsNodeSummarySummaryItem["SummaryName"].isNull())
summaryObject.summaryName = allJobsNodeSummarySummaryItem["SummaryName"].asString();
if(!allJobsNodeSummarySummaryItem["Content"].isNull())
summaryObject.content = allJobsNodeSummarySummaryItem["Content"].asString();
jobsObject.summary.push_back(summaryObject);
}
auto allCallingNumbers = value["CallingNumbers"]["String"];
for (auto value : allCallingNumbers)
jobsObject.callingNumbers.push_back(value.asString());
jobs_.push_back(jobsObject);
}
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 GetJobByPhoneNumberResult::getMessage()const
{
return message_;
}
std::vector<GetJobByPhoneNumberResult::Job> GetJobByPhoneNumberResult::getJobs()const
{
return jobs_;
}
int GetJobByPhoneNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetJobByPhoneNumberResult::getCode()const
{
return code_;
}
bool GetJobByPhoneNumberResult::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/GetJobStatusByCallIdRequest.h>
using AlibabaCloud::OutboundBot::Model::GetJobStatusByCallIdRequest;
GetJobStatusByCallIdRequest::GetJobStatusByCallIdRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetJobStatusByCallId")
{
setMethod(HttpRequest::Method::Post);
}
GetJobStatusByCallIdRequest::~GetJobStatusByCallIdRequest()
{}
std::string GetJobStatusByCallIdRequest::getCallId()const
{
return callId_;
}
void GetJobStatusByCallIdRequest::setCallId(const std::string& callId)
{
callId_ = callId;
setParameter("CallId", callId);
}
std::string GetJobStatusByCallIdRequest::getInstanceId()const
{
return instanceId_;
}
void GetJobStatusByCallIdRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,222 @@
/*
* 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/GetJobStatusByCallIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetJobStatusByCallIdResult::GetJobStatusByCallIdResult() :
ServiceResult()
{}
GetJobStatusByCallIdResult::GetJobStatusByCallIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetJobStatusByCallIdResult::~GetJobStatusByCallIdResult()
{}
void GetJobStatusByCallIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobNode = value["Job"];
if(!jobNode["JobId"].isNull())
job_.jobId = jobNode["JobId"].asString();
if(!jobNode["JobGroupId"].isNull())
job_.jobGroupId = jobNode["JobGroupId"].asString();
if(!jobNode["ScenarioId"].isNull())
job_.scenarioId = jobNode["ScenarioId"].asString();
if(!jobNode["StrategyId"].isNull())
job_.strategyId = jobNode["StrategyId"].asString();
if(!jobNode["Priority"].isNull())
job_.priority = std::stoi(jobNode["Priority"].asString());
if(!jobNode["Status"].isNull())
job_.status = jobNode["Status"].asString();
if(!jobNode["ReferenceId"].isNull())
job_.referenceId = jobNode["ReferenceId"].asString();
if(!jobNode["FailureReason"].isNull())
job_.failureReason = jobNode["FailureReason"].asString();
auto allContactsNode = jobNode["Contacts"]["Contact"];
for (auto jobNodeContactsContact : allContactsNode)
{
Job::Contact contactObject;
if(!jobNodeContactsContact["ContactId"].isNull())
contactObject.contactId = jobNodeContactsContact["ContactId"].asString();
if(!jobNodeContactsContact["ContactName"].isNull())
contactObject.contactName = jobNodeContactsContact["ContactName"].asString();
if(!jobNodeContactsContact["Honorific"].isNull())
contactObject.honorific = jobNodeContactsContact["Honorific"].asString();
if(!jobNodeContactsContact["Role"].isNull())
contactObject.role = jobNodeContactsContact["Role"].asString();
if(!jobNodeContactsContact["PhoneNumber"].isNull())
contactObject.phoneNumber = jobNodeContactsContact["PhoneNumber"].asString();
if(!jobNodeContactsContact["State"].isNull())
contactObject.state = jobNodeContactsContact["State"].asString();
if(!jobNodeContactsContact["ReferenceId"].isNull())
contactObject.referenceId = jobNodeContactsContact["ReferenceId"].asString();
if(!jobNodeContactsContact["JobId"].isNull())
contactObject.jobId = jobNodeContactsContact["JobId"].asString();
job_.contacts.push_back(contactObject);
}
auto allExtrasNode = jobNode["Extras"]["KeyValuePair"];
for (auto jobNodeExtrasKeyValuePair : allExtrasNode)
{
Job::KeyValuePair keyValuePairObject;
if(!jobNodeExtrasKeyValuePair["Key"].isNull())
keyValuePairObject.key = jobNodeExtrasKeyValuePair["Key"].asString();
if(!jobNodeExtrasKeyValuePair["Value"].isNull())
keyValuePairObject.value = jobNodeExtrasKeyValuePair["Value"].asString();
job_.extras.push_back(keyValuePairObject);
}
auto allTasksNode = jobNode["Tasks"]["Task"];
for (auto jobNodeTasksTask : allTasksNode)
{
Job::Task taskObject;
if(!jobNodeTasksTask["TaskId"].isNull())
taskObject.taskId = jobNodeTasksTask["TaskId"].asString();
if(!jobNodeTasksTask["JobId"].isNull())
taskObject.jobId = jobNodeTasksTask["JobId"].asString();
if(!jobNodeTasksTask["ScenarioId"].isNull())
taskObject.scenarioId = jobNodeTasksTask["ScenarioId"].asString();
if(!jobNodeTasksTask["ChatbotId"].isNull())
taskObject.chatbotId = jobNodeTasksTask["ChatbotId"].asString();
if(!jobNodeTasksTask["PlanedTime"].isNull())
taskObject.planedTime = std::stol(jobNodeTasksTask["PlanedTime"].asString());
if(!jobNodeTasksTask["ActualTime"].isNull())
taskObject.actualTime = std::stol(jobNodeTasksTask["ActualTime"].asString());
if(!jobNodeTasksTask["EndTime"].isNull())
taskObject.endTime = std::stol(jobNodeTasksTask["EndTime"].asString());
if(!jobNodeTasksTask["CallingNumber"].isNull())
taskObject.callingNumber = jobNodeTasksTask["CallingNumber"].asString();
if(!jobNodeTasksTask["CalledNumber"].isNull())
taskObject.calledNumber = jobNodeTasksTask["CalledNumber"].asString();
if(!jobNodeTasksTask["CallId"].isNull())
taskObject.callId = jobNodeTasksTask["CallId"].asString();
if(!jobNodeTasksTask["Status"].isNull())
taskObject.status = jobNodeTasksTask["Status"].asString();
if(!jobNodeTasksTask["Brief"].isNull())
taskObject.brief = jobNodeTasksTask["Brief"].asString();
if(!jobNodeTasksTask["Duration"].isNull())
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
{
Job::Task::ConversationDetail conversationObject;
if(!allTasksNodeConversationConversationDetail["ConversationId"].isNull())
conversationObject.conversationId = allTasksNodeConversationConversationDetail["ConversationId"].asString();
if(!allTasksNodeConversationConversationDetail["TaskId"].isNull())
conversationObject.taskId = allTasksNodeConversationConversationDetail["TaskId"].asString();
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
{
Job::Task::ConversationDetail::SummaryItem summary1Object;
if(!allConversationNodeSummarySummaryItem["SummaryId"].isNull())
summary1Object.summaryId = allConversationNodeSummarySummaryItem["SummaryId"].asString();
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
conversationObject.summary1.push_back(summary1Object);
}
taskObject.conversation.push_back(conversationObject);
}
auto contact2Node = value["Contact"];
if(!contact2Node["ContactId"].isNull())
taskObject.contact2.contactId = contact2Node["ContactId"].asString();
if(!contact2Node["ContactName"].isNull())
taskObject.contact2.contactName = contact2Node["ContactName"].asString();
if(!contact2Node["Honorific"].isNull())
taskObject.contact2.honorific = contact2Node["Honorific"].asString();
if(!contact2Node["Role"].isNull())
taskObject.contact2.role = contact2Node["Role"].asString();
if(!contact2Node["PhoneNumber"].isNull())
taskObject.contact2.phoneNumber = contact2Node["PhoneNumber"].asString();
if(!contact2Node["State"].isNull())
taskObject.contact2.state = contact2Node["State"].asString();
if(!contact2Node["ReferenceId"].isNull())
taskObject.contact2.referenceId = contact2Node["ReferenceId"].asString();
if(!contact2Node["JobId"].isNull())
taskObject.contact2.jobId = contact2Node["JobId"].asString();
job_.tasks.push_back(taskObject);
}
auto allSummaryNode = jobNode["Summary"]["SummaryItem"];
for (auto jobNodeSummarySummaryItem : allSummaryNode)
{
Job::SummaryItem3 summaryItem3Object;
if(!jobNodeSummarySummaryItem["SummaryId"].isNull())
summaryItem3Object.summaryId = jobNodeSummarySummaryItem["SummaryId"].asString();
if(!jobNodeSummarySummaryItem["Category"].isNull())
summaryItem3Object.category = jobNodeSummarySummaryItem["Category"].asString();
if(!jobNodeSummarySummaryItem["SummaryName"].isNull())
summaryItem3Object.summaryName = jobNodeSummarySummaryItem["SummaryName"].asString();
if(!jobNodeSummarySummaryItem["Content"].isNull())
summaryItem3Object.content = jobNodeSummarySummaryItem["Content"].asString();
job_.summary.push_back(summaryItem3Object);
}
auto allCallingNumbers = jobNode["CallingNumbers"]["String"];
for (auto value : allCallingNumbers)
job_.callingNumbers.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string GetJobStatusByCallIdResult::getMessage()const
{
return message_;
}
int GetJobStatusByCallIdResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetJobStatusByCallIdResult::Job GetJobStatusByCallIdResult::getJob()const
{
return job_;
}
std::string GetJobStatusByCallIdResult::getCode()const
{
return code_;
}
bool GetJobStatusByCallIdResult::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/GetTagHitsSummaryRequest.h>
using AlibabaCloud::OutboundBot::Model::GetTagHitsSummaryRequest;
GetTagHitsSummaryRequest::GetTagHitsSummaryRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetTagHitsSummary")
{
setMethod(HttpRequest::Method::Post);
}
GetTagHitsSummaryRequest::~GetTagHitsSummaryRequest()
{}
std::string GetTagHitsSummaryRequest::getInstanceId()const
{
return instanceId_;
}
void GetTagHitsSummaryRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GetTagHitsSummaryRequest::getJobGroupId()const
{
return jobGroupId_;
}
void GetTagHitsSummaryRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,108 @@
/*
* 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/GetTagHitsSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetTagHitsSummaryResult::GetTagHitsSummaryResult() :
ServiceResult()
{}
GetTagHitsSummaryResult::GetTagHitsSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTagHitsSummaryResult::~GetTagHitsSummaryResult()
{}
void GetTagHitsSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagHitsListNode = value["TagHitsList"]["TagHits"];
for (auto valueTagHitsListTagHits : allTagHitsListNode)
{
TagHits tagHitsListObject;
if(!valueTagHitsListTagHits["TagName"].isNull())
tagHitsListObject.tagName = valueTagHitsListTagHits["TagName"].asString();
if(!valueTagHitsListTagHits["HitCount"].isNull())
tagHitsListObject.hitCount = std::stoi(valueTagHitsListTagHits["HitCount"].asString());
if(!valueTagHitsListTagHits["TagGroup"].isNull())
tagHitsListObject.tagGroup = valueTagHitsListTagHits["TagGroup"].asString();
tagHitsList_.push_back(tagHitsListObject);
}
auto allTagGroupsNode = value["TagGroups"]["TagGroup"];
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
{
TagGroup tagGroupsObject;
if(!valueTagGroupsTagGroup["Id"].isNull())
tagGroupsObject.id = valueTagGroupsTagGroup["Id"].asString();
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
if(!valueTagGroupsTagGroup["ScriptId"].isNull())
tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString();
if(!valueTagGroupsTagGroup["TagGroup"].isNull())
tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString();
tagGroups_.push_back(tagGroupsObject);
}
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 GetTagHitsSummaryResult::getMessage()const
{
return message_;
}
std::vector<GetTagHitsSummaryResult::TagGroup> GetTagHitsSummaryResult::getTagGroups()const
{
return tagGroups_;
}
int GetTagHitsSummaryResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<GetTagHitsSummaryResult::TagHits> GetTagHitsSummaryResult::getTagHitsList()const
{
return tagHitsList_;
}
std::string GetTagHitsSummaryResult::getCode()const
{
return code_;
}
bool GetTagHitsSummaryResult::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/ImportScriptRequest.h>
using AlibabaCloud::OutboundBot::Model::ImportScriptRequest;
ImportScriptRequest::ImportScriptRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ImportScript")
{
setMethod(HttpRequest::Method::Post);
}
ImportScriptRequest::~ImportScriptRequest()
{}
std::string ImportScriptRequest::getSignatureUrl()const
{
return signatureUrl_;
}
void ImportScriptRequest::setSignatureUrl(const std::string& signatureUrl)
{
signatureUrl_ = signatureUrl;
setParameter("SignatureUrl", signatureUrl);
}
std::string ImportScriptRequest::getInstanceId()const
{
return instanceId_;
}
void ImportScriptRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/ImportScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ImportScriptResult::ImportScriptResult() :
ServiceResult()
{}
ImportScriptResult::ImportScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ImportScriptResult::~ImportScriptResult()
{}
void ImportScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["ScriptId"].isNull())
scriptId_ = value["ScriptId"].asString();
}
std::string ImportScriptResult::getMessage()const
{
return message_;
}
int ImportScriptResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ImportScriptResult::getScriptId()const
{
return scriptId_;
}
std::string ImportScriptResult::getCode()const
{
return code_;
}
bool ImportScriptResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/ListBasicStatisticsReportSubItemsRequest.h>
using AlibabaCloud::OutboundBot::Model::ListBasicStatisticsReportSubItemsRequest;
ListBasicStatisticsReportSubItemsRequest::ListBasicStatisticsReportSubItemsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListBasicStatisticsReportSubItems")
{
setMethod(HttpRequest::Method::Post);
}
ListBasicStatisticsReportSubItemsRequest::~ListBasicStatisticsReportSubItemsRequest()
{}
std::string ListBasicStatisticsReportSubItemsRequest::getTitle()const
{
return title_;
}
void ListBasicStatisticsReportSubItemsRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
int ListBasicStatisticsReportSubItemsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListBasicStatisticsReportSubItemsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListBasicStatisticsReportSubItemsRequest::getInstanceId()const
{
return instanceId_;
}
void ListBasicStatisticsReportSubItemsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListBasicStatisticsReportSubItemsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void ListBasicStatisticsReportSubItemsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
int ListBasicStatisticsReportSubItemsRequest::getPageSize()const
{
return pageSize_;
}
void ListBasicStatisticsReportSubItemsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,108 @@
/*
* 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/ListBasicStatisticsReportSubItemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListBasicStatisticsReportSubItemsResult::ListBasicStatisticsReportSubItemsResult() :
ServiceResult()
{}
ListBasicStatisticsReportSubItemsResult::ListBasicStatisticsReportSubItemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListBasicStatisticsReportSubItemsResult::~ListBasicStatisticsReportSubItemsResult()
{}
void ListBasicStatisticsReportSubItemsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto basicStatisticsReportSubItemsNode = value["BasicStatisticsReportSubItems"];
if(!basicStatisticsReportSubItemsNode["TotalCount"].isNull())
basicStatisticsReportSubItems_.totalCount = std::stoi(basicStatisticsReportSubItemsNode["TotalCount"].asString());
if(!basicStatisticsReportSubItemsNode["PageNumber"].isNull())
basicStatisticsReportSubItems_.pageNumber = std::stoi(basicStatisticsReportSubItemsNode["PageNumber"].asString());
if(!basicStatisticsReportSubItemsNode["PageSize"].isNull())
basicStatisticsReportSubItems_.pageSize = std::stoi(basicStatisticsReportSubItemsNode["PageSize"].asString());
auto allListNode = basicStatisticsReportSubItemsNode["List"]["BasicStatisticsReportSubItem"];
for (auto basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem : allListNode)
{
BasicStatisticsReportSubItems::BasicStatisticsReportSubItem basicStatisticsReportSubItemObject;
if(!basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].isNull())
basicStatisticsReportSubItemObject.basicStatisticsReportSubItemName = basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].asString();
if(!basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Value"].isNull())
basicStatisticsReportSubItemObject.value = basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Value"].asString();
if(!basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Count"].isNull())
basicStatisticsReportSubItemObject.count = std::stoi(basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Count"].asString());
if(!basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Percentage"].isNull())
basicStatisticsReportSubItemObject.percentage = std::stoi(basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Percentage"].asString());
auto allRowNode = allListNode["Row"]["KeyValuePair"];
for (auto allListNodeRowKeyValuePair : allRowNode)
{
BasicStatisticsReportSubItems::BasicStatisticsReportSubItem::KeyValuePair rowObject;
if(!allListNodeRowKeyValuePair["Key"].isNull())
rowObject.key = allListNodeRowKeyValuePair["Key"].asString();
if(!allListNodeRowKeyValuePair["Value"].isNull())
rowObject.value = allListNodeRowKeyValuePair["Value"].asString();
basicStatisticsReportSubItemObject.row.push_back(rowObject);
}
basicStatisticsReportSubItems_.list.push_back(basicStatisticsReportSubItemObject);
}
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 ListBasicStatisticsReportSubItemsResult::getMessage()const
{
return message_;
}
ListBasicStatisticsReportSubItemsResult::BasicStatisticsReportSubItems ListBasicStatisticsReportSubItemsResult::getBasicStatisticsReportSubItems()const
{
return basicStatisticsReportSubItems_;
}
int ListBasicStatisticsReportSubItemsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListBasicStatisticsReportSubItemsResult::getCode()const
{
return code_;
}
bool ListBasicStatisticsReportSubItemsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/ListConversationsWithUnrecognizedIntentsRequest.h>
using AlibabaCloud::OutboundBot::Model::ListConversationsWithUnrecognizedIntentsRequest;
ListConversationsWithUnrecognizedIntentsRequest::ListConversationsWithUnrecognizedIntentsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListConversationsWithUnrecognizedIntents")
{
setMethod(HttpRequest::Method::Post);
}
ListConversationsWithUnrecognizedIntentsRequest::~ListConversationsWithUnrecognizedIntentsRequest()
{}
std::string ListConversationsWithUnrecognizedIntentsRequest::getInstanceId()const
{
return instanceId_;
}
void ListConversationsWithUnrecognizedIntentsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListConversationsWithUnrecognizedIntentsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void ListConversationsWithUnrecognizedIntentsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
std::string ListConversationsWithUnrecognizedIntentsRequest::getNodeId()const
{
return nodeId_;
}
void ListConversationsWithUnrecognizedIntentsRequest::setNodeId(const std::string& nodeId)
{
nodeId_ = nodeId;
setParameter("NodeId", nodeId);
}

View File

@@ -0,0 +1,120 @@
/*
* 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/ListConversationsWithUnrecognizedIntentsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListConversationsWithUnrecognizedIntentsResult::ListConversationsWithUnrecognizedIntentsResult() :
ServiceResult()
{}
ListConversationsWithUnrecognizedIntentsResult::ListConversationsWithUnrecognizedIntentsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListConversationsWithUnrecognizedIntentsResult::~ListConversationsWithUnrecognizedIntentsResult()
{}
void ListConversationsWithUnrecognizedIntentsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allConversationsWithUnrecognizedIntentsNode = value["ConversationsWithUnrecognizedIntents"]["ConversationsWithUnrecognizedIntent"];
for (auto valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent : allConversationsWithUnrecognizedIntentsNode)
{
ConversationsWithUnrecognizedIntent conversationsWithUnrecognizedIntentsObject;
if(!valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent["ConversationsWithUnrecognizedIntentId"].isNull())
conversationsWithUnrecognizedIntentsObject.conversationsWithUnrecognizedIntentId = valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent["ConversationsWithUnrecognizedIntentId"].asString();
if(!valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent["JobId"].isNull())
conversationsWithUnrecognizedIntentsObject.jobId = valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent["JobId"].asString();
auto allConversationNode = allConversationsWithUnrecognizedIntentsNode["Conversation"]["ConversationDetail"];
for (auto allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail : allConversationNode)
{
ConversationsWithUnrecognizedIntent::ConversationDetail conversationObject;
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Id"].isNull())
conversationObject.id = allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Id"].asString();
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Timestamp"].isNull())
conversationObject.timestamp = std::stol(allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Timestamp"].asString());
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Speaker"].isNull())
conversationObject.speaker = allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Speaker"].asString();
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Script"].isNull())
conversationObject.script = allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Script"].asString();
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["NodeId"].isNull())
conversationObject.nodeId = allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["NodeId"].asString();
conversationsWithUnrecognizedIntentsObject.conversation.push_back(conversationObject);
}
auto contactNode = value["Contact"];
if(!contactNode["ContactId"].isNull())
conversationsWithUnrecognizedIntentsObject.contact.contactId = contactNode["ContactId"].asString();
if(!contactNode["ContactName"].isNull())
conversationsWithUnrecognizedIntentsObject.contact.contactName = contactNode["ContactName"].asString();
if(!contactNode["Honorific"].isNull())
conversationsWithUnrecognizedIntentsObject.contact.honorific = contactNode["Honorific"].asString();
if(!contactNode["Role"].isNull())
conversationsWithUnrecognizedIntentsObject.contact.role = contactNode["Role"].asString();
if(!contactNode["PhoneNumber"].isNull())
conversationsWithUnrecognizedIntentsObject.contact.phoneNumber = contactNode["PhoneNumber"].asString();
if(!contactNode["State"].isNull())
conversationsWithUnrecognizedIntentsObject.contact.state = contactNode["State"].asString();
if(!contactNode["ReferenceId"].isNull())
conversationsWithUnrecognizedIntentsObject.contact.referenceId = contactNode["ReferenceId"].asString();
if(!contactNode["JobId"].isNull())
conversationsWithUnrecognizedIntentsObject.contact.jobId = contactNode["JobId"].asString();
conversationsWithUnrecognizedIntents_.push_back(conversationsWithUnrecognizedIntentsObject);
}
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 ListConversationsWithUnrecognizedIntentsResult::getMessage()const
{
return message_;
}
std::vector<ListConversationsWithUnrecognizedIntentsResult::ConversationsWithUnrecognizedIntent> ListConversationsWithUnrecognizedIntentsResult::getConversationsWithUnrecognizedIntents()const
{
return conversationsWithUnrecognizedIntents_;
}
int ListConversationsWithUnrecognizedIntentsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListConversationsWithUnrecognizedIntentsResult::getCode()const
{
return code_;
}
bool ListConversationsWithUnrecognizedIntentsResult::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/ListDialogueFlowsRequest.h>
using AlibabaCloud::OutboundBot::Model::ListDialogueFlowsRequest;
ListDialogueFlowsRequest::ListDialogueFlowsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListDialogueFlows")
{
setMethod(HttpRequest::Method::Post);
}
ListDialogueFlowsRequest::~ListDialogueFlowsRequest()
{}
std::string ListDialogueFlowsRequest::getScriptId()const
{
return scriptId_;
}
void ListDialogueFlowsRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string ListDialogueFlowsRequest::getInstanceId()const
{
return instanceId_;
}
void ListDialogueFlowsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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/ListDialogueFlowsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListDialogueFlowsResult::ListDialogueFlowsResult() :
ServiceResult()
{}
ListDialogueFlowsResult::ListDialogueFlowsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDialogueFlowsResult::~ListDialogueFlowsResult()
{}
void ListDialogueFlowsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDialogueFlowsNode = value["DialogueFlows"]["DialogueFlow"];
for (auto valueDialogueFlowsDialogueFlow : allDialogueFlowsNode)
{
DialogueFlow dialogueFlowsObject;
if(!valueDialogueFlowsDialogueFlow["DialogueFlowId"].isNull())
dialogueFlowsObject.dialogueFlowId = valueDialogueFlowsDialogueFlow["DialogueFlowId"].asString();
if(!valueDialogueFlowsDialogueFlow["DialogueFlowName"].isNull())
dialogueFlowsObject.dialogueFlowName = valueDialogueFlowsDialogueFlow["DialogueFlowName"].asString();
if(!valueDialogueFlowsDialogueFlow["ScriptId"].isNull())
dialogueFlowsObject.scriptId = valueDialogueFlowsDialogueFlow["ScriptId"].asString();
if(!valueDialogueFlowsDialogueFlow["ScriptVersion"].isNull())
dialogueFlowsObject.scriptVersion = valueDialogueFlowsDialogueFlow["ScriptVersion"].asString();
if(!valueDialogueFlowsDialogueFlow["DialogueFlowType"].isNull())
dialogueFlowsObject.dialogueFlowType = valueDialogueFlowsDialogueFlow["DialogueFlowType"].asString();
if(!valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].isNull())
dialogueFlowsObject.dialogueFlowDefinition = valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].asString();
dialogueFlows_.push_back(dialogueFlowsObject);
}
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 ListDialogueFlowsResult::getMessage()const
{
return message_;
}
int ListDialogueFlowsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListDialogueFlowsResult::getCode()const
{
return code_;
}
bool ListDialogueFlowsResult::getSuccess()const
{
return success_;
}
std::vector<ListDialogueFlowsResult::DialogueFlow> ListDialogueFlowsResult::getDialogueFlows()const
{
return dialogueFlows_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/ListGlobalQuestionsRequest.h>
using AlibabaCloud::OutboundBot::Model::ListGlobalQuestionsRequest;
ListGlobalQuestionsRequest::ListGlobalQuestionsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListGlobalQuestions")
{
setMethod(HttpRequest::Method::Post);
}
ListGlobalQuestionsRequest::~ListGlobalQuestionsRequest()
{}
int ListGlobalQuestionsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListGlobalQuestionsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListGlobalQuestionsRequest::getScriptId()const
{
return scriptId_;
}
void ListGlobalQuestionsRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string ListGlobalQuestionsRequest::getInstanceId()const
{
return instanceId_;
}
void ListGlobalQuestionsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListGlobalQuestionsRequest::getPageSize()const
{
return pageSize_;
}
void ListGlobalQuestionsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,102 @@
/*
* 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/ListGlobalQuestionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListGlobalQuestionsResult::ListGlobalQuestionsResult() :
ServiceResult()
{}
ListGlobalQuestionsResult::ListGlobalQuestionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListGlobalQuestionsResult::~ListGlobalQuestionsResult()
{}
void ListGlobalQuestionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto globalQuestionsNode = value["GlobalQuestions"];
if(!globalQuestionsNode["TotalCount"].isNull())
globalQuestions_.totalCount = std::stoi(globalQuestionsNode["TotalCount"].asString());
if(!globalQuestionsNode["PageNumber"].isNull())
globalQuestions_.pageNumber = std::stoi(globalQuestionsNode["PageNumber"].asString());
if(!globalQuestionsNode["PageSize"].isNull())
globalQuestions_.pageSize = std::stoi(globalQuestionsNode["PageSize"].asString());
auto allListNode = globalQuestionsNode["List"]["GlobalQuestion"];
for (auto globalQuestionsNodeListGlobalQuestion : allListNode)
{
GlobalQuestions::GlobalQuestion globalQuestionObject;
if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionId"].isNull())
globalQuestionObject.globalQuestionId = globalQuestionsNodeListGlobalQuestion["GlobalQuestionId"].asString();
if(!globalQuestionsNodeListGlobalQuestion["ScriptId"].isNull())
globalQuestionObject.scriptId = globalQuestionsNodeListGlobalQuestion["ScriptId"].asString();
if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionName"].isNull())
globalQuestionObject.globalQuestionName = globalQuestionsNodeListGlobalQuestion["GlobalQuestionName"].asString();
if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionType"].isNull())
globalQuestionObject.globalQuestionType = globalQuestionsNodeListGlobalQuestion["GlobalQuestionType"].asString();
if(!globalQuestionsNodeListGlobalQuestion["Questions"].isNull())
globalQuestionObject.questions = globalQuestionsNodeListGlobalQuestion["Questions"].asString();
if(!globalQuestionsNodeListGlobalQuestion["Answers"].isNull())
globalQuestionObject.answers = globalQuestionsNodeListGlobalQuestion["Answers"].asString();
globalQuestions_.list.push_back(globalQuestionObject);
}
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 ListGlobalQuestionsResult::getMessage()const
{
return message_;
}
int ListGlobalQuestionsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListGlobalQuestionsResult::GlobalQuestions ListGlobalQuestionsResult::getGlobalQuestions()const
{
return globalQuestions_;
}
std::string ListGlobalQuestionsResult::getCode()const
{
return code_;
}
bool ListGlobalQuestionsResult::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/ListInstancesRequest.h>
using AlibabaCloud::OutboundBot::Model::ListInstancesRequest;
ListInstancesRequest::ListInstancesRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListInstances")
{
setMethod(HttpRequest::Method::Post);
}
ListInstancesRequest::~ListInstancesRequest()
{}

View File

@@ -0,0 +1,99 @@
/*
* 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/ListInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListInstancesResult::ListInstancesResult() :
ServiceResult()
{}
ListInstancesResult::ListInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstancesResult::~ListInstancesResult()
{}
void ListInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstancesNode = value["Instances"]["Instance"];
for (auto valueInstancesInstance : allInstancesNode)
{
Instance instancesObject;
if(!valueInstancesInstance["InstanceId"].isNull())
instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString();
if(!valueInstancesInstance["InstanceName"].isNull())
instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString();
if(!valueInstancesInstance["InstanceDescription"].isNull())
instancesObject.instanceDescription = valueInstancesInstance["InstanceDescription"].asString();
if(!valueInstancesInstance["MaxConcurrentConversation"].isNull())
instancesObject.maxConcurrentConversation = std::stoi(valueInstancesInstance["MaxConcurrentConversation"].asString());
if(!valueInstancesInstance["Owner"].isNull())
instancesObject.owner = valueInstancesInstance["Owner"].asString();
if(!valueInstancesInstance["CreationTime"].isNull())
instancesObject.creationTime = std::stol(valueInstancesInstance["CreationTime"].asString());
if(!valueInstancesInstance["CallCenterInstanceId"].isNull())
instancesObject.callCenterInstanceId = valueInstancesInstance["CallCenterInstanceId"].asString();
if(!valueInstancesInstance["IsTemplateContainer"].isNull())
instancesObject.isTemplateContainer = valueInstancesInstance["IsTemplateContainer"].asString() == "true";
instances_.push_back(instancesObject);
}
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::vector<ListInstancesResult::Instance> ListInstancesResult::getInstances()const
{
return instances_;
}
std::string ListInstancesResult::getMessage()const
{
return message_;
}
int ListInstancesResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListInstancesResult::getCode()const
{
return code_;
}
bool ListInstancesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/ListIntentsRequest.h>
using AlibabaCloud::OutboundBot::Model::ListIntentsRequest;
ListIntentsRequest::ListIntentsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListIntents")
{
setMethod(HttpRequest::Method::Post);
}
ListIntentsRequest::~ListIntentsRequest()
{}
int ListIntentsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListIntentsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListIntentsRequest::getScriptId()const
{
return scriptId_;
}
void ListIntentsRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::string ListIntentsRequest::getInstanceId()const
{
return instanceId_;
}
void ListIntentsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListIntentsRequest::getPageSize()const
{
return pageSize_;
}
void ListIntentsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListIntentsRequest::getKeyword()const
{
return keyword_;
}
void ListIntentsRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}

View File

@@ -0,0 +1,106 @@
/*
* 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/ListIntentsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListIntentsResult::ListIntentsResult() :
ServiceResult()
{}
ListIntentsResult::ListIntentsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListIntentsResult::~ListIntentsResult()
{}
void ListIntentsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto intentsNode = value["Intents"];
if(!intentsNode["TotalCount"].isNull())
intents_.totalCount = std::stoi(intentsNode["TotalCount"].asString());
if(!intentsNode["PageNumber"].isNull())
intents_.pageNumber = std::stoi(intentsNode["PageNumber"].asString());
if(!intentsNode["PageSize"].isNull())
intents_.pageSize = std::stoi(intentsNode["PageSize"].asString());
auto allListNode = intentsNode["List"]["Intent"];
for (auto intentsNodeListIntent : allListNode)
{
Intents::Intent intentObject;
if(!intentsNodeListIntent["IntentId"].isNull())
intentObject.intentId = intentsNodeListIntent["IntentId"].asString();
if(!intentsNodeListIntent["ScriptId"].isNull())
intentObject.scriptId = intentsNodeListIntent["ScriptId"].asString();
if(!intentsNodeListIntent["IntentName"].isNull())
intentObject.intentName = intentsNodeListIntent["IntentName"].asString();
if(!intentsNodeListIntent["IntentDescription"].isNull())
intentObject.intentDescription = intentsNodeListIntent["IntentDescription"].asString();
if(!intentsNodeListIntent["Utterances"].isNull())
intentObject.utterances = intentsNodeListIntent["Utterances"].asString();
if(!intentsNodeListIntent["Keywords"].isNull())
intentObject.keywords = intentsNodeListIntent["Keywords"].asString();
if(!intentsNodeListIntent["CreateTime"].isNull())
intentObject.createTime = std::stol(intentsNodeListIntent["CreateTime"].asString());
if(!intentsNodeListIntent["UpdateTime"].isNull())
intentObject.updateTime = std::stol(intentsNodeListIntent["UpdateTime"].asString());
intents_.list.push_back(intentObject);
}
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 ListIntentsResult::getMessage()const
{
return message_;
}
int ListIntentsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListIntentsResult::Intents ListIntentsResult::getIntents()const
{
return intents_;
}
std::string ListIntentsResult::getCode()const
{
return code_;
}
bool ListIntentsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/ListJobGroupsRequest.h>
using AlibabaCloud::OutboundBot::Model::ListJobGroupsRequest;
ListJobGroupsRequest::ListJobGroupsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroups")
{
setMethod(HttpRequest::Method::Post);
}
ListJobGroupsRequest::~ListJobGroupsRequest()
{}
long ListJobGroupsRequest::getEndTime()const
{
return endTime_;
}
void ListJobGroupsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long ListJobGroupsRequest::getStartTime()const
{
return startTime_;
}
void ListJobGroupsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int ListJobGroupsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListJobGroupsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListJobGroupsRequest::getInstanceId()const
{
return instanceId_;
}
void ListJobGroupsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListJobGroupsRequest::getPageSize()const
{
return pageSize_;
}
void ListJobGroupsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,120 @@
/*
* 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/ListJobGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListJobGroupsResult::ListJobGroupsResult() :
ServiceResult()
{}
ListJobGroupsResult::ListJobGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListJobGroupsResult::~ListJobGroupsResult()
{}
void ListJobGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobGroupsNode = value["JobGroups"];
if(!jobGroupsNode["TotalCount"].isNull())
jobGroups_.totalCount = std::stoi(jobGroupsNode["TotalCount"].asString());
if(!jobGroupsNode["PageNumber"].isNull())
jobGroups_.pageNumber = std::stoi(jobGroupsNode["PageNumber"].asString());
if(!jobGroupsNode["PageSize"].isNull())
jobGroups_.pageSize = std::stoi(jobGroupsNode["PageSize"].asString());
auto allListNode = jobGroupsNode["List"]["JobGroup"];
for (auto jobGroupsNodeListJobGroup : allListNode)
{
JobGroups::JobGroup jobGroupObject;
if(!jobGroupsNodeListJobGroup["JobGroupId"].isNull())
jobGroupObject.jobGroupId = jobGroupsNodeListJobGroup["JobGroupId"].asString();
if(!jobGroupsNodeListJobGroup["JobGroupName"].isNull())
jobGroupObject.jobGroupName = jobGroupsNodeListJobGroup["JobGroupName"].asString();
if(!jobGroupsNodeListJobGroup["JobGroupDescription"].isNull())
jobGroupObject.jobGroupDescription = jobGroupsNodeListJobGroup["JobGroupDescription"].asString();
if(!jobGroupsNodeListJobGroup["ScriptId"].isNull())
jobGroupObject.scriptId = jobGroupsNodeListJobGroup["ScriptId"].asString();
if(!jobGroupsNodeListJobGroup["ScriptName"].isNull())
jobGroupObject.scriptName = jobGroupsNodeListJobGroup["ScriptName"].asString();
if(!jobGroupsNodeListJobGroup["CreationTime"].isNull())
jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["CreationTime"].asString());
auto strategyNode = value["Strategy"];
if(!strategyNode["StartTime"].isNull())
jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
if(!strategyNode["EndTime"].isNull())
jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
auto progressNode = value["Progress"];
if(!progressNode["TotalJobs"].isNull())
jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
if(!progressNode["Status"].isNull())
jobGroupObject.progress.status = progressNode["Status"].asString();
if(!progressNode["TotalNotAnswered"].isNull())
jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
if(!progressNode["TotalCompleted"].isNull())
jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
if(!progressNode["StartTime"].isNull())
jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].asString());
if(!progressNode["Duration"].isNull())
jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString());
jobGroups_.list.push_back(jobGroupObject);
}
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 ListJobGroupsResult::getMessage()const
{
return message_;
}
int ListJobGroupsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListJobGroupsResult::getCode()const
{
return code_;
}
ListJobGroupsResult::JobGroups ListJobGroupsResult::getJobGroups()const
{
return jobGroups_;
}
bool ListJobGroupsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/ListJobGroupsWithScenarioRequest.h>
using AlibabaCloud::OutboundBot::Model::ListJobGroupsWithScenarioRequest;
ListJobGroupsWithScenarioRequest::ListJobGroupsWithScenarioRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroupsWithScenario")
{
setMethod(HttpRequest::Method::Post);
}
ListJobGroupsWithScenarioRequest::~ListJobGroupsWithScenarioRequest()
{}
long ListJobGroupsWithScenarioRequest::getEndTime()const
{
return endTime_;
}
void ListJobGroupsWithScenarioRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long ListJobGroupsWithScenarioRequest::getStartTime()const
{
return startTime_;
}
void ListJobGroupsWithScenarioRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int ListJobGroupsWithScenarioRequest::getPageNumber()const
{
return pageNumber_;
}
void ListJobGroupsWithScenarioRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListJobGroupsWithScenarioRequest::getInstanceId()const
{
return instanceId_;
}
void ListJobGroupsWithScenarioRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListJobGroupsWithScenarioRequest::getPageSize()const
{
return pageSize_;
}
void ListJobGroupsWithScenarioRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,170 @@
/*
* 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/ListJobGroupsWithScenarioResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListJobGroupsWithScenarioResult::ListJobGroupsWithScenarioResult() :
ServiceResult()
{}
ListJobGroupsWithScenarioResult::ListJobGroupsWithScenarioResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListJobGroupsWithScenarioResult::~ListJobGroupsWithScenarioResult()
{}
void ListJobGroupsWithScenarioResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobGroupsNode = value["JobGroups"];
if(!jobGroupsNode["TotalCount"].isNull())
jobGroups_.totalCount = std::stoi(jobGroupsNode["TotalCount"].asString());
if(!jobGroupsNode["PageNumber"].isNull())
jobGroups_.pageNumber = std::stoi(jobGroupsNode["PageNumber"].asString());
if(!jobGroupsNode["PageSize"].isNull())
jobGroups_.pageSize = std::stoi(jobGroupsNode["PageSize"].asString());
auto allListNode = jobGroupsNode["List"]["JobGroup"];
for (auto jobGroupsNodeListJobGroup : allListNode)
{
JobGroups::JobGroup jobGroupObject;
if(!jobGroupsNodeListJobGroup["JobGroupId"].isNull())
jobGroupObject.jobGroupId = jobGroupsNodeListJobGroup["JobGroupId"].asString();
if(!jobGroupsNodeListJobGroup["JobGroupName"].isNull())
jobGroupObject.jobGroupName = jobGroupsNodeListJobGroup["JobGroupName"].asString();
if(!jobGroupsNodeListJobGroup["ScenarioName"].isNull())
jobGroupObject.scenarioName = jobGroupsNodeListJobGroup["ScenarioName"].asString();
if(!jobGroupsNodeListJobGroup["JobGroupDescription"].isNull())
jobGroupObject.jobGroupDescription = jobGroupsNodeListJobGroup["JobGroupDescription"].asString();
if(!jobGroupsNodeListJobGroup["ScenarioId"].isNull())
jobGroupObject.scenarioId = jobGroupsNodeListJobGroup["ScenarioId"].asString();
if(!jobGroupsNodeListJobGroup["JobFilePath"].isNull())
jobGroupObject.jobFilePath = jobGroupsNodeListJobGroup["JobFilePath"].asString();
if(!jobGroupsNodeListJobGroup["CreationTime"].isNull())
jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["CreationTime"].asString());
auto strategyNode = value["Strategy"];
if(!strategyNode["StrategyId"].isNull())
jobGroupObject.strategy.strategyId = strategyNode["StrategyId"].asString();
if(!strategyNode["StrategyName"].isNull())
jobGroupObject.strategy.strategyName = strategyNode["StrategyName"].asString();
if(!strategyNode["Description"].isNull())
jobGroupObject.strategy.description = strategyNode["Description"].asString();
if(!strategyNode["Type"].isNull())
jobGroupObject.strategy.type = strategyNode["Type"].asString();
if(!strategyNode["StartTime"].isNull())
jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
if(!strategyNode["EndTime"].isNull())
jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
if(!strategyNode["RepeatBy"].isNull())
jobGroupObject.strategy.repeatBy = strategyNode["RepeatBy"].asString();
if(!strategyNode["MaxAttemptsPerDay"].isNull())
jobGroupObject.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
if(!strategyNode["MinAttemptInterval"].isNull())
jobGroupObject.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
if(!strategyNode["Customized"].isNull())
jobGroupObject.strategy.customized = strategyNode["Customized"].asString();
if(!strategyNode["RoutingStrategy"].isNull())
jobGroupObject.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
if(!strategyNode["FollowUpStrategy"].isNull())
jobGroupObject.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
if(!strategyNode["IsTemplate"].isNull())
jobGroupObject.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
{
JobGroups::JobGroup::Strategy::TimeFrame timeFrameObject;
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
jobGroupObject.strategy.workingTime.push_back(timeFrameObject);
}
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
for (auto value : allRepeatDays)
jobGroupObject.strategy.repeatDays.push_back(value.asString());
auto progressNode = value["Progress"];
if(!progressNode["TotalJobs"].isNull())
jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
if(!progressNode["Status"].isNull())
jobGroupObject.progress.status = progressNode["Status"].asString();
if(!progressNode["TotalNotAnswered"].isNull())
jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
if(!progressNode["TotalCompleted"].isNull())
jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
if(!progressNode["StartTime"].isNull())
jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].asString());
if(!progressNode["Duration"].isNull())
jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString());
auto allCategoriesNode = progressNode["Categories"]["KeyValuePair"];
for (auto progressNodeCategoriesKeyValuePair : allCategoriesNode)
{
JobGroups::JobGroup::Progress::KeyValuePair keyValuePairObject;
if(!progressNodeCategoriesKeyValuePair["Key"].isNull())
keyValuePairObject.key = progressNodeCategoriesKeyValuePair["Key"].asString();
if(!progressNodeCategoriesKeyValuePair["Value"].isNull())
keyValuePairObject.value = progressNodeCategoriesKeyValuePair["Value"].asString();
jobGroupObject.progress.categories.push_back(keyValuePairObject);
}
auto allCallingNumbers = value["CallingNumbers"]["String"];
for (auto value : allCallingNumbers)
jobGroupObject.callingNumbers.push_back(value.asString());
jobGroups_.list.push_back(jobGroupObject);
}
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 ListJobGroupsWithScenarioResult::getMessage()const
{
return message_;
}
int ListJobGroupsWithScenarioResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListJobGroupsWithScenarioResult::getCode()const
{
return code_;
}
ListJobGroupsWithScenarioResult::JobGroups ListJobGroupsWithScenarioResult::getJobGroups()const
{
return jobGroups_;
}
bool ListJobGroupsWithScenarioResult::getSuccess()const
{
return success_;
}

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/ListJobsByGroupRequest.h>
using AlibabaCloud::OutboundBot::Model::ListJobsByGroupRequest;
ListJobsByGroupRequest::ListJobsByGroupRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListJobsByGroup")
{
setMethod(HttpRequest::Method::Post);
}
ListJobsByGroupRequest::~ListJobsByGroupRequest()
{}
std::string ListJobsByGroupRequest::getJobStatus()const
{
return jobStatus_;
}
void ListJobsByGroupRequest::setJobStatus(const std::string& jobStatus)
{
jobStatus_ = jobStatus;
setParameter("JobStatus", jobStatus);
}
int ListJobsByGroupRequest::getPageNumber()const
{
return pageNumber_;
}
void ListJobsByGroupRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListJobsByGroupRequest::getInstanceId()const
{
return instanceId_;
}
void ListJobsByGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListJobsByGroupRequest::getJobFailureReason()const
{
return jobFailureReason_;
}
void ListJobsByGroupRequest::setJobFailureReason(const std::string& jobFailureReason)
{
jobFailureReason_ = jobFailureReason;
setParameter("JobFailureReason", jobFailureReason);
}
std::string ListJobsByGroupRequest::getJobGroupId()const
{
return jobGroupId_;
}
void ListJobsByGroupRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
int ListJobsByGroupRequest::getPageSize()const
{
return pageSize_;
}
void ListJobsByGroupRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

Some files were not shown because too many files have changed in this diff Show More