4248
ccc/src/CCCClient.cc
4248
ccc/src/CCCClient.cc
File diff suppressed because it is too large
Load Diff
93
ccc/src/model/AddAgentDeviceRequest.cc
Normal file
93
ccc/src/model/AddAgentDeviceRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
AddAgentDeviceRequest::~AddAgentDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string AddAgentDeviceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getClientIp()const
|
||||
{
|
||||
return clientIp_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setClientIp(const std::string& clientIp)
|
||||
{
|
||||
clientIp_ = clientIp;
|
||||
setCoreParameter("ClientIp", clientIp);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getClientPort()const
|
||||
{
|
||||
return clientPort_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setClientPort(const std::string& clientPort)
|
||||
{
|
||||
clientPort_ = clientPort;
|
||||
setCoreParameter("ClientPort", clientPort);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getBrowserVersion()const
|
||||
{
|
||||
return browserVersion_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setBrowserVersion(const std::string& browserVersion)
|
||||
{
|
||||
browserVersion_ = browserVersion;
|
||||
setCoreParameter("BrowserVersion", browserVersion);
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddAgentDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
83
ccc/src/model/AddAgentDeviceResult.cc
Normal file
83
ccc/src/model/AddAgentDeviceResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/AddAgentDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddAgentDeviceResult::AddAgentDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddAgentDeviceResult::AddAgentDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddAgentDeviceResult::~AddAgentDeviceResult()
|
||||
{}
|
||||
|
||||
void AddAgentDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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["AgentDeviceId"].isNull())
|
||||
agentDeviceId_ = std::stol(value["AgentDeviceId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long AddAgentDeviceResult::getAgentDeviceId()const
|
||||
{
|
||||
return agentDeviceId_;
|
||||
}
|
||||
|
||||
int AddAgentDeviceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddAgentDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddAgentDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
ccc/src/model/AddBulkPhoneNumbersRequest.cc
Normal file
95
ccc/src/model/AddBulkPhoneNumbersRequest.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/AddBulkPhoneNumbersRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddBulkPhoneNumbersRequest;
|
||||
|
||||
AddBulkPhoneNumbersRequest::AddBulkPhoneNumbersRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AddBulkPhoneNumbers")
|
||||
{}
|
||||
|
||||
AddBulkPhoneNumbersRequest::~AddBulkPhoneNumbersRequest()
|
||||
{}
|
||||
|
||||
std::string AddBulkPhoneNumbersRequest::getContactFlowId()const
|
||||
{
|
||||
return contactFlowId_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setContactFlowId(const std::string& contactFlowId)
|
||||
{
|
||||
contactFlowId_ = contactFlowId;
|
||||
setCoreParameter("ContactFlowId", contactFlowId);
|
||||
}
|
||||
|
||||
std::string AddBulkPhoneNumbersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddBulkPhoneNumbersRequest::getUsage()const
|
||||
{
|
||||
return usage_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setUsage(const std::string& usage)
|
||||
{
|
||||
usage_ = usage;
|
||||
setCoreParameter("Usage", usage);
|
||||
}
|
||||
|
||||
std::vector<std::string> AddBulkPhoneNumbersRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setSkillGroupId(const std::vector<std::string>& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
for(int i = 0; i!= skillGroupId.size(); i++)
|
||||
setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> AddBulkPhoneNumbersRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setPhoneNumber(const std::vector<std::string>& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
for(int i = 0; i!= phoneNumber.size(); i++)
|
||||
setCoreParameter("PhoneNumber."+ std::to_string(i), phoneNumber.at(i));
|
||||
}
|
||||
|
||||
std::string AddBulkPhoneNumbersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddBulkPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
150
ccc/src/model/AddBulkPhoneNumbersResult.cc
Normal file
150
ccc/src/model/AddBulkPhoneNumbersResult.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/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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"];
|
||||
for (auto value : allPhoneNumbers)
|
||||
{
|
||||
PhoneNumber phoneNumbersObject;
|
||||
if(!value["PhoneNumberId"].isNull())
|
||||
phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
phoneNumbersObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Number"].isNull())
|
||||
phoneNumbersObject.number = value["Number"].asString();
|
||||
if(!value["PhoneNumberDescription"].isNull())
|
||||
phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
|
||||
if(!value["TestOnly"].isNull())
|
||||
phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true";
|
||||
if(!value["RemainingTime"].isNull())
|
||||
phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString());
|
||||
if(!value["AllowOutbound"].isNull())
|
||||
phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true";
|
||||
if(!value["Usage"].isNull())
|
||||
phoneNumbersObject.usage = value["Usage"].asString();
|
||||
if(!value["Trunks"].isNull())
|
||||
phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString());
|
||||
auto allSkillGroups = value["SkillGroups"]["SkillGroup"];
|
||||
for (auto value : allSkillGroups)
|
||||
{
|
||||
PhoneNumber::SkillGroup skillGroupsObject;
|
||||
if(!value["SkillGroupId"].isNull())
|
||||
skillGroupsObject.skillGroupId = value["SkillGroupId"].asString();
|
||||
if(!value["SkillGroupName"].isNull())
|
||||
skillGroupsObject.skillGroupName = value["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_;
|
||||
}
|
||||
|
||||
71
ccc/src/model/AddNumberToSkillGroupRequest.cc
Normal file
71
ccc/src/model/AddNumberToSkillGroupRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/AddNumberToSkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddNumberToSkillGroupRequest;
|
||||
|
||||
AddNumberToSkillGroupRequest::AddNumberToSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "AddNumberToSkillGroup")
|
||||
{}
|
||||
|
||||
AddNumberToSkillGroupRequest::~AddNumberToSkillGroupRequest()
|
||||
{}
|
||||
|
||||
std::string AddNumberToSkillGroupRequest::getNumber()const
|
||||
{
|
||||
return number_;
|
||||
}
|
||||
|
||||
void AddNumberToSkillGroupRequest::setNumber(const std::string& number)
|
||||
{
|
||||
number_ = number;
|
||||
setCoreParameter("Number", number);
|
||||
}
|
||||
|
||||
std::string AddNumberToSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddNumberToSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddNumberToSkillGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void AddNumberToSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setCoreParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
std::string AddNumberToSkillGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddNumberToSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
76
ccc/src/model/AddNumberToSkillGroupResult.cc
Normal file
76
ccc/src/model/AddNumberToSkillGroupResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/AddNumberToSkillGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddNumberToSkillGroupResult::AddNumberToSkillGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddNumberToSkillGroupResult::AddNumberToSkillGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddNumberToSkillGroupResult::~AddNumberToSkillGroupResult()
|
||||
{}
|
||||
|
||||
void AddNumberToSkillGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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 AddNumberToSkillGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddNumberToSkillGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddNumberToSkillGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddNumberToSkillGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AddPhoneNumberRequest::getContactFlowId()const
|
||||
void AddPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId)
|
||||
{
|
||||
contactFlowId_ = contactFlowId;
|
||||
setParameter("ContactFlowId", contactFlowId);
|
||||
setCoreParameter("ContactFlowId", contactFlowId);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberRequest::getInstanceId()const
|
||||
@@ -44,7 +44,7 @@ std::string AddPhoneNumberRequest::getInstanceId()const
|
||||
void AddPhoneNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberRequest::getUsage()const
|
||||
@@ -55,7 +55,7 @@ std::string AddPhoneNumberRequest::getUsage()const
|
||||
void AddPhoneNumberRequest::setUsage(const std::string& usage)
|
||||
{
|
||||
usage_ = usage;
|
||||
setParameter("Usage", usage);
|
||||
setCoreParameter("Usage", usage);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberRequest::getPhoneNumber()const
|
||||
@@ -66,7 +66,7 @@ std::string AddPhoneNumberRequest::getPhoneNumber()const
|
||||
void AddPhoneNumberRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
setCoreParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string AddPhoneNumberRequest::getAccessKeyId()const
|
||||
void AddPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddPhoneNumberResult::~AddPhoneNumberResult()
|
||||
|
||||
void AddPhoneNumberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto phoneNumberNode = value["PhoneNumber"];
|
||||
if(!phoneNumberNode["PhoneNumberId"].isNull())
|
||||
|
||||
@@ -34,7 +34,7 @@ void AssignJobsRequest::setCallingNumber(const std::vector<std::string>& calling
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int i = 0; i!= callingNumber.size(); i++)
|
||||
setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i));
|
||||
setCoreParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i));
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getInstanceId()const
|
||||
@@ -45,7 +45,7 @@ std::string AssignJobsRequest::getInstanceId()const
|
||||
void AssignJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getGroupId()const
|
||||
@@ -56,7 +56,7 @@ std::string AssignJobsRequest::getGroupId()const
|
||||
void AssignJobsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getStrategyJson()const
|
||||
@@ -67,7 +67,7 @@ std::string AssignJobsRequest::getStrategyJson()const
|
||||
void AssignJobsRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
setCoreParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getScenarioId()const
|
||||
@@ -78,7 +78,7 @@ std::string AssignJobsRequest::getScenarioId()const
|
||||
void AssignJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
setCoreParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
std::vector<std::string> AssignJobsRequest::getJobsJson()const
|
||||
@@ -90,6 +90,6 @@ void AssignJobsRequest::setJobsJson(const std::vector<std::string>& jobsJson)
|
||||
{
|
||||
jobsJson_ = jobsJson;
|
||||
for(int i = 0; i!= jobsJson.size(); i++)
|
||||
setParameter("JobsJson."+ std::to_string(i), jobsJson.at(i));
|
||||
setCoreParameter("JobsJson."+ std::to_string(i), jobsJson.at(i));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AssignJobsResult::~AssignJobsResult()
|
||||
|
||||
void AssignJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -34,7 +34,7 @@ void AssignUsersRequest::setUserRamId(const std::vector<std::string>& userRamId)
|
||||
{
|
||||
userRamId_ = userRamId;
|
||||
for(int i = 0; i!= userRamId.size(); i++)
|
||||
setParameter("UserRamId."+ std::to_string(i), userRamId.at(i));
|
||||
setCoreParameter("UserRamId."+ std::to_string(i), userRamId.at(i));
|
||||
}
|
||||
|
||||
std::vector<int> AssignUsersRequest::getSkillLevel()const
|
||||
@@ -46,7 +46,7 @@ void AssignUsersRequest::setSkillLevel(const std::vector<int>& skillLevel)
|
||||
{
|
||||
skillLevel_ = skillLevel;
|
||||
for(int i = 0; i!= skillLevel.size(); i++)
|
||||
setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i)));
|
||||
setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i)));
|
||||
}
|
||||
|
||||
std::string AssignUsersRequest::getInstanceId()const
|
||||
@@ -57,7 +57,7 @@ std::string AssignUsersRequest::getInstanceId()const
|
||||
void AssignUsersRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> AssignUsersRequest::getRoleId()const
|
||||
@@ -69,7 +69,7 @@ void AssignUsersRequest::setRoleId(const std::vector<std::string>& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
for(int i = 0; i!= roleId.size(); i++)
|
||||
setParameter("RoleId."+ std::to_string(i), roleId.at(i));
|
||||
setCoreParameter("RoleId."+ std::to_string(i), roleId.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> AssignUsersRequest::getSkillGroupId()const
|
||||
@@ -81,7 +81,7 @@ void AssignUsersRequest::setSkillGroupId(const std::vector<std::string>& skillGr
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
for(int i = 0; i!= skillGroupId.size(); i++)
|
||||
setParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i));
|
||||
setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i));
|
||||
}
|
||||
|
||||
std::string AssignUsersRequest::getAccessKeyId()const
|
||||
@@ -92,6 +92,6 @@ std::string AssignUsersRequest::getAccessKeyId()const
|
||||
void AssignUsersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AssignUsersResult::~AssignUsersResult()
|
||||
|
||||
void AssignUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
71
ccc/src/model/CallOnlinePrivacyNumberRequest.cc
Normal file
71
ccc/src/model/CallOnlinePrivacyNumberRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CallOnlinePrivacyNumberRequest::~CallOnlinePrivacyNumberRequest()
|
||||
{}
|
||||
|
||||
std::string CallOnlinePrivacyNumberRequest::getTelA()const
|
||||
{
|
||||
return telA_;
|
||||
}
|
||||
|
||||
void CallOnlinePrivacyNumberRequest::setTelA(const std::string& telA)
|
||||
{
|
||||
telA_ = telA;
|
||||
setCoreParameter("TelA", telA);
|
||||
}
|
||||
|
||||
std::string CallOnlinePrivacyNumberRequest::getTelB()const
|
||||
{
|
||||
return telB_;
|
||||
}
|
||||
|
||||
void CallOnlinePrivacyNumberRequest::setTelB(const std::string& telB)
|
||||
{
|
||||
telB_ = telB;
|
||||
setCoreParameter("TelB", telB);
|
||||
}
|
||||
|
||||
std::string CallOnlinePrivacyNumberRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CallOnlinePrivacyNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CallOnlinePrivacyNumberRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CallOnlinePrivacyNumberRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
92
ccc/src/model/CallOnlinePrivacyNumberResult.cc
Normal file
92
ccc/src/model/CallOnlinePrivacyNumberResult.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/CallOnlinePrivacyNumberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CallOnlinePrivacyNumberResult::~CallOnlinePrivacyNumberResult()
|
||||
{}
|
||||
|
||||
void CallOnlinePrivacyNumberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CallOnlinePrivacyNumberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CallOnlinePrivacyNumberResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CallOnlinePrivacyNumberResult::Data CallOnlinePrivacyNumberResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CallOnlinePrivacyNumberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CallOnlinePrivacyNumberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ bool CancelJobsRequest::getAll()const
|
||||
void CancelJobsRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", std::to_string(all));
|
||||
setCoreParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelJobsRequest::getJobId()const
|
||||
@@ -45,7 +45,7 @@ void CancelJobsRequest::setJobId(const std::vector<std::string>& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
for(int i = 0; i!= jobId.size(); i++)
|
||||
setParameter("JobId."+ std::to_string(i), jobId.at(i));
|
||||
setCoreParameter("JobId."+ std::to_string(i), jobId.at(i));
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getInstanceId()const
|
||||
@@ -56,7 +56,7 @@ std::string CancelJobsRequest::getInstanceId()const
|
||||
void CancelJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelJobsRequest::getJobReferenceId()const
|
||||
@@ -68,7 +68,7 @@ void CancelJobsRequest::setJobReferenceId(const std::vector<std::string>& jobRef
|
||||
{
|
||||
jobReferenceId_ = jobReferenceId;
|
||||
for(int i = 0; i!= jobReferenceId.size(); i++)
|
||||
setParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i));
|
||||
setCoreParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i));
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getGroupId()const
|
||||
@@ -79,7 +79,7 @@ std::string CancelJobsRequest::getGroupId()const
|
||||
void CancelJobsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getScenarioId()const
|
||||
@@ -90,6 +90,6 @@ std::string CancelJobsRequest::getScenarioId()const
|
||||
void CancelJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
setCoreParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CancelJobsResult::~CancelJobsResult()
|
||||
|
||||
void CancelJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ bool CancelPredictiveJobsRequest::getAll()const
|
||||
void CancelPredictiveJobsRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", std::to_string(all));
|
||||
setCoreParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelPredictiveJobsRequest::getJobId()const
|
||||
@@ -45,7 +45,7 @@ void CancelPredictiveJobsRequest::setJobId(const std::vector<std::string>& jobId
|
||||
{
|
||||
jobId_ = jobId;
|
||||
for(int i = 0; i!= jobId.size(); i++)
|
||||
setParameter("JobId."+ std::to_string(i), jobId.at(i));
|
||||
setCoreParameter("JobId."+ std::to_string(i), jobId.at(i));
|
||||
}
|
||||
|
||||
std::string CancelPredictiveJobsRequest::getInstanceId()const
|
||||
@@ -56,7 +56,7 @@ std::string CancelPredictiveJobsRequest::getInstanceId()const
|
||||
void CancelPredictiveJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CancelPredictiveJobsRequest::getJobGroupId()const
|
||||
@@ -67,6 +67,6 @@ std::string CancelPredictiveJobsRequest::getJobGroupId()const
|
||||
void CancelPredictiveJobsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
setCoreParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CancelPredictiveJobsResult::~CancelPredictiveJobsResult()
|
||||
|
||||
void CancelPredictiveJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
82
ccc/src/model/CommitContactFlowVersionModificationRequest.cc
Normal file
82
ccc/src/model/CommitContactFlowVersionModificationRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CommitContactFlowVersionModificationRequest;
|
||||
|
||||
CommitContactFlowVersionModificationRequest::CommitContactFlowVersionModificationRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CommitContactFlowVersionModification")
|
||||
{}
|
||||
|
||||
CommitContactFlowVersionModificationRequest::~CommitContactFlowVersionModificationRequest()
|
||||
{}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getCanvas()const
|
||||
{
|
||||
return canvas_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setCanvas(const std::string& canvas)
|
||||
{
|
||||
canvas_ = canvas;
|
||||
setCoreParameter("Canvas", canvas);
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getContactFlowVersionId()const
|
||||
{
|
||||
return contactFlowVersionId_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setContactFlowVersionId(const std::string& contactFlowVersionId)
|
||||
{
|
||||
contactFlowVersionId_ = contactFlowVersionId;
|
||||
setCoreParameter("ContactFlowVersionId", contactFlowVersionId);
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CommitContactFlowVersionModificationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CommitContactFlowVersionModificationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
100
ccc/src/model/CommitContactFlowVersionModificationResult.cc
Normal file
100
ccc/src/model/CommitContactFlowVersionModificationResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ void CreateBatchJobsRequest::setCallingNumber(const std::vector<std::string>& ca
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int i = 0; i!= callingNumber.size(); i++)
|
||||
setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i));
|
||||
setCoreParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i));
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getInstanceId()const
|
||||
@@ -45,7 +45,7 @@ std::string CreateBatchJobsRequest::getInstanceId()const
|
||||
void CreateBatchJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
bool CreateBatchJobsRequest::getSubmitted()const
|
||||
@@ -56,7 +56,7 @@ bool CreateBatchJobsRequest::getSubmitted()const
|
||||
void CreateBatchJobsRequest::setSubmitted(bool submitted)
|
||||
{
|
||||
submitted_ = submitted;
|
||||
setParameter("Submitted", std::to_string(submitted));
|
||||
setCoreParameter("Submitted", submitted ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getStrategyJson()const
|
||||
@@ -67,7 +67,7 @@ std::string CreateBatchJobsRequest::getStrategyJson()const
|
||||
void CreateBatchJobsRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
setCoreParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getName()const
|
||||
@@ -78,7 +78,7 @@ std::string CreateBatchJobsRequest::getName()const
|
||||
void CreateBatchJobsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getDescription()const
|
||||
@@ -89,7 +89,7 @@ std::string CreateBatchJobsRequest::getDescription()const
|
||||
void CreateBatchJobsRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getScenarioId()const
|
||||
@@ -100,7 +100,7 @@ std::string CreateBatchJobsRequest::getScenarioId()const
|
||||
void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
setCoreParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getJobFilePath()const
|
||||
@@ -111,6 +111,6 @@ std::string CreateBatchJobsRequest::getJobFilePath()const
|
||||
void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath)
|
||||
{
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter("JobFilePath", jobFilePath);
|
||||
setCoreParameter("JobFilePath", jobFilePath);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateBatchJobsResult::~CreateBatchJobsResult()
|
||||
|
||||
void CreateBatchJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["JobGroupId"].isNull())
|
||||
|
||||
38
ccc/src/model/CreateCCCPostOrderRequest.cc
Normal file
38
ccc/src/model/CreateCCCPostOrderRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/CreateCCCPostOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateCCCPostOrderRequest;
|
||||
|
||||
CreateCCCPostOrderRequest::CreateCCCPostOrderRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateCCCPostOrder")
|
||||
{}
|
||||
|
||||
CreateCCCPostOrderRequest::~CreateCCCPostOrderRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCCCPostOrderRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateCCCPostOrderRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
83
ccc/src/model/CreateCCCPostOrderResult.cc
Normal file
83
ccc/src/model/CreateCCCPostOrderResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/CreateCCCPostOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateCCCPostOrderResult::CreateCCCPostOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCCCPostOrderResult::CreateCCCPostOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCCCPostOrderResult::~CreateCCCPostOrderResult()
|
||||
{}
|
||||
|
||||
void CreateCCCPostOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCCCPostOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateCCCPostOrderResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateCCCPostOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string CreateCCCPostOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateCCCPostOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
71
ccc/src/model/CreateCabInstanceRequest.cc
Normal file
71
ccc/src/model/CreateCabInstanceRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CreateCabInstanceRequest::~CreateCabInstanceRequest()
|
||||
{}
|
||||
|
||||
int CreateCabInstanceRequest::getMaxConcurrentConversation()const
|
||||
{
|
||||
return maxConcurrentConversation_;
|
||||
}
|
||||
|
||||
void CreateCabInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation)
|
||||
{
|
||||
maxConcurrentConversation_ = maxConcurrentConversation;
|
||||
setCoreParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation));
|
||||
}
|
||||
|
||||
std::string CreateCabInstanceRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void CreateCabInstanceRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setCoreParameter("InstanceName", instanceName);
|
||||
}
|
||||
|
||||
std::string CreateCabInstanceRequest::getCallCenterInstanceId()const
|
||||
{
|
||||
return callCenterInstanceId_;
|
||||
}
|
||||
|
||||
void CreateCabInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId)
|
||||
{
|
||||
callCenterInstanceId_ = callCenterInstanceId;
|
||||
setCoreParameter("CallCenterInstanceId", callCenterInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateCabInstanceRequest::getInstanceDescription()const
|
||||
{
|
||||
return instanceDescription_;
|
||||
}
|
||||
|
||||
void CreateCabInstanceRequest::setInstanceDescription(const std::string& instanceDescription)
|
||||
{
|
||||
instanceDescription_ = instanceDescription;
|
||||
setCoreParameter("InstanceDescription", instanceDescription);
|
||||
}
|
||||
|
||||
96
ccc/src/model/CreateCabInstanceResult.cc
Normal file
96
ccc/src/model/CreateCabInstanceResult.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/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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
104
ccc/src/model/CreateContactFlowRequest.cc
Normal file
104
ccc/src/model/CreateContactFlowRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CreateContactFlowRequest::~CreateContactFlowRequest()
|
||||
{}
|
||||
|
||||
std::string CreateContactFlowRequest::getCanvas()const
|
||||
{
|
||||
return canvas_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setCanvas(const std::string& canvas)
|
||||
{
|
||||
canvas_ = canvas;
|
||||
setCoreParameter("Canvas", canvas);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateContactFlowRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateContactFlowRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
142
ccc/src/model/CreateContactFlowResult.cc
Normal file
142
ccc/src/model/CreateContactFlowResult.cc
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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 allVersions = value["Versions"]["ContactFlowVersion"];
|
||||
for (auto value : allVersions)
|
||||
{
|
||||
ContactFlow::ContactFlowVersion contactFlowVersionObject;
|
||||
if(!value["ContactFlowVersionId"].isNull())
|
||||
contactFlowVersionObject.contactFlowVersionId = value["ContactFlowVersionId"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
contactFlowVersionObject.version = value["Version"].asString();
|
||||
if(!value["ContactFlowVersionDescription"].isNull())
|
||||
contactFlowVersionObject.contactFlowVersionDescription = value["ContactFlowVersionDescription"].asString();
|
||||
if(!value["Canvas"].isNull())
|
||||
contactFlowVersionObject.canvas = value["Canvas"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
contactFlowVersionObject.content = value["Content"].asString();
|
||||
if(!value["LastModified"].isNull())
|
||||
contactFlowVersionObject.lastModified = value["LastModified"].asString();
|
||||
if(!value["LastModifiedBy"].isNull())
|
||||
contactFlowVersionObject.lastModifiedBy = value["LastModifiedBy"].asString();
|
||||
if(!value["LockedBy"].isNull())
|
||||
contactFlowVersionObject.lockedBy = value["LockedBy"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
contactFlowVersionObject.status = value["Status"].asString();
|
||||
contactFlow_.versions.push_back(contactFlowVersionObject);
|
||||
}
|
||||
auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"];
|
||||
for (auto value : allPhoneNumbers)
|
||||
{
|
||||
ContactFlow::PhoneNumber phoneNumberObject;
|
||||
if(!value["PhoneNumberId"].isNull())
|
||||
phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
phoneNumberObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Number"].isNull())
|
||||
phoneNumberObject.number = value["Number"].asString();
|
||||
if(!value["PhoneNumberDescription"].isNull())
|
||||
phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
|
||||
if(!value["TestOnly"].isNull())
|
||||
phoneNumberObject.testOnly = value["TestOnly"].asString() == "true";
|
||||
if(!value["RemainingTime"].isNull())
|
||||
phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString());
|
||||
if(!value["AllowOutbound"].isNull())
|
||||
phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true";
|
||||
if(!value["Usage"].isNull())
|
||||
phoneNumberObject.usage = value["Usage"].asString();
|
||||
if(!value["Trunks"].isNull())
|
||||
phoneNumberObject.trunks = std::stoi(value["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_;
|
||||
}
|
||||
|
||||
258
ccc/src/model/CreateFaultRequest.cc
Normal file
258
ccc/src/model/CreateFaultRequest.cc
Normal file
@@ -0,0 +1,258 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CreateFaultRequest::~CreateFaultRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFaultRequest::getSpeakerList()const
|
||||
{
|
||||
return speakerList_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setSpeakerList(const std::string& speakerList)
|
||||
{
|
||||
speakerList_ = speakerList;
|
||||
setCoreParameter("SpeakerList", speakerList);
|
||||
}
|
||||
|
||||
long CreateFaultRequest::getAgentId()const
|
||||
{
|
||||
return agentId_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setAgentId(long agentId)
|
||||
{
|
||||
agentId_ = agentId;
|
||||
setCoreParameter("AgentId", std::to_string(agentId));
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getAgentOssFileName()const
|
||||
{
|
||||
return agentOssFileName_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setAgentOssFileName(const std::string& agentOssFileName)
|
||||
{
|
||||
agentOssFileName_ = agentOssFileName;
|
||||
setCoreParameter("AgentOssFileName", agentOssFileName);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateFaultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getOperatingSystemVersion()const
|
||||
{
|
||||
return operatingSystemVersion_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setOperatingSystemVersion(const std::string& operatingSystemVersion)
|
||||
{
|
||||
operatingSystemVersion_ = operatingSystemVersion;
|
||||
setCoreParameter("OperatingSystemVersion", operatingSystemVersion);
|
||||
}
|
||||
|
||||
long CreateFaultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getMicrophoneList()const
|
||||
{
|
||||
return microphoneList_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setMicrophoneList(const std::string& microphoneList)
|
||||
{
|
||||
microphoneList_ = microphoneList;
|
||||
setCoreParameter("MicrophoneList", microphoneList);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getSpeakerEquipment()const
|
||||
{
|
||||
return speakerEquipment_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setSpeakerEquipment(const std::string& speakerEquipment)
|
||||
{
|
||||
speakerEquipment_ = speakerEquipment;
|
||||
setCoreParameter("SpeakerEquipment", speakerEquipment);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getServicePort()const
|
||||
{
|
||||
return servicePort_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setServicePort(const std::string& servicePort)
|
||||
{
|
||||
servicePort_ = servicePort;
|
||||
setCoreParameter("ServicePort", servicePort);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getClientPort()const
|
||||
{
|
||||
return clientPort_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setClientPort(const std::string& clientPort)
|
||||
{
|
||||
clientPort_ = clientPort;
|
||||
setCoreParameter("ClientPort", clientPort);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getServiceIp()const
|
||||
{
|
||||
return serviceIp_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setServiceIp(const std::string& serviceIp)
|
||||
{
|
||||
serviceIp_ = serviceIp;
|
||||
setCoreParameter("ServiceIp", serviceIp);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getCustomFilePath()const
|
||||
{
|
||||
return customFilePath_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setCustomFilePath(const std::string& customFilePath)
|
||||
{
|
||||
customFilePath_ = customFilePath;
|
||||
setCoreParameter("CustomFilePath", customFilePath);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getClientIp()const
|
||||
{
|
||||
return clientIp_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setClientIp(const std::string& clientIp)
|
||||
{
|
||||
clientIp_ = clientIp;
|
||||
setCoreParameter("ClientIp", clientIp);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getAgentFilePath()const
|
||||
{
|
||||
return agentFilePath_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setAgentFilePath(const std::string& agentFilePath)
|
||||
{
|
||||
agentFilePath_ = agentFilePath;
|
||||
setCoreParameter("AgentFilePath", agentFilePath);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getConnectId()const
|
||||
{
|
||||
return connectId_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setConnectId(const std::string& connectId)
|
||||
{
|
||||
connectId_ = connectId;
|
||||
setCoreParameter("ConnectId", connectId);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getCustomOssFileName()const
|
||||
{
|
||||
return customOssFileName_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setCustomOssFileName(const std::string& customOssFileName)
|
||||
{
|
||||
customOssFileName_ = customOssFileName;
|
||||
setCoreParameter("CustomOssFileName", customOssFileName);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getMicrophoneEquipment()const
|
||||
{
|
||||
return microphoneEquipment_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setMicrophoneEquipment(const std::string& microphoneEquipment)
|
||||
{
|
||||
microphoneEquipment_ = microphoneEquipment;
|
||||
setCoreParameter("MicrophoneEquipment", microphoneEquipment);
|
||||
}
|
||||
|
||||
std::string CreateFaultRequest::getBrowserVersion()const
|
||||
{
|
||||
return browserVersion_;
|
||||
}
|
||||
|
||||
void CreateFaultRequest::setBrowserVersion(const std::string& browserVersion)
|
||||
{
|
||||
browserVersion_ = browserVersion;
|
||||
setCoreParameter("BrowserVersion", browserVersion);
|
||||
}
|
||||
|
||||
76
ccc/src/model/CreateFaultResult.cc
Normal file
76
ccc/src/model/CreateFaultResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/CreateFaultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateFaultResult::CreateFaultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFaultResult::CreateFaultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFaultResult::~CreateFaultResult()
|
||||
{}
|
||||
|
||||
void CreateFaultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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 CreateFaultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateFaultResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateFaultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateFaultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
151
ccc/src/model/CreateInstanceRequest.cc
Normal file
151
ccc/src/model/CreateInstanceRequest.cc
Normal file
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* 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/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateInstance")
|
||||
{}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> CreateInstanceRequest::getPhoneNumbers()const
|
||||
{
|
||||
return phoneNumbers_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPhoneNumbers(const std::vector<std::string>& phoneNumbers)
|
||||
{
|
||||
phoneNumbers_ = phoneNumbers;
|
||||
for(int i = 0; i!= phoneNumbers.size(); i++)
|
||||
setCoreParameter("PhoneNumbers."+ std::to_string(i), phoneNumbers.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateInstanceRequest::getUserObject()const
|
||||
{
|
||||
return userObject_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setUserObject(const std::vector<std::string>& userObject)
|
||||
{
|
||||
userObject_ = userObject;
|
||||
for(int i = 0; i!= userObject.size(); i++)
|
||||
setCoreParameter("UserObject."+ std::to_string(i), userObject.at(i));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setCoreParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getStorageMaxDays()const
|
||||
{
|
||||
return storageMaxDays_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setStorageMaxDays(int storageMaxDays)
|
||||
{
|
||||
storageMaxDays_ = storageMaxDays;
|
||||
setCoreParameter("StorageMaxDays", std::to_string(storageMaxDays));
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getStorageMaxSize()const
|
||||
{
|
||||
return storageMaxSize_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setStorageMaxSize(int storageMaxSize)
|
||||
{
|
||||
storageMaxSize_ = storageMaxSize;
|
||||
setCoreParameter("StorageMaxSize", std::to_string(storageMaxSize));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDirectoryId()const
|
||||
{
|
||||
return directoryId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDirectoryId(const std::string& directoryId)
|
||||
{
|
||||
directoryId_ = directoryId;
|
||||
setCoreParameter("DirectoryId", directoryId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateInstanceRequest::getAdminRamId()const
|
||||
{
|
||||
return adminRamId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAdminRamId(const std::vector<std::string>& adminRamId)
|
||||
{
|
||||
adminRamId_ = adminRamId;
|
||||
for(int i = 0; i!= adminRamId.size(); i++)
|
||||
setCoreParameter("AdminRamId."+ std::to_string(i), adminRamId.at(i));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
169
ccc/src/model/CreateInstanceResult.cc
Normal file
169
ccc/src/model/CreateInstanceResult.cc
Normal file
@@ -0,0 +1,169 @@
|
||||
/*
|
||||
* 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/CreateInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInstanceResult::~CreateInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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["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 allAdmin = value["Admin"]["User"];
|
||||
for (auto value : allAdmin)
|
||||
{
|
||||
Instance::User userObject;
|
||||
if(!value["UserId"].isNull())
|
||||
userObject.userId = value["UserId"].asString();
|
||||
if(!value["RamId"].isNull())
|
||||
userObject.ramId = value["RamId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
userObject.instanceId = value["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 allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"];
|
||||
for (auto value : allPhoneNumbers)
|
||||
{
|
||||
Instance::PhoneNumber phoneNumberObject;
|
||||
if(!value["PhoneNumberId"].isNull())
|
||||
phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
phoneNumberObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Number"].isNull())
|
||||
phoneNumberObject.number = value["Number"].asString();
|
||||
if(!value["PhoneNumberDescription"].isNull())
|
||||
phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
|
||||
if(!value["TestOnly"].isNull())
|
||||
phoneNumberObject.testOnly = value["TestOnly"].asString() == "true";
|
||||
if(!value["RemainingTime"].isNull())
|
||||
phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString());
|
||||
if(!value["AllowOutbound"].isNull())
|
||||
phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true";
|
||||
if(!value["Usage"].isNull())
|
||||
phoneNumberObject.usage = value["Usage"].asString();
|
||||
if(!value["Trunks"].isNull())
|
||||
phoneNumberObject.trunks = std::stoi(value["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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateInstanceResult::Instance CreateInstanceResult::getInstance()const
|
||||
{
|
||||
return instance_;
|
||||
}
|
||||
|
||||
int CreateInstanceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ void CreateJobGroupRequest::setCallingNumber(const std::vector<std::string>& cal
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int i = 0; i!= callingNumber.size(); i++)
|
||||
setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i));
|
||||
setCoreParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i));
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getInstanceId()const
|
||||
@@ -45,7 +45,7 @@ std::string CreateJobGroupRequest::getInstanceId()const
|
||||
void CreateJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getStrategyJson()const
|
||||
@@ -56,7 +56,7 @@ std::string CreateJobGroupRequest::getStrategyJson()const
|
||||
void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
setCoreParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getName()const
|
||||
@@ -67,7 +67,7 @@ std::string CreateJobGroupRequest::getName()const
|
||||
void CreateJobGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getDescription()const
|
||||
@@ -78,7 +78,7 @@ std::string CreateJobGroupRequest::getDescription()const
|
||||
void CreateJobGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getScenarioId()const
|
||||
@@ -89,6 +89,6 @@ std::string CreateJobGroupRequest::getScenarioId()const
|
||||
void CreateJobGroupRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
setCoreParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateJobGroupResult::~CreateJobGroupResult()
|
||||
|
||||
void CreateJobGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["JobGroupId"].isNull())
|
||||
|
||||
137
ccc/src/model/CreateMediaRequest.cc
Normal file
137
ccc/src/model/CreateMediaRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CreateMediaRequest::~CreateMediaRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMediaRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setCoreParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getOssFilePath()const
|
||||
{
|
||||
return ossFilePath_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setOssFilePath(const std::string& ossFilePath)
|
||||
{
|
||||
ossFilePath_ = ossFilePath;
|
||||
setCoreParameter("OssFilePath", ossFilePath);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getUploadResult()const
|
||||
{
|
||||
return uploadResult_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setUploadResult(const std::string& uploadResult)
|
||||
{
|
||||
uploadResult_ = uploadResult;
|
||||
setCoreParameter("UploadResult", uploadResult);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateMediaRequest::getOssFileName()const
|
||||
{
|
||||
return ossFileName_;
|
||||
}
|
||||
|
||||
void CreateMediaRequest::setOssFileName(const std::string& ossFileName)
|
||||
{
|
||||
ossFileName_ = ossFileName;
|
||||
setCoreParameter("OssFileName", ossFileName);
|
||||
}
|
||||
|
||||
94
ccc/src/model/CreateMediaResult.cc
Normal file
94
ccc/src/model/CreateMediaResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
127
ccc/src/model/CreatePredictiveJobGroupRequest.cc
Normal file
127
ccc/src/model/CreatePredictiveJobGroupRequest.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CreatePredictiveJobGroupRequest::~CreatePredictiveJobGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
bool CreatePredictiveJobGroupRequest::getIsDraft()const
|
||||
{
|
||||
return isDraft_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setIsDraft(bool isDraft)
|
||||
{
|
||||
isDraft_ = isDraft;
|
||||
setCoreParameter("IsDraft", isDraft ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setCoreParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setCoreParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreatePredictiveJobGroupRequest::getTimingSchedule()const
|
||||
{
|
||||
return timingSchedule_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setTimingSchedule(bool timingSchedule)
|
||||
{
|
||||
timingSchedule_ = timingSchedule;
|
||||
setCoreParameter("TimingSchedule", timingSchedule ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CreatePredictiveJobGroupRequest::getJobsJson()const
|
||||
{
|
||||
return jobsJson_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setJobsJson(const std::vector<std::string>& jobsJson)
|
||||
{
|
||||
jobsJson_ = jobsJson;
|
||||
for(int i = 0; i!= jobsJson.size(); i++)
|
||||
setCoreParameter("JobsJson."+ std::to_string(i), jobsJson.at(i));
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupRequest::getJobFilePath()const
|
||||
{
|
||||
return jobFilePath_;
|
||||
}
|
||||
|
||||
void CreatePredictiveJobGroupRequest::setJobFilePath(const std::string& jobFilePath)
|
||||
{
|
||||
jobFilePath_ = jobFilePath;
|
||||
setCoreParameter("JobFilePath", jobFilePath);
|
||||
}
|
||||
|
||||
83
ccc/src/model/CreatePredictiveJobGroupResult.cc
Normal file
83
ccc/src/model/CreatePredictiveJobGroupResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/CreatePredictiveJobGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePredictiveJobGroupResult::~CreatePredictiveJobGroupResult()
|
||||
{}
|
||||
|
||||
void CreatePredictiveJobGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["JobGroupId"].isNull())
|
||||
jobGroupId_ = value["JobGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupResult::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreatePredictiveJobGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreatePredictiveJobGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreatePredictiveJobsRequest::getInstanceId()const
|
||||
void CreatePredictiveJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobsRequest::getSkillGroupId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreatePredictiveJobsRequest::getSkillGroupId()const
|
||||
void CreatePredictiveJobsRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
setCoreParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
std::string CreatePredictiveJobsRequest::getStrategyJson()const
|
||||
@@ -55,7 +55,7 @@ std::string CreatePredictiveJobsRequest::getStrategyJson()const
|
||||
void CreatePredictiveJobsRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
setCoreParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreatePredictiveJobsRequest::getJobsJson()const
|
||||
@@ -67,6 +67,6 @@ void CreatePredictiveJobsRequest::setJobsJson(const std::vector<std::string>& jo
|
||||
{
|
||||
jobsJson_ = jobsJson;
|
||||
for(int i = 0; i!= jobsJson.size(); i++)
|
||||
setParameter("JobsJson."+ std::to_string(i), jobsJson.at(i));
|
||||
setCoreParameter("JobsJson."+ std::to_string(i), jobsJson.at(i));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreatePredictiveJobsResult::~CreatePredictiveJobsResult()
|
||||
|
||||
void CreatePredictiveJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateScenarioFromTemplateRequest::getVariables()const
|
||||
void CreateScenarioFromTemplateRequest::setVariables(const std::string& variables)
|
||||
{
|
||||
variables_ = variables;
|
||||
setParameter("Variables", variables);
|
||||
setCoreParameter("Variables", variables);
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getInstanceId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateScenarioFromTemplateRequest::getInstanceId()const
|
||||
void CreateScenarioFromTemplateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getName()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateScenarioFromTemplateRequest::getName()const
|
||||
void CreateScenarioFromTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getDescription()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateScenarioFromTemplateRequest::getDescription()const
|
||||
void CreateScenarioFromTemplateRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateScenarioFromTemplateRequest::getTemplateId()const
|
||||
@@ -77,6 +77,6 @@ std::string CreateScenarioFromTemplateRequest::getTemplateId()const
|
||||
void CreateScenarioFromTemplateRequest::setTemplateId(const std::string& templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", templateId);
|
||||
setCoreParameter("TemplateId", templateId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateScenarioFromTemplateResult::~CreateScenarioFromTemplateResult()
|
||||
|
||||
void CreateScenarioFromTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scenarioNode = value["Scenario"];
|
||||
if(!scenarioNode["ScenarioId"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateScenarioRequest::getInstanceId()const
|
||||
void CreateScenarioRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateScenarioRequest::getSurveysJson()const
|
||||
@@ -45,7 +45,7 @@ void CreateScenarioRequest::setSurveysJson(const std::vector<std::string>& surve
|
||||
{
|
||||
surveysJson_ = surveysJson;
|
||||
for(int i = 0; i!= surveysJson.size(); i++)
|
||||
setParameter("SurveysJson."+ std::to_string(i), surveysJson.at(i));
|
||||
setCoreParameter("SurveysJson."+ std::to_string(i), surveysJson.at(i));
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getStrategyJson()const
|
||||
@@ -56,7 +56,7 @@ std::string CreateScenarioRequest::getStrategyJson()const
|
||||
void CreateScenarioRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
setCoreParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getName()const
|
||||
@@ -67,7 +67,7 @@ std::string CreateScenarioRequest::getName()const
|
||||
void CreateScenarioRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getDescription()const
|
||||
@@ -78,7 +78,7 @@ std::string CreateScenarioRequest::getDescription()const
|
||||
void CreateScenarioRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateScenarioRequest::getType()const
|
||||
@@ -89,6 +89,6 @@ std::string CreateScenarioRequest::getType()const
|
||||
void CreateScenarioRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateScenarioResult::~CreateScenarioResult()
|
||||
|
||||
void CreateScenarioResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scenarioNode = value["Scenario"];
|
||||
if(!scenarioNode["ScenarioId"].isNull())
|
||||
|
||||
@@ -34,7 +34,7 @@ void CreateSkillGroupRequest::setSkillLevel(const std::vector<int>& skillLevel)
|
||||
{
|
||||
skillLevel_ = skillLevel;
|
||||
for(int i = 0; i!= skillLevel.size(); i++)
|
||||
setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i)));
|
||||
setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i)));
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getInstanceId()const
|
||||
@@ -45,7 +45,18 @@ std::string CreateSkillGroupRequest::getInstanceId()const
|
||||
void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
bool CreateSkillGroupRequest::getAllowPrivateOutboundNumber()const
|
||||
{
|
||||
return allowPrivateOutboundNumber_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber)
|
||||
{
|
||||
allowPrivateOutboundNumber_ = allowPrivateOutboundNumber;
|
||||
setCoreParameter("AllowPrivateOutboundNumber", allowPrivateOutboundNumber ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateSkillGroupRequest::getOutboundPhoneNumberId()const
|
||||
@@ -57,7 +68,7 @@ void CreateSkillGroupRequest::setOutboundPhoneNumberId(const std::vector<std::st
|
||||
{
|
||||
outboundPhoneNumberId_ = outboundPhoneNumberId;
|
||||
for(int i = 0; i!= outboundPhoneNumberId.size(); i++)
|
||||
setParameter("OutboundPhoneNumberId."+ std::to_string(i), outboundPhoneNumberId.at(i));
|
||||
setCoreParameter("OutboundPhoneNumberId."+ std::to_string(i), outboundPhoneNumberId.at(i));
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getName()const
|
||||
@@ -68,7 +79,7 @@ std::string CreateSkillGroupRequest::getName()const
|
||||
void CreateSkillGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getDescription()const
|
||||
@@ -79,7 +90,18 @@ std::string CreateSkillGroupRequest::getDescription()const
|
||||
void CreateSkillGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getRoutingStrategy()const
|
||||
{
|
||||
return routingStrategy_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setRoutingStrategy(const std::string& routingStrategy)
|
||||
{
|
||||
routingStrategy_ = routingStrategy;
|
||||
setCoreParameter("RoutingStrategy", routingStrategy);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateSkillGroupRequest::getUserId()const
|
||||
@@ -91,7 +113,7 @@ void CreateSkillGroupRequest::setUserId(const std::vector<std::string>& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
for(int i = 0; i!= userId.size(); i++)
|
||||
setParameter("UserId."+ std::to_string(i), userId.at(i));
|
||||
setCoreParameter("UserId."+ std::to_string(i), userId.at(i));
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getAccessKeyId()const
|
||||
@@ -102,6 +124,6 @@ std::string CreateSkillGroupRequest::getAccessKeyId()const
|
||||
void CreateSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateSkillGroupResult::~CreateSkillGroupResult()
|
||||
|
||||
void CreateSkillGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateSurveyRequest::getInstanceId()const
|
||||
void CreateSurveyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getRole()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateSurveyRequest::getRole()const
|
||||
void CreateSurveyRequest::setRole(const std::string& role)
|
||||
{
|
||||
role_ = role;
|
||||
setParameter("Role", role);
|
||||
setCoreParameter("Role", role);
|
||||
}
|
||||
|
||||
int CreateSurveyRequest::getRound()const
|
||||
@@ -55,7 +55,7 @@ int CreateSurveyRequest::getRound()const
|
||||
void CreateSurveyRequest::setRound(int round)
|
||||
{
|
||||
round_ = round;
|
||||
setParameter("Round", std::to_string(round));
|
||||
setCoreParameter("Round", std::to_string(round));
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getFlowJson()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateSurveyRequest::getFlowJson()const
|
||||
void CreateSurveyRequest::setFlowJson(const std::string& flowJson)
|
||||
{
|
||||
flowJson_ = flowJson;
|
||||
setParameter("FlowJson", flowJson);
|
||||
setCoreParameter("FlowJson", flowJson);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getName()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateSurveyRequest::getName()const
|
||||
void CreateSurveyRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getGlobalQuestions()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateSurveyRequest::getGlobalQuestions()const
|
||||
void CreateSurveyRequest::setGlobalQuestions(const std::string& globalQuestions)
|
||||
{
|
||||
globalQuestions_ = globalQuestions;
|
||||
setParameter("GlobalQuestions", globalQuestions);
|
||||
setCoreParameter("GlobalQuestions", globalQuestions);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getDescription()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateSurveyRequest::getDescription()const
|
||||
void CreateSurveyRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getCorpora()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateSurveyRequest::getCorpora()const
|
||||
void CreateSurveyRequest::setCorpora(const std::string& corpora)
|
||||
{
|
||||
corpora_ = corpora;
|
||||
setParameter("Corpora", corpora);
|
||||
setCoreParameter("Corpora", corpora);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getSpeechOptimizationParam()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateSurveyRequest::getSpeechOptimizationParam()const
|
||||
void CreateSurveyRequest::setSpeechOptimizationParam(const std::string& speechOptimizationParam)
|
||||
{
|
||||
speechOptimizationParam_ = speechOptimizationParam;
|
||||
setParameter("SpeechOptimizationParam", speechOptimizationParam);
|
||||
setCoreParameter("SpeechOptimizationParam", speechOptimizationParam);
|
||||
}
|
||||
|
||||
std::string CreateSurveyRequest::getScenarioId()const
|
||||
@@ -132,6 +132,6 @@ std::string CreateSurveyRequest::getScenarioId()const
|
||||
void CreateSurveyRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
setCoreParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateSurveyResult::~CreateSurveyResult()
|
||||
|
||||
void CreateSurveyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto surveyNode = value["Survey"];
|
||||
if(!surveyNode["Id"].isNull())
|
||||
|
||||
@@ -25,6 +25,17 @@ CreateUserRequest::CreateUserRequest() :
|
||||
CreateUserRequest::~CreateUserRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUserRequest::getPrivateOutboundNumberId()const
|
||||
{
|
||||
return privateOutboundNumberId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setPrivateOutboundNumberId(const std::string& privateOutboundNumberId)
|
||||
{
|
||||
privateOutboundNumberId_ = privateOutboundNumberId;
|
||||
setCoreParameter("PrivateOutboundNumberId", privateOutboundNumberId);
|
||||
}
|
||||
|
||||
std::vector<int> CreateUserRequest::getSkillLevel()const
|
||||
{
|
||||
return skillLevel_;
|
||||
@@ -34,7 +45,7 @@ void CreateUserRequest::setSkillLevel(const std::vector<int>& skillLevel)
|
||||
{
|
||||
skillLevel_ = skillLevel;
|
||||
for(int i = 0; i!= skillLevel.size(); i++)
|
||||
setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i)));
|
||||
setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i)));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getInstanceId()const
|
||||
@@ -45,7 +56,7 @@ std::string CreateUserRequest::getInstanceId()const
|
||||
void CreateUserRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getLoginName()const
|
||||
@@ -56,7 +67,7 @@ std::string CreateUserRequest::getLoginName()const
|
||||
void CreateUserRequest::setLoginName(const std::string& loginName)
|
||||
{
|
||||
loginName_ = loginName;
|
||||
setParameter("LoginName", loginName);
|
||||
setCoreParameter("LoginName", loginName);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getPhone()const
|
||||
@@ -67,7 +78,7 @@ std::string CreateUserRequest::getPhone()const
|
||||
void CreateUserRequest::setPhone(const std::string& phone)
|
||||
{
|
||||
phone_ = phone;
|
||||
setParameter("Phone", phone);
|
||||
setCoreParameter("Phone", phone);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateUserRequest::getRoleId()const
|
||||
@@ -79,7 +90,7 @@ void CreateUserRequest::setRoleId(const std::vector<std::string>& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
for(int i = 0; i!= roleId.size(); i++)
|
||||
setParameter("RoleId."+ std::to_string(i), roleId.at(i));
|
||||
setCoreParameter("RoleId."+ std::to_string(i), roleId.at(i));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getDisplayName()const
|
||||
@@ -90,7 +101,7 @@ std::string CreateUserRequest::getDisplayName()const
|
||||
void CreateUserRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
setCoreParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateUserRequest::getSkillGroupId()const
|
||||
@@ -102,7 +113,7 @@ void CreateUserRequest::setSkillGroupId(const std::vector<std::string>& skillGro
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
for(int i = 0; i!= skillGroupId.size(); i++)
|
||||
setParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i));
|
||||
setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getEmail()const
|
||||
@@ -113,7 +124,7 @@ std::string CreateUserRequest::getEmail()const
|
||||
void CreateUserRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setParameter("Email", email);
|
||||
setCoreParameter("Email", email);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAccessKeyId()const
|
||||
@@ -124,6 +135,6 @@ std::string CreateUserRequest::getAccessKeyId()const
|
||||
void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateUserResult::~CreateUserResult()
|
||||
|
||||
void CreateUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
82
ccc/src/model/CreateVoiceAppraiseRequest.cc
Normal file
82
ccc/src/model/CreateVoiceAppraiseRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateVoiceAppraiseRequest;
|
||||
|
||||
CreateVoiceAppraiseRequest::CreateVoiceAppraiseRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateVoiceAppraise")
|
||||
{}
|
||||
|
||||
CreateVoiceAppraiseRequest::~CreateVoiceAppraiseRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVoiceAppraiseRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseRequest::getContactFlowVersionId()const
|
||||
{
|
||||
return contactFlowVersionId_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setContactFlowVersionId(const std::string& contactFlowVersionId)
|
||||
{
|
||||
contactFlowVersionId_ = contactFlowVersionId;
|
||||
setCoreParameter("ContactFlowVersionId", contactFlowVersionId);
|
||||
}
|
||||
|
||||
bool CreateVoiceAppraiseRequest::getIsAppraise()const
|
||||
{
|
||||
return isAppraise_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setIsAppraise(bool isAppraise)
|
||||
{
|
||||
isAppraise_ = isAppraise;
|
||||
setCoreParameter("IsAppraise", isAppraise ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateVoiceAppraiseRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateVoiceAppraiseRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
76
ccc/src/model/CreateVoiceAppraiseResult.cc
Normal file
76
ccc/src/model/CreateVoiceAppraiseResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
49
ccc/src/model/DeleteInstanceRequest.cc
Normal file
49
ccc/src/model/DeleteInstanceRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "DeleteInstance")
|
||||
{}
|
||||
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
76
ccc/src/model/DeleteInstanceResult.cc
Normal file
76
ccc/src/model/DeleteInstanceResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteJobGroupRequest::getInstanceId()const
|
||||
void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteJobGroupRequest::getJobGroupId()const
|
||||
@@ -44,6 +44,6 @@ std::string DeleteJobGroupRequest::getJobGroupId()const
|
||||
void DeleteJobGroupRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
setCoreParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteJobGroupResult::~DeleteJobGroupResult()
|
||||
|
||||
void DeleteJobGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
60
ccc/src/model/DeleteMediaRequest.cc
Normal file
60
ccc/src/model/DeleteMediaRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
DeleteMediaRequest::~DeleteMediaRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMediaRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteMediaRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteMediaRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteMediaRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DeleteMediaRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteMediaRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
76
ccc/src/model/DeleteMediaResult.cc
Normal file
76
ccc/src/model/DeleteMediaResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteSkillGroupRequest::getInstanceId()const
|
||||
void DeleteSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupRequest::getSkillGroupId()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteSkillGroupRequest::getSkillGroupId()const
|
||||
void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
setCoreParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupRequest::getAccessKeyId()const
|
||||
@@ -55,6 +55,6 @@ std::string DeleteSkillGroupRequest::getAccessKeyId()const
|
||||
void DeleteSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteSkillGroupResult::~DeleteSkillGroupResult()
|
||||
|
||||
void DeleteSkillGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteSurveyRequest::getSurveyId()const
|
||||
void DeleteSurveyRequest::setSurveyId(const std::string& surveyId)
|
||||
{
|
||||
surveyId_ = surveyId;
|
||||
setParameter("SurveyId", surveyId);
|
||||
setCoreParameter("SurveyId", surveyId);
|
||||
}
|
||||
|
||||
std::string DeleteSurveyRequest::getInstanceId()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteSurveyRequest::getInstanceId()const
|
||||
void DeleteSurveyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteSurveyRequest::getScenarioId()const
|
||||
@@ -55,6 +55,6 @@ std::string DeleteSurveyRequest::getScenarioId()const
|
||||
void DeleteSurveyRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
setCoreParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteSurveyResult::~DeleteSurveyResult()
|
||||
|
||||
void DeleteSurveyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
104
ccc/src/model/DialExRequest.cc
Normal file
104
ccc/src/model/DialExRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
DialExRequest::~DialExRequest()
|
||||
{}
|
||||
|
||||
std::string DialExRequest::getRoutPoint()const
|
||||
{
|
||||
return routPoint_;
|
||||
}
|
||||
|
||||
void DialExRequest::setRoutPoint(const std::string& routPoint)
|
||||
{
|
||||
routPoint_ = routPoint;
|
||||
setCoreParameter("RoutPoint", routPoint);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getCaller()const
|
||||
{
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void DialExRequest::setCaller(const std::string& caller)
|
||||
{
|
||||
caller_ = caller;
|
||||
setCoreParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DialExRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getProvider()const
|
||||
{
|
||||
return provider_;
|
||||
}
|
||||
|
||||
void DialExRequest::setProvider(const std::string& provider)
|
||||
{
|
||||
provider_ = provider;
|
||||
setCoreParameter("Provider", provider);
|
||||
}
|
||||
|
||||
std::string DialExRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void DialExRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setCoreParameter("Callee", callee);
|
||||
}
|
||||
|
||||
int DialExRequest::getAnswerMode()const
|
||||
{
|
||||
return answerMode_;
|
||||
}
|
||||
|
||||
void DialExRequest::setAnswerMode(int answerMode)
|
||||
{
|
||||
answerMode_ = answerMode;
|
||||
setCoreParameter("AnswerMode", std::to_string(answerMode));
|
||||
}
|
||||
|
||||
std::string DialExRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DialExRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
104
ccc/src/model/DialExResult.cc
Normal file
104
ccc/src/model/DialExResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/DialExResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DialExResult::DialExResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DialExResult::DialExResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DialExResult::~DialExResult()
|
||||
{}
|
||||
|
||||
void DialExResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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["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 DialExResult::getStatusDesc()const
|
||||
{
|
||||
return statusDesc_;
|
||||
}
|
||||
|
||||
std::string DialExResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string DialExResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DialExResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DialogueRequest::getCallId()const
|
||||
void DialogueRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
setCoreParameter("CallId", callId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCallingNumber()const
|
||||
@@ -44,7 +44,7 @@ std::string DialogueRequest::getCallingNumber()const
|
||||
void DialogueRequest::setCallingNumber(const std::string& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
setParameter("CallingNumber", callingNumber);
|
||||
setCoreParameter("CallingNumber", callingNumber);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getInstanceId()const
|
||||
@@ -55,7 +55,7 @@ std::string DialogueRequest::getInstanceId()const
|
||||
void DialogueRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCalledNumber()const
|
||||
@@ -66,7 +66,18 @@ std::string DialogueRequest::getCalledNumber()const
|
||||
void DialogueRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
long DialogueRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setCoreParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionKey()const
|
||||
@@ -77,7 +88,7 @@ std::string DialogueRequest::getActionKey()const
|
||||
void DialogueRequest::setActionKey(const std::string& actionKey)
|
||||
{
|
||||
actionKey_ = actionKey;
|
||||
setParameter("ActionKey", actionKey);
|
||||
setCoreParameter("ActionKey", actionKey);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionParams()const
|
||||
@@ -88,7 +99,7 @@ std::string DialogueRequest::getActionParams()const
|
||||
void DialogueRequest::setActionParams(const std::string& actionParams)
|
||||
{
|
||||
actionParams_ = actionParams;
|
||||
setParameter("ActionParams", actionParams);
|
||||
setCoreParameter("ActionParams", actionParams);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCallType()const
|
||||
@@ -99,7 +110,7 @@ std::string DialogueRequest::getCallType()const
|
||||
void DialogueRequest::setCallType(const std::string& callType)
|
||||
{
|
||||
callType_ = callType;
|
||||
setParameter("CallType", callType);
|
||||
setCoreParameter("CallType", callType);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getScenarioId()const
|
||||
@@ -110,7 +121,7 @@ std::string DialogueRequest::getScenarioId()const
|
||||
void DialogueRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
setCoreParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getTaskId()const
|
||||
@@ -121,7 +132,7 @@ std::string DialogueRequest::getTaskId()const
|
||||
void DialogueRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getUtterance()const
|
||||
@@ -132,6 +143,6 @@ std::string DialogueRequest::getUtterance()const
|
||||
void DialogueRequest::setUtterance(const std::string& utterance)
|
||||
{
|
||||
utterance_ = utterance;
|
||||
setParameter("Utterance", utterance);
|
||||
setCoreParameter("Utterance", utterance);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DialogueResult::~DialogueResult()
|
||||
|
||||
void DialogueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto feedbackNode = value["Feedback"];
|
||||
if(!feedbackNode["Content"].isNull())
|
||||
|
||||
71
ccc/src/model/DownloadAllTypeRecordingRequest.cc
Normal file
71
ccc/src/model/DownloadAllTypeRecordingRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
DownloadAllTypeRecordingRequest::~DownloadAllTypeRecordingRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadAllTypeRecordingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadAllTypeRecordingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadAllTypeRecordingRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void DownloadAllTypeRecordingRequest::setContactId(const std::string& contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setCoreParameter("ContactId", contactId);
|
||||
}
|
||||
|
||||
std::string DownloadAllTypeRecordingRequest::getChannel()const
|
||||
{
|
||||
return channel_;
|
||||
}
|
||||
|
||||
void DownloadAllTypeRecordingRequest::setChannel(const std::string& channel)
|
||||
{
|
||||
channel_ = channel;
|
||||
setCoreParameter("Channel", channel);
|
||||
}
|
||||
|
||||
std::string DownloadAllTypeRecordingRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DownloadAllTypeRecordingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
91
ccc/src/model/DownloadAllTypeRecordingResult.cc
Normal file
91
ccc/src/model/DownloadAllTypeRecordingResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMediaDownloadParamList = value["MediaDownloadParamList"]["MediaDownloadParam"];
|
||||
for (auto value : allMediaDownloadParamList)
|
||||
{
|
||||
MediaDownloadParam mediaDownloadParamListObject;
|
||||
if(!value["SignatureUrl"].isNull())
|
||||
mediaDownloadParamListObject.signatureUrl = value["SignatureUrl"].asString();
|
||||
if(!value["FileName"].isNull())
|
||||
mediaDownloadParamListObject.fileName = value["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_;
|
||||
}
|
||||
|
||||
49
ccc/src/model/DownloadCabRecordingRequest.cc
Normal file
49
ccc/src/model/DownloadCabRecordingRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
DownloadCabRecordingRequest::~DownloadCabRecordingRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadCabRecordingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadCabRecordingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadCabRecordingRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DownloadCabRecordingRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
86
ccc/src/model/DownloadCabRecordingResult.cc
Normal file
86
ccc/src/model/DownloadCabRecordingResult.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/DownloadCabRecordingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DownloadCabRecordingResult::DownloadCabRecordingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadCabRecordingResult::DownloadCabRecordingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadCabRecordingResult::~DownloadCabRecordingResult()
|
||||
{}
|
||||
|
||||
void DownloadCabRecordingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
DownloadCabRecordingResult::MediaDownloadParam DownloadCabRecordingResult::getMediaDownloadParam()const
|
||||
{
|
||||
return mediaDownloadParam_;
|
||||
}
|
||||
|
||||
std::string DownloadCabRecordingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DownloadCabRecordingResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DownloadCabRecordingResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadCabRecordingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DownloadOriginalStatisticsReportRequest::getInstanceId()const
|
||||
void DownloadOriginalStatisticsReportRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadOriginalStatisticsReportRequest::getJobGroupId()const
|
||||
@@ -44,6 +44,6 @@ std::string DownloadOriginalStatisticsReportRequest::getJobGroupId()const
|
||||
void DownloadOriginalStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
setCoreParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DownloadOriginalStatisticsReportResult::~DownloadOriginalStatisticsReportResult(
|
||||
|
||||
void DownloadOriginalStatisticsReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DownloadRecordingRequest::getInstanceId()const
|
||||
void DownloadRecordingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadRecordingRequest::getFileName()const
|
||||
@@ -44,7 +44,7 @@ std::string DownloadRecordingRequest::getFileName()const
|
||||
void DownloadRecordingRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
setCoreParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
std::string DownloadRecordingRequest::getChannel()const
|
||||
@@ -55,7 +55,7 @@ std::string DownloadRecordingRequest::getChannel()const
|
||||
void DownloadRecordingRequest::setChannel(const std::string& channel)
|
||||
{
|
||||
channel_ = channel;
|
||||
setParameter("Channel", channel);
|
||||
setCoreParameter("Channel", channel);
|
||||
}
|
||||
|
||||
std::string DownloadRecordingRequest::getAccessKeyId()const
|
||||
@@ -66,6 +66,6 @@ std::string DownloadRecordingRequest::getAccessKeyId()const
|
||||
void DownloadRecordingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DownloadRecordingResult::~DownloadRecordingResult()
|
||||
|
||||
void DownloadRecordingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto mediaDownloadParamNode = value["MediaDownloadParam"];
|
||||
if(!mediaDownloadParamNode["SignatureUrl"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DownloadUnreachableContactsRequest::getInstanceId()const
|
||||
void DownloadUnreachableContactsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadUnreachableContactsRequest::getJobGroupId()const
|
||||
@@ -44,6 +44,6 @@ std::string DownloadUnreachableContactsRequest::getJobGroupId()const
|
||||
void DownloadUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
setCoreParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DownloadUnreachableContactsResult::~DownloadUnreachableContactsResult()
|
||||
|
||||
void DownloadUnreachableContactsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
|
||||
82
ccc/src/model/FindUsersRequest.cc
Normal file
82
ccc/src/model/FindUsersRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/FindUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::FindUsersRequest;
|
||||
|
||||
FindUsersRequest::FindUsersRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "FindUsers")
|
||||
{}
|
||||
|
||||
FindUsersRequest::~FindUsersRequest()
|
||||
{}
|
||||
|
||||
std::string FindUsersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void FindUsersRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string FindUsersRequest::getCriteria()const
|
||||
{
|
||||
return criteria_;
|
||||
}
|
||||
|
||||
void FindUsersRequest::setCriteria(const std::string& criteria)
|
||||
{
|
||||
criteria_ = criteria;
|
||||
setCoreParameter("Criteria", criteria);
|
||||
}
|
||||
|
||||
int FindUsersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void FindUsersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int FindUsersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void FindUsersRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string FindUsersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void FindUsersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
146
ccc/src/model/FindUsersResult.cc
Normal file
146
ccc/src/model/FindUsersResult.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/FindUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
FindUsersResult::FindUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindUsersResult::FindUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindUsersResult::~FindUsersResult()
|
||||
{}
|
||||
|
||||
void FindUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto usersNode = value["Users"];
|
||||
if(!usersNode["TotalCount"].isNull())
|
||||
users_.totalCount = std::stoi(usersNode["TotalCount"].asString());
|
||||
if(!usersNode["PageNumber"].isNull())
|
||||
users_.pageNumber = std::stoi(usersNode["PageNumber"].asString());
|
||||
if(!usersNode["PageSize"].isNull())
|
||||
users_.pageSize = std::stoi(usersNode["PageSize"].asString());
|
||||
auto allList = value["List"]["User"];
|
||||
for (auto value : allList)
|
||||
{
|
||||
Users::User userObject;
|
||||
if(!value["UserId"].isNull())
|
||||
userObject.userId = value["UserId"].asString();
|
||||
if(!value["RamId"].isNull())
|
||||
userObject.ramId = value["RamId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
userObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["PrivateOutboundNumberId"].isNull())
|
||||
userObject.privateOutboundNumberId = value["PrivateOutboundNumberId"].asString();
|
||||
auto allRoles = value["Roles"]["Role"];
|
||||
for (auto value : allRoles)
|
||||
{
|
||||
Users::User::Role rolesObject;
|
||||
if(!value["RoleId"].isNull())
|
||||
rolesObject.roleId = value["RoleId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
rolesObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["RoleName"].isNull())
|
||||
rolesObject.roleName = value["RoleName"].asString();
|
||||
if(!value["RoleDescription"].isNull())
|
||||
rolesObject.roleDescription = value["RoleDescription"].asString();
|
||||
userObject.roles.push_back(rolesObject);
|
||||
}
|
||||
auto allSkillLevels = value["SkillLevels"]["SkillLevel"];
|
||||
for (auto value : allSkillLevels)
|
||||
{
|
||||
Users::User::SkillLevel skillLevelsObject;
|
||||
if(!value["SkillLevelId"].isNull())
|
||||
skillLevelsObject.skillLevelId = value["SkillLevelId"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
skillLevelsObject.level = std::stoi(value["Level"].asString());
|
||||
auto skillNode = value["Skill"];
|
||||
if(!skillNode["SkillGroupId"].isNull())
|
||||
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
||||
if(!skillNode["InstanceId"].isNull())
|
||||
skillLevelsObject.skill.instanceId = skillNode["InstanceId"].asString();
|
||||
if(!skillNode["SkillGroupName"].isNull())
|
||||
skillLevelsObject.skill.skillGroupName = skillNode["SkillGroupName"].asString();
|
||||
if(!skillNode["SkillGroupDescription"].isNull())
|
||||
skillLevelsObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString();
|
||||
userObject.skillLevels.push_back(skillLevelsObject);
|
||||
}
|
||||
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();
|
||||
users_.list.push_back(userObject);
|
||||
}
|
||||
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 FindUsersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int FindUsersResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
FindUsersResult::Users FindUsersResult::getUsers()const
|
||||
{
|
||||
return users_;
|
||||
}
|
||||
|
||||
std::string FindUsersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool FindUsersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GenerateAgentStatisticReportRequest::getAgentId()const
|
||||
void GenerateAgentStatisticReportRequest::setAgentId(const std::string& agentId)
|
||||
{
|
||||
agentId_ = agentId;
|
||||
setParameter("AgentId", agentId);
|
||||
setCoreParameter("AgentId", agentId);
|
||||
}
|
||||
|
||||
std::string GenerateAgentStatisticReportRequest::getInstanceId()const
|
||||
@@ -44,7 +44,7 @@ std::string GenerateAgentStatisticReportRequest::getInstanceId()const
|
||||
void GenerateAgentStatisticReportRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GenerateAgentStatisticReportRequest::getEndDate()const
|
||||
@@ -55,7 +55,7 @@ std::string GenerateAgentStatisticReportRequest::getEndDate()const
|
||||
void GenerateAgentStatisticReportRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
setCoreParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
int GenerateAgentStatisticReportRequest::getPageSize()const
|
||||
@@ -66,7 +66,7 @@ int GenerateAgentStatisticReportRequest::getPageSize()const
|
||||
void GenerateAgentStatisticReportRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string GenerateAgentStatisticReportRequest::getStartDate()const
|
||||
@@ -77,7 +77,7 @@ std::string GenerateAgentStatisticReportRequest::getStartDate()const
|
||||
void GenerateAgentStatisticReportRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
setCoreParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
int GenerateAgentStatisticReportRequest::getPageNumber()const
|
||||
@@ -88,7 +88,7 @@ int GenerateAgentStatisticReportRequest::getPageNumber()const
|
||||
void GenerateAgentStatisticReportRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GenerateAgentStatisticReportRequest::getAccessKeyId()const
|
||||
@@ -99,6 +99,6 @@ std::string GenerateAgentStatisticReportRequest::getAccessKeyId()const
|
||||
void GenerateAgentStatisticReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GenerateAgentStatisticReportResult::~GenerateAgentStatisticReportResult()
|
||||
|
||||
void GenerateAgentStatisticReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataListNode = value["DataList"];
|
||||
if(!dataListNode["TotalCount"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetAgentDataRequest::getInstanceId()const
|
||||
void GetAgentDataRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetAgentDataRequest::getStartDay()const
|
||||
@@ -44,7 +44,7 @@ std::string GetAgentDataRequest::getStartDay()const
|
||||
void GetAgentDataRequest::setStartDay(const std::string& startDay)
|
||||
{
|
||||
startDay_ = startDay;
|
||||
setParameter("StartDay", startDay);
|
||||
setCoreParameter("StartDay", startDay);
|
||||
}
|
||||
|
||||
std::string GetAgentDataRequest::getEndDay()const
|
||||
@@ -55,7 +55,7 @@ std::string GetAgentDataRequest::getEndDay()const
|
||||
void GetAgentDataRequest::setEndDay(const std::string& endDay)
|
||||
{
|
||||
endDay_ = endDay;
|
||||
setParameter("EndDay", endDay);
|
||||
setCoreParameter("EndDay", endDay);
|
||||
}
|
||||
|
||||
int GetAgentDataRequest::getPageSize()const
|
||||
@@ -66,7 +66,7 @@ int GetAgentDataRequest::getPageSize()const
|
||||
void GetAgentDataRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string GetAgentDataRequest::getUserId()const
|
||||
@@ -77,7 +77,7 @@ std::string GetAgentDataRequest::getUserId()const
|
||||
void GetAgentDataRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
int GetAgentDataRequest::getPageNumber()const
|
||||
@@ -88,7 +88,7 @@ int GetAgentDataRequest::getPageNumber()const
|
||||
void GetAgentDataRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetAgentDataRequest::getAccessKeyId()const
|
||||
@@ -99,6 +99,6 @@ std::string GetAgentDataRequest::getAccessKeyId()const
|
||||
void GetAgentDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetAgentDataResult::~GetAgentDataResult()
|
||||
|
||||
void GetAgentDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataListNode = value["DataList"];
|
||||
if(!dataListNode["TotalCount"].isNull())
|
||||
|
||||
71
ccc/src/model/GetAgentStateRequest.cc
Normal file
71
ccc/src/model/GetAgentStateRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/GetAgentStateRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::GetAgentStateRequest;
|
||||
|
||||
GetAgentStateRequest::GetAgentStateRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "GetAgentState")
|
||||
{}
|
||||
|
||||
GetAgentStateRequest::~GetAgentStateRequest()
|
||||
{}
|
||||
|
||||
std::string GetAgentStateRequest::getAgentId()const
|
||||
{
|
||||
return agentId_;
|
||||
}
|
||||
|
||||
void GetAgentStateRequest::setAgentId(const std::string& agentId)
|
||||
{
|
||||
agentId_ = agentId;
|
||||
setCoreParameter("AgentId", agentId);
|
||||
}
|
||||
|
||||
std::string GetAgentStateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetAgentStateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetAgentStateRequest::getDn()const
|
||||
{
|
||||
return dn_;
|
||||
}
|
||||
|
||||
void GetAgentStateRequest::setDn(const std::string& dn)
|
||||
{
|
||||
dn_ = dn;
|
||||
setCoreParameter("Dn", dn);
|
||||
}
|
||||
|
||||
std::string GetAgentStateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetAgentStateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
96
ccc/src/model/GetAgentStateResult.cc
Normal file
96
ccc/src/model/GetAgentStateResult.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/GetAgentStateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetAgentStateResult::GetAgentStateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAgentStateResult::GetAgentStateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAgentStateResult::~GetAgentStateResult()
|
||||
{}
|
||||
|
||||
void GetAgentStateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["AgentId"].isNull())
|
||||
data_.agentId = dataNode["AgentId"].asString();
|
||||
if(!dataNode["LoginName"].isNull())
|
||||
data_.loginName = dataNode["LoginName"].asString();
|
||||
if(!dataNode["AgentName"].isNull())
|
||||
data_.agentName = dataNode["AgentName"].asString();
|
||||
if(!dataNode["State"].isNull())
|
||||
data_.state = dataNode["State"].asString();
|
||||
if(!dataNode["Dn"].isNull())
|
||||
data_.dn = dataNode["Dn"].asString();
|
||||
if(!dataNode["StateDuration"].isNull())
|
||||
data_.stateDuration = dataNode["StateDuration"].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 GetAgentStateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetAgentStateResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetAgentStateResult::Data GetAgentStateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetAgentStateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAgentStateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
104
ccc/src/model/GetCallMeasureSummaryReportRequest.cc
Normal file
104
ccc/src/model/GetCallMeasureSummaryReportRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/GetCallMeasureSummaryReportRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::GetCallMeasureSummaryReportRequest;
|
||||
|
||||
GetCallMeasureSummaryReportRequest::GetCallMeasureSummaryReportRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "GetCallMeasureSummaryReport")
|
||||
{}
|
||||
|
||||
GetCallMeasureSummaryReportRequest::~GetCallMeasureSummaryReportRequest()
|
||||
{}
|
||||
|
||||
std::string GetCallMeasureSummaryReportRequest::getIntervalType()const
|
||||
{
|
||||
return intervalType_;
|
||||
}
|
||||
|
||||
void GetCallMeasureSummaryReportRequest::setIntervalType(const std::string& intervalType)
|
||||
{
|
||||
intervalType_ = intervalType;
|
||||
setCoreParameter("IntervalType", intervalType);
|
||||
}
|
||||
|
||||
int GetCallMeasureSummaryReportRequest::getMonth()const
|
||||
{
|
||||
return month_;
|
||||
}
|
||||
|
||||
void GetCallMeasureSummaryReportRequest::setMonth(int month)
|
||||
{
|
||||
month_ = month;
|
||||
setCoreParameter("Month", std::to_string(month));
|
||||
}
|
||||
|
||||
int GetCallMeasureSummaryReportRequest::getYear()const
|
||||
{
|
||||
return year_;
|
||||
}
|
||||
|
||||
void GetCallMeasureSummaryReportRequest::setYear(int year)
|
||||
{
|
||||
year_ = year;
|
||||
setCoreParameter("Year", std::to_string(year));
|
||||
}
|
||||
|
||||
int GetCallMeasureSummaryReportRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetCallMeasureSummaryReportRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int GetCallMeasureSummaryReportRequest::getDay()const
|
||||
{
|
||||
return day_;
|
||||
}
|
||||
|
||||
void GetCallMeasureSummaryReportRequest::setDay(int day)
|
||||
{
|
||||
day_ = day;
|
||||
setCoreParameter("Day", std::to_string(day));
|
||||
}
|
||||
|
||||
int GetCallMeasureSummaryReportRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetCallMeasureSummaryReportRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetCallMeasureSummaryReportRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetCallMeasureSummaryReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
130
ccc/src/model/GetCallMeasureSummaryReportResult.cc
Normal file
130
ccc/src/model/GetCallMeasureSummaryReportResult.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetCallMeasureSummaryReportResult::GetCallMeasureSummaryReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCallMeasureSummaryReportResult::GetCallMeasureSummaryReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCallMeasureSummaryReportResult::~GetCallMeasureSummaryReportResult()
|
||||
{}
|
||||
|
||||
void GetCallMeasureSummaryReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto summaryReportNode = value["SummaryReport"];
|
||||
if(!summaryReportNode["Year"].isNull())
|
||||
summaryReport_.year = std::stoi(summaryReportNode["Year"].asString());
|
||||
if(!summaryReportNode["Month"].isNull())
|
||||
summaryReport_.month = std::stoi(summaryReportNode["Month"].asString());
|
||||
if(!summaryReportNode["Day"].isNull())
|
||||
summaryReport_.day = std::stoi(summaryReportNode["Day"].asString());
|
||||
if(!summaryReportNode["InboundCount"].isNull())
|
||||
summaryReport_.inboundCount = std::stol(summaryReportNode["InboundCount"].asString());
|
||||
if(!summaryReportNode["OutboundCount"].isNull())
|
||||
summaryReport_.outboundCount = std::stol(summaryReportNode["OutboundCount"].asString());
|
||||
if(!summaryReportNode["OutboundDurationByMinute"].isNull())
|
||||
summaryReport_.outboundDurationByMinute = std::stol(summaryReportNode["OutboundDurationByMinute"].asString());
|
||||
if(!summaryReportNode["InboundDurationByMinute"].isNull())
|
||||
summaryReport_.inboundDurationByMinute = std::stol(summaryReportNode["InboundDurationByMinute"].asString());
|
||||
auto numberReportsNode = value["NumberReports"];
|
||||
if(!numberReportsNode["TotalCount"].isNull())
|
||||
numberReports_.totalCount = std::stoi(numberReportsNode["TotalCount"].asString());
|
||||
if(!numberReportsNode["PageNumber"].isNull())
|
||||
numberReports_.pageNumber = std::stoi(numberReportsNode["PageNumber"].asString());
|
||||
if(!numberReportsNode["PageSize"].isNull())
|
||||
numberReports_.pageSize = std::stoi(numberReportsNode["PageSize"].asString());
|
||||
auto allList = value["List"]["NumberReport"];
|
||||
for (auto value : allList)
|
||||
{
|
||||
NumberReports::NumberReport numberReportObject;
|
||||
if(!value["Number"].isNull())
|
||||
numberReportObject.number = value["Number"].asString();
|
||||
if(!value["Year"].isNull())
|
||||
numberReportObject.year = std::stoi(value["Year"].asString());
|
||||
if(!value["Month"].isNull())
|
||||
numberReportObject.month = std::stoi(value["Month"].asString());
|
||||
if(!value["Day"].isNull())
|
||||
numberReportObject.day = std::stoi(value["Day"].asString());
|
||||
if(!value["InboundCount"].isNull())
|
||||
numberReportObject.inboundCount = std::stol(value["InboundCount"].asString());
|
||||
if(!value["OutboundCount"].isNull())
|
||||
numberReportObject.outboundCount = std::stol(value["OutboundCount"].asString());
|
||||
if(!value["OutboundDurationByMinute"].isNull())
|
||||
numberReportObject.outboundDurationByMinute = std::stol(value["OutboundDurationByMinute"].asString());
|
||||
if(!value["InboundDurationByMinute"].isNull())
|
||||
numberReportObject.inboundDurationByMinute = std::stol(value["InboundDurationByMinute"].asString());
|
||||
numberReports_.list.push_back(numberReportObject);
|
||||
}
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
GetCallMeasureSummaryReportResult::NumberReports GetCallMeasureSummaryReportResult::getNumberReports()const
|
||||
{
|
||||
return numberReports_;
|
||||
}
|
||||
|
||||
GetCallMeasureSummaryReportResult::SummaryReport GetCallMeasureSummaryReportResult::getSummaryReport()const
|
||||
{
|
||||
return summaryReport_;
|
||||
}
|
||||
|
||||
std::string GetCallMeasureSummaryReportResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetCallMeasureSummaryReportResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetCallMeasureSummaryReportResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetCallMeasureSummaryReportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetConfigRequest::getInstanceId()const
|
||||
void GetConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetConfigRequest::getName()const
|
||||
@@ -44,7 +44,7 @@ std::string GetConfigRequest::getName()const
|
||||
void GetConfigRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string GetConfigRequest::getObjectType()const
|
||||
@@ -55,7 +55,7 @@ std::string GetConfigRequest::getObjectType()const
|
||||
void GetConfigRequest::setObjectType(const std::string& objectType)
|
||||
{
|
||||
objectType_ = objectType;
|
||||
setParameter("ObjectType", objectType);
|
||||
setCoreParameter("ObjectType", objectType);
|
||||
}
|
||||
|
||||
std::string GetConfigRequest::getObjectId()const
|
||||
@@ -66,7 +66,7 @@ std::string GetConfigRequest::getObjectId()const
|
||||
void GetConfigRequest::setObjectId(const std::string& objectId)
|
||||
{
|
||||
objectId_ = objectId;
|
||||
setParameter("ObjectId", objectId);
|
||||
setCoreParameter("ObjectId", objectId);
|
||||
}
|
||||
|
||||
std::string GetConfigRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string GetConfigRequest::getAccessKeyId()const
|
||||
void GetConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetConfigResult::~GetConfigResult()
|
||||
|
||||
void GetConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configItemNode = value["ConfigItem"];
|
||||
if(!configItemNode["Name"].isNull())
|
||||
|
||||
49
ccc/src/model/GetContactIdentifyByOutBoundTaskIdRequest.cc
Normal file
49
ccc/src/model/GetContactIdentifyByOutBoundTaskIdRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/GetContactIdentifyByOutBoundTaskIdRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::GetContactIdentifyByOutBoundTaskIdRequest;
|
||||
|
||||
GetContactIdentifyByOutBoundTaskIdRequest::GetContactIdentifyByOutBoundTaskIdRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "GetContactIdentifyByOutBoundTaskId")
|
||||
{}
|
||||
|
||||
GetContactIdentifyByOutBoundTaskIdRequest::~GetContactIdentifyByOutBoundTaskIdRequest()
|
||||
{}
|
||||
|
||||
std::string GetContactIdentifyByOutBoundTaskIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetContactIdentifyByOutBoundTaskIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetContactIdentifyByOutBoundTaskIdRequest::getOutboundTaskId()const
|
||||
{
|
||||
return outboundTaskId_;
|
||||
}
|
||||
|
||||
void GetContactIdentifyByOutBoundTaskIdRequest::setOutboundTaskId(const std::string& outboundTaskId)
|
||||
{
|
||||
outboundTaskId_ = outboundTaskId;
|
||||
setCoreParameter("OutboundTaskId", outboundTaskId);
|
||||
}
|
||||
|
||||
88
ccc/src/model/GetContactIdentifyByOutBoundTaskIdResult.cc
Normal file
88
ccc/src/model/GetContactIdentifyByOutBoundTaskIdResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetContactIdentifyByOutBoundTaskIdResult::GetContactIdentifyByOutBoundTaskIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetContactIdentifyByOutBoundTaskIdResult::GetContactIdentifyByOutBoundTaskIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetContactIdentifyByOutBoundTaskIdResult::~GetContactIdentifyByOutBoundTaskIdResult()
|
||||
{}
|
||||
|
||||
void GetContactIdentifyByOutBoundTaskIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto contactIdentityNode = value["ContactIdentity"];
|
||||
if(!contactIdentityNode["ContactReferrnceId"].isNull())
|
||||
contactIdentity_.contactReferrnceId = contactIdentityNode["ContactReferrnceId"].asString();
|
||||
if(!contactIdentityNode["JobGroupId"].isNull())
|
||||
contactIdentity_.jobGroupId = contactIdentityNode["JobGroupId"].asString();
|
||||
if(!contactIdentityNode["UserPhone"].isNull())
|
||||
contactIdentity_.userPhone = contactIdentityNode["UserPhone"].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 GetContactIdentifyByOutBoundTaskIdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetContactIdentifyByOutBoundTaskIdResult::ContactIdentity GetContactIdentifyByOutBoundTaskIdResult::getContactIdentity()const
|
||||
{
|
||||
return contactIdentity_;
|
||||
}
|
||||
|
||||
int GetContactIdentifyByOutBoundTaskIdResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetContactIdentifyByOutBoundTaskIdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetContactIdentifyByOutBoundTaskIdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
60
ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc
Normal file
60
ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/GetContactInfoByOutboundTaskIdRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::GetContactInfoByOutboundTaskIdRequest;
|
||||
|
||||
GetContactInfoByOutboundTaskIdRequest::GetContactInfoByOutboundTaskIdRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "GetContactInfoByOutboundTaskId")
|
||||
{}
|
||||
|
||||
GetContactInfoByOutboundTaskIdRequest::~GetContactInfoByOutboundTaskIdRequest()
|
||||
{}
|
||||
|
||||
std::string GetContactInfoByOutboundTaskIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetContactInfoByOutboundTaskIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetContactInfoByOutboundTaskIdRequest::getOutboundTaskId()const
|
||||
{
|
||||
return outboundTaskId_;
|
||||
}
|
||||
|
||||
void GetContactInfoByOutboundTaskIdRequest::setOutboundTaskId(const std::string& outboundTaskId)
|
||||
{
|
||||
outboundTaskId_ = outboundTaskId;
|
||||
setCoreParameter("OutboundTaskId", outboundTaskId);
|
||||
}
|
||||
|
||||
std::string GetContactInfoByOutboundTaskIdRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void GetContactInfoByOutboundTaskIdRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setCoreParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
88
ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc
Normal file
88
ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetContactInfoByOutboundTaskIdResult::GetContactInfoByOutboundTaskIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetContactInfoByOutboundTaskIdResult::GetContactInfoByOutboundTaskIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetContactInfoByOutboundTaskIdResult::~GetContactInfoByOutboundTaskIdResult()
|
||||
{}
|
||||
|
||||
void GetContactInfoByOutboundTaskIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto contactIdentityNode = value["ContactIdentity"];
|
||||
if(!contactIdentityNode["ContactReferrnceId"].isNull())
|
||||
contactIdentity_.contactReferrnceId = contactIdentityNode["ContactReferrnceId"].asString();
|
||||
if(!contactIdentityNode["JobGroupId"].isNull())
|
||||
contactIdentity_.jobGroupId = contactIdentityNode["JobGroupId"].asString();
|
||||
if(!contactIdentityNode["UserPhone"].isNull())
|
||||
contactIdentity_.userPhone = contactIdentityNode["UserPhone"].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 GetContactInfoByOutboundTaskIdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetContactInfoByOutboundTaskIdResult::ContactIdentity GetContactInfoByOutboundTaskIdResult::getContactIdentity()const
|
||||
{
|
||||
return contactIdentity_;
|
||||
}
|
||||
|
||||
int GetContactInfoByOutboundTaskIdResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetContactInfoByOutboundTaskIdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetContactInfoByOutboundTaskIdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetConversationDetailByContactIdRequest::getInstanceId()const
|
||||
void GetConversationDetailByContactIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetConversationDetailByContactIdRequest::getContactId()const
|
||||
@@ -44,7 +44,7 @@ std::string GetConversationDetailByContactIdRequest::getContactId()const
|
||||
void GetConversationDetailByContactIdRequest::setContactId(const std::string& contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setParameter("ContactId", contactId);
|
||||
setCoreParameter("ContactId", contactId);
|
||||
}
|
||||
|
||||
int GetConversationDetailByContactIdRequest::getPageSize()const
|
||||
@@ -55,7 +55,7 @@ int GetConversationDetailByContactIdRequest::getPageSize()const
|
||||
void GetConversationDetailByContactIdRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int GetConversationDetailByContactIdRequest::getPageNumber()const
|
||||
@@ -66,7 +66,7 @@ int GetConversationDetailByContactIdRequest::getPageNumber()const
|
||||
void GetConversationDetailByContactIdRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetConversationDetailByContactIdRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string GetConversationDetailByContactIdRequest::getAccessKeyId()const
|
||||
void GetConversationDetailByContactIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetConversationDetailByContactIdResult::~GetConversationDetailByContactIdResult(
|
||||
|
||||
void GetConversationDetailByContactIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataListNode = value["DataList"];
|
||||
if(!dataListNode["TotalCount"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetConversationListRequest::getInstanceId()const
|
||||
void GetConversationListRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetConversationListRequest::getTaskId()const
|
||||
@@ -44,6 +44,6 @@ std::string GetConversationListRequest::getTaskId()const
|
||||
void GetConversationListRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetConversationListResult::~GetConversationListResult()
|
||||
|
||||
void GetConversationListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConversations = value["Conversations"]["ConversationDetail"];
|
||||
for (auto value : allConversations)
|
||||
|
||||
49
ccc/src/model/GetInstanceRequest.cc
Normal file
49
ccc/src/model/GetInstanceRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/GetInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::GetInstanceRequest;
|
||||
|
||||
GetInstanceRequest::GetInstanceRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "GetInstance")
|
||||
{}
|
||||
|
||||
GetInstanceRequest::~GetInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
157
ccc/src/model/GetInstanceResult.cc
Normal file
157
ccc/src/model/GetInstanceResult.cc
Normal file
@@ -0,0 +1,157 @@
|
||||
/*
|
||||
* 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/GetInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetInstanceResult::GetInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceResult::GetInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceResult::~GetInstanceResult()
|
||||
{}
|
||||
|
||||
void GetInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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["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["DirectoryId"].isNull())
|
||||
instance_.directoryId = instanceNode["DirectoryId"].asString();
|
||||
if(!instanceNode["Status"].isNull())
|
||||
instance_.status = instanceNode["Status"].asString();
|
||||
if(!instanceNode["CreatedTime"].isNull())
|
||||
instance_.createdTime = std::stol(instanceNode["CreatedTime"].asString());
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
auto allAdmin = value["Admin"]["User"];
|
||||
for (auto value : allAdmin)
|
||||
{
|
||||
Instance::User userObject;
|
||||
if(!value["UserId"].isNull())
|
||||
userObject.userId = value["UserId"].asString();
|
||||
if(!value["RamId"].isNull())
|
||||
userObject.ramId = value["RamId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
userObject.instanceId = value["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 allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"];
|
||||
for (auto value : allPhoneNumbers)
|
||||
{
|
||||
Instance::PhoneNumber phoneNumberObject;
|
||||
if(!value["PhoneNumberId"].isNull())
|
||||
phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
phoneNumberObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Number"].isNull())
|
||||
phoneNumberObject.number = value["Number"].asString();
|
||||
if(!value["PhoneNumberDescription"].isNull())
|
||||
phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
|
||||
if(!value["TestOnly"].isNull())
|
||||
phoneNumberObject.testOnly = value["TestOnly"].asString() == "true";
|
||||
if(!value["RemainingTime"].isNull())
|
||||
phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString());
|
||||
if(!value["AllowOutbound"].isNull())
|
||||
phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true";
|
||||
if(!value["Usage"].isNull())
|
||||
phoneNumberObject.usage = value["Usage"].asString();
|
||||
if(!value["Trunks"].isNull())
|
||||
phoneNumberObject.trunks = std::stoi(value["Trunks"].asString());
|
||||
instance_.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 GetInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetInstanceResult::Instance GetInstanceResult::getInstance()const
|
||||
{
|
||||
return instance_;
|
||||
}
|
||||
|
||||
int GetInstanceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
49
ccc/src/model/GetInstanceStateRequest.cc
Normal file
49
ccc/src/model/GetInstanceStateRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/GetInstanceStateRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::GetInstanceStateRequest;
|
||||
|
||||
GetInstanceStateRequest::GetInstanceStateRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "GetInstanceState")
|
||||
{}
|
||||
|
||||
GetInstanceStateRequest::~GetInstanceStateRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceStateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceStateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetInstanceStateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetInstanceStateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user