Add API for unregister sip phone device, masked callee, etc.
This commit is contained in:
@@ -2463,6 +2463,78 @@ CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRoles
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListSipCallRecordsOutcome CCCClient::listSipCallRecords(const ListSipCallRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSipCallRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSipCallRecordsOutcome(ListSipCallRecordsResult(outcome.result()));
|
||||
else
|
||||
return ListSipCallRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::listSipCallRecordsAsync(const ListSipCallRecordsRequest& request, const ListSipCallRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSipCallRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ListSipCallRecordsOutcomeCallable CCCClient::listSipCallRecordsCallable(const ListSipCallRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSipCallRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSipCallRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListSipTracesOutcome CCCClient::listSipTraces(const ListSipTracesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSipTracesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSipTracesOutcome(ListSipTracesResult(outcome.result()));
|
||||
else
|
||||
return ListSipTracesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::listSipTracesAsync(const ListSipTracesRequest& request, const ListSipTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSipTraces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ListSipTracesOutcomeCallable CCCClient::listSipTracesCallable(const ListSipTracesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSipTracesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSipTraces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -39,8 +39,8 @@ void CreateCampaignResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CampaignId"].isNull())
|
||||
campaignId_ = value["CampaignId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
@@ -55,16 +55,16 @@ std::string CreateCampaignResult::getMessage()const
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateCampaignResult::getCampaignId()const
|
||||
{
|
||||
return campaignId_;
|
||||
}
|
||||
|
||||
long CreateCampaignResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateCampaignResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateCampaignResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
|
||||
@@ -146,6 +146,24 @@ void GetCallDetailRecordResult::parse(const std::string &payload)
|
||||
}
|
||||
data_.queueEvents.push_back(queueEventsItemObject);
|
||||
}
|
||||
auto allCustomerEventsNode = dataNode["CustomerEvents"]["CustomerEventsItem"];
|
||||
for (auto dataNodeCustomerEventsCustomerEventsItem : allCustomerEventsNode)
|
||||
{
|
||||
Data::CustomerEventsItem customerEventsItemObject;
|
||||
if(!dataNodeCustomerEventsCustomerEventsItem["CustomerId"].isNull())
|
||||
customerEventsItemObject.customerId = dataNodeCustomerEventsCustomerEventsItem["CustomerId"].asString();
|
||||
auto allEventSequence5Node = dataNodeCustomerEventsCustomerEventsItem["EventSequence"]["EventSequenceItem"];
|
||||
for (auto dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem : allEventSequence5Node)
|
||||
{
|
||||
Data::CustomerEventsItem::EventSequenceItem6 eventSequence5Object;
|
||||
if(!dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem["Event"].isNull())
|
||||
eventSequence5Object.event = dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem["Event"].asString();
|
||||
if(!dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem["EventTime"].isNull())
|
||||
eventSequence5Object.eventTime = std::stol(dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem["EventTime"].asString());
|
||||
customerEventsItemObject.eventSequence5.push_back(eventSequence5Object);
|
||||
}
|
||||
data_.customerEvents.push_back(customerEventsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -50,8 +50,6 @@ void GetCampaignResult::parse(const std::string &payload)
|
||||
data_.casesUncompleted = std::stol(dataNode["CasesUncompleted"].asString());
|
||||
if(!dataNode["CasesConnected"].isNull())
|
||||
data_.casesConnected = std::stol(dataNode["CasesConnected"].asString());
|
||||
if(!dataNode["CompletedRate"].isNull())
|
||||
data_.completedRate = std::stol(dataNode["CompletedRate"].asString());
|
||||
if(!dataNode["MaxAttemptCount"].isNull())
|
||||
data_.maxAttemptCount = std::stol(dataNode["MaxAttemptCount"].asString());
|
||||
if(!dataNode["MinAttemptInterval"].isNull())
|
||||
|
||||
@@ -40,10 +40,10 @@ void GetMonoRecordingResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["FileName"].isNull())
|
||||
data_.fileName = dataNode["FileName"].asString();
|
||||
if(!dataNode["FileUrl"].isNull())
|
||||
data_.fileUrl = dataNode["FileUrl"].asString();
|
||||
if(!dataNode["FileName"].isNull())
|
||||
data_.fileName = dataNode["FileName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -60,8 +60,6 @@ void ListCampaignsResult::parse(const std::string &payload)
|
||||
listItemObject.casesUncompleted = std::stol(dataNodeListlistItem["CasesUncompleted"].asString());
|
||||
if(!dataNodeListlistItem["CasesConnected"].isNull())
|
||||
listItemObject.casesConnected = std::stol(dataNodeListlistItem["CasesConnected"].asString());
|
||||
if(!dataNodeListlistItem["CompletedRate"].isNull())
|
||||
listItemObject.completedRate = std::stol(dataNodeListlistItem["CompletedRate"].asString());
|
||||
if(!dataNodeListlistItem["MaxAttemptCount"].isNull())
|
||||
listItemObject.maxAttemptCount = std::stol(dataNodeListlistItem["MaxAttemptCount"].asString());
|
||||
if(!dataNodeListlistItem["MinAttemptInterval"].isNull())
|
||||
|
||||
51
ccc/src/model/ListSipCallRecordsRequest.cc
Normal file
51
ccc/src/model/ListSipCallRecordsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ListSipCallRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ListSipCallRecordsRequest;
|
||||
|
||||
ListSipCallRecordsRequest::ListSipCallRecordsRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ListSipCallRecords")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSipCallRecordsRequest::~ListSipCallRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string ListSipCallRecordsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListSipCallRecordsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ListSipCallRecordsRequest::getContactIdList()const
|
||||
{
|
||||
return contactIdList_;
|
||||
}
|
||||
|
||||
void ListSipCallRecordsRequest::setContactIdList(const std::string& contactIdList)
|
||||
{
|
||||
contactIdList_ = contactIdList;
|
||||
setParameter("ContactIdList", contactIdList);
|
||||
}
|
||||
|
||||
108
ccc/src/model/ListSipCallRecordsResult.cc
Normal file
108
ccc/src/model/ListSipCallRecordsResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ListSipCallRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ListSipCallRecordsResult::ListSipCallRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSipCallRecordsResult::ListSipCallRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSipCallRecordsResult::~ListSipCallRecordsResult()
|
||||
{}
|
||||
|
||||
void ListSipCallRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["sipCallRecords"];
|
||||
for (auto valueDatasipCallRecords : allDataNode)
|
||||
{
|
||||
SipCallRecords dataObject;
|
||||
if(!valueDatasipCallRecords["InstanceId"].isNull())
|
||||
dataObject.instanceId = valueDatasipCallRecords["InstanceId"].asString();
|
||||
if(!valueDatasipCallRecords["CallId"].isNull())
|
||||
dataObject.callId = valueDatasipCallRecords["CallId"].asString();
|
||||
if(!valueDatasipCallRecords["ContactId"].isNull())
|
||||
dataObject.contactId = valueDatasipCallRecords["ContactId"].asString();
|
||||
if(!valueDatasipCallRecords["Caller"].isNull())
|
||||
dataObject.caller = valueDatasipCallRecords["Caller"].asString();
|
||||
if(!valueDatasipCallRecords["Callee"].isNull())
|
||||
dataObject.callee = valueDatasipCallRecords["Callee"].asString();
|
||||
if(!valueDatasipCallRecords["CallerClusterId"].isNull())
|
||||
dataObject.callerClusterId = valueDatasipCallRecords["CallerClusterId"].asString();
|
||||
if(!valueDatasipCallRecords["CalleeClusterId"].isNull())
|
||||
dataObject.calleeClusterId = valueDatasipCallRecords["CalleeClusterId"].asString();
|
||||
if(!valueDatasipCallRecords["LastResponseCode"].isNull())
|
||||
dataObject.lastResponseCode = std::stoi(valueDatasipCallRecords["LastResponseCode"].asString());
|
||||
if(!valueDatasipCallRecords["LastResponseText"].isNull())
|
||||
dataObject.lastResponseText = valueDatasipCallRecords["LastResponseText"].asString();
|
||||
if(!valueDatasipCallRecords["InviteTime"].isNull())
|
||||
dataObject.inviteTime = std::stol(valueDatasipCallRecords["InviteTime"].asString());
|
||||
if(!valueDatasipCallRecords["RingTime"].isNull())
|
||||
dataObject.ringTime = std::stol(valueDatasipCallRecords["RingTime"].asString());
|
||||
if(!valueDatasipCallRecords["EstablishedTime"].isNull())
|
||||
dataObject.establishedTime = std::stol(valueDatasipCallRecords["EstablishedTime"].asString());
|
||||
if(!valueDatasipCallRecords["ReleasedTime"].isNull())
|
||||
dataObject.releasedTime = std::stol(valueDatasipCallRecords["ReleasedTime"].asString());
|
||||
if(!valueDatasipCallRecords["ReleaseReasonCode"].isNull())
|
||||
dataObject.releaseReasonCode = std::stoi(valueDatasipCallRecords["ReleaseReasonCode"].asString());
|
||||
if(!valueDatasipCallRecords["EarlyMediaUrl"].isNull())
|
||||
dataObject.earlyMediaUrl = valueDatasipCallRecords["EarlyMediaUrl"].asString();
|
||||
if(!valueDatasipCallRecords["EarlyMediaText"].isNull())
|
||||
dataObject.earlyMediaText = valueDatasipCallRecords["EarlyMediaText"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSipCallRecordsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListSipCallRecordsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListSipCallRecordsResult::SipCallRecords> ListSipCallRecordsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSipCallRecordsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
ccc/src/model/ListSipTracesRequest.cc
Normal file
51
ccc/src/model/ListSipTracesRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ListSipTracesRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ListSipTracesRequest;
|
||||
|
||||
ListSipTracesRequest::ListSipTracesRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ListSipTraces")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSipTracesRequest::~ListSipTracesRequest()
|
||||
{}
|
||||
|
||||
std::string ListSipTracesRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
void ListSipTracesRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
}
|
||||
|
||||
std::string ListSipTracesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListSipTracesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
90
ccc/src/model/ListSipTracesResult.cc
Normal file
90
ccc/src/model/ListSipTracesResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ListSipTracesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ListSipTracesResult::ListSipTracesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSipTracesResult::ListSipTracesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSipTracesResult::~ListSipTracesResult()
|
||||
{}
|
||||
|
||||
void ListSipTracesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["CallTraces"];
|
||||
for (auto valueDataCallTraces : allDataNode)
|
||||
{
|
||||
CallTraces dataObject;
|
||||
if(!valueDataCallTraces["CallId"].isNull())
|
||||
dataObject.callId = valueDataCallTraces["CallId"].asString();
|
||||
if(!valueDataCallTraces["ContactId"].isNull())
|
||||
dataObject.contactId = valueDataCallTraces["ContactId"].asString();
|
||||
if(!valueDataCallTraces["FirstLine"].isNull())
|
||||
dataObject.firstLine = valueDataCallTraces["FirstLine"].asString();
|
||||
if(!valueDataCallTraces["DestinationNodeIp"].isNull())
|
||||
dataObject.destinationNodeIp = valueDataCallTraces["DestinationNodeIp"].asString();
|
||||
if(!valueDataCallTraces["SourceNodeIp"].isNull())
|
||||
dataObject.sourceNodeIp = valueDataCallTraces["SourceNodeIp"].asString();
|
||||
if(!valueDataCallTraces["Payload"].isNull())
|
||||
dataObject.payload = valueDataCallTraces["Payload"].asString();
|
||||
if(!valueDataCallTraces["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(valueDataCallTraces["Timestamp"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSipTracesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListSipTracesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListSipTracesResult::CallTraces> ListSipTracesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSipTracesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -50,12 +50,10 @@ void ListSkillGroupsResult::parse(const std::string &payload)
|
||||
for (auto dataNodeListSkillGroup : allListNode)
|
||||
{
|
||||
Data::SkillGroup skillGroupObject;
|
||||
if(!dataNodeListSkillGroup["Description"].isNull())
|
||||
skillGroupObject.description = dataNodeListSkillGroup["Description"].asString();
|
||||
if(!dataNodeListSkillGroup["DisplayName"].isNull())
|
||||
skillGroupObject.displayName = dataNodeListSkillGroup["DisplayName"].asString();
|
||||
if(!dataNodeListSkillGroup["InstanceId"].isNull())
|
||||
skillGroupObject.instanceId = dataNodeListSkillGroup["InstanceId"].asString();
|
||||
if(!dataNodeListSkillGroup["Description"].isNull())
|
||||
skillGroupObject.description = dataNodeListSkillGroup["Description"].asString();
|
||||
if(!dataNodeListSkillGroup["PhoneNumberCount"].isNull())
|
||||
skillGroupObject.phoneNumberCount = std::stoi(dataNodeListSkillGroup["PhoneNumberCount"].asString());
|
||||
if(!dataNodeListSkillGroup["SkillGroupId"].isNull())
|
||||
@@ -64,6 +62,8 @@ void ListSkillGroupsResult::parse(const std::string &payload)
|
||||
skillGroupObject.skillGroupName = dataNodeListSkillGroup["SkillGroupName"].asString();
|
||||
if(!dataNodeListSkillGroup["UserCount"].isNull())
|
||||
skillGroupObject.userCount = std::stoi(dataNodeListSkillGroup["UserCount"].asString());
|
||||
if(!dataNodeListSkillGroup["InstanceId"].isNull())
|
||||
skillGroupObject.instanceId = dataNodeListSkillGroup["InstanceId"].asString();
|
||||
data_.list.push_back(skillGroupObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -38,6 +38,17 @@ void MakeCallRequest::setCallee(const std::string& callee)
|
||||
setParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string MakeCallRequest::getMaskedCallee()const
|
||||
{
|
||||
return maskedCallee_;
|
||||
}
|
||||
|
||||
void MakeCallRequest::setMaskedCallee(const std::string& maskedCallee)
|
||||
{
|
||||
maskedCallee_ = maskedCallee;
|
||||
setParameter("MaskedCallee", maskedCallee);
|
||||
}
|
||||
|
||||
std::string MakeCallRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void StartPredictiveCallRequest::setCallee(const std::string& callee)
|
||||
setParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string StartPredictiveCallRequest::getMaskedCallee()const
|
||||
{
|
||||
return maskedCallee_;
|
||||
}
|
||||
|
||||
void StartPredictiveCallRequest::setMaskedCallee(const std::string& maskedCallee)
|
||||
{
|
||||
maskedCallee_ = maskedCallee;
|
||||
setParameter("MaskedCallee", maskedCallee);
|
||||
}
|
||||
|
||||
std::string StartPredictiveCallRequest::getContactFlowVariables()const
|
||||
{
|
||||
return contactFlowVariables_;
|
||||
|
||||
Reference in New Issue
Block a user