regenerate code
This commit is contained in:
@@ -39,16 +39,16 @@ void AssignJobsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CancelJobsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -42,43 +42,43 @@ void CreateBatchJobsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!batchJobNode["JobFilePath"].isNull())
|
||||
batchJob_.jobFilePath = batchJobNode["JobFilePath"].asString();
|
||||
if(!batchJobNode["JobGroupDescription"].isNull())
|
||||
batchJob_.jobGroupDescription = batchJobNode["JobGroupDescription"].asString();
|
||||
if(!batchJobNode["JobGroupName"].isNull())
|
||||
batchJob_.jobGroupName = batchJobNode["JobGroupName"].asString();
|
||||
if(!batchJobNode["ScenarioId"].isNull())
|
||||
batchJob_.scenarioId = batchJobNode["ScenarioId"].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["EndTime"].isNull())
|
||||
batchJob_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
batchJob_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
batchJob_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
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["RepeatBy"].isNull())
|
||||
batchJob_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
batchJob_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
batchJob_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
batchJob_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
batchJob_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
batchJob_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
batchJob_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ void CreateBatchJobsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateDialogueFlowResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateGlobalQuestionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void CreateInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateIntentResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,45 +40,45 @@ void CreateJobGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
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["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
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["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ void CreateJobGroupResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateOutboundCallNumberResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumberId_ = value["OutboundCallNumberId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void CreateScriptResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptNode = value["Script"];
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["ScriptId"].isNull())
|
||||
script_.scriptId = scriptNode["ScriptId"].asString();
|
||||
if(!scriptNode["ScriptName"].isNull())
|
||||
script_.scriptName = scriptNode["ScriptName"].asString();
|
||||
if(!scriptNode["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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateScriptWaveformResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ScriptWaveformId"].isNull())
|
||||
scriptWaveformId_ = value["ScriptWaveformId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateTagResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TagId"].isNull())
|
||||
tagId_ = value["TagId"].asString();
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteDialogueFlowResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteGlobalQuestionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteIntentResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteJobGroupResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteOutboundCallNumberResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteScriptWaveformResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void DescribeGlobalQuestionResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto globalQuestionNode = value["GlobalQuestion"];
|
||||
if(!globalQuestionNode["Answers"].isNull())
|
||||
globalQuestion_.answers = globalQuestionNode["Answers"].asString();
|
||||
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(!globalQuestionNode["ScriptId"].isNull())
|
||||
globalQuestion_.scriptId = globalQuestionNode["ScriptId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,30 +40,30 @@ void DescribeIntentResult::parse(const std::string &payload)
|
||||
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["IntentDescription"].isNull())
|
||||
intent_.intentDescription = intentNode["IntentDescription"].asString();
|
||||
if(!intentNode["IntentId"].isNull())
|
||||
intent_.intentId = intentNode["IntentId"].asString();
|
||||
if(!intentNode["IntentName"].isNull())
|
||||
intent_.intentName = intentNode["IntentName"].asString();
|
||||
if(!intentNode["Keywords"].isNull())
|
||||
intent_.keywords = intentNode["Keywords"].asString();
|
||||
if(!intentNode["ScriptId"].isNull())
|
||||
intent_.scriptId = intentNode["ScriptId"].asString();
|
||||
if(!intentNode["UpdateTime"].isNull())
|
||||
intent_.updateTime = std::stol(intentNode["UpdateTime"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!intentNode["Utterances"].isNull())
|
||||
intent_.utterances = intentNode["Utterances"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,92 @@ void DescribeJobGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
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 progressNode = jobGroupNode["Progress"];
|
||||
if(!progressNode["Cancelled"].isNull())
|
||||
jobGroup_.progress.cancelled = std::stoi(progressNode["Cancelled"].asString());
|
||||
if(!progressNode["Duration"].isNull())
|
||||
jobGroup_.progress.duration = std::stoi(progressNode["Duration"].asString());
|
||||
if(!progressNode["Executing"].isNull())
|
||||
jobGroup_.progress.executing = std::stoi(progressNode["Executing"].asString());
|
||||
if(!progressNode["Failed"].isNull())
|
||||
jobGroup_.progress.failed = std::stoi(progressNode["Failed"].asString());
|
||||
if(!progressNode["Paused"].isNull())
|
||||
jobGroup_.progress.paused = std::stoi(progressNode["Paused"].asString());
|
||||
if(!progressNode["Scheduling"].isNull())
|
||||
jobGroup_.progress.scheduling = std::stoi(progressNode["Scheduling"].asString());
|
||||
if(!progressNode["StartTime"].isNull())
|
||||
jobGroup_.progress.startTime = std::stol(progressNode["StartTime"].asString());
|
||||
if(!progressNode["Status"].isNull())
|
||||
jobGroup_.progress.status = progressNode["Status"].asString();
|
||||
if(!progressNode["TotalCompleted"].isNull())
|
||||
jobGroup_.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
|
||||
if(!progressNode["TotalJobs"].isNull())
|
||||
jobGroup_.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
|
||||
if(!progressNode["TotalNotAnswered"].isNull())
|
||||
jobGroup_.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
|
||||
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 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 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["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
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["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -96,60 +139,17 @@ void DescribeJobGroupResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!jobNode["JobGroupId"].isNull())
|
||||
job_.jobGroupId = jobNode["JobGroupId"].asString();
|
||||
if(!jobNode["JobId"].isNull())
|
||||
job_.jobId = jobNode["JobId"].asString();
|
||||
if(!jobNode["Priority"].isNull())
|
||||
job_.priority = std::stoi(jobNode["Priority"].asString());
|
||||
if(!jobNode["ReferenceId"].isNull())
|
||||
job_.referenceId = jobNode["ReferenceId"].asString();
|
||||
if(!jobNode["ScenarioId"].isNull())
|
||||
job_.scenarioId = jobNode["ScenarioId"].asString();
|
||||
if(!jobNode["Status"].isNull())
|
||||
job_.status = jobNode["Status"].asString();
|
||||
if(!jobNode["StrategyId"].isNull())
|
||||
job_.strategyId = jobNode["StrategyId"].asString();
|
||||
if(!jobNode["SystemPriority"].isNull())
|
||||
job_.systemPriority = std::stoi(jobNode["SystemPriority"].asString());
|
||||
auto allContactsNode = jobNode["Contacts"]["Contact"];
|
||||
for (auto jobNodeContactsContact : allContactsNode)
|
||||
{
|
||||
@@ -68,16 +68,16 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!jobNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactObject.phoneNumber = jobNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!jobNodeContactsContact["ReferenceId"].isNull())
|
||||
contactObject.referenceId = jobNodeContactsContact["ReferenceId"].asString();
|
||||
if(!jobNodeContactsContact["Role"].isNull())
|
||||
contactObject.role = jobNodeContactsContact["Role"].asString();
|
||||
if(!jobNodeContactsContact["State"].isNull())
|
||||
contactObject.state = jobNodeContactsContact["State"].asString();
|
||||
job_.contacts.push_back(contactObject);
|
||||
}
|
||||
auto allExtrasNode = jobNode["Extras"]["KeyValuePair"];
|
||||
@@ -90,100 +90,100 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
keyValuePairObject.value = jobNodeExtrasKeyValuePair["Value"].asString();
|
||||
job_.extras.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allSummaryNode = jobNode["Summary"]["SummaryItem"];
|
||||
for (auto jobNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Job::SummaryItem summaryItemObject;
|
||||
if(!jobNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryItemObject.category = jobNodeSummarySummaryItem["Category"].asString();
|
||||
if(!jobNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryItemObject.content = jobNodeSummarySummaryItem["Content"].asString();
|
||||
if(!jobNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryItemObject.summaryName = jobNodeSummarySummaryItem["SummaryName"].asString();
|
||||
job_.summary.push_back(summaryItemObject);
|
||||
}
|
||||
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["CallId"].isNull())
|
||||
taskObject.callId = jobNodeTasksTask["CallId"].asString();
|
||||
if(!jobNodeTasksTask["CalledNumber"].isNull())
|
||||
taskObject.calledNumber = jobNodeTasksTask["CalledNumber"].asString();
|
||||
if(!jobNodeTasksTask["CallingNumber"].isNull())
|
||||
taskObject.callingNumber = jobNodeTasksTask["CallingNumber"].asString();
|
||||
if(!jobNodeTasksTask["ChatbotId"].isNull())
|
||||
taskObject.chatbotId = jobNodeTasksTask["ChatbotId"].asString();
|
||||
if(!jobNodeTasksTask["Duration"].isNull())
|
||||
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
|
||||
if(!jobNodeTasksTask["JobId"].isNull())
|
||||
taskObject.jobId = jobNodeTasksTask["JobId"].asString();
|
||||
if(!jobNodeTasksTask["PlanedTime"].isNull())
|
||||
taskObject.planedTime = std::stol(jobNodeTasksTask["PlanedTime"].asString());
|
||||
if(!jobNodeTasksTask["ScenarioId"].isNull())
|
||||
taskObject.scenarioId = jobNodeTasksTask["ScenarioId"].asString();
|
||||
if(!jobNodeTasksTask["Status"].isNull())
|
||||
taskObject.status = jobNodeTasksTask["Status"].asString();
|
||||
if(!jobNodeTasksTask["TaskId"].isNull())
|
||||
taskObject.taskId = jobNodeTasksTask["TaskId"].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();
|
||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
||||
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
|
||||
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
|
||||
{
|
||||
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
||||
Job::Task::ConversationDetail::SummaryItem2 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();
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].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();
|
||||
auto contact3Node = value["Contact"];
|
||||
if(!contact3Node["ContactId"].isNull())
|
||||
taskObject.contact3.contactId = contact3Node["ContactId"].asString();
|
||||
if(!contact3Node["ContactName"].isNull())
|
||||
taskObject.contact3.contactName = contact3Node["ContactName"].asString();
|
||||
if(!contact3Node["Honorific"].isNull())
|
||||
taskObject.contact3.honorific = contact3Node["Honorific"].asString();
|
||||
if(!contact3Node["JobId"].isNull())
|
||||
taskObject.contact3.jobId = contact3Node["JobId"].asString();
|
||||
if(!contact3Node["PhoneNumber"].isNull())
|
||||
taskObject.contact3.phoneNumber = contact3Node["PhoneNumber"].asString();
|
||||
if(!contact3Node["ReferenceId"].isNull())
|
||||
taskObject.contact3.referenceId = contact3Node["ReferenceId"].asString();
|
||||
if(!contact3Node["Role"].isNull())
|
||||
taskObject.contact3.role = contact3Node["Role"].asString();
|
||||
if(!contact3Node["State"].isNull())
|
||||
taskObject.contact3.state = contact3Node["State"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void DescribeScriptResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptNode = value["Script"];
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["ScriptId"].isNull())
|
||||
script_.scriptId = scriptNode["ScriptId"].asString();
|
||||
if(!scriptNode["ScriptName"].isNull())
|
||||
script_.scriptName = scriptNode["ScriptName"].asString();
|
||||
if(!scriptNode["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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void DescribeScriptVoiceConfigResult::parse(const std::string &payload)
|
||||
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["ScriptId"].isNull())
|
||||
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -42,24 +42,24 @@ void DescribeTTSConfigResult::parse(const std::string &payload)
|
||||
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["ScriptId"].isNull())
|
||||
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
|
||||
if(!tTSConfigNode["SpeechRate"].isNull())
|
||||
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
|
||||
if(!tTSConfigNode["Voice"].isNull())
|
||||
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
|
||||
if(!tTSConfigNode["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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
51
outboundbot/src/model/DescribeTagHitsSummaryRequest.cc
Normal file
51
outboundbot/src/model/DescribeTagHitsSummaryRequest.cc
Normal 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/DescribeTagHitsSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTagHitsSummaryRequest;
|
||||
|
||||
DescribeTagHitsSummaryRequest::DescribeTagHitsSummaryRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTagHitsSummary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTagHitsSummaryRequest::~DescribeTagHitsSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTagHitsSummaryRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeTagHitsSummaryRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeTagHitsSummaryRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DescribeTagHitsSummaryRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
108
outboundbot/src/model/DescribeTagHitsSummaryResult.cc
Normal file
108
outboundbot/src/model/DescribeTagHitsSummaryResult.cc
Normal 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/DescribeTagHitsSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
DescribeTagHitsSummaryResult::DescribeTagHitsSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTagHitsSummaryResult::DescribeTagHitsSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTagHitsSummaryResult::~DescribeTagHitsSummaryResult()
|
||||
{}
|
||||
|
||||
void DescribeTagHitsSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagGroupsNode = value["TagGroups"]["TagGroup"];
|
||||
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
|
||||
{
|
||||
TagGroup tagGroupsObject;
|
||||
if(!valueTagGroupsTagGroup["Id"].isNull())
|
||||
tagGroupsObject.id = valueTagGroupsTagGroup["Id"].asString();
|
||||
if(!valueTagGroupsTagGroup["ScriptId"].isNull())
|
||||
tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroup"].isNull())
|
||||
tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
|
||||
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
|
||||
tagGroups_.push_back(tagGroupsObject);
|
||||
}
|
||||
auto allTagHitsListNode = value["TagHitsList"]["TagHits"];
|
||||
for (auto valueTagHitsListTagHits : allTagHitsListNode)
|
||||
{
|
||||
TagHits tagHitsListObject;
|
||||
if(!valueTagHitsListTagHits["HitCount"].isNull())
|
||||
tagHitsListObject.hitCount = std::stoi(valueTagHitsListTagHits["HitCount"].asString());
|
||||
if(!valueTagHitsListTagHits["TagGroup"].isNull())
|
||||
tagHitsListObject.tagGroup = valueTagHitsListTagHits["TagGroup"].asString();
|
||||
if(!valueTagHitsListTagHits["TagName"].isNull())
|
||||
tagHitsListObject.tagName = valueTagHitsListTagHits["TagName"].asString();
|
||||
tagHitsList_.push_back(tagHitsListObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeTagHitsSummaryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTagHitsSummaryResult::TagGroup> DescribeTagHitsSummaryResult::getTagGroups()const
|
||||
{
|
||||
return tagGroups_;
|
||||
}
|
||||
|
||||
int DescribeTagHitsSummaryResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTagHitsSummaryResult::TagHits> DescribeTagHitsSummaryResult::getTagHitsList()const
|
||||
{
|
||||
return tagHitsList_;
|
||||
}
|
||||
|
||||
std::string DescribeTagHitsSummaryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeTagHitsSummaryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -38,39 +38,6 @@ void DialogueRequest::setCallId(const std::string& 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_;
|
||||
@@ -93,17 +60,6 @@ void DialogueRequest::setCalledNumber(const std::string& 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_;
|
||||
@@ -148,3 +104,47 @@ void DialogueRequest::setUtterance(const std::string& utterance)
|
||||
setParameter("Utterance", utterance);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionKey()const
|
||||
{
|
||||
return actionKey_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setActionKey(const std::string& actionKey)
|
||||
{
|
||||
actionKey_ = actionKey;
|
||||
setParameter("ActionKey", actionKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,22 +40,22 @@ void DialogueResult::parse(const std::string &payload)
|
||||
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["Content"].isNull())
|
||||
feedback_.content = feedbackNode["Content"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void DuplicateScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ScriptId"].isNull())
|
||||
scriptId_ = value["ScriptId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -42,14 +42,14 @@ void ExportScriptResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void ImportScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ScriptId"].isNull())
|
||||
scriptId_ = value["ScriptId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,28 +43,28 @@ void ListDialogueFlowsResult::parse(const std::string &payload)
|
||||
for (auto valueDialogueFlowsDialogueFlow : allDialogueFlowsNode)
|
||||
{
|
||||
DialogueFlow dialogueFlowsObject;
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowDefinition = valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowId"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowId = valueDialogueFlowsDialogueFlow["DialogueFlowId"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowName"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowName = valueDialogueFlowsDialogueFlow["DialogueFlowName"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowType"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowType = valueDialogueFlowsDialogueFlow["DialogueFlowType"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,38 +40,38 @@ void ListGlobalQuestionsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!globalQuestionsNode["TotalCount"].isNull())
|
||||
globalQuestions_.totalCount = std::stoi(globalQuestionsNode["TotalCount"].asString());
|
||||
auto allListNode = globalQuestionsNode["List"]["GlobalQuestion"];
|
||||
for (auto globalQuestionsNodeListGlobalQuestion : allListNode)
|
||||
{
|
||||
GlobalQuestions::GlobalQuestion globalQuestionObject;
|
||||
if(!globalQuestionsNodeListGlobalQuestion["Answers"].isNull())
|
||||
globalQuestionObject.answers = globalQuestionsNodeListGlobalQuestion["Answers"].asString();
|
||||
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();
|
||||
if(!globalQuestionsNodeListGlobalQuestion["ScriptId"].isNull())
|
||||
globalQuestionObject.scriptId = globalQuestionsNodeListGlobalQuestion["ScriptId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,32 @@ void ListInstancesResult::parse(const std::string &payload)
|
||||
for (auto valueInstancesInstance : allInstancesNode)
|
||||
{
|
||||
Instance instancesObject;
|
||||
if(!valueInstancesInstance["CallCenterInstanceId"].isNull())
|
||||
instancesObject.callCenterInstanceId = valueInstancesInstance["CallCenterInstanceId"].asString();
|
||||
if(!valueInstancesInstance["CreationTime"].isNull())
|
||||
instancesObject.creationTime = std::stol(valueInstancesInstance["CreationTime"].asString());
|
||||
if(!valueInstancesInstance["InstanceDescription"].isNull())
|
||||
instancesObject.instanceDescription = valueInstancesInstance["InstanceDescription"].asString();
|
||||
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["IsTemplateContainer"].isNull())
|
||||
instancesObject.isTemplateContainer = valueInstancesInstance["IsTemplateContainer"].asString() == "true";
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,42 +40,42 @@ void ListIntentsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!intentsNode["TotalCount"].isNull())
|
||||
intents_.totalCount = std::stoi(intentsNode["TotalCount"].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["IntentDescription"].isNull())
|
||||
intentObject.intentDescription = intentsNodeListIntent["IntentDescription"].asString();
|
||||
if(!intentsNodeListIntent["IntentId"].isNull())
|
||||
intentObject.intentId = intentsNodeListIntent["IntentId"].asString();
|
||||
if(!intentsNodeListIntent["IntentName"].isNull())
|
||||
intentObject.intentName = intentsNodeListIntent["IntentName"].asString();
|
||||
if(!intentsNodeListIntent["Keywords"].isNull())
|
||||
intentObject.keywords = intentsNodeListIntent["Keywords"].asString();
|
||||
if(!intentsNodeListIntent["ScriptId"].isNull())
|
||||
intentObject.scriptId = intentsNodeListIntent["ScriptId"].asString();
|
||||
if(!intentsNodeListIntent["UpdateTime"].isNull())
|
||||
intentObject.updateTime = std::stol(intentsNodeListIntent["UpdateTime"].asString());
|
||||
if(!intentsNodeListIntent["Utterances"].isNull())
|
||||
intentObject.utterances = intentsNodeListIntent["Utterances"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,56 +40,56 @@ void ListJobGroupsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!jobGroupsNode["TotalCount"].isNull())
|
||||
jobGroups_.totalCount = std::stoi(jobGroupsNode["TotalCount"].asString());
|
||||
auto allListNode = jobGroupsNode["List"]["JobGroup"];
|
||||
for (auto jobGroupsNodeListJobGroup : allListNode)
|
||||
{
|
||||
JobGroups::JobGroup jobGroupObject;
|
||||
if(!jobGroupsNodeListJobGroup["CreationTime"].isNull())
|
||||
jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["CreationTime"].asString());
|
||||
if(!jobGroupsNodeListJobGroup["JobGroupDescription"].isNull())
|
||||
jobGroupObject.jobGroupDescription = jobGroupsNodeListJobGroup["JobGroupDescription"].asString();
|
||||
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());
|
||||
if(!progressNode["StartTime"].isNull())
|
||||
jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].asString());
|
||||
if(!progressNode["Status"].isNull())
|
||||
jobGroupObject.progress.status = progressNode["Status"].asString();
|
||||
if(!progressNode["TotalCompleted"].isNull())
|
||||
jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
|
||||
if(!progressNode["TotalJobs"].isNull())
|
||||
jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
|
||||
if(!progressNode["TotalNotAnswered"].isNull())
|
||||
jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
|
||||
auto strategyNode = value["Strategy"];
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobsNode = value["Jobs"];
|
||||
if(!jobsNode["TotalCount"].isNull())
|
||||
jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString());
|
||||
if(!jobsNode["PageNumber"].isNull())
|
||||
jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString());
|
||||
if(!jobsNode["PageSize"].isNull())
|
||||
jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString());
|
||||
if(!jobsNode["TotalCount"].isNull())
|
||||
jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString());
|
||||
auto allListNode = jobsNode["List"]["Job"];
|
||||
for (auto jobsNodeListJob : allListNode)
|
||||
{
|
||||
Jobs::Job jobObject;
|
||||
if(!jobsNodeListJob["JobId"].isNull())
|
||||
jobObject.jobId = jobsNodeListJob["JobId"].asString();
|
||||
if(!jobsNodeListJob["JobGroupId"].isNull())
|
||||
jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString();
|
||||
if(!jobsNodeListJob["ScenarioId"].isNull())
|
||||
jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString();
|
||||
if(!jobsNodeListJob["StrategyId"].isNull())
|
||||
jobObject.strategyId = jobsNodeListJob["StrategyId"].asString();
|
||||
if(!jobsNodeListJob["Priority"].isNull())
|
||||
jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString());
|
||||
if(!jobsNodeListJob["SystemPriority"].isNull())
|
||||
jobObject.systemPriority = std::stoi(jobsNodeListJob["SystemPriority"].asString());
|
||||
if(!jobsNodeListJob["Status"].isNull())
|
||||
jobObject.status = jobsNodeListJob["Status"].asString();
|
||||
if(!jobsNodeListJob["ReferenceId"].isNull())
|
||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||
if(!jobsNodeListJob["FailureReason"].isNull())
|
||||
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
||||
if(!jobsNodeListJob["JobGroupId"].isNull())
|
||||
jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString();
|
||||
if(!jobsNodeListJob["JobId"].isNull())
|
||||
jobObject.jobId = jobsNodeListJob["JobId"].asString();
|
||||
if(!jobsNodeListJob["Priority"].isNull())
|
||||
jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString());
|
||||
if(!jobsNodeListJob["ReferenceId"].isNull())
|
||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||
if(!jobsNodeListJob["ScenarioId"].isNull())
|
||||
jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString();
|
||||
if(!jobsNodeListJob["Status"].isNull())
|
||||
jobObject.status = jobsNodeListJob["Status"].asString();
|
||||
if(!jobsNodeListJob["StrategyId"].isNull())
|
||||
jobObject.strategyId = jobsNodeListJob["StrategyId"].asString();
|
||||
if(!jobsNodeListJob["SystemPriority"].isNull())
|
||||
jobObject.systemPriority = std::stoi(jobsNodeListJob["SystemPriority"].asString());
|
||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
||||
for (auto allListNodeContactsContact : allContactsNode)
|
||||
{
|
||||
@@ -78,16 +78,16 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
||||
if(!allListNodeContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = allListNodeContactsContact["Honorific"].asString();
|
||||
if(!allListNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allListNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
||||
if(!allListNodeContactsContact["JobId"].isNull())
|
||||
contactsObject.jobId = allListNodeContactsContact["JobId"].asString();
|
||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
||||
if(!allListNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
||||
if(!allListNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
||||
jobObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allListNode["Extras"]["KeyValuePair"];
|
||||
@@ -104,22 +104,22 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Jobs::Job::SummaryItem summaryObject;
|
||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["JobGroupId"].isNull())
|
||||
summaryObject.jobGroupId = allListNodeSummarySummaryItem["JobGroupId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["JobId"].isNull())
|
||||
summaryObject.jobId = allListNodeSummarySummaryItem["JobId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
||||
jobObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||
@@ -127,14 +127,14 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
jobObject.callingNumbers.push_back(value.asString());
|
||||
jobs_.list.push_back(jobObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void ListJobsResult::parse(const std::string &payload)
|
||||
for (auto valueJobsJob : allJobsNode)
|
||||
{
|
||||
Job jobsObject;
|
||||
if(!valueJobsJob["JobId"].isNull())
|
||||
jobsObject.jobId = valueJobsJob["JobId"].asString();
|
||||
if(!valueJobsJob["JobGroupId"].isNull())
|
||||
jobsObject.jobGroupId = valueJobsJob["JobGroupId"].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();
|
||||
if(!valueJobsJob["JobGroupId"].isNull())
|
||||
jobsObject.jobGroupId = valueJobsJob["JobGroupId"].asString();
|
||||
if(!valueJobsJob["JobId"].isNull())
|
||||
jobsObject.jobId = valueJobsJob["JobId"].asString();
|
||||
if(!valueJobsJob["Priority"].isNull())
|
||||
jobsObject.priority = std::stoi(valueJobsJob["Priority"].asString());
|
||||
if(!valueJobsJob["ReferenceId"].isNull())
|
||||
jobsObject.referenceId = valueJobsJob["ReferenceId"].asString();
|
||||
if(!valueJobsJob["ScenarioId"].isNull())
|
||||
jobsObject.scenarioId = valueJobsJob["ScenarioId"].asString();
|
||||
if(!valueJobsJob["Status"].isNull())
|
||||
jobsObject.status = valueJobsJob["Status"].asString();
|
||||
if(!valueJobsJob["StrategyId"].isNull())
|
||||
jobsObject.strategyId = valueJobsJob["StrategyId"].asString();
|
||||
if(!valueJobsJob["SystemPriority"].isNull())
|
||||
jobsObject.systemPriority = std::stoi(valueJobsJob["SystemPriority"].asString());
|
||||
auto allContactsNode = allJobsNode["Contacts"]["Contact"];
|
||||
for (auto allJobsNodeContactsContact : allContactsNode)
|
||||
{
|
||||
@@ -71,16 +71,16 @@ void ListJobsResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!allJobsNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allJobsNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allJobsNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allJobsNodeContactsContact["ReferenceId"].asString();
|
||||
if(!allJobsNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allJobsNodeContactsContact["Role"].asString();
|
||||
if(!allJobsNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allJobsNodeContactsContact["State"].asString();
|
||||
jobsObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allJobsNode["Extras"]["KeyValuePair"];
|
||||
@@ -93,102 +93,102 @@ void ListJobsResult::parse(const std::string &payload)
|
||||
extrasObject.value = allJobsNodeExtrasKeyValuePair["Value"].asString();
|
||||
jobsObject.extras.push_back(extrasObject);
|
||||
}
|
||||
auto allSummaryNode = allJobsNode["Summary"]["SummaryItem"];
|
||||
for (auto allJobsNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Job::SummaryItem summaryObject;
|
||||
if(!allJobsNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allJobsNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allJobsNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allJobsNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allJobsNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allJobsNodeSummarySummaryItem["SummaryName"].asString();
|
||||
jobsObject.summary.push_back(summaryObject);
|
||||
}
|
||||
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["CallId"].isNull())
|
||||
tasksObject.callId = allJobsNodeTasksTask["CallId"].asString();
|
||||
if(!allJobsNodeTasksTask["CalledNumber"].isNull())
|
||||
tasksObject.calledNumber = allJobsNodeTasksTask["CalledNumber"].asString();
|
||||
if(!allJobsNodeTasksTask["CallingNumber"].isNull())
|
||||
tasksObject.callingNumber = allJobsNodeTasksTask["CallingNumber"].asString();
|
||||
if(!allJobsNodeTasksTask["ChatbotId"].isNull())
|
||||
tasksObject.chatbotId = allJobsNodeTasksTask["ChatbotId"].asString();
|
||||
if(!allJobsNodeTasksTask["Duration"].isNull())
|
||||
tasksObject.duration = std::stoi(allJobsNodeTasksTask["Duration"].asString());
|
||||
if(!allJobsNodeTasksTask["JobId"].isNull())
|
||||
tasksObject.jobId = allJobsNodeTasksTask["JobId"].asString();
|
||||
if(!allJobsNodeTasksTask["PlanedTime"].isNull())
|
||||
tasksObject.planedTime = std::stol(allJobsNodeTasksTask["PlanedTime"].asString());
|
||||
if(!allJobsNodeTasksTask["ScenarioId"].isNull())
|
||||
tasksObject.scenarioId = allJobsNodeTasksTask["ScenarioId"].asString();
|
||||
if(!allJobsNodeTasksTask["Status"].isNull())
|
||||
tasksObject.status = allJobsNodeTasksTask["Status"].asString();
|
||||
if(!allJobsNodeTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = allJobsNodeTasksTask["TaskId"].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();
|
||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
||||
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
|
||||
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
|
||||
{
|
||||
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
||||
Job::Task::ConversationDetail::SummaryItem2 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();
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].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();
|
||||
auto contact3Node = value["Contact"];
|
||||
if(!contact3Node["ContactId"].isNull())
|
||||
tasksObject.contact3.contactId = contact3Node["ContactId"].asString();
|
||||
if(!contact3Node["ContactName"].isNull())
|
||||
tasksObject.contact3.contactName = contact3Node["ContactName"].asString();
|
||||
if(!contact3Node["Honorific"].isNull())
|
||||
tasksObject.contact3.honorific = contact3Node["Honorific"].asString();
|
||||
if(!contact3Node["JobId"].isNull())
|
||||
tasksObject.contact3.jobId = contact3Node["JobId"].asString();
|
||||
if(!contact3Node["PhoneNumber"].isNull())
|
||||
tasksObject.contact3.phoneNumber = contact3Node["PhoneNumber"].asString();
|
||||
if(!contact3Node["ReferenceId"].isNull())
|
||||
tasksObject.contact3.referenceId = contact3Node["ReferenceId"].asString();
|
||||
if(!contact3Node["Role"].isNull())
|
||||
tasksObject.contact3.role = contact3Node["Role"].asString();
|
||||
if(!contact3Node["State"].isNull())
|
||||
tasksObject.contact3.state = contact3Node["State"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
73
outboundbot/src/model/ListMediaRequest.cc
Normal file
73
outboundbot/src/model/ListMediaRequest.cc
Normal 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/ListMediaRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListMediaRequest;
|
||||
|
||||
ListMediaRequest::ListMediaRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListMedia")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMediaRequest::~ListMediaRequest()
|
||||
{}
|
||||
|
||||
int ListMediaRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMediaRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListMediaRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListMediaRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ListMediaRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMediaRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMediaRequest::getNamePrefix()const
|
||||
{
|
||||
return namePrefix_;
|
||||
}
|
||||
|
||||
void ListMediaRequest::setNamePrefix(const std::string& namePrefix)
|
||||
{
|
||||
namePrefix_ = namePrefix;
|
||||
setParameter("NamePrefix", namePrefix);
|
||||
}
|
||||
|
||||
108
outboundbot/src/model/ListMediaResult.cc
Normal file
108
outboundbot/src/model/ListMediaResult.cc
Normal 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/ListMediaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ListMediaResult::ListMediaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMediaResult::ListMediaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMediaResult::~ListMediaResult()
|
||||
{}
|
||||
|
||||
void ListMediaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMediaListNode = value["MediaList"]["Media"];
|
||||
for (auto valueMediaListMedia : allMediaListNode)
|
||||
{
|
||||
Media mediaListObject;
|
||||
if(!valueMediaListMedia["MediaId"].isNull())
|
||||
mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString();
|
||||
if(!valueMediaListMedia["Name"].isNull())
|
||||
mediaListObject.name = valueMediaListMedia["Name"].asString();
|
||||
mediaList_.push_back(mediaListObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListMediaResult::Media> ListMediaResult::getMediaList()const
|
||||
{
|
||||
return mediaList_;
|
||||
}
|
||||
|
||||
int ListMediaResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListMediaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListMediaResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListMediaResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListMediaResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListMediaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMediaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -40,34 +40,34 @@ void ListOutboundCallNumbersResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto outboundCallNumbersNode = value["OutboundCallNumbers"];
|
||||
if(!outboundCallNumbersNode["TotalCount"].isNull())
|
||||
outboundCallNumbers_.totalCount = std::stoi(outboundCallNumbersNode["TotalCount"].asString());
|
||||
if(!outboundCallNumbersNode["PageNumber"].isNull())
|
||||
outboundCallNumbers_.pageNumber = std::stoi(outboundCallNumbersNode["PageNumber"].asString());
|
||||
if(!outboundCallNumbersNode["PageSize"].isNull())
|
||||
outboundCallNumbers_.pageSize = std::stoi(outboundCallNumbersNode["PageSize"].asString());
|
||||
if(!outboundCallNumbersNode["TotalCount"].isNull())
|
||||
outboundCallNumbers_.totalCount = std::stoi(outboundCallNumbersNode["TotalCount"].asString());
|
||||
auto allListNode = outboundCallNumbersNode["List"]["OutboundCallNumber"];
|
||||
for (auto outboundCallNumbersNodeListOutboundCallNumber : allListNode)
|
||||
{
|
||||
OutboundCallNumbers::OutboundCallNumber outboundCallNumberObject;
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumberObject.outboundCallNumberId = outboundCallNumbersNodeListOutboundCallNumber["OutboundCallNumberId"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["Number"].isNull())
|
||||
outboundCallNumberObject.number = outboundCallNumbersNodeListOutboundCallNumber["Number"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].isNull())
|
||||
outboundCallNumberObject.rateLimitPeriod = outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumberObject.outboundCallNumberId = outboundCallNumbersNodeListOutboundCallNumber["OutboundCallNumberId"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["RateLimitCount"].isNull())
|
||||
outboundCallNumberObject.rateLimitCount = outboundCallNumbersNodeListOutboundCallNumber["RateLimitCount"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].isNull())
|
||||
outboundCallNumberObject.rateLimitPeriod = outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].asString();
|
||||
outboundCallNumbers_.list.push_back(outboundCallNumberObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,36 +40,36 @@ void ListScriptPublishHistoriesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptPublishHistoriesNode = value["ScriptPublishHistories"];
|
||||
if(!scriptPublishHistoriesNode["TotalCount"].isNull())
|
||||
scriptPublishHistories_.totalCount = std::stoi(scriptPublishHistoriesNode["TotalCount"].asString());
|
||||
if(!scriptPublishHistoriesNode["PageNumber"].isNull())
|
||||
scriptPublishHistories_.pageNumber = std::stoi(scriptPublishHistoriesNode["PageNumber"].asString());
|
||||
if(!scriptPublishHistoriesNode["PageSize"].isNull())
|
||||
scriptPublishHistories_.pageSize = std::stoi(scriptPublishHistoriesNode["PageSize"].asString());
|
||||
if(!scriptPublishHistoriesNode["TotalCount"].isNull())
|
||||
scriptPublishHistories_.totalCount = std::stoi(scriptPublishHistoriesNode["TotalCount"].asString());
|
||||
auto allListNode = scriptPublishHistoriesNode["List"]["PublishHistory"];
|
||||
for (auto scriptPublishHistoriesNodeListPublishHistory : allListNode)
|
||||
{
|
||||
ScriptPublishHistories::PublishHistory publishHistoryObject;
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["Description"].isNull())
|
||||
publishHistoryObject.description = scriptPublishHistoriesNodeListPublishHistory["Description"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["InstanceId"].isNull())
|
||||
publishHistoryObject.instanceId = scriptPublishHistoriesNodeListPublishHistory["InstanceId"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["PublishTime"].isNull())
|
||||
publishHistoryObject.publishTime = std::stol(scriptPublishHistoriesNodeListPublishHistory["PublishTime"].asString());
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["ScriptId"].isNull())
|
||||
publishHistoryObject.scriptId = scriptPublishHistoriesNodeListPublishHistory["ScriptId"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["ScriptVersion"].isNull())
|
||||
publishHistoryObject.scriptVersion = scriptPublishHistoriesNodeListPublishHistory["ScriptVersion"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["Description"].isNull())
|
||||
publishHistoryObject.description = scriptPublishHistoriesNodeListPublishHistory["Description"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["PublishTime"].isNull())
|
||||
publishHistoryObject.publishTime = std::stol(scriptPublishHistoriesNodeListPublishHistory["PublishTime"].asString());
|
||||
scriptPublishHistories_.list.push_back(publishHistoryObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,40 +40,40 @@ void ListScriptVoiceConfigsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptVoiceConfigsNode = value["ScriptVoiceConfigs"];
|
||||
if(!scriptVoiceConfigsNode["TotalCount"].isNull())
|
||||
scriptVoiceConfigs_.totalCount = std::stoi(scriptVoiceConfigsNode["TotalCount"].asString());
|
||||
if(!scriptVoiceConfigsNode["PageNumber"].isNull())
|
||||
scriptVoiceConfigs_.pageNumber = std::stoi(scriptVoiceConfigsNode["PageNumber"].asString());
|
||||
if(!scriptVoiceConfigsNode["PageSize"].isNull())
|
||||
scriptVoiceConfigs_.pageSize = std::stoi(scriptVoiceConfigsNode["PageSize"].asString());
|
||||
if(!scriptVoiceConfigsNode["TotalCount"].isNull())
|
||||
scriptVoiceConfigs_.totalCount = std::stoi(scriptVoiceConfigsNode["TotalCount"].asString());
|
||||
auto allListNode = scriptVoiceConfigsNode["List"]["ScriptVoiceConfig"];
|
||||
for (auto scriptVoiceConfigsNodeListScriptVoiceConfig : allListNode)
|
||||
{
|
||||
ScriptVoiceConfigs::ScriptVoiceConfig scriptVoiceConfigObject;
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfigObject.scriptVoiceConfigId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["InstanceId"].isNull())
|
||||
scriptVoiceConfigObject.instanceId = scriptVoiceConfigsNodeListScriptVoiceConfig["InstanceId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].isNull())
|
||||
scriptVoiceConfigObject.scriptId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptContent"].isNull())
|
||||
scriptVoiceConfigObject.scriptContent = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptContent"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].isNull())
|
||||
scriptVoiceConfigObject.scriptId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfigObject.scriptVoiceConfigId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfigObject.scriptWaveformRelation = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["Source"].isNull())
|
||||
scriptVoiceConfigObject.source = scriptVoiceConfigsNodeListScriptVoiceConfig["Source"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["Type"].isNull())
|
||||
scriptVoiceConfigObject.type = scriptVoiceConfigsNodeListScriptVoiceConfig["Type"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfigObject.scriptWaveformRelation = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].asString();
|
||||
scriptVoiceConfigs_.list.push_back(scriptVoiceConfigObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,48 +40,50 @@ void ListScriptsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptsNode = value["Scripts"];
|
||||
if(!scriptsNode["TotalCount"].isNull())
|
||||
scripts_.totalCount = std::stoi(scriptsNode["TotalCount"].asString());
|
||||
if(!scriptsNode["PageNumber"].isNull())
|
||||
scripts_.pageNumber = std::stoi(scriptsNode["PageNumber"].asString());
|
||||
if(!scriptsNode["PageSize"].isNull())
|
||||
scripts_.pageSize = std::stoi(scriptsNode["PageSize"].asString());
|
||||
if(!scriptsNode["TotalCount"].isNull())
|
||||
scripts_.totalCount = std::stoi(scriptsNode["TotalCount"].asString());
|
||||
auto allListNode = scriptsNode["List"]["Script"];
|
||||
for (auto scriptsNodeListScript : allListNode)
|
||||
{
|
||||
Scripts::Script scriptObject;
|
||||
if(!scriptsNodeListScript["DebugStatus"].isNull())
|
||||
scriptObject.debugStatus = scriptsNodeListScript["DebugStatus"].asString();
|
||||
if(!scriptsNodeListScript["FailReason"].isNull())
|
||||
scriptObject.failReason = scriptsNodeListScript["FailReason"].asString();
|
||||
if(!scriptsNodeListScript["Industry"].isNull())
|
||||
scriptObject.industry = scriptsNodeListScript["Industry"].asString();
|
||||
if(!scriptsNodeListScript["IsDebugDrafted"].isNull())
|
||||
scriptObject.isDebugDrafted = scriptsNodeListScript["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["IsDrafted"].isNull())
|
||||
scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["Scene"].isNull())
|
||||
scriptObject.scene = scriptsNodeListScript["Scene"].asString();
|
||||
if(!scriptsNodeListScript["ScriptDescription"].isNull())
|
||||
scriptObject.scriptDescription = scriptsNodeListScript["ScriptDescription"].asString();
|
||||
if(!scriptsNodeListScript["ScriptId"].isNull())
|
||||
scriptObject.scriptId = scriptsNodeListScript["ScriptId"].asString();
|
||||
if(!scriptsNodeListScript["ScriptName"].isNull())
|
||||
scriptObject.scriptName = scriptsNodeListScript["ScriptName"].asString();
|
||||
if(!scriptsNodeListScript["ScriptDescription"].isNull())
|
||||
scriptObject.scriptDescription = scriptsNodeListScript["ScriptDescription"].asString();
|
||||
if(!scriptsNodeListScript["Industry"].isNull())
|
||||
scriptObject.industry = scriptsNodeListScript["Industry"].asString();
|
||||
if(!scriptsNodeListScript["Scene"].isNull())
|
||||
scriptObject.scene = scriptsNodeListScript["Scene"].asString();
|
||||
if(!scriptsNodeListScript["Status"].isNull())
|
||||
scriptObject.status = scriptsNodeListScript["Status"].asString();
|
||||
if(!scriptsNodeListScript["DebugStatus"].isNull())
|
||||
scriptObject.debugStatus = scriptsNodeListScript["DebugStatus"].asString();
|
||||
if(!scriptsNodeListScript["UpdateTime"].isNull())
|
||||
scriptObject.updateTime = std::stol(scriptsNodeListScript["UpdateTime"].asString());
|
||||
if(!scriptsNodeListScript["IsDrafted"].isNull())
|
||||
scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["IsDebugDrafted"].isNull())
|
||||
scriptObject.isDebugDrafted = scriptsNodeListScript["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["FailReason"].isNull())
|
||||
scriptObject.failReason = scriptsNodeListScript["FailReason"].asString();
|
||||
if(!scriptsNodeListScript["RejectReason"].isNull())
|
||||
scriptObject.rejectReason = scriptsNodeListScript["RejectReason"].asString();
|
||||
scripts_.list.push_back(scriptObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,44 +39,44 @@ void ListTagsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagsTag["TagId"].asString();
|
||||
if(!valueTagsTag["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTag["TagName"].asString();
|
||||
if(!valueTagsTag["TagIndex"].isNull())
|
||||
tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString());
|
||||
if(!valueTagsTag["ScriptId"].isNull())
|
||||
tagsObject.scriptId = valueTagsTag["ScriptId"].asString();
|
||||
if(!valueTagsTag["TagGroup"].isNull())
|
||||
tagsObject.tagGroup = valueTagsTag["TagGroup"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto allTagGroupsNode = value["TagGroups"]["TagGroup"];
|
||||
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
|
||||
{
|
||||
TagGroup tagGroupsObject;
|
||||
if(!valueTagGroupsTagGroup["TagGroupId"].isNull())
|
||||
tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].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();
|
||||
if(!valueTagGroupsTagGroup["TagGroupId"].isNull())
|
||||
tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
|
||||
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
|
||||
tagGroups_.push_back(tagGroupsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["ScriptId"].isNull())
|
||||
tagsObject.scriptId = valueTagsTag["ScriptId"].asString();
|
||||
if(!valueTagsTag["TagGroup"].isNull())
|
||||
tagsObject.tagGroup = valueTagsTag["TagGroup"].asString();
|
||||
if(!valueTagsTag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagsTag["TagId"].asString();
|
||||
if(!valueTagsTag["TagIndex"].isNull())
|
||||
tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString());
|
||||
if(!valueTagsTag["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTag["TagName"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,45 +40,45 @@ void ModifyBatchJobsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
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["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
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["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ void ModifyBatchJobsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,18 +39,18 @@ void ModifyDialogueFlowResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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();
|
||||
if(!value["DialogueFlowDefinition"].isNull())
|
||||
dialogueFlowDefinition_ = value["DialogueFlowDefinition"].asString();
|
||||
if(!value["DialogueFlowId"].isNull())
|
||||
dialogueFlowId_ = value["DialogueFlowId"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -74,13 +74,13 @@ std::string ModifyDialogueFlowResult::getCode()const
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyDialogueFlowResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ModifyDialogueFlowResult::getDialogueFlowDefinition()const
|
||||
{
|
||||
return dialogueFlowDefinition_;
|
||||
}
|
||||
|
||||
bool ModifyDialogueFlowResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void ModifyGlobalQuestionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["DialogueQuestionId"].isNull())
|
||||
dialogueQuestionId_ = value["DialogueQuestionId"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void ModifyInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void ModifyIntentResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,45 +40,45 @@ void ModifyJobGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
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["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
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["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ void ModifyJobGroupResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,22 +40,22 @@ void ModifyOutboundCallNumberResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto outboundCallNumberNode = value["OutboundCallNumber"];
|
||||
if(!outboundCallNumberNode["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumber_.outboundCallNumberId = outboundCallNumberNode["OutboundCallNumberId"].asString();
|
||||
if(!outboundCallNumberNode["Number"].isNull())
|
||||
outboundCallNumber_.number = outboundCallNumberNode["Number"].asString();
|
||||
if(!outboundCallNumberNode["RateLimitPeriod"].isNull())
|
||||
outboundCallNumber_.rateLimitPeriod = outboundCallNumberNode["RateLimitPeriod"].asString();
|
||||
if(!outboundCallNumberNode["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumber_.outboundCallNumberId = outboundCallNumberNode["OutboundCallNumberId"].asString();
|
||||
if(!outboundCallNumberNode["RateLimitCount"].isNull())
|
||||
outboundCallNumber_.rateLimitCount = outboundCallNumberNode["RateLimitCount"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!outboundCallNumberNode["RateLimitPeriod"].isNull())
|
||||
outboundCallNumber_.rateLimitPeriod = outboundCallNumberNode["RateLimitPeriod"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void ModifyScriptResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptNode = value["Script"];
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["ScriptId"].isNull())
|
||||
script_.scriptId = scriptNode["ScriptId"].asString();
|
||||
if(!scriptNode["ScriptName"].isNull())
|
||||
script_.scriptName = scriptNode["ScriptName"].asString();
|
||||
if(!scriptNode["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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void ModifyScriptVoiceConfigResult::parse(const std::string &payload)
|
||||
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["ScriptId"].isNull())
|
||||
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void ModifyTTSConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto tTSConfigNode = value["TTSConfig"];
|
||||
if(!tTSConfigNode["TTSConfigId"].isNull())
|
||||
tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].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["ScriptId"].isNull())
|
||||
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
|
||||
if(!tTSConfigNode["SpeechRate"].isNull())
|
||||
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
|
||||
if(!tTSConfigNode["TTSConfigId"].isNull())
|
||||
tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString();
|
||||
if(!tTSConfigNode["Voice"].isNull())
|
||||
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
|
||||
if(!tTSConfigNode["Volume"].isNull())
|
||||
tTSConfig_.volume = tTSConfigNode["Volume"].asString();
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,44 +39,44 @@ void ModifyTagGroupsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagsTag["TagId"].asString();
|
||||
if(!valueTagsTag["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTag["TagName"].asString();
|
||||
if(!valueTagsTag["TagIndex"].isNull())
|
||||
tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString());
|
||||
if(!valueTagsTag["ScriptId"].isNull())
|
||||
tagsObject.scriptId = valueTagsTag["ScriptId"].asString();
|
||||
if(!valueTagsTag["TagGroup"].isNull())
|
||||
tagsObject.tagGroup = valueTagsTag["TagGroup"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto allTagGroupsNode = value["TagGroups"]["TagGroup"];
|
||||
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
|
||||
{
|
||||
TagGroup tagGroupsObject;
|
||||
if(!valueTagGroupsTagGroup["TagGroupId"].isNull())
|
||||
tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].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();
|
||||
if(!valueTagGroupsTagGroup["TagGroupId"].isNull())
|
||||
tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
|
||||
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
|
||||
tagGroups_.push_back(tagGroupsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["ScriptId"].isNull())
|
||||
tagsObject.scriptId = valueTagsTag["ScriptId"].asString();
|
||||
if(!valueTagsTag["TagGroup"].isNull())
|
||||
tagsObject.tagGroup = valueTagsTag["TagGroup"].asString();
|
||||
if(!valueTagsTag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagsTag["TagId"].asString();
|
||||
if(!valueTagsTag["TagIndex"].isNull())
|
||||
tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString());
|
||||
if(!valueTagsTag["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTag["TagName"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void PublishScriptForDebugResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -60,3 +60,14 @@ void PublishScriptRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long PublishScriptRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void PublishScriptRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void PublishScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,32 +40,32 @@ void QueryJobsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobsNode = value["Jobs"];
|
||||
if(!jobsNode["TotalCount"].isNull())
|
||||
jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString());
|
||||
if(!jobsNode["PageNumber"].isNull())
|
||||
jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString());
|
||||
if(!jobsNode["PageSize"].isNull())
|
||||
jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString());
|
||||
if(!jobsNode["TotalCount"].isNull())
|
||||
jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString());
|
||||
auto allListNode = jobsNode["List"]["Job"];
|
||||
for (auto jobsNodeListJob : allListNode)
|
||||
{
|
||||
Jobs::Job jobObject;
|
||||
if(!jobsNodeListJob["JobId"].isNull())
|
||||
jobObject.jobId = jobsNodeListJob["JobId"].asString();
|
||||
if(!jobsNodeListJob["JobGroupId"].isNull())
|
||||
jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString();
|
||||
if(!jobsNodeListJob["ScenarioId"].isNull())
|
||||
jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString();
|
||||
if(!jobsNodeListJob["StrategyId"].isNull())
|
||||
jobObject.strategyId = jobsNodeListJob["StrategyId"].asString();
|
||||
if(!jobsNodeListJob["Priority"].isNull())
|
||||
jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString());
|
||||
if(!jobsNodeListJob["Status"].isNull())
|
||||
jobObject.status = jobsNodeListJob["Status"].asString();
|
||||
if(!jobsNodeListJob["ReferenceId"].isNull())
|
||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||
if(!jobsNodeListJob["FailureReason"].isNull())
|
||||
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
||||
if(!jobsNodeListJob["JobGroupId"].isNull())
|
||||
jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString();
|
||||
if(!jobsNodeListJob["JobId"].isNull())
|
||||
jobObject.jobId = jobsNodeListJob["JobId"].asString();
|
||||
if(!jobsNodeListJob["Priority"].isNull())
|
||||
jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString());
|
||||
if(!jobsNodeListJob["ReferenceId"].isNull())
|
||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||
if(!jobsNodeListJob["ScenarioId"].isNull())
|
||||
jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString();
|
||||
if(!jobsNodeListJob["Status"].isNull())
|
||||
jobObject.status = jobsNodeListJob["Status"].asString();
|
||||
if(!jobsNodeListJob["StrategyId"].isNull())
|
||||
jobObject.strategyId = jobsNodeListJob["StrategyId"].asString();
|
||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
||||
for (auto allListNodeContactsContact : allContactsNode)
|
||||
{
|
||||
@@ -76,16 +76,16 @@ void QueryJobsResult::parse(const std::string &payload)
|
||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
||||
if(!allListNodeContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = allListNodeContactsContact["Honorific"].asString();
|
||||
if(!allListNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allListNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
||||
if(!allListNodeContactsContact["JobId"].isNull())
|
||||
contactsObject.jobId = allListNodeContactsContact["JobId"].asString();
|
||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
||||
if(!allListNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
||||
if(!allListNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
||||
jobObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allListNode["Extras"]["KeyValuePair"];
|
||||
@@ -98,34 +98,56 @@ void QueryJobsResult::parse(const std::string &payload)
|
||||
extrasObject.value = allListNodeExtrasKeyValuePair["Value"].asString();
|
||||
jobObject.extras.push_back(extrasObject);
|
||||
}
|
||||
auto allSummaryNode = allListNode["Summary"]["SummaryItem"];
|
||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Jobs::Job::SummaryItem summaryObject;
|
||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["GroupId"].isNull())
|
||||
summaryObject.groupId = allListNodeSummarySummaryItem["GroupId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["JobId"].isNull())
|
||||
summaryObject.jobId = allListNodeSummarySummaryItem["JobId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
||||
jobObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allTasksNode = allListNode["Tasks"]["Task"];
|
||||
for (auto allListNodeTasksTask : allTasksNode)
|
||||
{
|
||||
Jobs::Job::Task tasksObject;
|
||||
if(!allListNodeTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = allListNodeTasksTask["TaskId"].asString();
|
||||
if(!allListNodeTasksTask["JobId"].isNull())
|
||||
tasksObject.jobId = allListNodeTasksTask["JobId"].asString();
|
||||
if(!allListNodeTasksTask["ScenarioId"].isNull())
|
||||
tasksObject.scenarioId = allListNodeTasksTask["ScenarioId"].asString();
|
||||
if(!allListNodeTasksTask["ChatbotId"].isNull())
|
||||
tasksObject.chatbotId = allListNodeTasksTask["ChatbotId"].asString();
|
||||
if(!allListNodeTasksTask["PlanedTime"].isNull())
|
||||
tasksObject.planedTime = std::stol(allListNodeTasksTask["PlanedTime"].asString());
|
||||
if(!allListNodeTasksTask["ActualTime"].isNull())
|
||||
tasksObject.actualTime = std::stol(allListNodeTasksTask["ActualTime"].asString());
|
||||
if(!allListNodeTasksTask["CallingNumber"].isNull())
|
||||
tasksObject.callingNumber = allListNodeTasksTask["CallingNumber"].asString();
|
||||
if(!allListNodeTasksTask["CalledNumber"].isNull())
|
||||
tasksObject.calledNumber = allListNodeTasksTask["CalledNumber"].asString();
|
||||
if(!allListNodeTasksTask["CallId"].isNull())
|
||||
tasksObject.callId = allListNodeTasksTask["CallId"].asString();
|
||||
if(!allListNodeTasksTask["Status"].isNull())
|
||||
tasksObject.status = allListNodeTasksTask["Status"].asString();
|
||||
if(!allListNodeTasksTask["Brief"].isNull())
|
||||
tasksObject.brief = allListNodeTasksTask["Brief"].asString();
|
||||
if(!allListNodeTasksTask["CallId"].isNull())
|
||||
tasksObject.callId = allListNodeTasksTask["CallId"].asString();
|
||||
if(!allListNodeTasksTask["CalledNumber"].isNull())
|
||||
tasksObject.calledNumber = allListNodeTasksTask["CalledNumber"].asString();
|
||||
if(!allListNodeTasksTask["CallingNumber"].isNull())
|
||||
tasksObject.callingNumber = allListNodeTasksTask["CallingNumber"].asString();
|
||||
if(!allListNodeTasksTask["ChatbotId"].isNull())
|
||||
tasksObject.chatbotId = allListNodeTasksTask["ChatbotId"].asString();
|
||||
if(!allListNodeTasksTask["Duration"].isNull())
|
||||
tasksObject.duration = std::stoi(allListNodeTasksTask["Duration"].asString());
|
||||
if(!allListNodeTasksTask["JobId"].isNull())
|
||||
tasksObject.jobId = allListNodeTasksTask["JobId"].asString();
|
||||
if(!allListNodeTasksTask["PlanedTime"].isNull())
|
||||
tasksObject.planedTime = std::stol(allListNodeTasksTask["PlanedTime"].asString());
|
||||
if(!allListNodeTasksTask["ScenarioId"].isNull())
|
||||
tasksObject.scenarioId = allListNodeTasksTask["ScenarioId"].asString();
|
||||
if(!allListNodeTasksTask["Status"].isNull())
|
||||
tasksObject.status = allListNodeTasksTask["Status"].asString();
|
||||
if(!allListNodeTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = allListNodeTasksTask["TaskId"].asString();
|
||||
auto contact1Node = value["Contact"];
|
||||
if(!contact1Node["ContactId"].isNull())
|
||||
tasksObject.contact1.contactId = contact1Node["ContactId"].asString();
|
||||
@@ -133,53 +155,31 @@ void QueryJobsResult::parse(const std::string &payload)
|
||||
tasksObject.contact1.contactName = contact1Node["ContactName"].asString();
|
||||
if(!contact1Node["Honorific"].isNull())
|
||||
tasksObject.contact1.honorific = contact1Node["Honorific"].asString();
|
||||
if(!contact1Node["Role"].isNull())
|
||||
tasksObject.contact1.role = contact1Node["Role"].asString();
|
||||
if(!contact1Node["PhoneNumber"].isNull())
|
||||
tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString();
|
||||
if(!contact1Node["State"].isNull())
|
||||
tasksObject.contact1.state = contact1Node["State"].asString();
|
||||
if(!contact1Node["ReferenceId"].isNull())
|
||||
tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString();
|
||||
if(!contact1Node["JobId"].isNull())
|
||||
tasksObject.contact1.jobId = contact1Node["JobId"].asString();
|
||||
if(!contact1Node["PhoneNumber"].isNull())
|
||||
tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString();
|
||||
if(!contact1Node["ReferenceId"].isNull())
|
||||
tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString();
|
||||
if(!contact1Node["Role"].isNull())
|
||||
tasksObject.contact1.role = contact1Node["Role"].asString();
|
||||
if(!contact1Node["State"].isNull())
|
||||
tasksObject.contact1.state = contact1Node["State"].asString();
|
||||
jobObject.tasks.push_back(tasksObject);
|
||||
}
|
||||
auto allSummaryNode = allListNode["Summary"]["SummaryItem"];
|
||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Jobs::Job::SummaryItem summaryObject;
|
||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["GroupId"].isNull())
|
||||
summaryObject.groupId = allListNodeSummarySummaryItem["GroupId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["JobId"].isNull())
|
||||
summaryObject.jobId = allListNodeSummarySummaryItem["JobId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
||||
jobObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobObject.callingNumbers.push_back(value.asString());
|
||||
jobs_.list.push_back(jobObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,26 +43,26 @@ void QueryScriptWaveformsResult::parse(const std::string &payload)
|
||||
for (auto valueScriptWaveformsScriptWaveform : allScriptWaveformsNode)
|
||||
{
|
||||
ScriptWaveform scriptWaveformsObject;
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptWaveformId"].isNull())
|
||||
scriptWaveformsObject.scriptWaveformId = valueScriptWaveformsScriptWaveform["ScriptWaveformId"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptId"].isNull())
|
||||
scriptWaveformsObject.scriptId = valueScriptWaveformsScriptWaveform["ScriptId"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptContent"].isNull())
|
||||
scriptWaveformsObject.scriptContent = valueScriptWaveformsScriptWaveform["ScriptContent"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["FileId"].isNull())
|
||||
scriptWaveformsObject.fileId = valueScriptWaveformsScriptWaveform["FileId"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["FileName"].isNull())
|
||||
scriptWaveformsObject.fileName = valueScriptWaveformsScriptWaveform["FileName"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptContent"].isNull())
|
||||
scriptWaveformsObject.scriptContent = valueScriptWaveformsScriptWaveform["ScriptContent"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptId"].isNull())
|
||||
scriptWaveformsObject.scriptId = valueScriptWaveformsScriptWaveform["ScriptId"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptWaveformId"].isNull())
|
||||
scriptWaveformsObject.scriptWaveformId = valueScriptWaveformsScriptWaveform["ScriptWaveformId"].asString();
|
||||
scriptWaveforms_.push_back(scriptWaveformsObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,19 @@ QueryScriptsByStatusRequest::QueryScriptsByStatusRequest() :
|
||||
QueryScriptsByStatusRequest::~QueryScriptsByStatusRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> QueryScriptsByStatusRequest::getStatusList()const
|
||||
{
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
void QueryScriptsByStatusRequest::setStatusList(const std::vector<std::string>& statusList)
|
||||
{
|
||||
statusList_ = statusList;
|
||||
for(int dep1 = 0; dep1!= statusList.size(); dep1++) {
|
||||
setParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int QueryScriptsByStatusRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -60,14 +73,3 @@ void QueryScriptsByStatusRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryScriptsByStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void QueryScriptsByStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,50 +40,50 @@ void QueryScriptsByStatusResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptsNode = value["Scripts"];
|
||||
if(!scriptsNode["TotalCount"].isNull())
|
||||
scripts_.totalCount = std::stoi(scriptsNode["TotalCount"].asString());
|
||||
if(!scriptsNode["PageNumber"].isNull())
|
||||
scripts_.pageNumber = std::stoi(scriptsNode["PageNumber"].asString());
|
||||
if(!scriptsNode["PageSize"].isNull())
|
||||
scripts_.pageSize = std::stoi(scriptsNode["PageSize"].asString());
|
||||
if(!scriptsNode["TotalCount"].isNull())
|
||||
scripts_.totalCount = std::stoi(scriptsNode["TotalCount"].asString());
|
||||
auto allListNode = scriptsNode["List"]["Script"];
|
||||
for (auto scriptsNodeListScript : allListNode)
|
||||
{
|
||||
Scripts::Script scriptObject;
|
||||
if(!scriptsNodeListScript["ScriptId"].isNull())
|
||||
scriptObject.scriptId = scriptsNodeListScript["ScriptId"].asString();
|
||||
if(!scriptsNodeListScript["ScriptName"].isNull())
|
||||
scriptObject.scriptName = scriptsNodeListScript["ScriptName"].asString();
|
||||
if(!scriptsNodeListScript["ScriptDescription"].isNull())
|
||||
scriptObject.scriptDescription = scriptsNodeListScript["ScriptDescription"].asString();
|
||||
if(!scriptsNodeListScript["Industry"].isNull())
|
||||
scriptObject.industry = scriptsNodeListScript["Industry"].asString();
|
||||
if(!scriptsNodeListScript["Scene"].isNull())
|
||||
scriptObject.scene = scriptsNodeListScript["Scene"].asString();
|
||||
if(!scriptsNodeListScript["Status"].isNull())
|
||||
scriptObject.status = scriptsNodeListScript["Status"].asString();
|
||||
if(!scriptsNodeListScript["AppliedVersion"].isNull())
|
||||
scriptObject.appliedVersion = scriptsNodeListScript["AppliedVersion"].asString();
|
||||
if(!scriptsNodeListScript["DebugStatus"].isNull())
|
||||
scriptObject.debugStatus = scriptsNodeListScript["DebugStatus"].asString();
|
||||
if(!scriptsNodeListScript["DebugVersion"].isNull())
|
||||
scriptObject.debugVersion = scriptsNodeListScript["DebugVersion"].asString();
|
||||
if(!scriptsNodeListScript["AppliedVersion"].isNull())
|
||||
scriptObject.appliedVersion = scriptsNodeListScript["AppliedVersion"].asString();
|
||||
if(!scriptsNodeListScript["UpdateTime"].isNull())
|
||||
scriptObject.updateTime = std::stol(scriptsNodeListScript["UpdateTime"].asString());
|
||||
if(!scriptsNodeListScript["IsDrafted"].isNull())
|
||||
scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["Industry"].isNull())
|
||||
scriptObject.industry = scriptsNodeListScript["Industry"].asString();
|
||||
if(!scriptsNodeListScript["IsDebugDrafted"].isNull())
|
||||
scriptObject.isDebugDrafted = scriptsNodeListScript["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["IsDrafted"].isNull())
|
||||
scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["Scene"].isNull())
|
||||
scriptObject.scene = scriptsNodeListScript["Scene"].asString();
|
||||
if(!scriptsNodeListScript["ScriptDescription"].isNull())
|
||||
scriptObject.scriptDescription = scriptsNodeListScript["ScriptDescription"].asString();
|
||||
if(!scriptsNodeListScript["ScriptId"].isNull())
|
||||
scriptObject.scriptId = scriptsNodeListScript["ScriptId"].asString();
|
||||
if(!scriptsNodeListScript["ScriptName"].isNull())
|
||||
scriptObject.scriptName = scriptsNodeListScript["ScriptName"].asString();
|
||||
if(!scriptsNodeListScript["Status"].isNull())
|
||||
scriptObject.status = scriptsNodeListScript["Status"].asString();
|
||||
if(!scriptsNodeListScript["UpdateTime"].isNull())
|
||||
scriptObject.updateTime = std::stol(scriptsNodeListScript["UpdateTime"].asString());
|
||||
scripts_.list.push_back(scriptObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -93,6 +93,17 @@ void RecordFailureRequest::setCalledNumber(const std::string& calledNumber)
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string RecordFailureRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void RecordFailureRequest::setInstanceOwnerId(const std::string& instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", instanceOwnerId);
|
||||
}
|
||||
|
||||
std::string RecordFailureRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
|
||||
@@ -39,14 +39,14 @@ void RecordFailureResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void ResumeJobsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void RollbackScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -49,14 +49,14 @@ void StartJobResult::parse(const std::string &payload)
|
||||
taskIdsObject.value = valueTaskIdsKeyValuePair["Value"].asString();
|
||||
taskIds_.push_back(taskIdsObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void SubmitBatchJobsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void SubmitRecordingResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void SubmitScriptReviewResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void SuspendJobsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
51
outboundbot/src/model/WithdrawScriptReviewRequest.cc
Normal file
51
outboundbot/src/model/WithdrawScriptReviewRequest.cc
Normal 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/WithdrawScriptReviewRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::WithdrawScriptReviewRequest;
|
||||
|
||||
WithdrawScriptReviewRequest::WithdrawScriptReviewRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "WithdrawScriptReview")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
WithdrawScriptReviewRequest::~WithdrawScriptReviewRequest()
|
||||
{}
|
||||
|
||||
std::string WithdrawScriptReviewRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
void WithdrawScriptReviewRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
}
|
||||
|
||||
std::string WithdrawScriptReviewRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void WithdrawScriptReviewRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
98
outboundbot/src/model/WithdrawScriptReviewResult.cc
Normal file
98
outboundbot/src/model/WithdrawScriptReviewResult.cc
Normal 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/WithdrawScriptReviewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
WithdrawScriptReviewResult::WithdrawScriptReviewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
WithdrawScriptReviewResult::WithdrawScriptReviewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
WithdrawScriptReviewResult::~WithdrawScriptReviewResult()
|
||||
{}
|
||||
|
||||
void WithdrawScriptReviewResult::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["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["ScriptId"].isNull())
|
||||
script_.scriptId = scriptNode["ScriptId"].asString();
|
||||
if(!scriptNode["ScriptName"].isNull())
|
||||
script_.scriptName = scriptNode["ScriptName"].asString();
|
||||
if(!scriptNode["Status"].isNull())
|
||||
script_.status = scriptNode["Status"].asString();
|
||||
if(!scriptNode["UpdateTime"].isNull())
|
||||
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
WithdrawScriptReviewResult::Script WithdrawScriptReviewResult::getScript()const
|
||||
{
|
||||
return script_;
|
||||
}
|
||||
|
||||
std::string WithdrawScriptReviewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int WithdrawScriptReviewResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string WithdrawScriptReviewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool WithdrawScriptReviewResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user