Supported new features for outbound.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ApplyNumberDistrictInfoParsingResultRequest;
|
||||
|
||||
ApplyNumberDistrictInfoParsingResultRequest::ApplyNumberDistrictInfoParsingResultRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ApplyNumberDistrictInfoParsingResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyNumberDistrictInfoParsingResultRequest::~ApplyNumberDistrictInfoParsingResultRequest()
|
||||
{}
|
||||
|
||||
std::string ApplyNumberDistrictInfoParsingResultRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void ApplyNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ApplyNumberDistrictInfoParsingResultResult::ApplyNumberDistrictInfoParsingResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyNumberDistrictInfoParsingResultResult::ApplyNumberDistrictInfoParsingResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyNumberDistrictInfoParsingResultResult::~ApplyNumberDistrictInfoParsingResultResult()
|
||||
{}
|
||||
|
||||
void ApplyNumberDistrictInfoParsingResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyNumberDistrictInfoParsingResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ApplyNumberDistrictInfoParsingResultResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ApplyNumberDistrictInfoParsingResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ApplyNumberDistrictInfoParsingResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -128,3 +128,14 @@ void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string& sourceGrou
|
||||
setParameter("SourceGroupId", sourceGroupId);
|
||||
}
|
||||
|
||||
long CreateBatchRepeatJobRequest::getRingingDuration()const
|
||||
{
|
||||
return ringingDuration_;
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setRingingDuration(long ringingDuration)
|
||||
{
|
||||
ringingDuration_ = ringingDuration;
|
||||
setParameter("RingingDuration", std::to_string(ringingDuration));
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,8 @@ void CreateBatchRepeatJobResult::parse(const std::string &payload)
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["Id"].isNull())
|
||||
jobGroup_.id = jobGroupNode["Id"].asString();
|
||||
if(!jobGroupNode["RingingDuration"].isNull())
|
||||
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -106,6 +106,17 @@ void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson)
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
long CreateJobGroupRequest::getRingingDuration()const
|
||||
{
|
||||
return ringingDuration_;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setRingingDuration(long ringingDuration)
|
||||
{
|
||||
ringingDuration_ = ringingDuration;
|
||||
setParameter("RingingDuration", std::to_string(ringingDuration));
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
|
||||
@@ -62,6 +62,8 @@ void CreateJobGroupResult::parse(const std::string &payload)
|
||||
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
|
||||
if(!jobGroupNode["ModifyTime"].isNull())
|
||||
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
|
||||
if(!jobGroupNode["RingingDuration"].isNull())
|
||||
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
|
||||
auto exportProgressNode = jobGroupNode["ExportProgress"];
|
||||
if(!exportProgressNode["Status"].isNull())
|
||||
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoDownloadUrlRequest;
|
||||
|
||||
CreateNumberDistrictInfoDownloadUrlRequest::CreateNumberDistrictInfoDownloadUrlRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoDownloadUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNumberDistrictInfoDownloadUrlRequest::~CreateNumberDistrictInfoDownloadUrlRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNumberDistrictInfoDownloadUrlRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void CreateNumberDistrictInfoDownloadUrlRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
CreateNumberDistrictInfoDownloadUrlResult::CreateNumberDistrictInfoDownloadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNumberDistrictInfoDownloadUrlResult::CreateNumberDistrictInfoDownloadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNumberDistrictInfoDownloadUrlResult::~CreateNumberDistrictInfoDownloadUrlResult()
|
||||
{}
|
||||
|
||||
void CreateNumberDistrictInfoDownloadUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["FileHttpUrl"].isNull())
|
||||
fileHttpUrl_ = value["FileHttpUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNumberDistrictInfoDownloadUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateNumberDistrictInfoDownloadUrlResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateNumberDistrictInfoDownloadUrlResult::getFileHttpUrl()const
|
||||
{
|
||||
return fileHttpUrl_;
|
||||
}
|
||||
|
||||
std::string CreateNumberDistrictInfoDownloadUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateNumberDistrictInfoDownloadUrlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoParsingTaskRequest;
|
||||
|
||||
CreateNumberDistrictInfoParsingTaskRequest::CreateNumberDistrictInfoParsingTaskRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoParsingTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNumberDistrictInfoParsingTaskRequest::~CreateNumberDistrictInfoParsingTaskRequest()
|
||||
{}
|
||||
|
||||
long CreateNumberDistrictInfoParsingTaskRequest::getFileSize()const
|
||||
{
|
||||
return fileSize_;
|
||||
}
|
||||
|
||||
void CreateNumberDistrictInfoParsingTaskRequest::setFileSize(long fileSize)
|
||||
{
|
||||
fileSize_ = fileSize;
|
||||
setParameter("FileSize", std::to_string(fileSize));
|
||||
}
|
||||
|
||||
std::string CreateNumberDistrictInfoParsingTaskRequest::getFilePath()const
|
||||
{
|
||||
return filePath_;
|
||||
}
|
||||
|
||||
void CreateNumberDistrictInfoParsingTaskRequest::setFilePath(const std::string& filePath)
|
||||
{
|
||||
filePath_ = filePath;
|
||||
setParameter("FilePath", filePath);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
CreateNumberDistrictInfoParsingTaskResult::CreateNumberDistrictInfoParsingTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNumberDistrictInfoParsingTaskResult::CreateNumberDistrictInfoParsingTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNumberDistrictInfoParsingTaskResult::~CreateNumberDistrictInfoParsingTaskResult()
|
||||
{}
|
||||
|
||||
void CreateNumberDistrictInfoParsingTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNumberDistrictInfoParsingTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateNumberDistrictInfoParsingTaskResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateNumberDistrictInfoParsingTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateNumberDistrictInfoParsingTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
29
outboundbot/src/model/DeleteAllNumberDistrictInfoRequest.cc
Normal file
29
outboundbot/src/model/DeleteAllNumberDistrictInfoRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteAllNumberDistrictInfoRequest;
|
||||
|
||||
DeleteAllNumberDistrictInfoRequest::DeleteAllNumberDistrictInfoRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteAllNumberDistrictInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAllNumberDistrictInfoRequest::~DeleteAllNumberDistrictInfoRequest()
|
||||
{}
|
||||
|
||||
72
outboundbot/src/model/DeleteAllNumberDistrictInfoResult.cc
Normal file
72
outboundbot/src/model/DeleteAllNumberDistrictInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
DeleteAllNumberDistrictInfoResult::DeleteAllNumberDistrictInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAllNumberDistrictInfoResult::DeleteAllNumberDistrictInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAllNumberDistrictInfoResult::~DeleteAllNumberDistrictInfoResult()
|
||||
{}
|
||||
|
||||
void DeleteAllNumberDistrictInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAllNumberDistrictInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteAllNumberDistrictInfoResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteAllNumberDistrictInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteAllNumberDistrictInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -40,24 +40,26 @@ void DescribeJobDataParsingTaskProgressResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto progressNode = value["Progress"];
|
||||
if(!progressNode["Status"].isNull())
|
||||
progress_.status = progressNode["Status"].asString();
|
||||
if(!progressNode["FailErrorCode"].isNull())
|
||||
progress_.failErrorCode = progressNode["FailErrorCode"].asString();
|
||||
if(!progressNode["FailReason"].isNull())
|
||||
progress_.failReason = progressNode["FailReason"].asString();
|
||||
if(!progressNode["TotalJobCount"].isNull())
|
||||
progress_.totalJobCount = std::stoi(progressNode["TotalJobCount"].asString());
|
||||
if(!progressNode["Status"].isNull())
|
||||
progress_.status = progressNode["Status"].asString();
|
||||
if(!progressNode["HandledJobCount"].isNull())
|
||||
progress_.handledJobCount = std::stoi(progressNode["HandledJobCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!progressNode["TotalJobCount"].isNull())
|
||||
progress_.totalJobCount = std::stoi(progressNode["TotalJobCount"].asString());
|
||||
if(!progressNode["FailReason"].isNull())
|
||||
progress_.failReason = progressNode["FailReason"].asString();
|
||||
if(!progressNode["FeedbackUrl"].isNull())
|
||||
progress_.feedbackUrl = progressNode["FeedbackUrl"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,8 @@ void DescribeJobGroupResult::parse(const std::string &payload)
|
||||
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
|
||||
if(!jobGroupNode["ScriptVersion"].isNull())
|
||||
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
|
||||
if(!jobGroupNode["RingingDuration"].isNull())
|
||||
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
|
||||
auto exportProgressNode = jobGroupNode["ExportProgress"];
|
||||
if(!exportProgressNode["Status"].isNull())
|
||||
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeNumberDistrictInfoStatusRequest;
|
||||
|
||||
DescribeNumberDistrictInfoStatusRequest::DescribeNumberDistrictInfoStatusRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeNumberDistrictInfoStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNumberDistrictInfoStatusRequest::~DescribeNumberDistrictInfoStatusRequest()
|
||||
{}
|
||||
|
||||
105
outboundbot/src/model/DescribeNumberDistrictInfoStatusResult.cc
Normal file
105
outboundbot/src/model/DescribeNumberDistrictInfoStatusResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
DescribeNumberDistrictInfoStatusResult::DescribeNumberDistrictInfoStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNumberDistrictInfoStatusResult::DescribeNumberDistrictInfoStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNumberDistrictInfoStatusResult::~DescribeNumberDistrictInfoStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeNumberDistrictInfoStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto appliedVersionNode = value["AppliedVersion"];
|
||||
if(!appliedVersionNode["VersionId"].isNull())
|
||||
appliedVersion_.versionId = appliedVersionNode["VersionId"].asString();
|
||||
if(!appliedVersionNode["FileName"].isNull())
|
||||
appliedVersion_.fileName = appliedVersionNode["FileName"].asString();
|
||||
if(!appliedVersionNode["FileSize"].isNull())
|
||||
appliedVersion_.fileSize = std::stol(appliedVersionNode["FileSize"].asString());
|
||||
auto parsingVersionNode = value["ParsingVersion"];
|
||||
if(!parsingVersionNode["VersionId"].isNull())
|
||||
parsingVersion_.versionId = parsingVersionNode["VersionId"].asString();
|
||||
if(!parsingVersionNode["FileName"].isNull())
|
||||
parsingVersion_.fileName = parsingVersionNode["FileName"].asString();
|
||||
if(!parsingVersionNode["FileSize"].isNull())
|
||||
parsingVersion_.fileSize = std::stol(parsingVersionNode["FileSize"].asString());
|
||||
if(!parsingVersionNode["ParseProgress"].isNull())
|
||||
parsingVersion_.parseProgress = std::stol(parsingVersionNode["ParseProgress"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNumberDistrictInfoStatusResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
DescribeNumberDistrictInfoStatusResult::AppliedVersion DescribeNumberDistrictInfoStatusResult::getAppliedVersion()const
|
||||
{
|
||||
return appliedVersion_;
|
||||
}
|
||||
|
||||
DescribeNumberDistrictInfoStatusResult::ParsingVersion DescribeNumberDistrictInfoStatusResult::getParsingVersion()const
|
||||
{
|
||||
return parsingVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeNumberDistrictInfoStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeNumberDistrictInfoStatusResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DescribeNumberDistrictInfoStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeNumberDistrictInfoStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DismissNumberDistrictInfoParsingResultRequest;
|
||||
|
||||
DismissNumberDistrictInfoParsingResultRequest::DismissNumberDistrictInfoParsingResultRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DismissNumberDistrictInfoParsingResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DismissNumberDistrictInfoParsingResultRequest::~DismissNumberDistrictInfoParsingResultRequest()
|
||||
{}
|
||||
|
||||
std::string DismissNumberDistrictInfoParsingResultRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void DismissNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
DismissNumberDistrictInfoParsingResultResult::DismissNumberDistrictInfoParsingResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DismissNumberDistrictInfoParsingResultResult::DismissNumberDistrictInfoParsingResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DismissNumberDistrictInfoParsingResultResult::~DismissNumberDistrictInfoParsingResultResult()
|
||||
{}
|
||||
|
||||
void DismissNumberDistrictInfoParsingResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DismissNumberDistrictInfoParsingResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DismissNumberDistrictInfoParsingResultResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DismissNumberDistrictInfoParsingResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DismissNumberDistrictInfoParsingResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GetNumberDistrictInfoTemplateDownloadUrlRequest;
|
||||
|
||||
GetNumberDistrictInfoTemplateDownloadUrlRequest::GetNumberDistrictInfoTemplateDownloadUrlRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "GetNumberDistrictInfoTemplateDownloadUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetNumberDistrictInfoTemplateDownloadUrlRequest::~GetNumberDistrictInfoTemplateDownloadUrlRequest()
|
||||
{}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
GetNumberDistrictInfoTemplateDownloadUrlResult::GetNumberDistrictInfoTemplateDownloadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNumberDistrictInfoTemplateDownloadUrlResult::GetNumberDistrictInfoTemplateDownloadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNumberDistrictInfoTemplateDownloadUrlResult::~GetNumberDistrictInfoTemplateDownloadUrlResult()
|
||||
{}
|
||||
|
||||
void GetNumberDistrictInfoTemplateDownloadUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["FileHttpUrl"].isNull())
|
||||
fileHttpUrl_ = value["FileHttpUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetNumberDistrictInfoTemplateDownloadUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetNumberDistrictInfoTemplateDownloadUrlResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetNumberDistrictInfoTemplateDownloadUrlResult::getFileHttpUrl()const
|
||||
{
|
||||
return fileHttpUrl_;
|
||||
}
|
||||
|
||||
std::string GetNumberDistrictInfoTemplateDownloadUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetNumberDistrictInfoTemplateDownloadUrlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
outboundbot/src/model/ListChatbotInstancesRequest.cc
Normal file
51
outboundbot/src/model/ListChatbotInstancesRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListChatbotInstancesRequest;
|
||||
|
||||
ListChatbotInstancesRequest::ListChatbotInstancesRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListChatbotInstances")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListChatbotInstancesRequest::~ListChatbotInstancesRequest()
|
||||
{}
|
||||
|
||||
int ListChatbotInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListChatbotInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListChatbotInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListChatbotInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
118
outboundbot/src/model/ListChatbotInstancesResult.cc
Normal file
118
outboundbot/src/model/ListChatbotInstancesResult.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListChatbotInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ListChatbotInstancesResult::ListChatbotInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListChatbotInstancesResult::ListChatbotInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListChatbotInstancesResult::~ListChatbotInstancesResult()
|
||||
{}
|
||||
|
||||
void ListChatbotInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBotsNode = value["Bots"]["Bot"];
|
||||
for (auto valueBotsBot : allBotsNode)
|
||||
{
|
||||
Bot botsObject;
|
||||
if(!valueBotsBot["Introduction"].isNull())
|
||||
botsObject.introduction = valueBotsBot["Introduction"].asString();
|
||||
if(!valueBotsBot["Avatar"].isNull())
|
||||
botsObject.avatar = valueBotsBot["Avatar"].asString();
|
||||
if(!valueBotsBot["TimeZone"].isNull())
|
||||
botsObject.timeZone = valueBotsBot["TimeZone"].asString();
|
||||
if(!valueBotsBot["CreateTime"].isNull())
|
||||
botsObject.createTime = valueBotsBot["CreateTime"].asString();
|
||||
if(!valueBotsBot["LanguageCode"].isNull())
|
||||
botsObject.languageCode = valueBotsBot["LanguageCode"].asString();
|
||||
if(!valueBotsBot["InstanceId"].isNull())
|
||||
botsObject.instanceId = valueBotsBot["InstanceId"].asString();
|
||||
if(!valueBotsBot["Name"].isNull())
|
||||
botsObject.name = valueBotsBot["Name"].asString();
|
||||
bots_.push_back(botsObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListChatbotInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListChatbotInstancesResult::Bot> ListChatbotInstancesResult::getBots()const
|
||||
{
|
||||
return bots_;
|
||||
}
|
||||
|
||||
std::string ListChatbotInstancesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListChatbotInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListChatbotInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListChatbotInstancesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListChatbotInstancesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListChatbotInstancesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,50 @@ void ModifyJobGroupRequest::setScriptId(const std::string& scriptId)
|
||||
setParameter("ScriptId", scriptId);
|
||||
}
|
||||
|
||||
std::string ModifyJobGroupRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
void ModifyJobGroupRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
long ModifyJobGroupRequest::getRingingDuration()const
|
||||
{
|
||||
return ringingDuration_;
|
||||
}
|
||||
|
||||
void ModifyJobGroupRequest::setRingingDuration(long ringingDuration)
|
||||
{
|
||||
ringingDuration_ = ringingDuration;
|
||||
setParameter("RingingDuration", std::to_string(ringingDuration));
|
||||
}
|
||||
|
||||
std::string ModifyJobGroupRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void ModifyJobGroupRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
std::string ModifyJobGroupRequest::getJobGroupStatus()const
|
||||
{
|
||||
return jobGroupStatus_;
|
||||
}
|
||||
|
||||
void ModifyJobGroupRequest::setJobGroupStatus(const std::string& jobGroupStatus)
|
||||
{
|
||||
jobGroupStatus_ = jobGroupStatus;
|
||||
setParameter("JobGroupStatus", jobGroupStatus);
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyJobGroupRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
@@ -84,17 +128,6 @@ void ModifyJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyJobGroupRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
void ModifyJobGroupRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
}
|
||||
|
||||
std::string ModifyJobGroupRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
@@ -117,14 +150,3 @@ void ModifyJobGroupRequest::setName(const std::string& name)
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyJobGroupRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void ModifyJobGroupRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,8 @@ void ModifyJobGroupResult::parse(const std::string &payload)
|
||||
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
|
||||
if(!jobGroupNode["ModifyTime"].isNull())
|
||||
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
|
||||
if(!jobGroupNode["RingingDuration"].isNull())
|
||||
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
|
||||
auto exportProgressNode = jobGroupNode["ExportProgress"];
|
||||
if(!exportProgressNode["Status"].isNull())
|
||||
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();
|
||||
|
||||
@@ -39,14 +39,14 @@ void SaveAfterAnswerDelayPlaybackResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void SaveBaseStrategyPeriodResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void SaveContactBlockListResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AffectedRows"].isNull())
|
||||
affectedRows_ = std::stoi(value["AffectedRows"].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["AffectedRows"].isNull())
|
||||
affectedRows_ = std::stoi(value["AffectedRows"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void SaveContactWhiteListResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AffectedRows"].isNull())
|
||||
affectedRows_ = std::stoi(value["AffectedRows"].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["AffectedRows"].isNull())
|
||||
affectedRows_ = std::stoi(value["AffectedRows"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void SaveMaxAttemptsPerDayResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void SuspendCallResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user