CLOUDAUTH SDK Auto Released By gongpei.gp,Version:1.35.8

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-09 16:20:28 +08:00
parent e2d0c496e9
commit 6ca39abbdc
39 changed files with 2017 additions and 35 deletions

View File

@@ -51,6 +51,42 @@ CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::str
CloudauthClient::~CloudauthClient()
{}
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDeviceInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDeviceInfoOutcome(DescribeDeviceInfoResult(outcome.result()));
else
return DescribeDeviceInfoOutcome(outcome.error());
}
void CloudauthClient::describeDeviceInfoAsync(const DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDeviceInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDeviceInfoCallable(const DescribeDeviceInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDeviceInfoOutcome()>>(
[this, request]()
{
return this->describeDeviceInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -195,6 +231,42 @@ CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallab
return task->get_future();
}
CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateAuthKeyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateAuthKeyOutcome(CreateAuthKeyResult(outcome.result()));
else
return CreateAuthKeyOutcome(outcome.error());
}
void CloudauthClient::createAuthKeyAsync(const CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createAuthKey(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCallable(const CreateAuthKeyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateAuthKeyOutcome()>>(
[this, request]()
{
return this->createAuthKey(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,6 +303,150 @@ CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterials
return task->get_future();
}
CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitVerificationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result()));
else
return SubmitVerificationOutcome(outcome.error());
}
void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitVerification(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitVerificationOutcome()>>(
[this, request]()
{
return this->submitVerification(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateVerifySDKOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
else
return CreateVerifySDKOutcome(outcome.error());
}
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createVerifySDK(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
[this, request]()
{
return this->createVerifySDK(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDeviceInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDeviceInfoOutcome(ModifyDeviceInfoResult(outcome.result()));
else
return ModifyDeviceInfoOutcome(outcome.error());
}
void CloudauthClient::modifyDeviceInfoAsync(const ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDeviceInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceInfoCallable(const ModifyDeviceInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDeviceInfoOutcome()>>(
[this, request]()
{
return this->modifyDeviceInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeVerifySDKOutcome CloudauthClient::describeVerifySDK(const DescribeVerifySDKRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifySDKOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifySDKOutcome(DescribeVerifySDKResult(outcome.result()));
else
return DescribeVerifySDKOutcome(outcome.error());
}
void CloudauthClient::describeVerifySDKAsync(const DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifySDK(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerifySDKCallable(const DescribeVerifySDKRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifySDKOutcome()>>(
[this, request]()
{
return this->describeVerifySDK(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -33,7 +33,7 @@ std::string CompareFacesRequest::getSourceImageType()const
void CompareFacesRequest::setSourceImageType(const std::string& sourceImageType)
{
sourceImageType_ = sourceImageType;
setParameter("SourceImageType", sourceImageType);
setCoreParameter("SourceImageType", sourceImageType);
}
long CompareFacesRequest::getResourceOwnerId()const
@@ -44,7 +44,7 @@ long CompareFacesRequest::getResourceOwnerId()const
void CompareFacesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CompareFacesRequest::getSourceIp()const
@@ -55,7 +55,7 @@ std::string CompareFacesRequest::getSourceIp()const
void CompareFacesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
setCoreParameter("SourceIp", sourceIp);
}
std::string CompareFacesRequest::getTargetImageType()const
@@ -66,7 +66,7 @@ std::string CompareFacesRequest::getTargetImageType()const
void CompareFacesRequest::setTargetImageType(const std::string& targetImageType)
{
targetImageType_ = targetImageType;
setParameter("TargetImageType", targetImageType);
setCoreParameter("TargetImageType", targetImageType);
}
std::string CompareFacesRequest::getSourceImageValue()const
@@ -77,7 +77,7 @@ std::string CompareFacesRequest::getSourceImageValue()const
void CompareFacesRequest::setSourceImageValue(const std::string& sourceImageValue)
{
sourceImageValue_ = sourceImageValue;
setParameter("SourceImageValue", sourceImageValue);
setCoreParameter("SourceImageValue", sourceImageValue);
}
std::string CompareFacesRequest::getTargetImageValue()const
@@ -88,6 +88,6 @@ std::string CompareFacesRequest::getTargetImageValue()const
void CompareFacesRequest::setTargetImageValue(const std::string& targetImageValue)
{
targetImageValue_ = targetImageValue;
setParameter("TargetImageValue", targetImageValue);
setCoreParameter("TargetImageValue", targetImageValue);
}

View 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/cloudauth/model/CreateAuthKeyRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest;
CreateAuthKeyRequest::CreateAuthKeyRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey")
{}
CreateAuthKeyRequest::~CreateAuthKeyRequest()
{}
std::string CreateAuthKeyRequest::getBizType()const
{
return bizType_;
}
void CreateAuthKeyRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setCoreParameter("BizType", bizType);
}
std::string CreateAuthKeyRequest::getUserDeviceId()const
{
return userDeviceId_;
}
void CreateAuthKeyRequest::setUserDeviceId(const std::string& userDeviceId)
{
userDeviceId_ = userDeviceId;
setCoreParameter("UserDeviceId", userDeviceId);
}
std::string CreateAuthKeyRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateAuthKeyRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
bool CreateAuthKeyRequest::getTest()const
{
return test_;
}
void CreateAuthKeyRequest::setTest(bool test)
{
test_ = test;
setCoreParameter("Test", test ? "true" : "false");
}
int CreateAuthKeyRequest::getAuthYears()const
{
return authYears_;
}
void CreateAuthKeyRequest::setAuthYears(int authYears)
{
authYears_ = authYears;
setCoreParameter("AuthYears", std::to_string(authYears));
}
std::string CreateAuthKeyRequest::getLang()const
{
return lang_;
}
void CreateAuthKeyRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/cloudauth/model/CreateAuthKeyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
CreateAuthKeyResult::CreateAuthKeyResult() :
ServiceResult()
{}
CreateAuthKeyResult::CreateAuthKeyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAuthKeyResult::~CreateAuthKeyResult()
{}
void CreateAuthKeyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AuthKey"].isNull())
authKey_ = value["AuthKey"].asString();
}
std::string CreateAuthKeyResult::getAuthKey()const
{
return authKey_;
}

View 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/cloudauth/model/CreateVerifySDKRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
CreateVerifySDKRequest::CreateVerifySDKRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "CreateVerifySDK")
{}
CreateVerifySDKRequest::~CreateVerifySDKRequest()
{}
std::string CreateVerifySDKRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateVerifySDKRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateVerifySDKRequest::getAppUrl()const
{
return appUrl_;
}
void CreateVerifySDKRequest::setAppUrl(const std::string& appUrl)
{
appUrl_ = appUrl;
setCoreParameter("AppUrl", appUrl);
}
std::string CreateVerifySDKRequest::getLang()const
{
return lang_;
}
void CreateVerifySDKRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string CreateVerifySDKRequest::getPlatform()const
{
return platform_;
}
void CreateVerifySDKRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setCoreParameter("Platform", platform);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/cloudauth/model/CreateVerifySDKResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
CreateVerifySDKResult::CreateVerifySDKResult() :
ServiceResult()
{}
CreateVerifySDKResult::CreateVerifySDKResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVerifySDKResult::~CreateVerifySDKResult()
{}
void CreateVerifySDKResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string CreateVerifySDKResult::getTaskId()const
{
return taskId_;
}

View 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/cloudauth/model/DescribeDeviceInfoRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest;
DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeDeviceInfo")
{}
DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest()
{}
std::string DescribeDeviceInfoRequest::getBizType()const
{
return bizType_;
}
void DescribeDeviceInfoRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setCoreParameter("BizType", bizType);
}
std::string DescribeDeviceInfoRequest::getUserDeviceId()const
{
return userDeviceId_;
}
void DescribeDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId)
{
userDeviceId_ = userDeviceId;
setCoreParameter("UserDeviceId", userDeviceId);
}
int DescribeDeviceInfoRequest::getTotalCount()const
{
return totalCount_;
}
void DescribeDeviceInfoRequest::setTotalCount(int totalCount)
{
totalCount_ = totalCount;
setCoreParameter("TotalCount", std::to_string(totalCount));
}
std::string DescribeDeviceInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDeviceInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeDeviceInfoRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDeviceInfoRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeDeviceInfoRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeDeviceInfoRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeDeviceInfoRequest::getLang()const
{
return lang_;
}
void DescribeDeviceInfoRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeDeviceInfoRequest::getExpiredEndDay()const
{
return expiredEndDay_;
}
void DescribeDeviceInfoRequest::setExpiredEndDay(const std::string& expiredEndDay)
{
expiredEndDay_ = expiredEndDay;
setCoreParameter("ExpiredEndDay", expiredEndDay);
}
std::string DescribeDeviceInfoRequest::getDeviceId()const
{
return deviceId_;
}
void DescribeDeviceInfoRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setCoreParameter("DeviceId", deviceId);
}
std::string DescribeDeviceInfoRequest::getExpiredStartDay()const
{
return expiredStartDay_;
}
void DescribeDeviceInfoRequest::setExpiredStartDay(const std::string& expiredStartDay)
{
expiredStartDay_ = expiredStartDay;
setCoreParameter("ExpiredStartDay", expiredStartDay);
}

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeDeviceInfoResult::DescribeDeviceInfoResult() :
ServiceResult()
{}
DescribeDeviceInfoResult::DescribeDeviceInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDeviceInfoResult::~DescribeDeviceInfoResult()
{}
void DescribeDeviceInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDeviceInfoList = value["DeviceInfoList"]["DeviceInfo"];
for (auto value : allDeviceInfoList)
{
DeviceInfo deviceInfoListObject;
if(!value["DeviceId"].isNull())
deviceInfoListObject.deviceId = value["DeviceId"].asString();
if(!value["UserDeviceId"].isNull())
deviceInfoListObject.userDeviceId = value["UserDeviceId"].asString();
if(!value["BizType"].isNull())
deviceInfoListObject.bizType = value["BizType"].asString();
if(!value["BeginDay"].isNull())
deviceInfoListObject.beginDay = value["BeginDay"].asString();
if(!value["ExpiredDay"].isNull())
deviceInfoListObject.expiredDay = value["ExpiredDay"].asString();
deviceInfoList_.push_back(deviceInfoListObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
std::vector<DescribeDeviceInfoResult::DeviceInfo> DescribeDeviceInfoResult::getDeviceInfoList()const
{
return deviceInfoList_;
}
int DescribeDeviceInfoResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDeviceInfoResult::getPageSize()const
{
return pageSize_;
}
int DescribeDeviceInfoResult::getCurrentPage()const
{
return currentPage_;
}

View 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/cloudauth/model/DescribeVerifySDKRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest;
DescribeVerifySDKRequest::DescribeVerifySDKRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeVerifySDK")
{}
DescribeVerifySDKRequest::~DescribeVerifySDKRequest()
{}
std::string DescribeVerifySDKRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeVerifySDKRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeVerifySDKRequest::getLang()const
{
return lang_;
}
void DescribeVerifySDKRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeVerifySDKRequest::getTaskId()const
{
return taskId_;
}
void DescribeVerifySDKRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setCoreParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/cloudauth/model/DescribeVerifySDKResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeVerifySDKResult::DescribeVerifySDKResult() :
ServiceResult()
{}
DescribeVerifySDKResult::DescribeVerifySDKResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifySDKResult::~DescribeVerifySDKResult()
{}
void DescribeVerifySDKResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SdkUrl"].isNull())
sdkUrl_ = value["SdkUrl"].asString();
}
std::string DescribeVerifySDKResult::getSdkUrl()const
{
return sdkUrl_;
}

View File

@@ -33,7 +33,7 @@ int DetectFaceAttributesRequest::getMaxNumPhotosPerCategory()const
void DetectFaceAttributesRequest::setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory)
{
maxNumPhotosPerCategory_ = maxNumPhotosPerCategory;
setParameter("MaxNumPhotosPerCategory", std::to_string(maxNumPhotosPerCategory));
setCoreParameter("MaxNumPhotosPerCategory", std::to_string(maxNumPhotosPerCategory));
}
int DetectFaceAttributesRequest::getMaxFaceNum()const
@@ -44,7 +44,7 @@ int DetectFaceAttributesRequest::getMaxFaceNum()const
void DetectFaceAttributesRequest::setMaxFaceNum(int maxFaceNum)
{
maxFaceNum_ = maxFaceNum;
setParameter("MaxFaceNum", std::to_string(maxFaceNum));
setCoreParameter("MaxFaceNum", std::to_string(maxFaceNum));
}
long DetectFaceAttributesRequest::getResourceOwnerId()const
@@ -55,7 +55,7 @@ long DetectFaceAttributesRequest::getResourceOwnerId()const
void DetectFaceAttributesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DetectFaceAttributesRequest::getSourceIp()const
@@ -66,7 +66,7 @@ std::string DetectFaceAttributesRequest::getSourceIp()const
void DetectFaceAttributesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
setCoreParameter("SourceIp", sourceIp);
}
std::string DetectFaceAttributesRequest::getRetAttributes()const
@@ -77,7 +77,7 @@ std::string DetectFaceAttributesRequest::getRetAttributes()const
void DetectFaceAttributesRequest::setRetAttributes(const std::string& retAttributes)
{
retAttributes_ = retAttributes;
setParameter("RetAttributes", retAttributes);
setCoreParameter("RetAttributes", retAttributes);
}
std::string DetectFaceAttributesRequest::getMaterialValue()const
@@ -88,7 +88,7 @@ std::string DetectFaceAttributesRequest::getMaterialValue()const
void DetectFaceAttributesRequest::setMaterialValue(const std::string& materialValue)
{
materialValue_ = materialValue;
setParameter("MaterialValue", materialValue);
setCoreParameter("MaterialValue", materialValue);
}
bool DetectFaceAttributesRequest::getDontSaveDB()const
@@ -99,7 +99,7 @@ bool DetectFaceAttributesRequest::getDontSaveDB()const
void DetectFaceAttributesRequest::setDontSaveDB(bool dontSaveDB)
{
dontSaveDB_ = dontSaveDB;
setParameter("DontSaveDB", std::to_string(dontSaveDB));
setCoreParameter("DontSaveDB", dontSaveDB ? "true" : "false");
}
std::string DetectFaceAttributesRequest::getClientTag()const
@@ -110,6 +110,6 @@ std::string DetectFaceAttributesRequest::getClientTag()const
void DetectFaceAttributesRequest::setClientTag(const std::string& clientTag)
{
clientTag_ = clientTag;
setParameter("ClientTag", clientTag);
setCoreParameter("ClientTag", clientTag);
}

View File

@@ -33,7 +33,7 @@ long GetMaterialsRequest::getResourceOwnerId()const
void GetMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMaterialsRequest::getBiz()const
@@ -44,7 +44,7 @@ std::string GetMaterialsRequest::getBiz()const
void GetMaterialsRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
setCoreParameter("Biz", biz);
}
std::string GetMaterialsRequest::getSourceIp()const
@@ -55,7 +55,7 @@ std::string GetMaterialsRequest::getSourceIp()const
void GetMaterialsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
setCoreParameter("SourceIp", sourceIp);
}
std::string GetMaterialsRequest::getTicketId()const
@@ -66,6 +66,6 @@ std::string GetMaterialsRequest::getTicketId()const
void GetMaterialsRequest::setTicketId(const std::string& ticketId)
{
ticketId_ = ticketId;
setParameter("TicketId", ticketId);
setCoreParameter("TicketId", ticketId);
}

View File

@@ -33,7 +33,7 @@ long GetStatusRequest::getResourceOwnerId()const
void GetStatusRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetStatusRequest::getBiz()const
@@ -44,7 +44,7 @@ std::string GetStatusRequest::getBiz()const
void GetStatusRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
setCoreParameter("Biz", biz);
}
std::string GetStatusRequest::getSourceIp()const
@@ -55,7 +55,7 @@ std::string GetStatusRequest::getSourceIp()const
void GetStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
setCoreParameter("SourceIp", sourceIp);
}
std::string GetStatusRequest::getTicketId()const
@@ -66,6 +66,6 @@ std::string GetStatusRequest::getTicketId()const
void GetStatusRequest::setTicketId(const std::string& ticketId)
{
ticketId_ = ticketId;
setParameter("TicketId", ticketId);
setCoreParameter("TicketId", ticketId);
}

View File

@@ -49,6 +49,8 @@ void GetStatusResult::parse(const std::string &payload)
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
if(!dataNode["AuditConclusions"].isNull())
data_.auditConclusions = dataNode["AuditConclusions"].asString();
if(!dataNode["AuthorityComparisonScore"].isNull())
data_.authorityComparisonScore = std::stof(dataNode["AuthorityComparisonScore"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())

View File

@@ -33,7 +33,7 @@ std::string GetVerifyTokenRequest::getUserData()const
void GetVerifyTokenRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
setCoreParameter("UserData", userData);
}
long GetVerifyTokenRequest::getResourceOwnerId()const
@@ -44,7 +44,7 @@ long GetVerifyTokenRequest::getResourceOwnerId()const
void GetVerifyTokenRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetVerifyTokenRequest::getBiz()const
@@ -55,7 +55,7 @@ std::string GetVerifyTokenRequest::getBiz()const
void GetVerifyTokenRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
setCoreParameter("Biz", biz);
}
std::string GetVerifyTokenRequest::getSourceIp()const
@@ -66,7 +66,7 @@ std::string GetVerifyTokenRequest::getSourceIp()const
void GetVerifyTokenRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
setCoreParameter("SourceIp", sourceIp);
}
std::string GetVerifyTokenRequest::getBinding()const
@@ -77,7 +77,7 @@ std::string GetVerifyTokenRequest::getBinding()const
void GetVerifyTokenRequest::setBinding(const std::string& binding)
{
binding_ = binding;
setParameter("Binding", binding);
setCoreParameter("Binding", binding);
}
std::string GetVerifyTokenRequest::getVerifyConfigs()const
@@ -88,7 +88,7 @@ std::string GetVerifyTokenRequest::getVerifyConfigs()const
void GetVerifyTokenRequest::setVerifyConfigs(const std::string& verifyConfigs)
{
verifyConfigs_ = verifyConfigs;
setParameter("VerifyConfigs", verifyConfigs);
setCoreParameter("VerifyConfigs", verifyConfigs);
}
std::string GetVerifyTokenRequest::getTicketId()const
@@ -99,6 +99,6 @@ std::string GetVerifyTokenRequest::getTicketId()const
void GetVerifyTokenRequest::setTicketId(const std::string& ticketId)
{
ticketId_ = ticketId;
setParameter("TicketId", ticketId);
setCoreParameter("TicketId", ticketId);
}

View 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/cloudauth/model/ModifyDeviceInfoRequest.h>
using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest;
ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "ModifyDeviceInfo")
{}
ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest()
{}
std::string ModifyDeviceInfoRequest::getUserDeviceId()const
{
return userDeviceId_;
}
void ModifyDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId)
{
userDeviceId_ = userDeviceId;
setCoreParameter("UserDeviceId", userDeviceId);
}
std::string ModifyDeviceInfoRequest::getBizType()const
{
return bizType_;
}
void ModifyDeviceInfoRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setCoreParameter("BizType", bizType);
}
std::string ModifyDeviceInfoRequest::getDuration()const
{
return duration_;
}
void ModifyDeviceInfoRequest::setDuration(const std::string& duration)
{
duration_ = duration;
setCoreParameter("Duration", duration);
}
std::string ModifyDeviceInfoRequest::getExpiredDay()const
{
return expiredDay_;
}
void ModifyDeviceInfoRequest::setExpiredDay(const std::string& expiredDay)
{
expiredDay_ = expiredDay;
setCoreParameter("ExpiredDay", expiredDay);
}
std::string ModifyDeviceInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyDeviceInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string ModifyDeviceInfoRequest::getLang()const
{
return lang_;
}
void ModifyDeviceInfoRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string ModifyDeviceInfoRequest::getDeviceId()const
{
return deviceId_;
}
void ModifyDeviceInfoRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setCoreParameter("DeviceId", deviceId);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
ModifyDeviceInfoResult::ModifyDeviceInfoResult() :
ServiceResult()
{}
ModifyDeviceInfoResult::ModifyDeviceInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDeviceInfoResult::~ModifyDeviceInfoResult()
{}
void ModifyDeviceInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DeviceId"].isNull())
deviceId_ = value["DeviceId"].asString();
if(!value["UserDeviceId"].isNull())
userDeviceId_ = value["UserDeviceId"].asString();
if(!value["BizType"].isNull())
bizType_ = value["BizType"].asString();
if(!value["BeginDay"].isNull())
beginDay_ = value["BeginDay"].asString();
if(!value["ExpiredDay"].isNull())
expiredDay_ = value["ExpiredDay"].asString();
}
std::string ModifyDeviceInfoResult::getExpiredDay()const
{
return expiredDay_;
}
std::string ModifyDeviceInfoResult::getBeginDay()const
{
return beginDay_;
}
std::string ModifyDeviceInfoResult::getDeviceId()const
{
return deviceId_;
}
std::string ModifyDeviceInfoResult::getBizType()const
{
return bizType_;
}
std::string ModifyDeviceInfoResult::getUserDeviceId()const
{
return userDeviceId_;
}

View File

@@ -33,7 +33,7 @@ long SubmitMaterialsRequest::getResourceOwnerId()const
void SubmitMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitMaterialsRequest::getSourceIp()const
@@ -44,7 +44,7 @@ std::string SubmitMaterialsRequest::getSourceIp()const
void SubmitMaterialsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
setCoreParameter("SourceIp", sourceIp);
}
std::vector<SubmitMaterialsRequest::Material> SubmitMaterialsRequest::getMaterial()const
@@ -59,8 +59,8 @@ void SubmitMaterialsRequest::setMaterial(const std::vector<Material>& material)
for(int i = 0; i!= material.size(); i++) {
auto obj = material.at(i);
std::string str ="Material."+ std::to_string(i);
setParameter(str + ".MaterialType", obj.materialType);
setParameter(str + ".Value", obj.value);
setCoreParameter(str + ".MaterialType", obj.materialType);
setCoreParameter(str + ".Value", obj.value);
}
}
@@ -72,6 +72,6 @@ std::string SubmitMaterialsRequest::getVerifyToken()const
void SubmitMaterialsRequest::setVerifyToken(const std::string& verifyToken)
{
verifyToken_ = verifyToken;
setParameter("VerifyToken", verifyToken);
setCoreParameter("VerifyToken", verifyToken);
}

