Add new internal API.
This commit is contained in:
4086
ccc/src/CCCClient.cc
4086
ccc/src/CCCClient.cc
File diff suppressed because it is too large
Load Diff
86
ccc/src/model/AbortPredictiveJobsRequest.cc
Normal file
86
ccc/src/model/AbortPredictiveJobsRequest.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AbortPredictiveJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AbortPredictiveJobsRequest;
|
||||
|
||||
AbortPredictiveJobsRequest::AbortPredictiveJobsRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AbortPredictiveJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AbortPredictiveJobsRequest::~AbortPredictiveJobsRequest()
|
||||
{}
|
||||
|
||||
bool AbortPredictiveJobsRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void AbortPredictiveJobsRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> AbortPredictiveJobsRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void AbortPredictiveJobsRequest::setJobId(const std::vector<std::string>& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
for(int dep1 = 0; dep1!= jobId.size(); dep1++) {
|
||||
setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AbortPredictiveJobsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AbortPredictiveJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AbortPredictiveJobsRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void AbortPredictiveJobsRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
std::string AbortPredictiveJobsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void AbortPredictiveJobsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -14,60 +14,59 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/RegisterDeviceResult.h>
|
||||
#include <alibabacloud/ccc/model/AbortPredictiveJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
RegisterDeviceResult::RegisterDeviceResult() :
|
||||
AbortPredictiveJobsResult::AbortPredictiveJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RegisterDeviceResult::RegisterDeviceResult(const std::string &payload) :
|
||||
AbortPredictiveJobsResult::AbortPredictiveJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RegisterDeviceResult::~RegisterDeviceResult()
|
||||
AbortPredictiveJobsResult::~AbortPredictiveJobsResult()
|
||||
{}
|
||||
|
||||
void RegisterDeviceResult::parse(const std::string &payload)
|
||||
void AbortPredictiveJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.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";
|
||||
|
||||
}
|
||||
|
||||
std::string RegisterDeviceResult::getMessage()const
|
||||
std::string AbortPredictiveJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int RegisterDeviceResult::getHttpStatusCode()const
|
||||
int AbortPredictiveJobsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> RegisterDeviceResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
std::string RegisterDeviceResult::getCode()const
|
||||
std::string AbortPredictiveJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AbortPredictiveJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
ccc/src/model/AddAgentDeviceRequest.cc
Normal file
95
ccc/src/model/AddAgentDeviceRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AddAgentDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddAgentDeviceRequest;
|
||||
|
||||
AddAgentDeviceRequest::AddAgentDeviceRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AddAgentDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddAgentDeviceRequest::~AddAgentDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string AddAgentDeviceRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setBodyParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getClientPort()const
|
||||
{
|
||||
return clientPort_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setClientPort(const std::string& clientPort)
|
||||
{
|
||||
clientPort_ = clientPort;
|
||||
setParameter("ClientPort", clientPort);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getClientIp()const
|
||||
{
|
||||
return clientIp_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setClientIp(const std::string& clientIp)
|
||||
{
|
||||
clientIp_ = clientIp;
|
||||
setParameter("ClientIp", clientIp);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getBrowserVersion()const
|
||||
{
|
||||
return browserVersion_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setBrowserVersion(const std::string& browserVersion)
|
||||
{
|
||||
browserVersion_ = browserVersion;
|
||||
setBodyParameter("BrowserVersion", browserVersion);
|
||||
}
|
||||
|
||||
@@ -14,67 +14,66 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ModifyInstanceResult.h>
|
||||
#include <alibabacloud/ccc/model/AddAgentDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ModifyInstanceResult::ModifyInstanceResult() :
|
||||
AddAgentDeviceResult::AddAgentDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) :
|
||||
AddAgentDeviceResult::AddAgentDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInstanceResult::~ModifyInstanceResult()
|
||||
AddAgentDeviceResult::~AddAgentDeviceResult()
|
||||
{}
|
||||
|
||||
void ModifyInstanceResult::parse(const std::string &payload)
|
||||
void AddAgentDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AgentDeviceId"].isNull())
|
||||
agentDeviceId_ = std::stol(value["AgentDeviceId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyInstanceResult::getMessage()const
|
||||
std::string AddAgentDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyInstanceResult::getHttpStatusCode()const
|
||||
long AddAgentDeviceResult::getAgentDeviceId()const
|
||||
{
|
||||
return agentDeviceId_;
|
||||
}
|
||||
|
||||
int AddAgentDeviceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyInstanceResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
std::string ModifyInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ModifyInstanceResult::getCode()const
|
||||
std::string AddAgentDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddAgentDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
99
ccc/src/model/AddBulkPhoneNumbersRequest.cc
Normal file
99
ccc/src/model/AddBulkPhoneNumbersRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddBulkPhoneNumbersRequest;
|
||||
|
||||
AddBulkPhoneNumbersRequest::AddBulkPhoneNumbersRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AddBulkPhoneNumbers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddBulkPhoneNumbersRequest::~AddBulkPhoneNumbersRequest()
|
||||
{}
|
||||
|
||||
std::string AddBulkPhoneNumbersRequest::getContactFlowId()const
|
||||
{
|
||||
return contactFlowId_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setContactFlowId(const std::string& contactFlowId)
|
||||
{
|
||||
contactFlowId_ = contactFlowId;
|
||||
setParameter("ContactFlowId", contactFlowId);
|
||||
}
|
||||
|
||||
std::string AddBulkPhoneNumbersRequest::getUsage()const
|
||||
{
|
||||
return usage_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setUsage(const std::string& usage)
|
||||
{
|
||||
usage_ = usage;
|
||||
setParameter("Usage", usage);
|
||||
}
|
||||
|
||||
std::vector<std::string> AddBulkPhoneNumbersRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setPhoneNumber(const std::vector<std::string>& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
for(int dep1 = 0; dep1!= phoneNumber.size(); dep1++) {
|
||||
setParameter("PhoneNumber."+ std::to_string(dep1), phoneNumber.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddBulkPhoneNumbersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AddBulkPhoneNumbersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> AddBulkPhoneNumbersRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setSkillGroupId(const std::vector<std::string>& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) {
|
||||
setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
146
ccc/src/model/AddBulkPhoneNumbersResult.cc
Normal file
146
ccc/src/model/AddBulkPhoneNumbersResult.cc
Normal file
@@ -0,0 +1,146 @@
|
||||
/*
|
||||
* 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/ccc/model/AddBulkPhoneNumbersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddBulkPhoneNumbersResult::AddBulkPhoneNumbersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddBulkPhoneNumbersResult::AddBulkPhoneNumbersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddBulkPhoneNumbersResult::~AddBulkPhoneNumbersResult()
|
||||
{}
|
||||
|
||||
void AddBulkPhoneNumbersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPhoneNumbersNode = value["PhoneNumbers"]["PhoneNumber"];
|
||||
for (auto valuePhoneNumbersPhoneNumber : allPhoneNumbersNode)
|
||||
{
|
||||
PhoneNumber phoneNumbersObject;
|
||||
if(!valuePhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
||||
phoneNumbersObject.phoneNumberId = valuePhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
||||
if(!valuePhoneNumbersPhoneNumber["InstanceId"].isNull())
|
||||
phoneNumbersObject.instanceId = valuePhoneNumbersPhoneNumber["InstanceId"].asString();
|
||||
if(!valuePhoneNumbersPhoneNumber["Number"].isNull())
|
||||
phoneNumbersObject.number = valuePhoneNumbersPhoneNumber["Number"].asString();
|
||||
if(!valuePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
||||
phoneNumbersObject.phoneNumberDescription = valuePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
||||
if(!valuePhoneNumbersPhoneNumber["TestOnly"].isNull())
|
||||
phoneNumbersObject.testOnly = valuePhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
||||
if(!valuePhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
||||
phoneNumbersObject.remainingTime = std::stoi(valuePhoneNumbersPhoneNumber["RemainingTime"].asString());
|
||||
if(!valuePhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
||||
phoneNumbersObject.allowOutbound = valuePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
||||
if(!valuePhoneNumbersPhoneNumber["Usage"].isNull())
|
||||
phoneNumbersObject.usage = valuePhoneNumbersPhoneNumber["Usage"].asString();
|
||||
if(!valuePhoneNumbersPhoneNumber["Trunks"].isNull())
|
||||
phoneNumbersObject.trunks = std::stoi(valuePhoneNumbersPhoneNumber["Trunks"].asString());
|
||||
auto allSkillGroupsNode = valuePhoneNumbersPhoneNumber["SkillGroups"]["SkillGroup"];
|
||||
for (auto valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode)
|
||||
{
|
||||
PhoneNumber::SkillGroup skillGroupsObject;
|
||||
if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull())
|
||||
skillGroupsObject.skillGroupId = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString();
|
||||
if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].isNull())
|
||||
skillGroupsObject.skillGroupName = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].asString();
|
||||
phoneNumbersObject.skillGroups.push_back(skillGroupsObject);
|
||||
}
|
||||
auto contactFlowNode = value["ContactFlow"];
|
||||
if(!contactFlowNode["ContactFlowId"].isNull())
|
||||
phoneNumbersObject.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString();
|
||||
if(!contactFlowNode["InstanceId"].isNull())
|
||||
phoneNumbersObject.contactFlow.instanceId = contactFlowNode["InstanceId"].asString();
|
||||
if(!contactFlowNode["ContactFlowName"].isNull())
|
||||
phoneNumbersObject.contactFlow.contactFlowName = contactFlowNode["ContactFlowName"].asString();
|
||||
if(!contactFlowNode["ContactFlowDescription"].isNull())
|
||||
phoneNumbersObject.contactFlow.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString();
|
||||
if(!contactFlowNode["Type"].isNull())
|
||||
phoneNumbersObject.contactFlow.type = contactFlowNode["Type"].asString();
|
||||
phoneNumbers_.push_back(phoneNumbersObject);
|
||||
}
|
||||
auto allArrearagePhoneNumbers = value["ArrearagePhoneNumbers"]["ArrearagePhoneNumber"];
|
||||
for (const auto &item : allArrearagePhoneNumbers)
|
||||
arrearagePhoneNumbers_.push_back(item.asString());
|
||||
auto allFailedPhoneNumbers = value["FailedPhoneNumbers"]["FailedPhoneNumber"];
|
||||
for (const auto &item : allFailedPhoneNumbers)
|
||||
failedPhoneNumbers_.push_back(item.asString());
|
||||
auto allUserdPhoneNumbers = value["UserdPhoneNumbers"]["UserdPhoneNumber"];
|
||||
for (const auto &item : allUserdPhoneNumbers)
|
||||
userdPhoneNumbers_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> AddBulkPhoneNumbersResult::getArrearagePhoneNumbers()const
|
||||
{
|
||||
return arrearagePhoneNumbers_;
|
||||
}
|
||||
|
||||
std::vector<AddBulkPhoneNumbersResult::PhoneNumber> AddBulkPhoneNumbersResult::getPhoneNumbers()const
|
||||
{
|
||||
return phoneNumbers_;
|
||||
}
|
||||
|
||||
std::string AddBulkPhoneNumbersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddBulkPhoneNumbersResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> AddBulkPhoneNumbersResult::getFailedPhoneNumbers()const
|
||||
{
|
||||
return failedPhoneNumbers_;
|
||||
}
|
||||
|
||||
std::vector<std::string> AddBulkPhoneNumbersResult::getUserdPhoneNumbers()const
|
||||
{
|
||||
return userdPhoneNumbers_;
|
||||
}
|
||||
|
||||
std::string AddBulkPhoneNumbersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddBulkPhoneNumbersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
86
ccc/src/model/AddJobsToPredictiveJobGroupRequest.cc
Normal file
86
ccc/src/model/AddJobsToPredictiveJobGroupRequest.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AddJobsToPredictiveJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddJobsToPredictiveJobGroupRequest;
|
||||
|
||||
AddJobsToPredictiveJobGroupRequest::AddJobsToPredictiveJobGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AddJobsToPredictiveJobGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddJobsToPredictiveJobGroupRequest::~AddJobsToPredictiveJobGroupRequest()
|
||||
{}
|
||||
|
||||
std::string AddJobsToPredictiveJobGroupRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddJobsToPredictiveJobGroupRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::vector<std::string> AddJobsToPredictiveJobGroupRequest::getJobsJson()const
|
||||
{
|
||||
return jobsJson_;
|
||||
}
|
||||
|
||||
void AddJobsToPredictiveJobGroupRequest::setJobsJson(const std::vector<std::string>& jobsJson)
|
||||
{
|
||||
jobsJson_ = jobsJson;
|
||||
for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) {
|
||||
setBodyParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddJobsToPredictiveJobGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddJobsToPredictiveJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddJobsToPredictiveJobGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void AddJobsToPredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
std::string AddJobsToPredictiveJobGroupRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void AddJobsToPredictiveJobGroupRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -14,59 +14,59 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h>
|
||||
#include <alibabacloud/ccc/model/AddJobsToPredictiveJobGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult() :
|
||||
AddJobsToPredictiveJobGroupResult::AddJobsToPredictiveJobGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult(const std::string &payload) :
|
||||
AddJobsToPredictiveJobGroupResult::AddJobsToPredictiveJobGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyUserLevelsOfSkillGroupResult::~ModifyUserLevelsOfSkillGroupResult()
|
||||
AddJobsToPredictiveJobGroupResult::~AddJobsToPredictiveJobGroupResult()
|
||||
{}
|
||||
|
||||
void ModifyUserLevelsOfSkillGroupResult::parse(const std::string &payload)
|
||||
void AddJobsToPredictiveJobGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupResult::getMessage()const
|
||||
std::string AddJobsToPredictiveJobGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyUserLevelsOfSkillGroupResult::getHttpStatusCode()const
|
||||
int AddJobsToPredictiveJobGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupResult::getCode()const
|
||||
std::string AddJobsToPredictiveJobGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddJobsToPredictiveJobGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/AddPersonalNumbersToUserRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddPersonalNumbersToUserRequest;
|
||||
|
||||
AddPersonalNumbersToUserRequest::AddPersonalNumbersToUserRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AddPersonalNumbersToUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPersonalNumbersToUserRequest::~AddPersonalNumbersToUserRequest()
|
||||
{}
|
||||
|
||||
std::string AddPersonalNumbersToUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void AddPersonalNumbersToUserRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string AddPersonalNumbersToUserRequest::getNumberList()const
|
||||
{
|
||||
return numberList_;
|
||||
}
|
||||
|
||||
void AddPersonalNumbersToUserRequest::setNumberList(const std::string& numberList)
|
||||
{
|
||||
numberList_ = numberList;
|
||||
setParameter("NumberList", numberList);
|
||||
}
|
||||
|
||||
std::string AddPersonalNumbersToUserRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddPersonalNumbersToUserRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
84
ccc/src/model/AddPhoneNumberRequest.cc
Normal file
84
ccc/src/model/AddPhoneNumberRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AddPhoneNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddPhoneNumberRequest;
|
||||
|
||||
AddPhoneNumberRequest::AddPhoneNumberRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AddPhoneNumber")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPhoneNumberRequest::~AddPhoneNumberRequest()
|
||||
{}
|
||||
|
||||
std::string AddPhoneNumberRequest::getContactFlowId()const
|
||||
{
|
||||
return contactFlowId_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId)
|
||||
{
|
||||
contactFlowId_ = contactFlowId;
|
||||
setParameter("ContactFlowId", contactFlowId);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberRequest::getUsage()const
|
||||
{
|
||||
return usage_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberRequest::setUsage(const std::string& usage)
|
||||
{
|
||||
usage_ = usage;
|
||||
setParameter("Usage", usage);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
107
ccc/src/model/AddPhoneNumberResult.cc
Normal file
107
ccc/src/model/AddPhoneNumberResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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/ccc/model/AddPhoneNumberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddPhoneNumberResult::AddPhoneNumberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddPhoneNumberResult::AddPhoneNumberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddPhoneNumberResult::~AddPhoneNumberResult()
|
||||
{}
|
||||
|
||||
void AddPhoneNumberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto phoneNumberNode = value["PhoneNumber"];
|
||||
if(!phoneNumberNode["PhoneNumberId"].isNull())
|
||||
phoneNumber_.phoneNumberId = phoneNumberNode["PhoneNumberId"].asString();
|
||||
if(!phoneNumberNode["InstanceId"].isNull())
|
||||
phoneNumber_.instanceId = phoneNumberNode["InstanceId"].asString();
|
||||
if(!phoneNumberNode["Number"].isNull())
|
||||
phoneNumber_.number = phoneNumberNode["Number"].asString();
|
||||
if(!phoneNumberNode["PhoneNumberDescription"].isNull())
|
||||
phoneNumber_.phoneNumberDescription = phoneNumberNode["PhoneNumberDescription"].asString();
|
||||
if(!phoneNumberNode["TestOnly"].isNull())
|
||||
phoneNumber_.testOnly = phoneNumberNode["TestOnly"].asString() == "true";
|
||||
if(!phoneNumberNode["RemainingTime"].isNull())
|
||||
phoneNumber_.remainingTime = std::stoi(phoneNumberNode["RemainingTime"].asString());
|
||||
if(!phoneNumberNode["AllowOutbound"].isNull())
|
||||
phoneNumber_.allowOutbound = phoneNumberNode["AllowOutbound"].asString() == "true";
|
||||
if(!phoneNumberNode["Usage"].isNull())
|
||||
phoneNumber_.usage = phoneNumberNode["Usage"].asString();
|
||||
if(!phoneNumberNode["Trunks"].isNull())
|
||||
phoneNumber_.trunks = std::stoi(phoneNumberNode["Trunks"].asString());
|
||||
auto contactFlowNode = phoneNumberNode["ContactFlow"];
|
||||
if(!contactFlowNode["ContactFlowId"].isNull())
|
||||
phoneNumber_.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString();
|
||||
if(!contactFlowNode["InstanceId"].isNull())
|
||||
phoneNumber_.contactFlow.instanceId = contactFlowNode["InstanceId"].asString();
|
||||
if(!contactFlowNode["ContactFlowName"].isNull())
|
||||
phoneNumber_.contactFlow.contactFlowName = contactFlowNode["ContactFlowName"].asString();
|
||||
if(!contactFlowNode["ContactFlowDescription"].isNull())
|
||||
phoneNumber_.contactFlow.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString();
|
||||
if(!contactFlowNode["Type"].isNull())
|
||||
phoneNumber_.contactFlow.type = contactFlowNode["Type"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddPhoneNumberResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
AddPhoneNumberResult::PhoneNumber AddPhoneNumberResult::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddPhoneNumberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/AddPhoneNumberToSkillGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddPhoneNumberToSkillGroupsRequest;
|
||||
|
||||
AddPhoneNumberToSkillGroupsRequest::AddPhoneNumberToSkillGroupsRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AddPhoneNumberToSkillGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPhoneNumberToSkillGroupsRequest::~AddPhoneNumberToSkillGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsRequest::getNumber()const
|
||||
{
|
||||
return number_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberToSkillGroupsRequest::setNumber(const std::string& number)
|
||||
{
|
||||
number_ = number;
|
||||
setParameter("Number", number);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberToSkillGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsRequest::getSkillGroupIdList()const
|
||||
{
|
||||
return skillGroupIdList_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberToSkillGroupsRequest::setSkillGroupIdList(const std::string& skillGroupIdList)
|
||||
{
|
||||
skillGroupIdList_ = skillGroupIdList;
|
||||
setParameter("SkillGroupIdList", skillGroupIdList);
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/AddPhoneNumbersRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddPhoneNumbersRequest;
|
||||
|
||||
AddPhoneNumbersRequest::AddPhoneNumbersRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AddPhoneNumbers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPhoneNumbersRequest::~AddPhoneNumbersRequest()
|
||||
{}
|
||||
|
||||
std::string AddPhoneNumbersRequest::getContactFlowId()const
|
||||
{
|
||||
return contactFlowId_;
|
||||
}
|
||||
|
||||
void AddPhoneNumbersRequest::setContactFlowId(const std::string& contactFlowId)
|
||||
{
|
||||
contactFlowId_ = contactFlowId;
|
||||
setParameter("ContactFlowId", contactFlowId);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumbersRequest::getUsage()const
|
||||
{
|
||||
return usage_;
|
||||
}
|
||||
|
||||
void AddPhoneNumbersRequest::setUsage(const std::string& usage)
|
||||
{
|
||||
usage_ = usage;
|
||||
setParameter("Usage", usage);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumbersRequest::getNumberGroupId()const
|
||||
{
|
||||
return numberGroupId_;
|
||||
}
|
||||
|
||||
void AddPhoneNumbersRequest::setNumberGroupId(const std::string& numberGroupId)
|
||||
{
|
||||
numberGroupId_ = numberGroupId;
|
||||
setParameter("NumberGroupId", numberGroupId);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumbersRequest::getNumberList()const
|
||||
{
|
||||
return numberList_;
|
||||
}
|
||||
|
||||
void AddPhoneNumbersRequest::setNumberList(const std::string& numberList)
|
||||
{
|
||||
numberList_ = numberList;
|
||||
setParameter("NumberList", numberList);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumbersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddPhoneNumbersRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
141
ccc/src/model/AddPhoneTagsRequest.cc
Normal file
141
ccc/src/model/AddPhoneTagsRequest.cc
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* 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/ccc/model/AddPhoneTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddPhoneTagsRequest;
|
||||
|
||||
AddPhoneTagsRequest::AddPhoneTagsRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AddPhoneTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPhoneTagsRequest::~AddPhoneTagsRequest()
|
||||
{}
|
||||
|
||||
std::string AddPhoneTagsRequest::getRegionNameProvince()const
|
||||
{
|
||||
return regionNameProvince_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setRegionNameProvince(const std::string& regionNameProvince)
|
||||
{
|
||||
regionNameProvince_ = regionNameProvince;
|
||||
setParameter("RegionNameProvince", regionNameProvince);
|
||||
}
|
||||
|
||||
int AddPhoneTagsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setType(int type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", std::to_string(type));
|
||||
}
|
||||
|
||||
std::string AddPhoneTagsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int AddPhoneTagsRequest::getConcurrency()const
|
||||
{
|
||||
return concurrency_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setConcurrency(int concurrency)
|
||||
{
|
||||
concurrency_ = concurrency;
|
||||
setParameter("Concurrency", std::to_string(concurrency));
|
||||
}
|
||||
|
||||
std::string AddPhoneTagsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddPhoneTagsRequest::getProvider()const
|
||||
{
|
||||
return provider_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setProvider(const std::string& provider)
|
||||
{
|
||||
provider_ = provider;
|
||||
setParameter("Provider", provider);
|
||||
}
|
||||
|
||||
std::vector<std::string> AddPhoneTagsRequest::getPhoneNumberList()const
|
||||
{
|
||||
return phoneNumberList_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setPhoneNumberList(const std::vector<std::string>& phoneNumberList)
|
||||
{
|
||||
phoneNumberList_ = phoneNumberList;
|
||||
for(int dep1 = 0; dep1!= phoneNumberList.size(); dep1++) {
|
||||
setParameter("PhoneNumberList."+ std::to_string(dep1), phoneNumberList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddPhoneTagsRequest::getServiceTag()const
|
||||
{
|
||||
return serviceTag_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setServiceTag(const std::string& serviceTag)
|
||||
{
|
||||
serviceTag_ = serviceTag;
|
||||
setParameter("ServiceTag", serviceTag);
|
||||
}
|
||||
|
||||
std::string AddPhoneTagsRequest::getSipTag()const
|
||||
{
|
||||
return sipTag_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setSipTag(const std::string& sipTag)
|
||||
{
|
||||
sipTag_ = sipTag;
|
||||
setParameter("SipTag", sipTag);
|
||||
}
|
||||
|
||||
std::string AddPhoneTagsRequest::getRegionNameCity()const
|
||||
{
|
||||
return regionNameCity_;
|
||||
}
|
||||
|
||||
void AddPhoneTagsRequest::setRegionNameCity(const std::string& regionNameCity)
|
||||
{
|
||||
regionNameCity_ = regionNameCity;
|
||||
setParameter("RegionNameCity", regionNameCity);
|
||||
}
|
||||
|
||||
@@ -14,52 +14,59 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h>
|
||||
#include <alibabacloud/ccc/model/AddPhoneTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult() :
|
||||
AddPhoneTagsResult::AddPhoneTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult(const std::string &payload) :
|
||||
AddPhoneTagsResult::AddPhoneTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddPhoneNumberToSkillGroupsResult::~AddPhoneNumberToSkillGroupsResult()
|
||||
AddPhoneTagsResult::~AddPhoneTagsResult()
|
||||
{}
|
||||
|
||||
void AddPhoneNumberToSkillGroupsResult::parse(const std::string &payload)
|
||||
void AddPhoneTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsResult::getMessage()const
|
||||
std::string AddPhoneTagsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddPhoneNumberToSkillGroupsResult::getHttpStatusCode()const
|
||||
int AddPhoneTagsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsResult::getCode()const
|
||||
std::string AddPhoneTagsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddPhoneTagsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/AddSkillGroupsToUserRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddSkillGroupsToUserRequest;
|
||||
|
||||
AddSkillGroupsToUserRequest::AddSkillGroupsToUserRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AddSkillGroupsToUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddSkillGroupsToUserRequest::~AddSkillGroupsToUserRequest()
|
||||
{}
|
||||
|
||||
std::string AddSkillGroupsToUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void AddSkillGroupsToUserRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string AddSkillGroupsToUserRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddSkillGroupsToUserRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddSkillGroupsToUserRequest::getSkillLevelList()const
|
||||
{
|
||||
return skillLevelList_;
|
||||
}
|
||||
|
||||
void AddSkillGroupsToUserRequest::setSkillLevelList(const std::string& skillLevelList)
|
||||
{
|
||||
skillLevelList_ = skillLevelList;
|
||||
setParameter("SkillLevelList", skillLevelList);
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/AddUsersToSkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddUsersToSkillGroupRequest;
|
||||
|
||||
AddUsersToSkillGroupRequest::AddUsersToSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AddUsersToSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddUsersToSkillGroupRequest::~AddUsersToSkillGroupRequest()
|
||||
{}
|
||||
|
||||
std::string AddUsersToSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddUsersToSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddUsersToSkillGroupRequest::getUserSkillLevelList()const
|
||||
{
|
||||
return userSkillLevelList_;
|
||||
}
|
||||
|
||||
void AddUsersToSkillGroupRequest::setUserSkillLevelList(const std::string& userSkillLevelList)
|
||||
{
|
||||
userSkillLevelList_ = userSkillLevelList;
|
||||
setParameter("UserSkillLevelList", userSkillLevelList);
|
||||
}
|
||||
|
||||
std::string AddUsersToSkillGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void AddUsersToSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/AnswerCallRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AnswerCallRequest;
|
||||
|
||||
AnswerCallRequest::AnswerCallRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AnswerCall")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AnswerCallRequest::~AnswerCallRequest()
|
||||
{}
|
||||
|
||||
std::string AnswerCallRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void AnswerCallRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string AnswerCallRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void AnswerCallRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string AnswerCallRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void AnswerCallRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string AnswerCallRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AnswerCallRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,146 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/AnswerCallResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AnswerCallResult::AnswerCallResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AnswerCallResult::AnswerCallResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AnswerCallResult::~AnswerCallResult()
|
||||
{}
|
||||
|
||||
void AnswerCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ContextId"].isNull())
|
||||
data_.contextId = std::stol(dataNode["ContextId"].asString());
|
||||
auto callContextNode = dataNode["CallContext"];
|
||||
if(!callContextNode["InstanceId"].isNull())
|
||||
data_.callContext.instanceId = callContextNode["InstanceId"].asString();
|
||||
if(!callContextNode["JobId"].isNull())
|
||||
data_.callContext.jobId = callContextNode["JobId"].asString();
|
||||
auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"];
|
||||
for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode)
|
||||
{
|
||||
Data::CallContext::ChannelContext channelContextObject;
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull())
|
||||
channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
data_.callContext.channelContexts.push_back(channelContextObject);
|
||||
}
|
||||
auto userContextNode = dataNode["UserContext"];
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["Extension"].isNull())
|
||||
data_.userContext.extension = userContextNode["Extension"].asString();
|
||||
if(!userContextNode["Heartbeat"].isNull())
|
||||
data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString());
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
if(!userContextNode["WorkMode"].isNull())
|
||||
data_.userContext.workMode = userContextNode["WorkMode"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.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();
|
||||
|
||||
}
|
||||
|
||||
std::string AnswerCallResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AnswerCallResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> AnswerCallResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
AnswerCallResult::Data AnswerCallResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AnswerCallResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
99
ccc/src/model/AssignJobsRequest.cc
Normal file
99
ccc/src/model/AssignJobsRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AssignJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AssignJobsRequest;
|
||||
|
||||
AssignJobsRequest::AssignJobsRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AssignJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AssignJobsRequest::~AssignJobsRequest()
|
||||
{}
|
||||
|
||||
std::string AssignJobsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::vector<std::string> AssignJobsRequest::getJobsJson()const
|
||||
{
|
||||
return jobsJson_;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setJobsJson(const std::vector<std::string>& jobsJson)
|
||||
{
|
||||
jobsJson_ = jobsJson;
|
||||
for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) {
|
||||
setParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> AssignJobsRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
79
ccc/src/model/AssignJobsResult.cc
Normal file
79
ccc/src/model/AssignJobsResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AssignJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AssignJobsResult::AssignJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssignJobsResult::AssignJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssignJobsResult::~AssignJobsResult()
|
||||
{}
|
||||
|
||||
void AssignJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AssignJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AssignJobsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AssignJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AssignJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string AssignJobsResult::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::CCC::Model::AssignUsersRequest;
|
||||
|
||||
AssignUsersRequest::AssignUsersRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AssignUsers")
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AssignUsers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -27,37 +27,54 @@ AssignUsersRequest::AssignUsersRequest() :
|
||||
AssignUsersRequest::~AssignUsersRequest()
|
||||
{}
|
||||
|
||||
std::string AssignUsersRequest::getRamIdList()const
|
||||
{
|
||||
return ramIdList_;
|
||||
}
|
||||
|
||||
void AssignUsersRequest::setRamIdList(const std::string& ramIdList)
|
||||
{
|
||||
ramIdList_ = ramIdList;
|
||||
setParameter("RamIdList", ramIdList);
|
||||
}
|
||||
|
||||
std::string AssignUsersRequest::getRoleId()const
|
||||
std::vector<std::string> AssignUsersRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void AssignUsersRequest::setRoleId(const std::string& roleId)
|
||||
void AssignUsersRequest::setRoleId(const std::vector<std::string>& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
setParameter("RoleId", roleId);
|
||||
for(int dep1 = 0; dep1!= roleId.size(); dep1++) {
|
||||
setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AssignUsersRequest::getWorkMode()const
|
||||
std::string AssignUsersRequest::getAccessKeyId()const
|
||||
{
|
||||
return workMode_;
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AssignUsersRequest::setWorkMode(const std::string& workMode)
|
||||
void AssignUsersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
workMode_ = workMode;
|
||||
setParameter("WorkMode", workMode);
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<std::string> AssignUsersRequest::getUserRamId()const
|
||||
{
|
||||
return userRamId_;
|
||||
}
|
||||
|
||||
void AssignUsersRequest::setUserRamId(const std::vector<std::string>& userRamId)
|
||||
{
|
||||
userRamId_ = userRamId;
|
||||
for(int dep1 = 0; dep1!= userRamId.size(); dep1++) {
|
||||
setParameter("UserRamId."+ std::to_string(dep1), userRamId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<int> AssignUsersRequest::getSkillLevel()const
|
||||
{
|
||||
return skillLevel_;
|
||||
}
|
||||
|
||||
void AssignUsersRequest::setSkillLevel(const std::vector<int>& skillLevel)
|
||||
{
|
||||
skillLevel_ = skillLevel;
|
||||
for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) {
|
||||
setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AssignUsersRequest::getInstanceId()const
|
||||
@@ -71,14 +88,16 @@ void AssignUsersRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AssignUsersRequest::getSkillLevelList()const
|
||||
std::vector<std::string> AssignUsersRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillLevelList_;
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void AssignUsersRequest::setSkillLevelList(const std::string& skillLevelList)
|
||||
void AssignUsersRequest::setSkillGroupId(const std::vector<std::string>& skillGroupId)
|
||||
{
|
||||
skillLevelList_ = skillLevelList;
|
||||
setParameter("SkillLevelList", skillLevelList);
|
||||
skillGroupId_ = skillGroupId;
|
||||
for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) {
|
||||
setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,18 +39,14 @@ void AssignUsersResult::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["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Sync"].isNull())
|
||||
sync_ = value["Sync"].asString();
|
||||
if(!value["WorkflowId"].isNull())
|
||||
workflowId_ = value["WorkflowId"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -64,23 +60,13 @@ int AssignUsersResult::getHttpStatusCode()const
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AssignUsersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AssignUsersResult::getSync()const
|
||||
{
|
||||
return sync_;
|
||||
}
|
||||
|
||||
std::string AssignUsersResult::getWorkflowId()const
|
||||
{
|
||||
return workflowId_;
|
||||
}
|
||||
|
||||
std::string AssignUsersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AssignUsersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/BargeInCallRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::BargeInCallRequest;
|
||||
|
||||
BargeInCallRequest::BargeInCallRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "BargeInCall")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BargeInCallRequest::~BargeInCallRequest()
|
||||
{}
|
||||
|
||||
std::string BargeInCallRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void BargeInCallRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string BargeInCallRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void BargeInCallRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string BargeInCallRequest::getBargedUserId()const
|
||||
{
|
||||
return bargedUserId_;
|
||||
}
|
||||
|
||||
void BargeInCallRequest::setBargedUserId(const std::string& bargedUserId)
|
||||
{
|
||||
bargedUserId_ = bargedUserId;
|
||||
setParameter("BargedUserId", bargedUserId);
|
||||
}
|
||||
|
||||
std::string BargeInCallRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void BargeInCallRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
int BargeInCallRequest::getTimeoutSeconds()const
|
||||
{
|
||||
return timeoutSeconds_;
|
||||
}
|
||||
|
||||
void BargeInCallRequest::setTimeoutSeconds(int timeoutSeconds)
|
||||
{
|
||||
timeoutSeconds_ = timeoutSeconds;
|
||||
setParameter("TimeoutSeconds", std::to_string(timeoutSeconds));
|
||||
}
|
||||
|
||||
std::string BargeInCallRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BargeInCallRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/BargeInCallResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
BargeInCallResult::BargeInCallResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BargeInCallResult::BargeInCallResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BargeInCallResult::~BargeInCallResult()
|
||||
{}
|
||||
|
||||
void BargeInCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto callContextNode = dataNode["CallContext"];
|
||||
if(!callContextNode["CallType"].isNull())
|
||||
data_.callContext.callType = callContextNode["CallType"].asString();
|
||||
if(!callContextNode["InstanceId"].isNull())
|
||||
data_.callContext.instanceId = callContextNode["InstanceId"].asString();
|
||||
if(!callContextNode["JobId"].isNull())
|
||||
data_.callContext.jobId = callContextNode["JobId"].asString();
|
||||
auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"];
|
||||
for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode)
|
||||
{
|
||||
Data::CallContext::ChannelContext channelContextObject;
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull())
|
||||
channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
data_.callContext.channelContexts.push_back(channelContextObject);
|
||||
}
|
||||
auto userContextNode = dataNode["UserContext"];
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["Extension"].isNull())
|
||||
data_.userContext.extension = userContextNode["Extension"].asString();
|
||||
if(!userContextNode["Heartbeat"].isNull())
|
||||
data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString());
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
if(!userContextNode["WorkMode"].isNull())
|
||||
data_.userContext.workMode = userContextNode["WorkMode"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.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();
|
||||
|
||||
}
|
||||
|
||||
std::string BargeInCallResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int BargeInCallResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> BargeInCallResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
BargeInCallResult::Data BargeInCallResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BargeInCallResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/BlindTransferRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::BlindTransferRequest;
|
||||
|
||||
BlindTransferRequest::BlindTransferRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "BlindTransfer")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BlindTransferRequest::~BlindTransferRequest()
|
||||
{}
|
||||
|
||||
std::string BlindTransferRequest::getTransferee()const
|
||||
{
|
||||
return transferee_;
|
||||
}
|
||||
|
||||
void BlindTransferRequest::setTransferee(const std::string& transferee)
|
||||
{
|
||||
transferee_ = transferee;
|
||||
setParameter("Transferee", transferee);
|
||||
}
|
||||
|
||||
std::string BlindTransferRequest::getTransferor()const
|
||||
{
|
||||
return transferor_;
|
||||
}
|
||||
|
||||
void BlindTransferRequest::setTransferor(const std::string& transferor)
|
||||
{
|
||||
transferor_ = transferor;
|
||||
setParameter("Transferor", transferor);
|
||||
}
|
||||
|
||||
std::string BlindTransferRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void BlindTransferRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string BlindTransferRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void BlindTransferRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
int BlindTransferRequest::getTimeoutSeconds()const
|
||||
{
|
||||
return timeoutSeconds_;
|
||||
}
|
||||
|
||||
void BlindTransferRequest::setTimeoutSeconds(int timeoutSeconds)
|
||||
{
|
||||
timeoutSeconds_ = timeoutSeconds;
|
||||
setParameter("TimeoutSeconds", std::to_string(timeoutSeconds));
|
||||
}
|
||||
|
||||
std::string BlindTransferRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void BlindTransferRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string BlindTransferRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BlindTransferRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,146 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/BlindTransferResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
BlindTransferResult::BlindTransferResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BlindTransferResult::BlindTransferResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BlindTransferResult::~BlindTransferResult()
|
||||
{}
|
||||
|
||||
void BlindTransferResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto callContextNode = dataNode["CallContext"];
|
||||
if(!callContextNode["CallType"].isNull())
|
||||
data_.callContext.callType = callContextNode["CallType"].asString();
|
||||
if(!callContextNode["InstanceId"].isNull())
|
||||
data_.callContext.instanceId = callContextNode["InstanceId"].asString();
|
||||
if(!callContextNode["JobId"].isNull())
|
||||
data_.callContext.jobId = callContextNode["JobId"].asString();
|
||||
auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"];
|
||||
for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode)
|
||||
{
|
||||
Data::CallContext::ChannelContext channelContextObject;
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
data_.callContext.channelContexts.push_back(channelContextObject);
|
||||
}
|
||||
auto userContextNode = dataNode["UserContext"];
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["Extension"].isNull())
|
||||
data_.userContext.extension = userContextNode["Extension"].asString();
|
||||
if(!userContextNode["Heartbeat"].isNull())
|
||||
data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString());
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
if(!userContextNode["WorkMode"].isNull())
|
||||
data_.userContext.workMode = userContextNode["WorkMode"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.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();
|
||||
|
||||
}
|
||||
|
||||
std::string BlindTransferResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int BlindTransferResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> BlindTransferResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
BlindTransferResult::Data BlindTransferResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BlindTransferResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/CallOnlinePrivacyNumberRequest.cc
Normal file
73
ccc/src/model/CallOnlinePrivacyNumberRequest.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/ccc/model/CallOnlinePrivacyNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CallOnlinePrivacyNumberRequest;
|
||||
|
||||
CallOnlinePrivacyNumberRequest::CallOnlinePrivacyNumberRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CallOnlinePrivacyNumber")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CallOnlinePrivacyNumberRequest::~CallOnlinePrivacyNumberRequest()
|
||||
{}
|
||||
|
||||
std::string CallOnlinePrivacyNumberRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CallOnlinePrivacyNumberRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CallOnlinePrivacyNumberRequest::getTelA()const
|
||||
{
|
||||
return telA_;
|
||||
}
|
||||
|
||||
void CallOnlinePrivacyNumberRequest::setTelA(const std::string& telA)
|
||||
{
|
||||
telA_ = telA;
|
||||
setParameter("TelA", telA);
|
||||
}
|
||||
|
||||
std::string CallOnlinePrivacyNumberRequest::getTelB()const
|
||||
{
|
||||
return telB_;
|
||||
}
|
||||
|
||||
void CallOnlinePrivacyNumberRequest::setTelB(const std::string& telB)
|
||||
{
|
||||
telB_ = telB;
|
||||
setParameter("TelB", telB);
|
||||
}
|
||||
|
||||
std::string CallOnlinePrivacyNumberRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CallOnlinePrivacyNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -14,62 +14,75 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetHistoricalCallerReportResult.h>
|
||||
#include <alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetHistoricalCallerReportResult::GetHistoricalCallerReportResult() :
|
||||
CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHistoricalCallerReportResult::GetHistoricalCallerReportResult(const std::string &payload) :
|
||||
CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHistoricalCallerReportResult::~GetHistoricalCallerReportResult()
|
||||
CallOnlinePrivacyNumberResult::~CallOnlinePrivacyNumberResult()
|
||||
{}
|
||||
|
||||
void GetHistoricalCallerReportResult::parse(const std::string &payload)
|
||||
void CallOnlinePrivacyNumberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["LastCallingTime"].isNull())
|
||||
data_.lastCallingTime = std::stol(dataNode["LastCallingTime"].asString());
|
||||
if(!dataNode["TotalCalls"].isNull())
|
||||
data_.totalCalls = std::stol(dataNode["TotalCalls"].asString());
|
||||
if(!dataNode["StatusCode"].isNull())
|
||||
data_.statusCode = dataNode["StatusCode"].asString();
|
||||
if(!dataNode["DateCreated"].isNull())
|
||||
data_.dateCreated = dataNode["DateCreated"].asString();
|
||||
if(!dataNode["Represent"].isNull())
|
||||
data_.represent = dataNode["Represent"].asString();
|
||||
if(!dataNode["TelX"].isNull())
|
||||
data_.telX = dataNode["TelX"].asString();
|
||||
if(!dataNode["CallId"].isNull())
|
||||
data_.callId = dataNode["CallId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetHistoricalCallerReportResult::getMessage()const
|
||||
std::string CallOnlinePrivacyNumberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetHistoricalCallerReportResult::getHttpStatusCode()const
|
||||
int CallOnlinePrivacyNumberResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetHistoricalCallerReportResult::Data GetHistoricalCallerReportResult::getData()const
|
||||
CallOnlinePrivacyNumberResult::Data CallOnlinePrivacyNumberResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetHistoricalCallerReportResult::getCode()const
|
||||
std::string CallOnlinePrivacyNumberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CallOnlinePrivacyNumberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/CancelAttendedTransferRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CancelAttendedTransferRequest;
|
||||
|
||||
CancelAttendedTransferRequest::CancelAttendedTransferRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "CancelAttendedTransfer")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelAttendedTransferRequest::~CancelAttendedTransferRequest()
|
||||
{}
|
||||
|
||||
std::string CancelAttendedTransferRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CancelAttendedTransferRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string CancelAttendedTransferRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void CancelAttendedTransferRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string CancelAttendedTransferRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CancelAttendedTransferRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string CancelAttendedTransferRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CancelAttendedTransferRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/CancelAttendedTransferResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CancelAttendedTransferResult::CancelAttendedTransferResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelAttendedTransferResult::CancelAttendedTransferResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelAttendedTransferResult::~CancelAttendedTransferResult()
|
||||
{}
|
||||
|
||||
void CancelAttendedTransferResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ContextId"].isNull())
|
||||
data_.contextId = std::stol(dataNode["ContextId"].asString());
|
||||
auto callContextNode = dataNode["CallContext"];
|
||||
if(!callContextNode["CallType"].isNull())
|
||||
data_.callContext.callType = callContextNode["CallType"].asString();
|
||||
if(!callContextNode["InstanceId"].isNull())
|
||||
data_.callContext.instanceId = callContextNode["InstanceId"].asString();
|
||||
if(!callContextNode["JobId"].isNull())
|
||||
data_.callContext.jobId = callContextNode["JobId"].asString();
|
||||
auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"];
|
||||
for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode)
|
||||
{
|
||||
Data::CallContext::ChannelContext channelContextObject;
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
data_.callContext.channelContexts.push_back(channelContextObject);
|
||||
}
|
||||
auto userContextNode = dataNode["UserContext"];
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["Extension"].isNull())
|
||||
data_.userContext.extension = userContextNode["Extension"].asString();
|
||||
if(!userContextNode["Heartbeat"].isNull())
|
||||
data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString());
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
if(!userContextNode["WorkMode"].isNull())
|
||||
data_.userContext.workMode = userContextNode["WorkMode"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.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();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelAttendedTransferResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CancelAttendedTransferResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelAttendedTransferResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
CancelAttendedTransferResult::Data CancelAttendedTransferResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CancelAttendedTransferResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
99
ccc/src/model/CancelJobsRequest.cc
Normal file
99
ccc/src/model/CancelJobsRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CancelJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CancelJobsRequest;
|
||||
|
||||
CancelJobsRequest::CancelJobsRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CancelJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelJobsRequest::~CancelJobsRequest()
|
||||
{}
|
||||
|
||||
bool CancelJobsRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelJobsRequest::getJobReferenceId()const
|
||||
{
|
||||
return jobReferenceId_;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setJobReferenceId(const std::vector<std::string>& jobReferenceId)
|
||||
{
|
||||
jobReferenceId_ = jobReferenceId;
|
||||
for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) {
|
||||
setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelJobsRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setJobId(const std::vector<std::string>& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
for(int dep1 = 0; dep1!= jobId.size(); dep1++) {
|
||||
setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
@@ -14,52 +14,59 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h>
|
||||
#include <alibabacloud/ccc/model/CancelJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult() :
|
||||
CancelJobsResult::CancelJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult(const std::string &payload) :
|
||||
CancelJobsResult::CancelJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddNumbersToSkillGroupResult::~AddNumbersToSkillGroupResult()
|
||||
CancelJobsResult::~CancelJobsResult()
|
||||
{}
|
||||
|
||||
void AddNumbersToSkillGroupResult::parse(const std::string &payload)
|
||||
void CancelJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddNumbersToSkillGroupResult::getMessage()const
|
||||
std::string CancelJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddNumbersToSkillGroupResult::getHttpStatusCode()const
|
||||
int CancelJobsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddNumbersToSkillGroupResult::getCode()const
|
||||
std::string CancelJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CancelJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/ChangeWorkModeRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ChangeWorkModeRequest;
|
||||
|
||||
ChangeWorkModeRequest::ChangeWorkModeRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ChangeWorkMode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeWorkModeRequest::~ChangeWorkModeRequest()
|
||||
{}
|
||||
|
||||
std::string ChangeWorkModeRequest::getWorkMode()const
|
||||
{
|
||||
return workMode_;
|
||||
}
|
||||
|
||||
void ChangeWorkModeRequest::setWorkMode(const std::string& workMode)
|
||||
{
|
||||
workMode_ = workMode;
|
||||
setParameter("WorkMode", workMode);
|
||||
}
|
||||
|
||||
std::string ChangeWorkModeRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ChangeWorkModeRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string ChangeWorkModeRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void ChangeWorkModeRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string ChangeWorkModeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ChangeWorkModeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,100 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/ChangeWorkModeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ChangeWorkModeResult::ChangeWorkModeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeWorkModeResult::ChangeWorkModeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeWorkModeResult::~ChangeWorkModeResult()
|
||||
{}
|
||||
|
||||
void ChangeWorkModeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["BreakCode"].isNull())
|
||||
data_.breakCode = dataNode["BreakCode"].asString();
|
||||
if(!dataNode["DeviceId"].isNull())
|
||||
data_.deviceId = dataNode["DeviceId"].asString();
|
||||
if(!dataNode["Extension"].isNull())
|
||||
data_.extension = dataNode["Extension"].asString();
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["JobId"].isNull())
|
||||
data_.jobId = dataNode["JobId"].asString();
|
||||
if(!dataNode["OutboundScenario"].isNull())
|
||||
data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true";
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = dataNode["UserId"].asString();
|
||||
if(!dataNode["UserState"].isNull())
|
||||
data_.userState = dataNode["UserState"].asString();
|
||||
if(!dataNode["WorkMode"].isNull())
|
||||
data_.workMode = dataNode["WorkMode"].asString();
|
||||
auto allSignedSkillGroupIdList = dataNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.signedSkillGroupIdList.push_back(value.asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.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();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeWorkModeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ChangeWorkModeResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ChangeWorkModeResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
ChangeWorkModeResult::Data ChangeWorkModeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ChangeWorkModeResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/CheckNumberAvaliableRequest.cc
Normal file
73
ccc/src/model/CheckNumberAvaliableRequest.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/ccc/model/CheckNumberAvaliableRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CheckNumberAvaliableRequest;
|
||||
|
||||
CheckNumberAvaliableRequest::CheckNumberAvaliableRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CheckNumberAvaliable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckNumberAvaliableRequest::~CheckNumberAvaliableRequest()
|
||||
{}
|
||||
|
||||
std::string CheckNumberAvaliableRequest::getCaller()const
|
||||
{
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void CheckNumberAvaliableRequest::setCaller(const std::string& caller)
|
||||
{
|
||||
caller_ = caller;
|
||||
setParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string CheckNumberAvaliableRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CheckNumberAvaliableRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CheckNumberAvaliableRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void CheckNumberAvaliableRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string CheckNumberAvaliableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckNumberAvaliableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
92
ccc/src/model/CheckNumberAvaliableResult.cc
Normal file
92
ccc/src/model/CheckNumberAvaliableResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CheckNumberAvaliableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CheckNumberAvaliableResult::CheckNumberAvaliableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckNumberAvaliableResult::CheckNumberAvaliableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckNumberAvaliableResult::~CheckNumberAvaliableResult()
|
||||
{}
|
||||
|
||||
void CheckNumberAvaliableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto callerAvaliableNode = value["CallerAvaliable"];
|
||||
if(!callerAvaliableNode["Avaliable"].isNull())
|
||||
callerAvaliable_.avaliable = callerAvaliableNode["Avaliable"].asString() == "true";
|
||||
if(!callerAvaliableNode["Reason"].isNull())
|
||||
callerAvaliable_.reason = callerAvaliableNode["Reason"].asString();
|
||||
auto calleeAvaliableNode = value["CalleeAvaliable"];
|
||||
if(!calleeAvaliableNode["Avaliable"].isNull())
|
||||
calleeAvaliable_.avaliable = calleeAvaliableNode["Avaliable"].asString() == "true";
|
||||
if(!calleeAvaliableNode["Reason"].isNull())
|
||||
calleeAvaliable_.reason = calleeAvaliableNode["Reason"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CheckNumberAvaliableResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CheckNumberAvaliableResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CheckNumberAvaliableResult::CallerAvaliable CheckNumberAvaliableResult::getCallerAvaliable()const
|
||||
{
|
||||
return callerAvaliable_;
|
||||
}
|
||||
|
||||
std::string CheckNumberAvaliableResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CheckNumberAvaliableResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CheckNumberAvaliableResult::CalleeAvaliable CheckNumberAvaliableResult::getCalleeAvaliable()const
|
||||
{
|
||||
return calleeAvaliable_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/CoachCallRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CoachCallRequest;
|
||||
|
||||
CoachCallRequest::CoachCallRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "CoachCall")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CoachCallRequest::~CoachCallRequest()
|
||||
{}
|
||||
|
||||
std::string CoachCallRequest::getCoachedUserId()const
|
||||
{
|
||||
return coachedUserId_;
|
||||
}
|
||||
|
||||
void CoachCallRequest::setCoachedUserId(const std::string& coachedUserId)
|
||||
{
|
||||
coachedUserId_ = coachedUserId;
|
||||
setParameter("CoachedUserId", coachedUserId);
|
||||
}
|
||||
|
||||
std::string CoachCallRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CoachCallRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string CoachCallRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void CoachCallRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string CoachCallRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CoachCallRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
int CoachCallRequest::getTimeoutSeconds()const
|
||||
{
|
||||
return timeoutSeconds_;
|
||||
}
|
||||
|
||||
void CoachCallRequest::setTimeoutSeconds(int timeoutSeconds)
|
||||
{
|
||||
timeoutSeconds_ = timeoutSeconds;
|
||||
setParameter("TimeoutSeconds", std::to_string(timeoutSeconds));
|
||||
}
|
||||
|
||||
std::string CoachCallRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CoachCallRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,154 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/CoachCallResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CoachCallResult::CoachCallResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CoachCallResult::CoachCallResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CoachCallResult::~CoachCallResult()
|
||||
{}
|
||||
|
||||
void CoachCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto callContextNode = dataNode["CallContext"];
|
||||
if(!callContextNode["CallType"].isNull())
|
||||
data_.callContext.callType = callContextNode["CallType"].asString();
|
||||
if(!callContextNode["InstanceId"].isNull())
|
||||
data_.callContext.instanceId = callContextNode["InstanceId"].asString();
|
||||
if(!callContextNode["JobId"].isNull())
|
||||
data_.callContext.jobId = callContextNode["JobId"].asString();
|
||||
auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"];
|
||||
for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode)
|
||||
{
|
||||
Data::CallContext::ChannelContext channelContextObject;
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull())
|
||||
channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
data_.callContext.channelContexts.push_back(channelContextObject);
|
||||
}
|
||||
auto userContextNode = dataNode["UserContext"];
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["DeviceState"].isNull())
|
||||
data_.userContext.deviceState = userContextNode["DeviceState"].asString();
|
||||
if(!userContextNode["Extension"].isNull())
|
||||
data_.userContext.extension = userContextNode["Extension"].asString();
|
||||
if(!userContextNode["Heartbeat"].isNull())
|
||||
data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString());
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["Uri"].isNull())
|
||||
data_.userContext.uri = userContextNode["Uri"].asString();
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
if(!userContextNode["WorkMode"].isNull())
|
||||
data_.userContext.workMode = userContextNode["WorkMode"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.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();
|
||||
|
||||
}
|
||||
|
||||
std::string CoachCallResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CoachCallResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CoachCallResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
CoachCallResult::Data CoachCallResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CoachCallResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
ccc/src/model/CommitContactFlowVersionModificationRequest.cc
Normal file
84
ccc/src/model/CommitContactFlowVersionModificationRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CommitContactFlowVersionModificationRequest;
|
||||
|
||||
CommitContactFlowVersionModificationRequest::CommitContactFlowVersionModificationRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CommitContactFlowVersionModification")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CommitContactFlowVersionModificationRequest::~CommitContactFlowVersionModificationRequest()
|
||||
{}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getCanvas()const
|
||||
{
|
||||
return canvas_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setCanvas(const std::string& canvas)
|
||||
{
|
||||
canvas_ = canvas;
|
||||
setBodyParameter("Canvas", canvas);
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getContactFlowVersionId()const
|
||||
{
|
||||
return contactFlowVersionId_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setContactFlowVersionId(const std::string& contactFlowVersionId)
|
||||
{
|
||||
contactFlowVersionId_ = contactFlowVersionId;
|
||||
setParameter("ContactFlowVersionId", contactFlowVersionId);
|
||||
}
|
||||
|
||||
96
ccc/src/model/CommitContactFlowVersionModificationResult.cc
Normal file
96
ccc/src/model/CommitContactFlowVersionModificationResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/ccc/model/CommitContactFlowVersionModificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CommitContactFlowVersionModificationResult::CommitContactFlowVersionModificationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CommitContactFlowVersionModificationResult::CommitContactFlowVersionModificationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CommitContactFlowVersionModificationResult::~CommitContactFlowVersionModificationResult()
|
||||
{}
|
||||
|
||||
void CommitContactFlowVersionModificationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto contactFlowVersionNode = value["ContactFlowVersion"];
|
||||
if(!contactFlowVersionNode["ContactFlowVersionId"].isNull())
|
||||
contactFlowVersion_.contactFlowVersionId = contactFlowVersionNode["ContactFlowVersionId"].asString();
|
||||
if(!contactFlowVersionNode["Version"].isNull())
|
||||
contactFlowVersion_.version = contactFlowVersionNode["Version"].asString();
|
||||
if(!contactFlowVersionNode["ContactFlowVersionDescription"].isNull())
|
||||
contactFlowVersion_.contactFlowVersionDescription = contactFlowVersionNode["ContactFlowVersionDescription"].asString();
|
||||
if(!contactFlowVersionNode["Canvas"].isNull())
|
||||
contactFlowVersion_.canvas = contactFlowVersionNode["Canvas"].asString();
|
||||
if(!contactFlowVersionNode["Content"].isNull())
|
||||
contactFlowVersion_.content = contactFlowVersionNode["Content"].asString();
|
||||
if(!contactFlowVersionNode["LastModified"].isNull())
|
||||
contactFlowVersion_.lastModified = contactFlowVersionNode["LastModified"].asString();
|
||||
if(!contactFlowVersionNode["LastModifiedBy"].isNull())
|
||||
contactFlowVersion_.lastModifiedBy = contactFlowVersionNode["LastModifiedBy"].asString();
|
||||
if(!contactFlowVersionNode["LockedBy"].isNull())
|
||||
contactFlowVersion_.lockedBy = contactFlowVersionNode["LockedBy"].asString();
|
||||
if(!contactFlowVersionNode["Status"].isNull())
|
||||
contactFlowVersion_.status = contactFlowVersionNode["Status"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CommitContactFlowVersionModificationResult::ContactFlowVersion CommitContactFlowVersionModificationResult::getContactFlowVersion()const
|
||||
{
|
||||
return contactFlowVersion_;
|
||||
}
|
||||
|
||||
int CommitContactFlowVersionModificationResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CommitContactFlowVersionModificationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/CompleteAttendedTransferRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CompleteAttendedTransferRequest;
|
||||
|
||||
CompleteAttendedTransferRequest::CompleteAttendedTransferRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "CompleteAttendedTransfer")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CompleteAttendedTransferRequest::~CompleteAttendedTransferRequest()
|
||||
{}
|
||||
|
||||
std::string CompleteAttendedTransferRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CompleteAttendedTransferRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string CompleteAttendedTransferRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void CompleteAttendedTransferRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string CompleteAttendedTransferRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CompleteAttendedTransferRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string CompleteAttendedTransferRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CompleteAttendedTransferRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,152 +0,0 @@
|
||||
/*
|
||||
* 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/ccc/model/CompleteAttendedTransferResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CompleteAttendedTransferResult::CompleteAttendedTransferResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompleteAttendedTransferResult::CompleteAttendedTransferResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompleteAttendedTransferResult::~CompleteAttendedTransferResult()
|
||||
{}
|
||||
|
||||
void CompleteAttendedTransferResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ContextId"].isNull())
|
||||
data_.contextId = std::stol(dataNode["ContextId"].asString());
|
||||
auto callContextNode = dataNode["CallContext"];
|
||||
if(!callContextNode["CallType"].isNull())
|
||||
data_.callContext.callType = callContextNode["CallType"].asString();
|
||||
if(!callContextNode["InstanceId"].isNull())
|
||||
data_.callContext.instanceId = callContextNode["InstanceId"].asString();
|
||||
if(!callContextNode["JobId"].isNull())
|
||||
data_.callContext.jobId = callContextNode["JobId"].asString();
|
||||
auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"];
|
||||
for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode)
|
||||
{
|
||||
Data::CallContext::ChannelContext channelContextObject;
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull())
|
||||
channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
data_.callContext.channelContexts.push_back(channelContextObject);
|
||||
}
|
||||
auto userContextNode = dataNode["UserContext"];
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["Extension"].isNull())
|
||||
data_.userContext.extension = userContextNode["Extension"].asString();
|
||||
if(!userContextNode["Heartbeat"].isNull())
|
||||
data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString());
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
if(!userContextNode["WorkMode"].isNull())
|
||||
data_.userContext.workMode = userContextNode["WorkMode"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.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();
|
||||
|
||||
}
|
||||
|
||||
std::string CompleteAttendedTransferResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CompleteAttendedTransferResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CompleteAttendedTransferResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
CompleteAttendedTransferResult::Data CompleteAttendedTransferResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CompleteAttendedTransferResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
119
ccc/src/model/CreateBatchJobsRequest.cc
Normal file
119
ccc/src/model/CreateBatchJobsRequest.cc
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateBatchJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateBatchJobsRequest;
|
||||
|
||||
CreateBatchJobsRequest::CreateBatchJobsRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateBatchJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBatchJobsRequest::~CreateBatchJobsRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBatchJobsRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getJobFilePath()const
|
||||
{
|
||||
return jobFilePath_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath)
|
||||
{
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter("JobFilePath", jobFilePath);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateBatchJobsRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
bool CreateBatchJobsRequest::getSubmitted()const
|
||||
{
|
||||
return submitted_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setSubmitted(bool submitted)
|
||||
{
|
||||
submitted_ = submitted;
|
||||
setParameter("Submitted", submitted ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
133
ccc/src/model/CreateBatchJobsResult.cc
Normal file
133
ccc/src/model/CreateBatchJobsResult.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateBatchJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateBatchJobsResult::CreateBatchJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBatchJobsResult::CreateBatchJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBatchJobsResult::~CreateBatchJobsResult()
|
||||
{}
|
||||
|
||||
void CreateBatchJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["JobGroupId"].isNull())
|
||||
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
|
||||
if(!jobGroupNode["JobGroupName"].isNull())
|
||||
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["ScenarioId"].isNull())
|
||||
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
auto strategyNode = jobGroupNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
jobGroup_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
JobGroup::Strategy::TimeFrame timeFrameObject;
|
||||
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
|
||||
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
|
||||
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
|
||||
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
|
||||
jobGroup_.strategy.workingTime.push_back(timeFrameObject);
|
||||
}
|
||||
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
|
||||
for (auto value : allRepeatDays)
|
||||
jobGroup_.strategy.repeatDays.push_back(value.asString());
|
||||
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobGroup_.callingNumbers.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
CreateBatchJobsResult::JobGroup CreateBatchJobsResult::getJobGroup()const
|
||||
{
|
||||
return jobGroup_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateBatchJobsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateBatchJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/CreateCabInstanceRequest.cc
Normal file
73
ccc/src/model/CreateCabInstanceRequest.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/ccc/model/CreateCabInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateCabInstanceRequest;
|
||||
|
||||
CreateCabInstanceRequest::CreateCabInstanceRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateCabInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCabInstanceRequest::~CreateCabInstanceRequest()
|
||||
{}
|
||||
|
||||
int CreateCabInstanceRequest::getMaxConcurrentConversation()const
|
||||
{
|
||||
return maxConcurrentConversation_;
|
||||
}
|
||||
|
||||
void CreateCabInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation)
|
||||
{
|
||||
maxConcurrentConversation_ = maxConcurrentConversation;
|
||||
setParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation));
|
||||
}
|
||||
|
||||
std::string CreateCabInstanceRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void CreateCabInstanceRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setParameter("InstanceName", instanceName);
|
||||
}
|
||||
|
||||
std::string CreateCabInstanceRequest::getCallCenterInstanceId()const
|
||||
{
|
||||
return callCenterInstanceId_;
|
||||
}
|
||||
|
||||
void CreateCabInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId)
|
||||
{
|
||||
callCenterInstanceId_ = callCenterInstanceId;
|
||||
setParameter("CallCenterInstanceId", callCenterInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateCabInstanceRequest::getInstanceDescription()const
|
||||
{
|
||||
return instanceDescription_;
|
||||
}
|
||||
|
||||
void CreateCabInstanceRequest::setInstanceDescription(const std::string& instanceDescription)
|
||||
{
|
||||
instanceDescription_ = instanceDescription;
|
||||
setParameter("InstanceDescription", instanceDescription);
|
||||
}
|
||||
|
||||
92
ccc/src/model/CreateCabInstanceResult.cc
Normal file
92
ccc/src/model/CreateCabInstanceResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateCabInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateCabInstanceResult::CreateCabInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCabInstanceResult::CreateCabInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCabInstanceResult::~CreateCabInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateCabInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["MaxConcurrentConversation"].isNull())
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCabInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateCabInstanceResult::Instance CreateCabInstanceResult::getInstance()const
|
||||
{
|
||||
return instance_;
|
||||
}
|
||||
|
||||
int CreateCabInstanceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateCabInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateCabInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
ccc/src/model/CreateContactFlowRequest.cc
Normal file
106
ccc/src/model/CreateContactFlowRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateContactFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateContactFlowRequest;
|
||||
|
||||
CreateContactFlowRequest::CreateContactFlowRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateContactFlow")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateContactFlowRequest::~CreateContactFlowRequest()
|
||||
{}
|
||||
|
||||
std::string CreateContactFlowRequest::getCanvas()const
|
||||
{
|
||||
return canvas_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setCanvas(const std::string& canvas)
|
||||
{
|
||||
canvas_ = canvas;
|
||||
setBodyParameter("Canvas", canvas);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
138
ccc/src/model/CreateContactFlowResult.cc
Normal file
138
ccc/src/model/CreateContactFlowResult.cc
Normal file
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateContactFlowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateContactFlowResult::CreateContactFlowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateContactFlowResult::CreateContactFlowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateContactFlowResult::~CreateContactFlowResult()
|
||||
{}
|
||||
|
||||
void CreateContactFlowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto contactFlowNode = value["ContactFlow"];
|
||||
if(!contactFlowNode["ContactFlowId"].isNull())
|
||||
contactFlow_.contactFlowId = contactFlowNode["ContactFlowId"].asString();
|
||||
if(!contactFlowNode["InstanceId"].isNull())
|
||||
contactFlow_.instanceId = contactFlowNode["InstanceId"].asString();
|
||||
if(!contactFlowNode["ContactFlowName"].isNull())
|
||||
contactFlow_.contactFlowName = contactFlowNode["ContactFlowName"].asString();
|
||||
if(!contactFlowNode["ContactFlowDescription"].isNull())
|
||||
contactFlow_.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString();
|
||||
if(!contactFlowNode["Type"].isNull())
|
||||
contactFlow_.type = contactFlowNode["Type"].asString();
|
||||
if(!contactFlowNode["AppliedVersion"].isNull())
|
||||
contactFlow_.appliedVersion = contactFlowNode["AppliedVersion"].asString();
|
||||
auto allVersionsNode = contactFlowNode["Versions"]["ContactFlowVersion"];
|
||||
for (auto contactFlowNodeVersionsContactFlowVersion : allVersionsNode)
|
||||
{
|
||||
ContactFlow::ContactFlowVersion contactFlowVersionObject;
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionId"].isNull())
|
||||
contactFlowVersionObject.contactFlowVersionId = contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionId"].asString();
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["Version"].isNull())
|
||||
contactFlowVersionObject.version = contactFlowNodeVersionsContactFlowVersion["Version"].asString();
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionDescription"].isNull())
|
||||
contactFlowVersionObject.contactFlowVersionDescription = contactFlowNodeVersionsContactFlowVersion["ContactFlowVersionDescription"].asString();
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["Canvas"].isNull())
|
||||
contactFlowVersionObject.canvas = contactFlowNodeVersionsContactFlowVersion["Canvas"].asString();
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["Content"].isNull())
|
||||
contactFlowVersionObject.content = contactFlowNodeVersionsContactFlowVersion["Content"].asString();
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["LastModified"].isNull())
|
||||
contactFlowVersionObject.lastModified = contactFlowNodeVersionsContactFlowVersion["LastModified"].asString();
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["LastModifiedBy"].isNull())
|
||||
contactFlowVersionObject.lastModifiedBy = contactFlowNodeVersionsContactFlowVersion["LastModifiedBy"].asString();
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["LockedBy"].isNull())
|
||||
contactFlowVersionObject.lockedBy = contactFlowNodeVersionsContactFlowVersion["LockedBy"].asString();
|
||||
if(!contactFlowNodeVersionsContactFlowVersion["Status"].isNull())
|
||||
contactFlowVersionObject.status = contactFlowNodeVersionsContactFlowVersion["Status"].asString();
|
||||
contactFlow_.versions.push_back(contactFlowVersionObject);
|
||||
}
|
||||
auto allPhoneNumbersNode = contactFlowNode["PhoneNumbers"]["PhoneNumber"];
|
||||
for (auto contactFlowNodePhoneNumbersPhoneNumber : allPhoneNumbersNode)
|
||||
{
|
||||
ContactFlow::PhoneNumber phoneNumberObject;
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
||||
phoneNumberObject.phoneNumberId = contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["InstanceId"].isNull())
|
||||
phoneNumberObject.instanceId = contactFlowNodePhoneNumbersPhoneNumber["InstanceId"].asString();
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["Number"].isNull())
|
||||
phoneNumberObject.number = contactFlowNodePhoneNumbersPhoneNumber["Number"].asString();
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
||||
phoneNumberObject.phoneNumberDescription = contactFlowNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["TestOnly"].isNull())
|
||||
phoneNumberObject.testOnly = contactFlowNodePhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
||||
phoneNumberObject.remainingTime = std::stoi(contactFlowNodePhoneNumbersPhoneNumber["RemainingTime"].asString());
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
||||
phoneNumberObject.allowOutbound = contactFlowNodePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["Usage"].isNull())
|
||||
phoneNumberObject.usage = contactFlowNodePhoneNumbersPhoneNumber["Usage"].asString();
|
||||
if(!contactFlowNodePhoneNumbersPhoneNumber["Trunks"].isNull())
|
||||
phoneNumberObject.trunks = std::stoi(contactFlowNodePhoneNumbersPhoneNumber["Trunks"].asString());
|
||||
contactFlow_.phoneNumbers.push_back(phoneNumberObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateContactFlowResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateContactFlowResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CreateContactFlowResult::ContactFlow CreateContactFlowResult::getContactFlow()const
|
||||
{
|
||||
return contactFlow_;
|
||||
}
|
||||
|
||||
std::string CreateContactFlowResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateContactFlowResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
260
ccc/src/model/CreateFaultRequest.cc
Normal file
260
ccc/src/model/CreateFaultRequest.cc
Normal file
@@ -0,0 +1,260 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateFaultRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateFaultRequest;
|
||||
|
||||
CreateFaultRequest::CreateFaultRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateFault")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFaultRequest::~CreateFaultRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFaultRequest::getAgentOssFileName()const
|
||||
{
|
||||
return agentOssFileName_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setAgentOssFileName(const std::string& agentOssFileName)
|
||||
{
|
||||
agentOssFileName_ = agentOssFileName;
|
||||
setParameter("AgentOssFileName", agentOssFileName);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getOperatingSystemVersion()const
|
||||
{
|
||||
return operatingSystemVersion_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setOperatingSystemVersion(const std::string& operatingSystemVersion)
|
||||
{
|
||||
operatingSystemVersion_ = operatingSystemVersion;
|
||||
setParameter("OperatingSystemVersion", operatingSystemVersion);
|
||||
}
|
||||
|
||||
long CreateFaultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getMicrophoneList()const
|
||||
{
|
||||
return microphoneList_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setMicrophoneList(const std::string& microphoneList)
|
||||
{
|
||||
microphoneList_ = microphoneList;
|
||||
setParameter("MicrophoneList", microphoneList);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getClientPort()const
|
||||
{
|
||||
return clientPort_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setClientPort(const std::string& clientPort)
|
||||
{
|
||||
clientPort_ = clientPort;
|
||||
setParameter("ClientPort", clientPort);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getCustomFilePath()const
|
||||
{
|
||||
return customFilePath_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setCustomFilePath(const std::string& customFilePath)
|
||||
{
|
||||
customFilePath_ = customFilePath;
|
||||
setParameter("CustomFilePath", customFilePath);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getClientIp()const
|
||||
{
|
||||
return clientIp_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setClientIp(const std::string& clientIp)
|
||||
{
|
||||
clientIp_ = clientIp;
|
||||
setParameter("ClientIp", clientIp);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getSpeakerList()const
|
||||
{
|
||||
return speakerList_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setSpeakerList(const std::string& speakerList)
|
||||
{
|
||||
speakerList_ = speakerList;
|
||||
setParameter("SpeakerList", speakerList);
|
||||
}
|
||||
|
||||
long CreateFaultRequest::getAgentId()const
|
||||
{
|
||||
return agentId_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setAgentId(long agentId)
|
||||
{
|
||||
agentId_ = agentId;
|
||||
setParameter("AgentId", std::to_string(agentId));
|
||||
}
|
||||
|
||||
long CreateFaultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getSpeakerEquipment()const
|
||||
{
|
||||
return speakerEquipment_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setSpeakerEquipment(const std::string& speakerEquipment)
|
||||
{
|
||||
speakerEquipment_ = speakerEquipment;
|
||||
setParameter("SpeakerEquipment", speakerEquipment);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getServicePort()const
|
||||
{
|
||||
return servicePort_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setServicePort(const std::string& servicePort)
|
||||
{
|
||||
servicePort_ = servicePort;
|
||||
setParameter("ServicePort", servicePort);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getServiceIp()const
|
||||
{
|
||||
return serviceIp_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setServiceIp(const std::string& serviceIp)
|
||||
{
|
||||
serviceIp_ = serviceIp;
|
||||
setParameter("ServiceIp", serviceIp);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getAgentFilePath()const
|
||||
{
|
||||
return agentFilePath_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setAgentFilePath(const std::string& agentFilePath)
|
||||
{
|
||||
agentFilePath_ = agentFilePath;
|
||||
setParameter("AgentFilePath", agentFilePath);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getConnectId()const
|
||||
{
|
||||
return connectId_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setConnectId(const std::string& connectId)
|
||||
{
|
||||
connectId_ = connectId;
|
||||
setParameter("ConnectId", connectId);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getCustomOssFileName()const
|
||||
{
|
||||
return customOssFileName_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setCustomOssFileName(const std::string& customOssFileName)
|
||||
{
|
||||
customOssFileName_ = customOssFileName;
|
||||
setParameter("CustomOssFileName", customOssFileName);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getMicrophoneEquipment()const
|
||||
{
|
||||
return microphoneEquipment_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setMicrophoneEquipment(const std::string& microphoneEquipment)
|
||||
{
|
||||
microphoneEquipment_ = microphoneEquipment;
|
||||
setParameter("MicrophoneEquipment", microphoneEquipment);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getBrowserVersion()const
|
||||
{
|
||||
return browserVersion_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setBrowserVersion(const std::string& browserVersion)
|
||||
{
|
||||
browserVersion_ = browserVersion;
|
||||
setParameter("BrowserVersion", browserVersion);
|
||||
}
|
||||
|
||||
@@ -14,52 +14,59 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/AddUsersToSkillGroupResult.h>
|
||||
#include <alibabacloud/ccc/model/CreateFaultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddUsersToSkillGroupResult::AddUsersToSkillGroupResult() :
|
||||
CreateFaultResult::CreateFaultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddUsersToSkillGroupResult::AddUsersToSkillGroupResult(const std::string &payload) :
|
||||
CreateFaultResult::CreateFaultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddUsersToSkillGroupResult::~AddUsersToSkillGroupResult()
|
||||
CreateFaultResult::~CreateFaultResult()
|
||||
{}
|
||||
|
||||
void AddUsersToSkillGroupResult::parse(const std::string &payload)
|
||||
void CreateFaultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddUsersToSkillGroupResult::getMessage()const
|
||||
std::string CreateFaultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddUsersToSkillGroupResult::getHttpStatusCode()const
|
||||
int CreateFaultResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddUsersToSkillGroupResult::getCode()const
|
||||
std::string CreateFaultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateFaultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::CCC::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "CreateInstance")
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -27,15 +27,30 @@ CreateInstanceRequest::CreateInstanceRequest() :
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateInstanceRequest::getAdminRamIdList()const
|
||||
std::vector<std::string> CreateInstanceRequest::getPhoneNumbers()const
|
||||
{
|
||||
return adminRamIdList_;
|
||||
return phoneNumbers_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAdminRamIdList(const std::string& adminRamIdList)
|
||||
void CreateInstanceRequest::setPhoneNumbers(const std::vector<std::string>& phoneNumbers)
|
||||
{
|
||||
adminRamIdList_ = adminRamIdList;
|
||||
setParameter("AdminRamIdList", adminRamIdList);
|
||||
phoneNumbers_ = phoneNumbers;
|
||||
for(int dep1 = 0; dep1!= phoneNumbers.size(); dep1++) {
|
||||
setParameter("PhoneNumbers."+ std::to_string(dep1), phoneNumbers.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateInstanceRequest::getUserObject()const
|
||||
{
|
||||
return userObject_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setUserObject(const std::vector<std::string>& userObject)
|
||||
{
|
||||
userObject_ = userObject;
|
||||
for(int dep1 = 0; dep1!= userObject.size(); dep1++) {
|
||||
setParameter("UserObject."+ std::to_string(dep1), userObject.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDomainName()const
|
||||
@@ -49,6 +64,17 @@ void CreateInstanceRequest::setDomainName(const std::string& domainName)
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
@@ -60,15 +86,39 @@ void CreateInstanceRequest::setDescription(const std::string& description)
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getNumberList()const
|
||||
int CreateInstanceRequest::getStorageMaxDays()const
|
||||
{
|
||||
return numberList_;
|
||||
return storageMaxDays_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setNumberList(const std::string& numberList)
|
||||
void CreateInstanceRequest::setStorageMaxDays(int storageMaxDays)
|
||||
{
|
||||
numberList_ = numberList;
|
||||
setParameter("NumberList", numberList);
|
||||
storageMaxDays_ = storageMaxDays;
|
||||
setParameter("StorageMaxDays", std::to_string(storageMaxDays));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateInstanceRequest::getAdminRamId()const
|
||||
{
|
||||
return adminRamId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAdminRamId(const std::vector<std::string>& adminRamId)
|
||||
{
|
||||
adminRamId_ = adminRamId;
|
||||
for(int dep1 = 0; dep1!= adminRamId.size(); dep1++) {
|
||||
setParameter("AdminRamId."+ std::to_string(dep1), adminRamId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getName()const
|
||||
@@ -82,3 +132,25 @@ void CreateInstanceRequest::setName(const std::string& name)
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getStorageMaxSize()const
|
||||
{
|
||||
return storageMaxSize_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setStorageMaxSize(int storageMaxSize)
|
||||
{
|
||||
storageMaxSize_ = storageMaxSize;
|
||||
setParameter("StorageMaxSize", std::to_string(storageMaxSize));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDirectoryId()const
|
||||
{
|
||||
return directoryId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDirectoryId(const std::string& directoryId)
|
||||
{
|
||||
directoryId_ = directoryId;
|
||||
setParameter("DirectoryId", directoryId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,17 +39,102 @@ void CreateInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["DomainName"].isNull())
|
||||
instance_.domainName = instanceNode["DomainName"].asString();
|
||||
if(!instanceNode["ConsoleUrl"].isNull())
|
||||
instance_.consoleUrl = instanceNode["ConsoleUrl"].asString();
|
||||
if(!instanceNode["StorageBucket"].isNull())
|
||||
instance_.storageBucket = instanceNode["StorageBucket"].asString();
|
||||
if(!instanceNode["StorageMaxDays"].isNull())
|
||||
instance_.storageMaxDays = std::stoi(instanceNode["StorageMaxDays"].asString());
|
||||
if(!instanceNode["StorageMaxSize"].isNull())
|
||||
instance_.storageMaxSize = std::stoi(instanceNode["StorageMaxSize"].asString());
|
||||
if(!instanceNode["MaxOnlineAgents"].isNull())
|
||||
instance_.maxOnlineAgents = std::stoi(instanceNode["MaxOnlineAgents"].asString());
|
||||
if(!instanceNode["TenantId"].isNull())
|
||||
instance_.tenantId = instanceNode["TenantId"].asString();
|
||||
if(!instanceNode["Status"].isNull())
|
||||
instance_.status = instanceNode["Status"].asString();
|
||||
if(!instanceNode["DirectoryId"].isNull())
|
||||
instance_.directoryId = instanceNode["DirectoryId"].asString();
|
||||
if(!instanceNode["CreatedTime"].isNull())
|
||||
instance_.createdTime = std::stol(instanceNode["CreatedTime"].asString());
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
auto allAdminNode = instanceNode["Admin"]["User"];
|
||||
for (auto instanceNodeAdminUser : allAdminNode)
|
||||
{
|
||||
Instance::User userObject;
|
||||
if(!instanceNodeAdminUser["UserId"].isNull())
|
||||
userObject.userId = instanceNodeAdminUser["UserId"].asString();
|
||||
if(!instanceNodeAdminUser["RamId"].isNull())
|
||||
userObject.ramId = instanceNodeAdminUser["RamId"].asString();
|
||||
if(!instanceNodeAdminUser["InstanceId"].isNull())
|
||||
userObject.instanceId = instanceNodeAdminUser["InstanceId"].asString();
|
||||
auto detailNode = value["Detail"];
|
||||
if(!detailNode["LoginName"].isNull())
|
||||
userObject.detail.loginName = detailNode["LoginName"].asString();
|
||||
if(!detailNode["DisplayName"].isNull())
|
||||
userObject.detail.displayName = detailNode["DisplayName"].asString();
|
||||
if(!detailNode["Phone"].isNull())
|
||||
userObject.detail.phone = detailNode["Phone"].asString();
|
||||
if(!detailNode["Email"].isNull())
|
||||
userObject.detail.email = detailNode["Email"].asString();
|
||||
if(!detailNode["Department"].isNull())
|
||||
userObject.detail.department = detailNode["Department"].asString();
|
||||
instance_.admin.push_back(userObject);
|
||||
}
|
||||
auto allPhoneNumbersNode = instanceNode["PhoneNumbers"]["PhoneNumber"];
|
||||
for (auto instanceNodePhoneNumbersPhoneNumber : allPhoneNumbersNode)
|
||||
{
|
||||
Instance::PhoneNumber phoneNumberObject;
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
||||
phoneNumberObject.phoneNumberId = instanceNodePhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["InstanceId"].isNull())
|
||||
phoneNumberObject.instanceId = instanceNodePhoneNumbersPhoneNumber["InstanceId"].asString();
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["Number"].isNull())
|
||||
phoneNumberObject.number = instanceNodePhoneNumbersPhoneNumber["Number"].asString();
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
||||
phoneNumberObject.phoneNumberDescription = instanceNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["TestOnly"].isNull())
|
||||
phoneNumberObject.testOnly = instanceNodePhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
||||
phoneNumberObject.remainingTime = std::stoi(instanceNodePhoneNumbersPhoneNumber["RemainingTime"].asString());
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
||||
phoneNumberObject.allowOutbound = instanceNodePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["Usage"].isNull())
|
||||
phoneNumberObject.usage = instanceNodePhoneNumbersPhoneNumber["Usage"].asString();
|
||||
if(!instanceNodePhoneNumbersPhoneNumber["Trunks"].isNull())
|
||||
phoneNumberObject.trunks = std::stoi(instanceNodePhoneNumbersPhoneNumber["Trunks"].asString());
|
||||
instance_.phoneNumbers.push_back(phoneNumberObject);
|
||||
}
|
||||
auto allSuccessPhoneNumbers = instanceNode["SuccessPhoneNumbers"]["SuccessPhoneNumber"];
|
||||
for (auto value : allSuccessPhoneNumbers)
|
||||
instance_.successPhoneNumbers.push_back(value.asString());
|
||||
auto allFailPhoneNumbers = instanceNode["FailPhoneNumbers"]["FailPhoneNumber"];
|
||||
for (auto value : allFailPhoneNumbers)
|
||||
instance_.failPhoneNumbers.push_back(value.asString());
|
||||
auto allSuccessLoginNames = instanceNode["SuccessLoginNames"]["SuccessLoginName"];
|
||||
for (auto value : allSuccessLoginNames)
|
||||
instance_.successLoginNames.push_back(value.asString());
|
||||
auto allFailLoginNames = instanceNode["FailLoginNames"]["FailLoginName"];
|
||||
for (auto value : allFailLoginNames)
|
||||
instance_.failLoginNames.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -58,23 +143,23 @@ std::string CreateInstanceResult::getMessage()const
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateInstanceResult::Instance CreateInstanceResult::getInstance()const
|
||||
{
|
||||
return instance_;
|
||||
}
|
||||
|
||||
int CreateInstanceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateInstanceResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
97
ccc/src/model/CreateJobGroupRequest.cc
Normal file
97
ccc/src/model/CreateJobGroupRequest.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateJobGroupRequest;
|
||||
|
||||
CreateJobGroupRequest::CreateJobGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateJobGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateJobGroupRequest::~CreateJobGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateJobGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateJobGroupRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
133
ccc/src/model/CreateJobGroupResult.cc
Normal file
133
ccc/src/model/CreateJobGroupResult.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateJobGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateJobGroupResult::CreateJobGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateJobGroupResult::CreateJobGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateJobGroupResult::~CreateJobGroupResult()
|
||||
{}
|
||||
|
||||
void CreateJobGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["JobGroupId"].isNull())
|
||||
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
|
||||
if(!jobGroupNode["JobGroupName"].isNull())
|
||||
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["ScenarioId"].isNull())
|
||||
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
auto strategyNode = jobGroupNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
jobGroup_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
JobGroup::Strategy::TimeFrame timeFrameObject;
|
||||
if(!strategyNodeWorkingTimeTimeFrame["From"].isNull())
|
||||
timeFrameObject.from = strategyNodeWorkingTimeTimeFrame["From"].asString();
|
||||
if(!strategyNodeWorkingTimeTimeFrame["To"].isNull())
|
||||
timeFrameObject.to = strategyNodeWorkingTimeTimeFrame["To"].asString();
|
||||
jobGroup_.strategy.workingTime.push_back(timeFrameObject);
|
||||
}
|
||||
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
|
||||
for (auto value : allRepeatDays)
|
||||
jobGroup_.strategy.repeatDays.push_back(value.asString());
|
||||
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobGroup_.callingNumbers.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
CreateJobGroupResult::JobGroup CreateJobGroupResult::getJobGroup()const
|
||||
{
|
||||
return jobGroup_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateJobGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateJobGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
139
ccc/src/model/CreateMediaRequest.cc
Normal file
139
ccc/src/model/CreateMediaRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateMediaRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateMediaRequest;
|
||||
|
||||
CreateMediaRequest::CreateMediaRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateMedia")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMediaRequest::~CreateMediaRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMediaRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getOssFilePath()const
|
||||
{
|
||||
return ossFilePath_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setOssFilePath(const std::string& ossFilePath)
|
||||
{
|
||||
ossFilePath_ = ossFilePath;
|
||||
setParameter("OssFilePath", ossFilePath);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getUploadResult()const
|
||||
{
|
||||
return uploadResult_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setUploadResult(const std::string& uploadResult)
|
||||
{
|
||||
uploadResult_ = uploadResult;
|
||||
setParameter("UploadResult", uploadResult);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getOssFileName()const
|
||||
{
|
||||
return ossFileName_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setOssFileName(const std::string& ossFileName)
|
||||
{
|
||||
ossFileName_ = ossFileName;
|
||||
setParameter("OssFileName", ossFileName);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
90
ccc/src/model/CreateMediaResult.cc
Normal file
90
ccc/src/model/CreateMediaResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateMediaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateMediaResult::CreateMediaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMediaResult::CreateMediaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMediaResult::~CreateMediaResult()
|
||||
{}
|
||||
|
||||
void CreateMediaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto mediaUploadParamNode = value["MediaUploadParam"];
|
||||
if(!mediaUploadParamNode["Id"].isNull())
|
||||
mediaUploadParam_.id = mediaUploadParamNode["Id"].asString();
|
||||
if(!mediaUploadParamNode["Instance"].isNull())
|
||||
mediaUploadParam_.instance = mediaUploadParamNode["Instance"].asString();
|
||||
if(!mediaUploadParamNode["Name"].isNull())
|
||||
mediaUploadParam_.name = mediaUploadParamNode["Name"].asString();
|
||||
if(!mediaUploadParamNode["FileName"].isNull())
|
||||
mediaUploadParam_.fileName = mediaUploadParamNode["FileName"].asString();
|
||||
if(!mediaUploadParamNode["OssFileName"].isNull())
|
||||
mediaUploadParam_.ossFileName = mediaUploadParamNode["OssFileName"].asString();
|
||||
if(!mediaUploadParamNode["OssFilePath"].isNull())
|
||||
mediaUploadParam_.ossFilePath = mediaUploadParamNode["OssFilePath"].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());
|
||||
|
||||
}
|
||||
|
||||
CreateMediaResult::MediaUploadParam CreateMediaResult::getMediaUploadParam()const
|
||||
{
|
||||
return mediaUploadParam_;
|
||||
}
|
||||
|
||||
std::string CreateMediaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateMediaResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateMediaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateMediaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
141
ccc/src/model/CreatePredictiveJobGroupRequest.cc
Normal file
141
ccc/src/model/CreatePredictiveJobGroupRequest.cc
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* 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/ccc/model/CreatePredictiveJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreatePredictiveJobGroupRequest;
|
||||
|
||||
CreatePredictiveJobGroupRequest::CreatePredictiveJobGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreatePredictiveJobGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePredictiveJobGroupRequest::~CreatePredictiveJobGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreatePredictiveJobGroupRequest::getTimingSchedule()const
|
||||
{
|
||||
return timingSchedule_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setTimingSchedule(bool timingSchedule)
|
||||
{
|
||||
timingSchedule_ = timingSchedule;
|
||||
setParameter("TimingSchedule", timingSchedule ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getJobFilePath()const
|
||||
{
|
||||
return jobFilePath_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setJobFilePath(const std::string& jobFilePath)
|
||||
{
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter("JobFilePath", jobFilePath);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreatePredictiveJobGroupRequest::getJobsJson()const
|
||||
{
|
||||
return jobsJson_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setJobsJson(const std::vector<std::string>& jobsJson)
|
||||
{
|
||||
jobsJson_ = jobsJson;
|
||||
for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) {
|
||||
setBodyParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
bool CreatePredictiveJobGroupRequest::getIsDraft()const
|
||||
{
|
||||
return isDraft_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setIsDraft(bool isDraft)
|
||||
{
|
||||
isDraft_ = isDraft;
|
||||
setParameter("IsDraft", isDraft ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreatePredictiveJobGroupRequest::getRatio()const
|
||||
{
|
||||
return ratio_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setRatio(int ratio)
|
||||
{
|
||||
ratio_ = ratio;
|
||||
setParameter("Ratio", std::to_string(ratio));
|
||||
}
|
||||
|
||||
@@ -14,62 +14,66 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetMultiChannelRecordingResult.h>
|
||||
#include <alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetMultiChannelRecordingResult::GetMultiChannelRecordingResult() :
|
||||
CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMultiChannelRecordingResult::GetMultiChannelRecordingResult(const std::string &payload) :
|
||||
CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMultiChannelRecordingResult::~GetMultiChannelRecordingResult()
|
||||
CreatePredictiveJobGroupResult::~CreatePredictiveJobGroupResult()
|
||||
{}
|
||||
|
||||
void GetMultiChannelRecordingResult::parse(const std::string &payload)
|
||||
void CreatePredictiveJobGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["FileName"].isNull())
|
||||
data_.fileName = dataNode["FileName"].asString();
|
||||
if(!dataNode["FileUrl"].isNull())
|
||||
data_.fileUrl = dataNode["FileUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["JobGroupId"].isNull())
|
||||
jobGroupId_ = value["JobGroupId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetMultiChannelRecordingResult::getMessage()const
|
||||
std::string CreatePredictiveJobGroupResult::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetMultiChannelRecordingResult::getHttpStatusCode()const
|
||||
int CreatePredictiveJobGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetMultiChannelRecordingResult::Data GetMultiChannelRecordingResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMultiChannelRecordingResult::getCode()const
|
||||
std::string CreatePredictiveJobGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreatePredictiveJobGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
ccc/src/model/CreateScenarioFromTemplateRequest.cc
Normal file
84
ccc/src/model/CreateScenarioFromTemplateRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateScenarioFromTemplateRequest;
|
||||
|
||||
CreateScenarioFromTemplateRequest::CreateScenarioFromTemplateRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateScenarioFromTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateScenarioFromTemplateRequest::~CreateScenarioFromTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getVariables()const
|
||||
{
|
||||
return variables_;
|
||||
}
|
||||
|
||||
void CreateScenarioFromTemplateRequest::setVariables(const std::string& variables)
|
||||
{
|
||||
variables_ = variables;
|
||||
setParameter("Variables", variables);
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateScenarioFromTemplateRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void CreateScenarioFromTemplateRequest::setTemplateId(const std::string& templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", templateId);
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateScenarioFromTemplateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateScenarioFromTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
166
ccc/src/model/CreateScenarioFromTemplateResult.cc
Normal file
166
ccc/src/model/CreateScenarioFromTemplateResult.cc
Normal file
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateScenarioFromTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateScenarioFromTemplateResult::CreateScenarioFromTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateScenarioFromTemplateResult::CreateScenarioFromTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateScenarioFromTemplateResult::~CreateScenarioFromTemplateResult()
|
||||
{}
|
||||
|
||||
void CreateScenarioFromTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scenarioNode = value["Scenario"];
|
||||
if(!scenarioNode["ScenarioId"].isNull())
|
||||
scenario_.scenarioId = scenarioNode["ScenarioId"].asString();
|
||||
if(!scenarioNode["ScenarioName"].isNull())
|
||||
scenario_.scenarioName = scenarioNode["ScenarioName"].asString();
|
||||
if(!scenarioNode["ScenarioDescription"].isNull())
|
||||
scenario_.scenarioDescription = scenarioNode["ScenarioDescription"].asString();
|
||||
if(!scenarioNode["Type"].isNull())
|
||||
scenario_.type = scenarioNode["Type"].asString();
|
||||
if(!scenarioNode["IsTemplate"].isNull())
|
||||
scenario_.isTemplate = scenarioNode["IsTemplate"].asString() == "true";
|
||||
auto allSurveysNode = scenarioNode["Surveys"]["Survey"];
|
||||
for (auto scenarioNodeSurveysSurvey : allSurveysNode)
|
||||
{
|
||||
Scenario::Survey surveyObject;
|
||||
if(!scenarioNodeSurveysSurvey["SurveyId"].isNull())
|
||||
surveyObject.surveyId = scenarioNodeSurveysSurvey["SurveyId"].asString();
|
||||
if(!scenarioNodeSurveysSurvey["SurveyName"].isNull())
|
||||
surveyObject.surveyName = scenarioNodeSurveysSurvey["SurveyName"].asString();
|
||||
if(!scenarioNodeSurveysSurvey["SurveyDescription"].isNull())
|
||||
surveyObject.surveyDescription = scenarioNodeSurveysSurvey["SurveyDescription"].asString();
|
||||
if(!scenarioNodeSurveysSurvey["Role"].isNull())
|
||||
surveyObject.role = scenarioNodeSurveysSurvey["Role"].asString();
|
||||
if(!scenarioNodeSurveysSurvey["Round"].isNull())
|
||||
surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString());
|
||||
if(!scenarioNodeSurveysSurvey["BeebotId"].isNull())
|
||||
surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString();
|
||||
auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"];
|
||||
for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode)
|
||||
{
|
||||
Scenario::Survey::IntentNode intentsObject;
|
||||
if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull())
|
||||
intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString();
|
||||
if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull())
|
||||
intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString();
|
||||
surveyObject.intents.push_back(intentsObject);
|
||||
}
|
||||
scenario_.surveys.push_back(surveyObject);
|
||||
}
|
||||
auto allVariablesNode = scenarioNode["Variables"]["KeyValuePair"];
|
||||
for (auto scenarioNodeVariablesKeyValuePair : allVariablesNode)
|
||||
{
|
||||
Scenario::KeyValuePair keyValuePairObject;
|
||||
if(!scenarioNodeVariablesKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = scenarioNodeVariablesKeyValuePair["Key"].asString();
|
||||
if(!scenarioNodeVariablesKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = scenarioNodeVariablesKeyValuePair["Value"].asString();
|
||||
scenario_.variables.push_back(keyValuePairObject);
|
||||
}
|
||||
auto strategyNode = scenarioNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
scenario_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
scenario_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
scenario_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
scenario_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
scenario_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
scenario_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
scenario_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
scenario_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
scenario_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
scenario_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
scenario_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
scenario_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
scenario_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
Scenario::Strategy::TimeFrame timeFrameObject;
|
||||
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
|
||||
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
|
||||
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
|
||||
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
|
||||
scenario_.strategy.workingTime.push_back(timeFrameObject);
|
||||
}
|
||||
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
|
||||
for (auto value : allRepeatDays)
|
||||
scenario_.strategy.repeatDays.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateScenarioFromTemplateResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateScenarioFromTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateScenarioFromTemplateResult::Scenario CreateScenarioFromTemplateResult::getScenario()const
|
||||
{
|
||||
return scenario_;
|
||||
}
|
||||
|
||||
97
ccc/src/model/CreateScenarioRequest.cc
Normal file
97
ccc/src/model/CreateScenarioRequest.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateScenarioRequest;
|
||||
|
||||
CreateScenarioRequest::CreateScenarioRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateScenario")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateScenarioRequest::~CreateScenarioRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> CreateScenarioRequest::getSurveysJson()const
|
||||
{
|
||||
return surveysJson_;
|
||||
}
|
||||
|
||||
void CreateScenarioRequest::setSurveysJson(const std::vector<std::string>& surveysJson)
|
||||
{
|
||||
surveysJson_ = surveysJson;
|
||||
for(int dep1 = 0; dep1!= surveysJson.size(); dep1++) {
|
||||
setParameter("SurveysJson."+ std::to_string(dep1), surveysJson.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateScenarioRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateScenarioRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateScenarioRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
void CreateScenarioRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateScenarioRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
166
ccc/src/model/CreateScenarioResult.cc
Normal file
166
ccc/src/model/CreateScenarioResult.cc
Normal file
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateScenarioResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateScenarioResult::CreateScenarioResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateScenarioResult::CreateScenarioResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateScenarioResult::~CreateScenarioResult()
|
||||
{}
|
||||
|
||||
void CreateScenarioResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scenarioNode = value["Scenario"];
|
||||
if(!scenarioNode["ScenarioId"].isNull())
|
||||
scenario_.scenarioId = scenarioNode["ScenarioId"].asString();
|
||||
if(!scenarioNode["ScenarioName"].isNull())
|
||||
scenario_.scenarioName = scenarioNode["ScenarioName"].asString();
|
||||
if(!scenarioNode["ScenarioDescription"].isNull())
|
||||
scenario_.scenarioDescription = scenarioNode["ScenarioDescription"].asString();
|
||||
if(!scenarioNode["Type"].isNull())
|
||||
scenario_.type = scenarioNode["Type"].asString();
|
||||
if(!scenarioNode["IsTemplate"].isNull())
|
||||
scenario_.isTemplate = scenarioNode["IsTemplate"].asString() == "true";
|
||||
auto allSurveysNode = scenarioNode["Surveys"]["Survey"];
|
||||
for (auto scenarioNodeSurveysSurvey : allSurveysNode)
|
||||
{
|
||||
Scenario::Survey surveyObject;
|
||||
if(!scenarioNodeSurveysSurvey["SurveyId"].isNull())
|
||||
surveyObject.surveyId = scenarioNodeSurveysSurvey["SurveyId"].asString();
|
||||
if(!scenarioNodeSurveysSurvey["SurveyName"].isNull())
|
||||
surveyObject.surveyName = scenarioNodeSurveysSurvey["SurveyName"].asString();
|
||||
if(!scenarioNodeSurveysSurvey["SurveyDescription"].isNull())
|
||||
surveyObject.surveyDescription = scenarioNodeSurveysSurvey["SurveyDescription"].asString();
|
||||
if(!scenarioNodeSurveysSurvey["Role"].isNull())
|
||||
surveyObject.role = scenarioNodeSurveysSurvey["Role"].asString();
|
||||
if(!scenarioNodeSurveysSurvey["Round"].isNull())
|
||||
surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString());
|
||||
if(!scenarioNodeSurveysSurvey["BeebotId"].isNull())
|
||||
surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString();
|
||||
auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"];
|
||||
for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode)
|
||||
{
|
||||
Scenario::Survey::IntentNode intentsObject;
|
||||
if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull())
|
||||
intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString();
|
||||
if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull())
|
||||
intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString();
|
||||
surveyObject.intents.push_back(intentsObject);
|
||||
}
|
||||
scenario_.surveys.push_back(surveyObject);
|
||||
}
|
||||
auto allVariablesNode = scenarioNode["Variables"]["KeyValuePair"];
|
||||
for (auto scenarioNodeVariablesKeyValuePair : allVariablesNode)
|
||||
{
|
||||
Scenario::KeyValuePair keyValuePairObject;
|
||||
if(!scenarioNodeVariablesKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = scenarioNodeVariablesKeyValuePair["Key"].asString();
|
||||
if(!scenarioNodeVariablesKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = scenarioNodeVariablesKeyValuePair["Value"].asString();
|
||||
scenario_.variables.push_back(keyValuePairObject);
|
||||
}
|
||||
auto strategyNode = scenarioNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
scenario_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
scenario_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
scenario_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
scenario_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
scenario_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
scenario_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
scenario_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
scenario_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
scenario_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
scenario_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
scenario_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
scenario_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
scenario_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
Scenario::Strategy::TimeFrame timeFrameObject;
|
||||
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
|
||||
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
|
||||
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
|
||||
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
|
||||
scenario_.strategy.workingTime.push_back(timeFrameObject);
|
||||
}
|
||||
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
|
||||
for (auto value : allRepeatDays)
|
||||
scenario_.strategy.repeatDays.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateScenarioResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateScenarioResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateScenarioResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateScenarioResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateScenarioResult::Scenario CreateScenarioResult::getScenario()const
|
||||
{
|
||||
return scenario_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::CCC::Model::CreateSkillGroupRequest;
|
||||
|
||||
CreateSkillGroupRequest::CreateSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "CreateSkillGroup")
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -27,6 +27,17 @@ CreateSkillGroupRequest::CreateSkillGroupRequest() :
|
||||
CreateSkillGroupRequest::~CreateSkillGroupRequest()
|
||||
{}
|
||||
|
||||
bool CreateSkillGroupRequest::getAllowPrivateOutboundNumber()const
|
||||
{
|
||||
return allowPrivateOutboundNumber_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber)
|
||||
{
|
||||
allowPrivateOutboundNumber_ = allowPrivateOutboundNumber;
|
||||
setParameter("AllowPrivateOutboundNumber", allowPrivateOutboundNumber ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
@@ -38,6 +49,54 @@ void CreateSkillGroupRequest::setDescription(const std::string& description)
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getRoutingStrategy()const
|
||||
{
|
||||
return routingStrategy_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setRoutingStrategy(const std::string& routingStrategy)
|
||||
{
|
||||
routingStrategy_ = routingStrategy;
|
||||
setParameter("RoutingStrategy", routingStrategy);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateSkillGroupRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setUserId(const std::vector<std::string>& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
for(int dep1 = 0; dep1!= userId.size(); dep1++) {
|
||||
setParameter("UserId."+ std::to_string(dep1), userId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<int> CreateSkillGroupRequest::getSkillLevel()const
|
||||
{
|
||||
return skillLevel_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setSkillLevel(const std::vector<int>& skillLevel)
|
||||
{
|
||||
skillLevel_ = skillLevel;
|
||||
for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) {
|
||||
setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
@@ -49,15 +108,17 @@ void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getDisplayName()const
|
||||
std::vector<std::string> CreateSkillGroupRequest::getOutboundPhoneNumberId()const
|
||||
{
|
||||
return displayName_;
|
||||
return outboundPhoneNumberId_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setDisplayName(const std::string& displayName)
|
||||
void CreateSkillGroupRequest::setOutboundPhoneNumberId(const std::vector<std::string>& outboundPhoneNumberId)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
outboundPhoneNumberId_ = outboundPhoneNumberId;
|
||||
for(int dep1 = 0; dep1!= outboundPhoneNumberId.size(); dep1++) {
|
||||
setParameter("OutboundPhoneNumberId."+ std::to_string(dep1), outboundPhoneNumberId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getName()const
|
||||
|
||||
@@ -39,21 +39,16 @@ void CreateSkillGroupResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["SkillGroupId"].isNull())
|
||||
data_.skillGroupId = dataNode["SkillGroupId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["SkillGroupId"].isNull())
|
||||
skillGroupId_ = value["SkillGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -67,9 +62,9 @@ int CreateSkillGroupResult::getHttpStatusCode()const
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CreateSkillGroupResult::Data CreateSkillGroupResult::getData()const
|
||||
std::string CreateSkillGroupResult::getSkillGroupId()const
|
||||
{
|
||||
return data_;
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupResult::getCode()const
|
||||
@@ -77,3 +72,8 @@ std::string CreateSkillGroupResult::getCode()const
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSkillGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
139
ccc/src/model/CreateSurveyRequest.cc
Normal file
139
ccc/src/model/CreateSurveyRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateSurveyRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateSurveyRequest;
|
||||
|
||||
CreateSurveyRequest::CreateSurveyRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateSurvey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSurveyRequest::~CreateSurveyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSurveyRequest::getRole()const
|
||||
{
|
||||
return role_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setRole(const std::string& role)
|
||||
{
|
||||
role_ = role;
|
||||
setParameter("Role", role);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getSpeechOptimizationParam()const
|
||||
{
|
||||
return speechOptimizationParam_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setSpeechOptimizationParam(const std::string& speechOptimizationParam)
|
||||
{
|
||||
speechOptimizationParam_ = speechOptimizationParam;
|
||||
setParameter("SpeechOptimizationParam", speechOptimizationParam);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int CreateSurveyRequest::getRound()const
|
||||
{
|
||||
return round_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setRound(int round)
|
||||
{
|
||||
round_ = round;
|
||||
setParameter("Round", std::to_string(round));
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getFlowJson()const
|
||||
{
|
||||
return flowJson_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setFlowJson(const std::string& flowJson)
|
||||
{
|
||||
flowJson_ = flowJson;
|
||||
setParameter("FlowJson", flowJson);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getGlobalQuestions()const
|
||||
{
|
||||
return globalQuestions_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setGlobalQuestions(const std::string& globalQuestions)
|
||||
{
|
||||
globalQuestions_ = globalQuestions;
|
||||
setParameter("GlobalQuestions", globalQuestions);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getCorpora()const
|
||||
{
|
||||
return corpora_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setCorpora(const std::string& corpora)
|
||||
{
|
||||
corpora_ = corpora;
|
||||
setParameter("Corpora", corpora);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void CreateSurveyRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
108
ccc/src/model/CreateSurveyResult.cc
Normal file
108
ccc/src/model/CreateSurveyResult.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/ccc/model/CreateSurveyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateSurveyResult::CreateSurveyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSurveyResult::CreateSurveyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSurveyResult::~CreateSurveyResult()
|
||||
{}
|
||||
|
||||
void CreateSurveyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto surveyNode = value["Survey"];
|
||||
if(!surveyNode["Id"].isNull())
|
||||
survey_.id = surveyNode["Id"].asString();
|
||||
if(!surveyNode["ScenarioUuid"].isNull())
|
||||
survey_.scenarioUuid = surveyNode["ScenarioUuid"].asString();
|
||||
if(!surveyNode["Name"].isNull())
|
||||
survey_.name = surveyNode["Name"].asString();
|
||||
if(!surveyNode["Description"].isNull())
|
||||
survey_.description = surveyNode["Description"].asString();
|
||||
if(!surveyNode["Role"].isNull())
|
||||
survey_.role = surveyNode["Role"].asString();
|
||||
if(!surveyNode["Round"].isNull())
|
||||
survey_.round = std::stoi(surveyNode["Round"].asString());
|
||||
if(!surveyNode["HotWords"].isNull())
|
||||
survey_.hotWords = surveyNode["HotWords"].asString();
|
||||
if(!surveyNode["SpeechOptimizationParam"].isNull())
|
||||
survey_.speechOptimizationParam = surveyNode["SpeechOptimizationParam"].asString();
|
||||
if(!surveyNode["GlobalQuestions"].isNull())
|
||||
survey_.globalQuestions = surveyNode["GlobalQuestions"].asString();
|
||||
auto flowNode = surveyNode["Flow"];
|
||||
if(!flowNode["FlowId"].isNull())
|
||||
survey_.flow.flowId = flowNode["FlowId"].asString();
|
||||
if(!flowNode["IsPublished"].isNull())
|
||||
survey_.flow.isPublished = flowNode["IsPublished"].asString() == "true";
|
||||
if(!flowNode["FlowJson"].isNull())
|
||||
survey_.flow.flowJson = flowNode["FlowJson"].asString();
|
||||
auto asrCustomModelNode = surveyNode["AsrCustomModel"];
|
||||
if(!asrCustomModelNode["Corpora"].isNull())
|
||||
survey_.asrCustomModel.corpora = asrCustomModelNode["Corpora"].asString();
|
||||
if(!asrCustomModelNode["CustomModelStatus"].isNull())
|
||||
survey_.asrCustomModel.customModelStatus = std::stoi(asrCustomModelNode["CustomModelStatus"].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());
|
||||
|
||||
}
|
||||
|
||||
CreateSurveyResult::Survey CreateSurveyResult::getSurvey()const
|
||||
{
|
||||
return survey_;
|
||||
}
|
||||
|
||||
std::string CreateSurveyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateSurveyResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateSurveyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSurveyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::CCC::Model::CreateUserRequest;
|
||||
|
||||
CreateUserRequest::CreateUserRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "CreateUser")
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -27,6 +27,17 @@ CreateUserRequest::CreateUserRequest() :
|
||||
CreateUserRequest::~CreateUserRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUserRequest::getPrivateOutboundNumberId()const
|
||||
{
|
||||
return privateOutboundNumberId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setPrivateOutboundNumberId(const std::string& privateOutboundNumberId)
|
||||
{
|
||||
privateOutboundNumberId_ = privateOutboundNumberId;
|
||||
setParameter("PrivateOutboundNumberId", privateOutboundNumberId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getLoginName()const
|
||||
{
|
||||
return loginName_;
|
||||
@@ -38,37 +49,41 @@ void CreateUserRequest::setLoginName(const std::string& loginName)
|
||||
setParameter("LoginName", loginName);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getRoleId()const
|
||||
std::vector<std::string> CreateUserRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setRoleId(const std::string& roleId)
|
||||
void CreateUserRequest::setRoleId(const std::vector<std::string>& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
setParameter("RoleId", roleId);
|
||||
for(int dep1 = 0; dep1!= roleId.size(); dep1++) {
|
||||
setParameter("RoleId."+ std::to_string(dep1), roleId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getMobile()const
|
||||
std::string CreateUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return mobile_;
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setMobile(const std::string& mobile)
|
||||
void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setParameter("Mobile", mobile);
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getWorkMode()const
|
||||
std::vector<int> CreateUserRequest::getSkillLevel()const
|
||||
{
|
||||
return workMode_;
|
||||
return skillLevel_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setWorkMode(const std::string& workMode)
|
||||
void CreateUserRequest::setSkillLevel(const std::vector<int>& skillLevel)
|
||||
{
|
||||
workMode_ = workMode;
|
||||
setParameter("WorkMode", workMode);
|
||||
skillLevel_ = skillLevel;
|
||||
for(int dep1 = 0; dep1!= skillLevel.size(); dep1++) {
|
||||
setParameter("SkillLevel."+ std::to_string(dep1), std::to_string(skillLevel.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getInstanceId()const
|
||||
@@ -82,6 +97,17 @@ void CreateUserRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getPhone()const
|
||||
{
|
||||
return phone_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setPhone(const std::string& phone)
|
||||
{
|
||||
phone_ = phone;
|
||||
setParameter("Phone", phone);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
@@ -93,26 +119,17 @@ void CreateUserRequest::setDisplayName(const std::string& displayName)
|
||||
setParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
bool CreateUserRequest::getResetPassword()const
|
||||
std::vector<std::string> CreateUserRequest::getSkillGroupId()const
|
||||
{
|
||||
return resetPassword_;
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setResetPassword(bool resetPassword)
|
||||
void CreateUserRequest::setSkillGroupId(const std::vector<std::string>& skillGroupId)
|
||||
{
|
||||
resetPassword_ = resetPassword;
|
||||
setParameter("ResetPassword", resetPassword ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getSkillLevelList()const
|
||||
{
|
||||
return skillLevelList_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setSkillLevelList(const std::string& skillLevelList)
|
||||
{
|
||||
skillLevelList_ = skillLevelList;
|
||||
setParameter("SkillLevelList", skillLevelList);
|
||||
skillGroupId_ = skillGroupId;
|
||||
for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) {
|
||||
setParameter("SkillGroupId."+ std::to_string(dep1), skillGroupId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getEmail()const
|
||||
|
||||
@@ -39,30 +39,16 @@ void CreateUserResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DisplayName"].isNull())
|
||||
data_.displayName = dataNode["DisplayName"].asString();
|
||||
if(!dataNode["Email"].isNull())
|
||||
data_.email = dataNode["Email"].asString();
|
||||
if(!dataNode["Extension"].isNull())
|
||||
data_.extension = dataNode["Extension"].asString();
|
||||
if(!dataNode["LoginName"].isNull())
|
||||
data_.loginName = dataNode["LoginName"].asString();
|
||||
if(!dataNode["Mobile"].isNull())
|
||||
data_.mobile = dataNode["Mobile"].asString();
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = dataNode["UserId"].asString();
|
||||
if(!dataNode["WorkMode"].isNull())
|
||||
data_.workMode = dataNode["WorkMode"].asString();
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
userId_ = value["UserId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -71,23 +57,23 @@ std::string CreateUserResult::getMessage()const
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
int CreateUserResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateUserResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
CreateUserResult::Data CreateUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
84
ccc/src/model/CreateVoiceAppraiseRequest.cc
Normal file
84
ccc/src/model/CreateVoiceAppraiseRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateVoiceAppraiseRequest;
|
||||
|
||||
CreateVoiceAppraiseRequest::CreateVoiceAppraiseRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateVoiceAppraise")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVoiceAppraiseRequest::~CreateVoiceAppraiseRequest()
|
||||
{}
|
||||
|
||||
bool CreateVoiceAppraiseRequest::getIsAppraise()const
|
||||
{
|
||||
return isAppraise_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setIsAppraise(bool isAppraise)
|
||||
{
|
||||
isAppraise_ = isAppraise;
|
||||
setParameter("IsAppraise", isAppraise ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseRequest::getContactFlowVersionId()const
|
||||
{
|
||||
return contactFlowVersionId_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setContactFlowVersionId(const std::string& contactFlowVersionId)
|
||||
{
|
||||
contactFlowVersionId_ = contactFlowVersionId;
|
||||
setParameter("ContactFlowVersionId", contactFlowVersionId);
|
||||
}
|
||||
|
||||
72
ccc/src/model/CreateVoiceAppraiseResult.cc
Normal file
72
ccc/src/model/CreateVoiceAppraiseResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateVoiceAppraiseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateVoiceAppraiseResult::CreateVoiceAppraiseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVoiceAppraiseResult::CreateVoiceAppraiseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVoiceAppraiseResult::~CreateVoiceAppraiseResult()
|
||||
{}
|
||||
|
||||
void CreateVoiceAppraiseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateVoiceAppraiseResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateVoiceAppraiseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -14,36 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ModifyInstanceRequest.h>
|
||||
#include <alibabacloud/ccc/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ModifyInstanceRequest;
|
||||
using AlibabaCloud::CCC::Model::DeleteInstanceRequest;
|
||||
|
||||
ModifyInstanceRequest::ModifyInstanceRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ModifyInstance")
|
||||
DeleteInstanceRequest::DeleteInstanceRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DeleteInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInstanceRequest::~ModifyInstanceRequest()
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyInstanceRequest::getDescription()const
|
||||
std::string DeleteInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return description_;
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceRequest::setDescription(const std::string& description)
|
||||
void DeleteInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getInstanceId()const
|
||||
std::string DeleteInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
72
ccc/src/model/DeleteInstanceResult.cc
Normal file
72
ccc/src/model/DeleteInstanceResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DeleteInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DeleteInstanceResult::DeleteInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteInstanceResult::~DeleteInstanceResult()
|
||||
{}
|
||||
|
||||
void DeleteInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteInstanceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetNumberLocationRequest.h>
|
||||
#include <alibabacloud/ccc/model/DeleteJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::GetNumberLocationRequest;
|
||||
using AlibabaCloud::CCC::Model::DeleteJobGroupRequest;
|
||||
|
||||
GetNumberLocationRequest::GetNumberLocationRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "GetNumberLocation")
|
||||
DeleteJobGroupRequest::DeleteJobGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DeleteJobGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetNumberLocationRequest::~GetNumberLocationRequest()
|
||||
DeleteJobGroupRequest::~DeleteJobGroupRequest()
|
||||
{}
|
||||
|
||||
std::string GetNumberLocationRequest::getNumber()const
|
||||
{
|
||||
return number_;
|
||||
}
|
||||
|
||||
void GetNumberLocationRequest::setNumber(const std::string& number)
|
||||
{
|
||||
number_ = number;
|
||||
setParameter("Number", number);
|
||||
}
|
||||
|
||||
std::string GetNumberLocationRequest::getInstanceId()const
|
||||
std::string DeleteJobGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetNumberLocationRequest::setInstanceId(const std::string& instanceId)
|
||||
void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteJobGroupRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DeleteJobGroupRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
72
ccc/src/model/DeleteJobGroupResult.cc
Normal file
72
ccc/src/model/DeleteJobGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DeleteJobGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DeleteJobGroupResult::DeleteJobGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteJobGroupResult::DeleteJobGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteJobGroupResult::~DeleteJobGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteJobGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteJobGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteJobGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteJobGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteJobGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
ccc/src/model/DeleteMediaRequest.cc
Normal file
62
ccc/src/model/DeleteMediaRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DeleteMediaRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DeleteMediaRequest;
|
||||
|
||||
DeleteMediaRequest::DeleteMediaRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DeleteMedia")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMediaRequest::~DeleteMediaRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMediaRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteMediaRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteMediaRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteMediaRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DeleteMediaRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteMediaRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
ccc/src/model/DeleteMediaResult.cc
Normal file
72
ccc/src/model/DeleteMediaResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DeleteMediaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DeleteMediaResult::DeleteMediaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMediaResult::DeleteMediaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMediaResult::~DeleteMediaResult()
|
||||
{}
|
||||
|
||||
void DeleteMediaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteMediaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteMediaResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteMediaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteMediaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
64
ccc/src/model/DeletePhoneTagsRequest.cc
Normal file
64
ccc/src/model/DeletePhoneTagsRequest.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DeletePhoneTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DeletePhoneTagsRequest;
|
||||
|
||||
DeletePhoneTagsRequest::DeletePhoneTagsRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DeletePhoneTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePhoneTagsRequest::~DeletePhoneTagsRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePhoneTagsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeletePhoneTagsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeletePhoneTagsRequest::getPhoneNumberList()const
|
||||
{
|
||||
return phoneNumberList_;
|
||||
}
|
||||
|
||||
void DeletePhoneTagsRequest::setPhoneNumberList(const std::vector<std::string>& phoneNumberList)
|
||||
{
|
||||
phoneNumberList_ = phoneNumberList;
|
||||
for(int dep1 = 0; dep1!= phoneNumberList.size(); dep1++) {
|
||||
setParameter("PhoneNumberList."+ std::to_string(dep1), phoneNumberList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeletePhoneTagsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeletePhoneTagsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
ccc/src/model/DeletePhoneTagsResult.cc
Normal file
72
ccc/src/model/DeletePhoneTagsResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DeletePhoneTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DeletePhoneTagsResult::DeletePhoneTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePhoneTagsResult::DeletePhoneTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePhoneTagsResult::~DeletePhoneTagsResult()
|
||||
{}
|
||||
|
||||
void DeletePhoneTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeletePhoneTagsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeletePhoneTagsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeletePhoneTagsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeletePhoneTagsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::CCC::Model::DeleteSkillGroupRequest;
|
||||
|
||||
DeleteSkillGroupRequest::DeleteSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "DeleteSkillGroup")
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DeleteSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -49,14 +49,14 @@ void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
bool DeleteSkillGroupRequest::getForce()const
|
||||
std::string DeleteSkillGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return force_;
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteSkillGroupRequest::setForce(bool force)
|
||||
void DeleteSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
force_ = force;
|
||||
setParameter("Force", force ? "true" : "false");
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,14 @@ void DeleteSkillGroupResult::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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -63,3 +65,8 @@ std::string DeleteSkillGroupResult::getCode()const
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSkillGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
62
ccc/src/model/DeleteSurveyRequest.cc
Normal file
62
ccc/src/model/DeleteSurveyRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DeleteSurveyRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DeleteSurveyRequest;
|
||||
|
||||
DeleteSurveyRequest::DeleteSurveyRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DeleteSurvey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSurveyRequest::~DeleteSurveyRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSurveyRequest::getSurveyId()const
|
||||
{
|
||||
return surveyId_;
|
||||
}
|
||||
|
||||
void DeleteSurveyRequest::setSurveyId(const std::string& surveyId)
|
||||
{
|
||||
surveyId_ = surveyId;
|
||||
setParameter("SurveyId", surveyId);
|
||||
}
|
||||
|
||||
std::string DeleteSurveyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteSurveyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteSurveyRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void DeleteSurveyRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
72
ccc/src/model/DeleteSurveyResult.cc
Normal file
72
ccc/src/model/DeleteSurveyResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DeleteSurveyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DeleteSurveyResult::DeleteSurveyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSurveyResult::DeleteSurveyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSurveyResult::~DeleteSurveyResult()
|
||||
{}
|
||||
|
||||
void DeleteSurveyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSurveyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteSurveyResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteSurveyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSurveyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
ccc/src/model/DialExRequest.cc
Normal file
106
ccc/src/model/DialExRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DialExRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DialExRequest;
|
||||
|
||||
DialExRequest::DialExRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DialEx")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DialExRequest::~DialExRequest()
|
||||
{}
|
||||
|
||||
std::string DialExRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void DialExRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DialExRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getRoutPoint()const
|
||||
{
|
||||
return routPoint_;
|
||||
}
|
||||
|
||||
void DialExRequest::setRoutPoint(const std::string& routPoint)
|
||||
{
|
||||
routPoint_ = routPoint;
|
||||
setParameter("RoutPoint", routPoint);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getCaller()const
|
||||
{
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void DialExRequest::setCaller(const std::string& caller)
|
||||
{
|
||||
caller_ = caller;
|
||||
setParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DialExRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getProvider()const
|
||||
{
|
||||
return provider_;
|
||||
}
|
||||
|
||||
void DialExRequest::setProvider(const std::string& provider)
|
||||
{
|
||||
provider_ = provider;
|
||||
setParameter("Provider", provider);
|
||||
}
|
||||
|
||||
int DialExRequest::getAnswerMode()const
|
||||
{
|
||||
return answerMode_;
|
||||
}
|
||||
|
||||
void DialExRequest::setAnswerMode(int answerMode)
|
||||
{
|
||||
answerMode_ = answerMode;
|
||||
setParameter("AnswerMode", std::to_string(answerMode));
|
||||
}
|
||||
|
||||
@@ -14,70 +14,87 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetTurnCredentialsResult.h>
|
||||
#include <alibabacloud/ccc/model/DialExResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetTurnCredentialsResult::GetTurnCredentialsResult() :
|
||||
DialExResult::DialExResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTurnCredentialsResult::GetTurnCredentialsResult(const std::string &payload) :
|
||||
DialExResult::DialExResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTurnCredentialsResult::~GetTurnCredentialsResult()
|
||||
DialExResult::~DialExResult()
|
||||
{}
|
||||
|
||||
void GetTurnCredentialsResult::parse(const std::string &payload)
|
||||
void DialExResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Password"].isNull())
|
||||
data_.password = dataNode["Password"].asString();
|
||||
if(!dataNode["UserName"].isNull())
|
||||
data_.userName = dataNode["UserName"].asString();
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["StatusCode"].isNull())
|
||||
statusCode_ = value["StatusCode"].asString();
|
||||
if(!value["StatusDesc"].isNull())
|
||||
statusDesc_ = value["StatusDesc"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TimeStamp"].isNull())
|
||||
timeStamp_ = value["TimeStamp"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTurnCredentialsResult::getMessage()const
|
||||
std::string DialExResult::getStatusDesc()const
|
||||
{
|
||||
return statusDesc_;
|
||||
}
|
||||
|
||||
std::string DialExResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string DialExResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetTurnCredentialsResult::getHttpStatusCode()const
|
||||
int DialExResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetTurnCredentialsResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
GetTurnCredentialsResult::Data GetTurnCredentialsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetTurnCredentialsResult::getCode()const
|
||||
std::string DialExResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DialExResult::getStatusCode()const
|
||||
{
|
||||
return statusCode_;
|
||||
}
|
||||
|
||||
bool DialExResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DialExResult::getTimeStamp()const
|
||||
{
|
||||
return timeStamp_;
|
||||
}
|
||||
|
||||
150
ccc/src/model/DialogueRequest.cc
Normal file
150
ccc/src/model/DialogueRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DialogueRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DialogueRequest;
|
||||
|
||||
DialogueRequest::DialogueRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "Dialogue")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DialogueRequest::~DialogueRequest()
|
||||
{}
|
||||
|
||||
std::string DialogueRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
long DialogueRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCallType()const
|
||||
{
|
||||
return callType_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setCallType(const std::string& callType)
|
||||
{
|
||||
callType_ = callType;
|
||||
setParameter("CallType", callType);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getUtterance()const
|
||||
{
|
||||
return utterance_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setUtterance(const std::string& utterance)
|
||||
{
|
||||
utterance_ = utterance;
|
||||
setParameter("Utterance", utterance);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
86
ccc/src/model/DialogueResult.cc
Normal file
86
ccc/src/model/DialogueResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DialogueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DialogueResult::DialogueResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DialogueResult::DialogueResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DialogueResult::~DialogueResult()
|
||||
{}
|
||||
|
||||
void DialogueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto feedbackNode = value["Feedback"];
|
||||
if(!feedbackNode["Content"].isNull())
|
||||
feedback_.content = feedbackNode["Content"].asString();
|
||||
if(!feedbackNode["Action"].isNull())
|
||||
feedback_.action = feedbackNode["Action"].asString();
|
||||
if(!feedbackNode["ActionParams"].isNull())
|
||||
feedback_.actionParams = feedbackNode["ActionParams"].asString();
|
||||
if(!feedbackNode["Interruptible"].isNull())
|
||||
feedback_.interruptible = feedbackNode["Interruptible"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DialogueResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DialogueResult::Feedback DialogueResult::getFeedback()const
|
||||
{
|
||||
return feedback_;
|
||||
}
|
||||
|
||||
int DialogueResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DialogueResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DialogueResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
53
ccc/src/model/DisableTrunkProvidersRequest.cc
Normal file
53
ccc/src/model/DisableTrunkProvidersRequest.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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/ccc/model/DisableTrunkProvidersRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DisableTrunkProvidersRequest;
|
||||
|
||||
DisableTrunkProvidersRequest::DisableTrunkProvidersRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DisableTrunkProviders")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableTrunkProvidersRequest::~DisableTrunkProvidersRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> DisableTrunkProvidersRequest::getProviderName()const
|
||||
{
|
||||
return providerName_;
|
||||
}
|
||||
|
||||
void DisableTrunkProvidersRequest::setProviderName(const std::vector<std::string>& providerName)
|
||||
{
|
||||
providerName_ = providerName;
|
||||
for(int dep1 = 0; dep1!= providerName.size(); dep1++) {
|
||||
setParameter("ProviderName."+ std::to_string(dep1), providerName.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DisableTrunkProvidersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DisableTrunkProvidersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -14,60 +14,59 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/UpdateConfigItemsResult.h>
|
||||
#include <alibabacloud/ccc/model/DisableTrunkProvidersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
UpdateConfigItemsResult::UpdateConfigItemsResult() :
|
||||
DisableTrunkProvidersResult::DisableTrunkProvidersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateConfigItemsResult::UpdateConfigItemsResult(const std::string &payload) :
|
||||
DisableTrunkProvidersResult::DisableTrunkProvidersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateConfigItemsResult::~UpdateConfigItemsResult()
|
||||
DisableTrunkProvidersResult::~DisableTrunkProvidersResult()
|
||||
{}
|
||||
|
||||
void UpdateConfigItemsResult::parse(const std::string &payload)
|
||||
void DisableTrunkProvidersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateConfigItemsResult::getMessage()const
|
||||
std::string DisableTrunkProvidersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateConfigItemsResult::getHttpStatusCode()const
|
||||
int DisableTrunkProvidersResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> UpdateConfigItemsResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
std::string UpdateConfigItemsResult::getCode()const
|
||||
std::string DisableTrunkProvidersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DisableTrunkProvidersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/DownloadAllTypeRecordingRequest.cc
Normal file
73
ccc/src/model/DownloadAllTypeRecordingRequest.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/ccc/model/DownloadAllTypeRecordingRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DownloadAllTypeRecordingRequest;
|
||||
|
||||
DownloadAllTypeRecordingRequest::DownloadAllTypeRecordingRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DownloadAllTypeRecording")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadAllTypeRecordingRequest::~DownloadAllTypeRecordingRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadAllTypeRecordingRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void DownloadAllTypeRecordingRequest::setContactId(const std::string& contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setParameter("ContactId", contactId);
|
||||
}
|
||||
|
||||
std::string DownloadAllTypeRecordingRequest::getChannel()const
|
||||
{
|
||||
return channel_;
|
||||
}
|
||||
|
||||
void DownloadAllTypeRecordingRequest::setChannel(const std::string& channel)
|
||||
{
|
||||
channel_ = channel;
|
||||
setParameter("Channel", channel);
|
||||
}
|
||||
|
||||
std::string DownloadAllTypeRecordingRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DownloadAllTypeRecordingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DownloadAllTypeRecordingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadAllTypeRecordingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
87
ccc/src/model/DownloadAllTypeRecordingResult.cc
Normal file
87
ccc/src/model/DownloadAllTypeRecordingResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/ccc/model/DownloadAllTypeRecordingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DownloadAllTypeRecordingResult::DownloadAllTypeRecordingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadAllTypeRecordingResult::DownloadAllTypeRecordingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadAllTypeRecordingResult::~DownloadAllTypeRecordingResult()
|
||||
{}
|
||||
|
||||
void DownloadAllTypeRecordingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMediaDownloadParamListNode = value["MediaDownloadParamList"]["MediaDownloadParam"];
|
||||
for (auto valueMediaDownloadParamListMediaDownloadParam : allMediaDownloadParamListNode)
|
||||
{
|
||||
MediaDownloadParam mediaDownloadParamListObject;
|
||||
if(!valueMediaDownloadParamListMediaDownloadParam["SignatureUrl"].isNull())
|
||||
mediaDownloadParamListObject.signatureUrl = valueMediaDownloadParamListMediaDownloadParam["SignatureUrl"].asString();
|
||||
if(!valueMediaDownloadParamListMediaDownloadParam["FileName"].isNull())
|
||||
mediaDownloadParamListObject.fileName = valueMediaDownloadParamListMediaDownloadParam["FileName"].asString();
|
||||
mediaDownloadParamList_.push_back(mediaDownloadParamListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DownloadAllTypeRecordingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DownloadAllTypeRecordingResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<DownloadAllTypeRecordingResult::MediaDownloadParam> DownloadAllTypeRecordingResult::getMediaDownloadParamList()const
|
||||
{
|
||||
return mediaDownloadParamList_;
|
||||
}
|
||||
|
||||
std::string DownloadAllTypeRecordingResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadAllTypeRecordingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
ccc/src/model/DownloadCabRecordingRequest.cc
Normal file
51
ccc/src/model/DownloadCabRecordingRequest.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/ccc/model/DownloadCabRecordingRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DownloadCabRecordingRequest;
|
||||
|
||||
DownloadCabRecordingRequest::DownloadCabRecordingRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DownloadCabRecording")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadCabRecordingRequest::~DownloadCabRecordingRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadCabRecordingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadCabRecordingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadCabRecordingRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DownloadCabRecordingRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
@@ -14,69 +14,69 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ListPrivilegesOfUserResult.h>
|
||||
#include <alibabacloud/ccc/model/DownloadCabRecordingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ListPrivilegesOfUserResult::ListPrivilegesOfUserResult() :
|
||||
DownloadCabRecordingResult::DownloadCabRecordingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrivilegesOfUserResult::ListPrivilegesOfUserResult(const std::string &payload) :
|
||||
DownloadCabRecordingResult::DownloadCabRecordingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrivilegesOfUserResult::~ListPrivilegesOfUserResult()
|
||||
DownloadCabRecordingResult::~DownloadCabRecordingResult()
|
||||
{}
|
||||
|
||||
void ListPrivilegesOfUserResult::parse(const std::string &payload)
|
||||
void DownloadCabRecordingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["InstanceId"].isNull())
|
||||
dataObject.instanceId = valueDataDataItem["InstanceId"].asString();
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
if(!valueDataDataItem["Scope"].isNull())
|
||||
dataObject.scope = valueDataDataItem["Scope"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto mediaDownloadParamNode = value["MediaDownloadParam"];
|
||||
if(!mediaDownloadParamNode["SignatureUrl"].isNull())
|
||||
mediaDownloadParam_.signatureUrl = mediaDownloadParamNode["SignatureUrl"].asString();
|
||||
if(!mediaDownloadParamNode["FileName"].isNull())
|
||||
mediaDownloadParam_.fileName = mediaDownloadParamNode["FileName"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListPrivilegesOfUserResult::getMessage()const
|
||||
DownloadCabRecordingResult::MediaDownloadParam DownloadCabRecordingResult::getMediaDownloadParam()const
|
||||
{
|
||||
return mediaDownloadParam_;
|
||||
}
|
||||
|
||||
std::string DownloadCabRecordingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListPrivilegesOfUserResult::getHttpStatusCode()const
|
||||
int DownloadCabRecordingResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListPrivilegesOfUserResult::DataItem> ListPrivilegesOfUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListPrivilegesOfUserResult::getCode()const
|
||||
std::string DownloadCabRecordingResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadCabRecordingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
ccc/src/model/DownloadOriginalStatisticsReportRequest.cc
Normal file
51
ccc/src/model/DownloadOriginalStatisticsReportRequest.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/ccc/model/DownloadOriginalStatisticsReportRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DownloadOriginalStatisticsReportRequest;
|
||||
|
||||
DownloadOriginalStatisticsReportRequest::DownloadOriginalStatisticsReportRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DownloadOriginalStatisticsReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadOriginalStatisticsReportRequest::~DownloadOriginalStatisticsReportRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadOriginalStatisticsReportRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadOriginalStatisticsReportRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadOriginalStatisticsReportRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DownloadOriginalStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -14,52 +14,67 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h>
|
||||
#include <alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult() :
|
||||
DownloadOriginalStatisticsReportResult::DownloadOriginalStatisticsReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult(const std::string &payload) :
|
||||
DownloadOriginalStatisticsReportResult::DownloadOriginalStatisticsReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemovePhoneNumbersFromSkillGroupResult::~RemovePhoneNumbersFromSkillGroupResult()
|
||||
DownloadOriginalStatisticsReportResult::~DownloadOriginalStatisticsReportResult()
|
||||
{}
|
||||
|
||||
void RemovePhoneNumbersFromSkillGroupResult::parse(const std::string &payload)
|
||||
void DownloadOriginalStatisticsReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string RemovePhoneNumbersFromSkillGroupResult::getMessage()const
|
||||
DownloadOriginalStatisticsReportResult::DownloadParams DownloadOriginalStatisticsReportResult::getDownloadParams()const
|
||||
{
|
||||
return downloadParams_;
|
||||
}
|
||||
|
||||
std::string DownloadOriginalStatisticsReportResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int RemovePhoneNumbersFromSkillGroupResult::getHttpStatusCode()const
|
||||
int DownloadOriginalStatisticsReportResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string RemovePhoneNumbersFromSkillGroupResult::getCode()const
|
||||
std::string DownloadOriginalStatisticsReportResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadOriginalStatisticsReportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/DownloadRecordingRequest.cc
Normal file
73
ccc/src/model/DownloadRecordingRequest.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/ccc/model/DownloadRecordingRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DownloadRecordingRequest;
|
||||
|
||||
DownloadRecordingRequest::DownloadRecordingRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DownloadRecording")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadRecordingRequest::~DownloadRecordingRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadRecordingRequest::getChannel()const
|
||||
{
|
||||
return channel_;
|
||||
}
|
||||
|
||||
void DownloadRecordingRequest::setChannel(const std::string& channel)
|
||||
{
|
||||
channel_ = channel;
|
||||
setParameter("Channel", channel);
|
||||
}
|
||||
|
||||
std::string DownloadRecordingRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DownloadRecordingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DownloadRecordingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadRecordingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadRecordingRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void DownloadRecordingRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
@@ -14,64 +14,69 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetNumberLocationResult.h>
|
||||
#include <alibabacloud/ccc/model/DownloadRecordingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetNumberLocationResult::GetNumberLocationResult() :
|
||||
DownloadRecordingResult::DownloadRecordingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNumberLocationResult::GetNumberLocationResult(const std::string &payload) :
|
||||
DownloadRecordingResult::DownloadRecordingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNumberLocationResult::~GetNumberLocationResult()
|
||||
DownloadRecordingResult::~DownloadRecordingResult()
|
||||
{}
|
||||
|
||||
void GetNumberLocationResult::parse(const std::string &payload)
|
||||
void DownloadRecordingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["City"].isNull())
|
||||
data_.city = dataNode["City"].asString();
|
||||
if(!dataNode["Number"].isNull())
|
||||
data_.number = dataNode["Number"].asString();
|
||||
if(!dataNode["Province"].isNull())
|
||||
data_.province = dataNode["Province"].asString();
|
||||
auto mediaDownloadParamNode = value["MediaDownloadParam"];
|
||||
if(!mediaDownloadParamNode["SignatureUrl"].isNull())
|
||||
mediaDownloadParam_.signatureUrl = mediaDownloadParamNode["SignatureUrl"].asString();
|
||||
if(!mediaDownloadParamNode["FileName"].isNull())
|
||||
mediaDownloadParam_.fileName = mediaDownloadParamNode["FileName"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetNumberLocationResult::getMessage()const
|
||||
DownloadRecordingResult::MediaDownloadParam DownloadRecordingResult::getMediaDownloadParam()const
|
||||
{
|
||||
return mediaDownloadParam_;
|
||||
}
|
||||
|
||||
std::string DownloadRecordingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetNumberLocationResult::getHttpStatusCode()const
|
||||
int DownloadRecordingResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetNumberLocationResult::Data GetNumberLocationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetNumberLocationResult::getCode()const
|
||||
std::string DownloadRecordingResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadRecordingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetMultiChannelRecordingRequest.h>
|
||||
#include <alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::GetMultiChannelRecordingRequest;
|
||||
using AlibabaCloud::CCC::Model::DownloadUnreachableContactsRequest;
|
||||
|
||||
GetMultiChannelRecordingRequest::GetMultiChannelRecordingRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "GetMultiChannelRecording")
|
||||
DownloadUnreachableContactsRequest::DownloadUnreachableContactsRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DownloadUnreachableContacts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMultiChannelRecordingRequest::~GetMultiChannelRecordingRequest()
|
||||
DownloadUnreachableContactsRequest::~DownloadUnreachableContactsRequest()
|
||||
{}
|
||||
|
||||
std::string GetMultiChannelRecordingRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void GetMultiChannelRecordingRequest::setContactId(const std::string& contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setParameter("ContactId", contactId);
|
||||
}
|
||||
|
||||
std::string GetMultiChannelRecordingRequest::getInstanceId()const
|
||||
std::string DownloadUnreachableContactsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetMultiChannelRecordingRequest::setInstanceId(const std::string& instanceId)
|
||||
void DownloadUnreachableContactsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadUnreachableContactsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DownloadUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
80
ccc/src/model/DownloadUnreachableContactsResult.cc
Normal file
80
ccc/src/model/DownloadUnreachableContactsResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/DownloadUnreachableContactsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DownloadUnreachableContactsResult::DownloadUnreachableContactsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadUnreachableContactsResult::DownloadUnreachableContactsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadUnreachableContactsResult::~DownloadUnreachableContactsResult()
|
||||
{}
|
||||
|
||||
void DownloadUnreachableContactsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
DownloadUnreachableContactsResult::DownloadParams DownloadUnreachableContactsResult::getDownloadParams()const
|
||||
{
|
||||
return downloadParams_;
|
||||
}
|
||||
|
||||
std::string DownloadUnreachableContactsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DownloadUnreachableContactsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DownloadUnreachableContactsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadUnreachableContactsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user