View File

@@ -50,6 +50,8 @@ void SubmitMaterialsResult::parse(const std::string &payload)
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
if(!verifyStatusNode["AuditConclusions"].isNull())
data_.verifyStatus.auditConclusions = verifyStatusNode["AuditConclusions"].asString();
if(!verifyStatusNode["AuthorityComparisonScore"].isNull())
data_.verifyStatus.authorityComparisonScore = std::stof(verifyStatusNode["AuthorityComparisonScore"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())

View 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/cloudauth/model/SubmitVerificationRequest.h>
using AlibabaCloud::Cloudauth::Model::SubmitVerificationRequest;
SubmitVerificationRequest::SubmitVerificationRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitVerification")
{}
SubmitVerificationRequest::~SubmitVerificationRequest()
{}
long SubmitVerificationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitVerificationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitVerificationRequest::getBiz()const
{
return biz_;
}
void SubmitVerificationRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setCoreParameter("Biz", biz);
}
std::string SubmitVerificationRequest::getSourceIp()const
{
return sourceIp_;
}
void SubmitVerificationRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::vector<SubmitVerificationRequest::Material> SubmitVerificationRequest::getMaterial()const
{
return material_;
}
void SubmitVerificationRequest::setMaterial(const std::vector<Material>& material)
{
material_ = material;
int i = 0;
for(int i = 0; i!= material.size(); i++) {
auto obj = material.at(i);
std::string str ="Material."+ std::to_string(i);
setCoreParameter(str + ".MaterialType", obj.materialType);
setCoreParameter(str + ".Value", obj.value);
}
}
std::string SubmitVerificationRequest::getTicketId()const
{
return ticketId_;
}
void SubmitVerificationRequest::setTicketId(const std::string& ticketId)
{
ticketId_ = ticketId;
setCoreParameter("TicketId", ticketId);
}

View 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/cloudauth/model/SubmitVerificationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
SubmitVerificationResult::SubmitVerificationResult() :
ServiceResult()
{}
SubmitVerificationResult::SubmitVerificationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitVerificationResult::~SubmitVerificationResult()
{}
void SubmitVerificationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto verifyStatusNode = dataNode["VerifyStatus"];
if(!verifyStatusNode["StatusCode"].isNull())
data_.verifyStatus.statusCode = std::stoi(verifyStatusNode["StatusCode"].asString());
if(!verifyStatusNode["TrustedScore"].isNull())
data_.verifyStatus.trustedScore = std::stof(verifyStatusNode["TrustedScore"].asString());
if(!verifyStatusNode["SimilarityScore"].isNull())
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
if(!verifyStatusNode["AuditConclusions"].isNull())
data_.verifyStatus.auditConclusions = verifyStatusNode["AuditConclusions"].asString();
if(!verifyStatusNode["AuthorityComparisonScore"].isNull())
data_.verifyStatus.authorityComparisonScore = std::stof(verifyStatusNode["AuthorityComparisonScore"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SubmitVerificationResult::getMessage()const
{
return message_;
}
SubmitVerificationResult::Data SubmitVerificationResult::getData()const
{
return data_;
}
std::string SubmitVerificationResult::getCode()const
{
return code_;
}
bool SubmitVerificationResult::getSuccess()const
{
return success_;
}