Generated 2019-03-07 for Cloudauth.
This commit is contained in:
@@ -51,6 +51,42 @@ CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::str
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::AIGCFaceVerifyOutcome CloudauthClient::aIGCFaceVerify(const AIGCFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AIGCFaceVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AIGCFaceVerifyOutcome(AIGCFaceVerifyResult(outcome.result()));
|
||||
else
|
||||
return AIGCFaceVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::aIGCFaceVerifyAsync(const AIGCFaceVerifyRequest& request, const AIGCFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, aIGCFaceVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::AIGCFaceVerifyOutcomeCallable CloudauthClient::aIGCFaceVerifyCallable(const AIGCFaceVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AIGCFaceVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->aIGCFaceVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFaceVerifyOutcome CloudauthClient::compareFaceVerify(const CompareFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +375,78 @@ CloudauthClient::DescribeOssUploadTokenOutcomeCallable CloudauthClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribePageFaceVerifyDataOutcome CloudauthClient::describePageFaceVerifyData(const DescribePageFaceVerifyDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePageFaceVerifyDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePageFaceVerifyDataOutcome(DescribePageFaceVerifyDataResult(outcome.result()));
|
||||
else
|
||||
return DescribePageFaceVerifyDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describePageFaceVerifyDataAsync(const DescribePageFaceVerifyDataRequest& request, const DescribePageFaceVerifyDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePageFaceVerifyData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribePageFaceVerifyDataOutcomeCallable CloudauthClient::describePageFaceVerifyDataCallable(const DescribePageFaceVerifyDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePageFaceVerifyDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePageFaceVerifyData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeSmartStatisticsPageListOutcome CloudauthClient::describeSmartStatisticsPageList(const DescribeSmartStatisticsPageListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSmartStatisticsPageListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSmartStatisticsPageListOutcome(DescribeSmartStatisticsPageListResult(outcome.result()));
|
||||
else
|
||||
return DescribeSmartStatisticsPageListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeSmartStatisticsPageListAsync(const DescribeSmartStatisticsPageListRequest& request, const DescribeSmartStatisticsPageListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSmartStatisticsPageList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeSmartStatisticsPageListOutcomeCallable CloudauthClient::describeSmartStatisticsPageListCallable(const DescribeSmartStatisticsPageListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSmartStatisticsPageListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSmartStatisticsPageList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifyResultOutcome CloudauthClient::describeVerifyResult(const DescribeVerifyResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +591,42 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::Id2MetaVerifyOutcome CloudauthClient::id2MetaVerify(const Id2MetaVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Id2MetaVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Id2MetaVerifyOutcome(Id2MetaVerifyResult(outcome.result()));
|
||||
else
|
||||
return Id2MetaVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::id2MetaVerifyAsync(const Id2MetaVerifyRequest& request, const Id2MetaVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, id2MetaVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::Id2MetaVerifyOutcomeCallable CloudauthClient::id2MetaVerifyCallable(const Id2MetaVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Id2MetaVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->id2MetaVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::InitFaceVerifyOutcome CloudauthClient::initFaceVerify(const InitFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +699,78 @@ CloudauthClient::LivenessFaceVerifyOutcomeCallable CloudauthClient::livenessFace
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::Mobile3MetaDetailVerifyOutcome CloudauthClient::mobile3MetaDetailVerify(const Mobile3MetaDetailVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Mobile3MetaDetailVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Mobile3MetaDetailVerifyOutcome(Mobile3MetaDetailVerifyResult(outcome.result()));
|
||||
else
|
||||
return Mobile3MetaDetailVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::mobile3MetaDetailVerifyAsync(const Mobile3MetaDetailVerifyRequest& request, const Mobile3MetaDetailVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobile3MetaDetailVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::Mobile3MetaDetailVerifyOutcomeCallable CloudauthClient::mobile3MetaDetailVerifyCallable(const Mobile3MetaDetailVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Mobile3MetaDetailVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobile3MetaDetailVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::Mobile3MetaSimpleVerifyOutcome CloudauthClient::mobile3MetaSimpleVerify(const Mobile3MetaSimpleVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Mobile3MetaSimpleVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Mobile3MetaSimpleVerifyOutcome(Mobile3MetaSimpleVerifyResult(outcome.result()));
|
||||
else
|
||||
return Mobile3MetaSimpleVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::mobile3MetaSimpleVerifyAsync(const Mobile3MetaSimpleVerifyRequest& request, const Mobile3MetaSimpleVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobile3MetaSimpleVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::Mobile3MetaSimpleVerifyOutcomeCallable CloudauthClient::mobile3MetaSimpleVerifyCallable(const Mobile3MetaSimpleVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Mobile3MetaSimpleVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobile3MetaSimpleVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
90
cloudauth/src/model/AIGCFaceVerifyRequest.cc
Normal file
90
cloudauth/src/model/AIGCFaceVerifyRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/AIGCFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::AIGCFaceVerifyRequest;
|
||||
|
||||
AIGCFaceVerifyRequest::AIGCFaceVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "AIGCFaceVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AIGCFaceVerifyRequest::~AIGCFaceVerifyRequest() {}
|
||||
|
||||
std::string AIGCFaceVerifyRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void AIGCFaceVerifyRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
std::string AIGCFaceVerifyRequest::getOssObjectName() const {
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
void AIGCFaceVerifyRequest::setOssObjectName(const std::string &ossObjectName) {
|
||||
ossObjectName_ = ossObjectName;
|
||||
setParameter(std::string("OssObjectName"), ossObjectName);
|
||||
}
|
||||
|
||||
std::string AIGCFaceVerifyRequest::getFaceContrastPicture() const {
|
||||
return faceContrastPicture_;
|
||||
}
|
||||
|
||||
void AIGCFaceVerifyRequest::setFaceContrastPicture(const std::string &faceContrastPicture) {
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setBodyParameter(std::string("FaceContrastPicture"), faceContrastPicture);
|
||||
}
|
||||
|
||||
std::string AIGCFaceVerifyRequest::getOuterOrderNo() const {
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void AIGCFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) {
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setParameter(std::string("OuterOrderNo"), outerOrderNo);
|
||||
}
|
||||
|
||||
std::string AIGCFaceVerifyRequest::getFaceContrastPictureUrl() const {
|
||||
return faceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
void AIGCFaceVerifyRequest::setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl) {
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setParameter(std::string("FaceContrastPictureUrl"), faceContrastPictureUrl);
|
||||
}
|
||||
|
||||
long AIGCFaceVerifyRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void AIGCFaceVerifyRequest::setSceneId(long sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setParameter(std::string("SceneId"), std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string AIGCFaceVerifyRequest::getOssBucketName() const {
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
void AIGCFaceVerifyRequest::setOssBucketName(const std::string &ossBucketName) {
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter(std::string("OssBucketName"), ossBucketName);
|
||||
}
|
||||
|
||||
70
cloudauth/src/model/AIGCFaceVerifyResult.cc
Normal file
70
cloudauth/src/model/AIGCFaceVerifyResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/AIGCFaceVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
AIGCFaceVerifyResult::AIGCFaceVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AIGCFaceVerifyResult::AIGCFaceVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AIGCFaceVerifyResult::~AIGCFaceVerifyResult()
|
||||
{}
|
||||
|
||||
void AIGCFaceVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Result"].isNull())
|
||||
resultObject_.result = resultObjectNode["Result"].asString();
|
||||
if(!resultObjectNode["Score"].isNull())
|
||||
resultObject_.score = resultObjectNode["Score"].asString();
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
AIGCFaceVerifyResult::ResultObject AIGCFaceVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string AIGCFaceVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AIGCFaceVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,183 +1,153 @@
|
||||
/*
|
||||
* 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/CompareFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFaceVerifyRequest;
|
||||
|
||||
CompareFaceVerifyRequest::CompareFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CompareFaceVerifyRequest::~CompareFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFaceVerifyRequest;
|
||||
|
||||
CompareFaceVerifyRequest::CompareFaceVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaceVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
CompareFaceVerifyRequest::~CompareFaceVerifyRequest() {}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetCertifyId()const
|
||||
{
|
||||
return targetCertifyId_;
|
||||
void CompareFaceVerifyRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setBodyParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetCertifyId(const std::string& targetCertifyId)
|
||||
{
|
||||
targetCertifyId_ = targetCertifyId;
|
||||
setBodyParameter("TargetCertifyId", targetCertifyId);
|
||||
std::string CompareFaceVerifyRequest::getTargetCertifyId() const {
|
||||
return targetCertifyId_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture()const
|
||||
{
|
||||
return targetFaceContrastPicture_;
|
||||
void CompareFaceVerifyRequest::setTargetCertifyId(const std::string &targetCertifyId) {
|
||||
targetCertifyId_ = targetCertifyId;
|
||||
setBodyParameter(std::string("TargetCertifyId"), targetCertifyId);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture)
|
||||
{
|
||||
targetFaceContrastPicture_ = targetFaceContrastPicture;
|
||||
setBodyParameter("TargetFaceContrastPicture", targetFaceContrastPicture);
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture() const {
|
||||
return targetFaceContrastPicture_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetOssBucketName()const
|
||||
{
|
||||
return targetOssBucketName_;
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPicture(const std::string &targetFaceContrastPicture) {
|
||||
targetFaceContrastPicture_ = targetFaceContrastPicture;
|
||||
setBodyParameter(std::string("TargetFaceContrastPicture"), targetFaceContrastPicture);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string& targetOssBucketName)
|
||||
{
|
||||
targetOssBucketName_ = targetOssBucketName;
|
||||
setBodyParameter("TargetOssBucketName", targetOssBucketName);
|
||||
std::string CompareFaceVerifyRequest::getTargetOssBucketName() const {
|
||||
return targetOssBucketName_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string &targetOssBucketName) {
|
||||
targetOssBucketName_ = targetOssBucketName;
|
||||
setBodyParameter(std::string("TargetOssBucketName"), targetOssBucketName);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
std::string CompareFaceVerifyRequest::getOuterOrderNo() const {
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture()const
|
||||
{
|
||||
return sourceFaceContrastPicture_;
|
||||
void CompareFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) {
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter(std::string("OuterOrderNo"), outerOrderNo);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string& sourceFaceContrastPicture)
|
||||
{
|
||||
sourceFaceContrastPicture_ = sourceFaceContrastPicture;
|
||||
setBodyParameter("SourceFaceContrastPicture", sourceFaceContrastPicture);
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture() const {
|
||||
return sourceFaceContrastPicture_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
|
||||
{
|
||||
return sourceCertifyId_;
|
||||
void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string &sourceFaceContrastPicture) {
|
||||
sourceFaceContrastPicture_ = sourceFaceContrastPicture;
|
||||
setBodyParameter(std::string("SourceFaceContrastPicture"), sourceFaceContrastPicture);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
|
||||
{
|
||||
sourceCertifyId_ = sourceCertifyId;
|
||||
setBodyParameter("SourceCertifyId", sourceCertifyId);
|
||||
std::string CompareFaceVerifyRequest::getSourceCertifyId() const {
|
||||
return sourceCertifyId_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
|
||||
{
|
||||
return targetFaceContrastPictureUrl_;
|
||||
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string &sourceCertifyId) {
|
||||
sourceCertifyId_ = sourceCertifyId;
|
||||
setBodyParameter(std::string("SourceCertifyId"), sourceCertifyId);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
|
||||
{
|
||||
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
|
||||
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl() const {
|
||||
return targetFaceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
|
||||
{
|
||||
return sourceOssObjectName_;
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string &targetFaceContrastPictureUrl) {
|
||||
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
|
||||
setBodyParameter(std::string("TargetFaceContrastPictureUrl"), targetFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
|
||||
{
|
||||
sourceOssObjectName_ = sourceOssObjectName;
|
||||
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
|
||||
std::string CompareFaceVerifyRequest::getSourceOssObjectName() const {
|
||||
return sourceOssObjectName_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
|
||||
{
|
||||
return sourceOssBucketName_;
|
||||
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string &sourceOssObjectName) {
|
||||
sourceOssObjectName_ = sourceOssObjectName;
|
||||
setBodyParameter(std::string("SourceOssObjectName"), sourceOssObjectName);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
|
||||
{
|
||||
sourceOssBucketName_ = sourceOssBucketName;
|
||||
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
|
||||
std::string CompareFaceVerifyRequest::getSourceOssBucketName() const {
|
||||
return sourceOssBucketName_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
|
||||
{
|
||||
return targetOssObjectName_;
|
||||
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string &sourceOssBucketName) {
|
||||
sourceOssBucketName_ = sourceOssBucketName;
|
||||
setBodyParameter(std::string("SourceOssBucketName"), sourceOssBucketName);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
|
||||
{
|
||||
targetOssObjectName_ = targetOssObjectName;
|
||||
setBodyParameter("TargetOssObjectName", targetOssObjectName);
|
||||
std::string CompareFaceVerifyRequest::getTargetOssObjectName() const {
|
||||
return targetOssObjectName_;
|
||||
}
|
||||
|
||||
long CompareFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string &targetOssObjectName) {
|
||||
targetOssObjectName_ = targetOssObjectName;
|
||||
setBodyParameter(std::string("TargetOssObjectName"), targetOssObjectName);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
long CompareFaceVerifyRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPictureUrl()const
|
||||
{
|
||||
return sourceFaceContrastPictureUrl_;
|
||||
void CompareFaceVerifyRequest::setSceneId(long sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter(std::string("SceneId"), std::to_string(sceneId));
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl)
|
||||
{
|
||||
sourceFaceContrastPictureUrl_ = sourceFaceContrastPictureUrl;
|
||||
setBodyParameter("SourceFaceContrastPictureUrl", sourceFaceContrastPictureUrl);
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPictureUrl() const {
|
||||
return sourceFaceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string &sourceFaceContrastPictureUrl) {
|
||||
sourceFaceContrastPictureUrl_ = sourceFaceContrastPictureUrl;
|
||||
setBodyParameter(std::string("SourceFaceContrastPictureUrl"), sourceFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setCrop(const std::string& crop)
|
||||
{
|
||||
crop_ = crop;
|
||||
setBodyParameter("Crop", crop);
|
||||
std::string CompareFaceVerifyRequest::getCrop() const {
|
||||
return crop_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setCrop(const std::string &crop) {
|
||||
crop_ = crop;
|
||||
setBodyParameter(std::string("Crop"), crop);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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/cloudauth/model/CompareFacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
|
||||
|
||||
CompareFacesRequest::CompareFacesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaces")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CompareFacesRequest::~CompareFacesRequest()
|
||||
{}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageType()const
|
||||
{
|
||||
return sourceImageType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
|
||||
|
||||
CompareFacesRequest::CompareFacesRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaces") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setSourceImageType(const std::string& sourceImageType)
|
||||
{
|
||||
sourceImageType_ = sourceImageType;
|
||||
setBodyParameter("SourceImageType", sourceImageType);
|
||||
CompareFacesRequest::~CompareFacesRequest() {}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageType() const {
|
||||
return sourceImageType_;
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageType()const
|
||||
{
|
||||
return targetImageType_;
|
||||
void CompareFacesRequest::setSourceImageType(const std::string &sourceImageType) {
|
||||
sourceImageType_ = sourceImageType;
|
||||
setBodyParameter(std::string("SourceImageType"), sourceImageType);
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setTargetImageType(const std::string& targetImageType)
|
||||
{
|
||||
targetImageType_ = targetImageType;
|
||||
setBodyParameter("TargetImageType", targetImageType);
|
||||
std::string CompareFacesRequest::getTargetImageType() const {
|
||||
return targetImageType_;
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageValue()const
|
||||
{
|
||||
return targetImageValue_;
|
||||
void CompareFacesRequest::setTargetImageType(const std::string &targetImageType) {
|
||||
targetImageType_ = targetImageType;
|
||||
setBodyParameter(std::string("TargetImageType"), targetImageType);
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setTargetImageValue(const std::string& targetImageValue)
|
||||
{
|
||||
targetImageValue_ = targetImageValue;
|
||||
setBodyParameter("TargetImageValue", targetImageValue);
|
||||
std::string CompareFacesRequest::getTargetImageValue() const {
|
||||
return targetImageValue_;
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
void CompareFacesRequest::setTargetImageValue(const std::string &targetImageValue) {
|
||||
targetImageValue_ = targetImageValue;
|
||||
setBodyParameter(std::string("TargetImageValue"), targetImageValue);
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setBodyParameter("BizType", bizType);
|
||||
std::string CompareFacesRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageValue()const
|
||||
{
|
||||
return sourceImageValue_;
|
||||
void CompareFacesRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setBodyParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setSourceImageValue(const std::string& sourceImageValue)
|
||||
{
|
||||
sourceImageValue_ = sourceImageValue;
|
||||
setBodyParameter("SourceImageValue", sourceImageValue);
|
||||
std::string CompareFacesRequest::getSourceImageValue() const {
|
||||
return sourceImageValue_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setSourceImageValue(const std::string &sourceImageValue) {
|
||||
sourceImageValue_ = sourceImageValue;
|
||||
setBodyParameter(std::string("SourceImageValue"), sourceImageValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,227 +1,198 @@
|
||||
/*
|
||||
* 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/ContrastFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ContrastFaceVerifyRequest;
|
||||
|
||||
ContrastFaceVerifyRequest::ContrastFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "ContrastFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ContrastFaceVerifyRequest::~ContrastFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ContrastFaceVerifyRequest;
|
||||
|
||||
ContrastFaceVerifyRequest::ContrastFaceVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "ContrastFaceVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
ContrastFaceVerifyRequest::~ContrastFaceVerifyRequest() {}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastPicture()const
|
||||
{
|
||||
return faceContrastPicture_;
|
||||
void ContrastFaceVerifyRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setBodyParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
|
||||
{
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setBodyParameter("FaceContrastPicture", faceContrastPicture);
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastPicture() const {
|
||||
return faceContrastPicture_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getDeviceToken()const
|
||||
{
|
||||
return deviceToken_;
|
||||
void ContrastFaceVerifyRequest::setFaceContrastPicture(const std::string &faceContrastPicture) {
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setBodyParameter(std::string("FaceContrastPicture"), faceContrastPicture);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setDeviceToken(const std::string& deviceToken)
|
||||
{
|
||||
deviceToken_ = deviceToken;
|
||||
setBodyParameter("DeviceToken", deviceToken);
|
||||
std::string ContrastFaceVerifyRequest::getDeviceToken() const {
|
||||
return deviceToken_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void ContrastFaceVerifyRequest::setDeviceToken(const std::string &deviceToken) {
|
||||
deviceToken_ = deviceToken;
|
||||
setBodyParameter(std::string("DeviceToken"), deviceToken);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
std::string ContrastFaceVerifyRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
void ContrastFaceVerifyRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setBodyParameter("CertifyId", certifyId);
|
||||
std::string ContrastFaceVerifyRequest::getCertifyId() const {
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
void ContrastFaceVerifyRequest::setCertifyId(const std::string &certifyId) {
|
||||
certifyId_ = certifyId;
|
||||
setBodyParameter(std::string("CertifyId"), certifyId);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
std::string ContrastFaceVerifyRequest::getEncryptType() const {
|
||||
return encryptType_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
void ContrastFaceVerifyRequest::setEncryptType(const std::string &encryptType) {
|
||||
encryptType_ = encryptType;
|
||||
setBodyParameter(std::string("EncryptType"), encryptType);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
std::string ContrastFaceVerifyRequest::getCertNo() const {
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertType()const
|
||||
{
|
||||
return certType_;
|
||||
void ContrastFaceVerifyRequest::setCertNo(const std::string &certNo) {
|
||||
certNo_ = certNo;
|
||||
setBodyParameter(std::string("CertNo"), certNo);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setBodyParameter("CertType", certType);
|
||||
std::string ContrastFaceVerifyRequest::getOuterOrderNo() const {
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastPictureUrl()const
|
||||
{
|
||||
return faceContrastPictureUrl_;
|
||||
void ContrastFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) {
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter(std::string("OuterOrderNo"), outerOrderNo);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl)
|
||||
{
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
|
||||
std::string ContrastFaceVerifyRequest::getCertType() const {
|
||||
return certType_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getModel()const
|
||||
{
|
||||
return model_;
|
||||
void ContrastFaceVerifyRequest::setCertType(const std::string &certType) {
|
||||
certType_ = certType;
|
||||
setBodyParameter(std::string("CertType"), certType);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setModel(const std::string& model)
|
||||
{
|
||||
model_ = model;
|
||||
setParameter("Model", model);
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastPictureUrl() const {
|
||||
return faceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getOssObjectName()const
|
||||
{
|
||||
return ossObjectName_;
|
||||
void ContrastFaceVerifyRequest::setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl) {
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setBodyParameter(std::string("FaceContrastPictureUrl"), faceContrastPictureUrl);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter("OssObjectName", ossObjectName);
|
||||
std::string ContrastFaceVerifyRequest::getModel() const {
|
||||
return model_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
void ContrastFaceVerifyRequest::setModel(const std::string &model) {
|
||||
model_ = model;
|
||||
setParameter(std::string("Model"), model);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
std::string ContrastFaceVerifyRequest::getOssObjectName() const {
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
void ContrastFaceVerifyRequest::setOssObjectName(const std::string &ossObjectName) {
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter(std::string("OssObjectName"), ossObjectName);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
std::string ContrastFaceVerifyRequest::getCertName() const {
|
||||
return certName_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
void ContrastFaceVerifyRequest::setCertName(const std::string &certName) {
|
||||
certName_ = certName;
|
||||
setBodyParameter(std::string("CertName"), certName);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
std::string ContrastFaceVerifyRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastFile()const
|
||||
{
|
||||
return faceContrastFile_;
|
||||
void ContrastFaceVerifyRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setBodyParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setFaceContrastFile(const std::string& faceContrastFile)
|
||||
{
|
||||
faceContrastFile_ = faceContrastFile;
|
||||
setBodyParameter("FaceContrastFile", faceContrastFile);
|
||||
std::string ContrastFaceVerifyRequest::getMobile() const {
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
long ContrastFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
void ContrastFaceVerifyRequest::setMobile(const std::string &mobile) {
|
||||
mobile_ = mobile;
|
||||
setBodyParameter(std::string("Mobile"), mobile);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastFile() const {
|
||||
return faceContrastFile_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
void ContrastFaceVerifyRequest::setFaceContrastFile(const std::string &faceContrastFile) {
|
||||
faceContrastFile_ = faceContrastFile;
|
||||
setBodyParameter(std::string("FaceContrastFile"), faceContrastFile);
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setBodyParameter("OssBucketName", ossBucketName);
|
||||
long ContrastFaceVerifyRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
void ContrastFaceVerifyRequest::setSceneId(long sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter(std::string("SceneId"), std::to_string(sceneId));
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCrop(const std::string& crop)
|
||||
{
|
||||
crop_ = crop;
|
||||
setBodyParameter("Crop", crop);
|
||||
std::string ContrastFaceVerifyRequest::getOssBucketName() const {
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setOssBucketName(const std::string &ossBucketName) {
|
||||
ossBucketName_ = ossBucketName;
|
||||
setBodyParameter(std::string("OssBucketName"), ossBucketName);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCrop() const {
|
||||
return crop_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCrop(const std::string &crop) {
|
||||
crop_ = crop;
|
||||
setBodyParameter(std::string("Crop"), crop);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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", "2019-03-07", "CreateAuthKey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAuthKeyRequest::~CreateAuthKeyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAuthKeyRequest::getUserDeviceId()const
|
||||
{
|
||||
return userDeviceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateAuthKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest;
|
||||
|
||||
CreateAuthKeyRequest::CreateAuthKeyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "CreateAuthKey") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setParameter("UserDeviceId", userDeviceId);
|
||||
CreateAuthKeyRequest::~CreateAuthKeyRequest() {}
|
||||
|
||||
std::string CreateAuthKeyRequest::getUserDeviceId() const {
|
||||
return userDeviceId_;
|
||||
}
|
||||
|
||||
bool CreateAuthKeyRequest::getTest()const
|
||||
{
|
||||
return test_;
|
||||
void CreateAuthKeyRequest::setUserDeviceId(const std::string &userDeviceId) {
|
||||
userDeviceId_ = userDeviceId;
|
||||
setParameter(std::string("UserDeviceId"), userDeviceId);
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setTest(bool test)
|
||||
{
|
||||
test_ = test;
|
||||
setParameter("Test", test ? "true" : "false");
|
||||
bool CreateAuthKeyRequest::getTest() const {
|
||||
return test_;
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
void CreateAuthKeyRequest::setTest(bool test) {
|
||||
test_ = test;
|
||||
setParameter(std::string("Test"), test ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
std::string CreateAuthKeyRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
void CreateAuthKeyRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
std::string CreateAuthKeyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
int CreateAuthKeyRequest::getAuthYears()const
|
||||
{
|
||||
return authYears_;
|
||||
void CreateAuthKeyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setAuthYears(int authYears)
|
||||
{
|
||||
authYears_ = authYears;
|
||||
setParameter("AuthYears", std::to_string(authYears));
|
||||
int CreateAuthKeyRequest::getAuthYears() const {
|
||||
return authYears_;
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
void CreateAuthKeyRequest::setAuthYears(int authYears) {
|
||||
authYears_ = authYears;
|
||||
setParameter(std::string("AuthYears"), std::to_string(authYears));
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
std::string CreateAuthKeyRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateAuthKeyRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateVerifySettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateVerifySettingRequest;
|
||||
|
||||
CreateVerifySettingRequest::CreateVerifySettingRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySetting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVerifySettingRequest::~CreateVerifySettingRequest()
|
||||
{}
|
||||
|
||||
bool CreateVerifySettingRequest::getGuideStep()const
|
||||
{
|
||||
return guideStep_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateVerifySettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateVerifySettingRequest;
|
||||
|
||||
CreateVerifySettingRequest::CreateVerifySettingRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySetting") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateVerifySettingRequest::setGuideStep(bool guideStep)
|
||||
{
|
||||
guideStep_ = guideStep;
|
||||
setParameter("GuideStep", guideStep ? "true" : "false");
|
||||
CreateVerifySettingRequest::~CreateVerifySettingRequest() {}
|
||||
|
||||
bool CreateVerifySettingRequest::getGuideStep() const {
|
||||
return guideStep_;
|
||||
}
|
||||
|
||||
bool CreateVerifySettingRequest::getResultStep()const
|
||||
{
|
||||
return resultStep_;
|
||||
void CreateVerifySettingRequest::setGuideStep(bool guideStep) {
|
||||
guideStep_ = guideStep;
|
||||
setParameter(std::string("GuideStep"), guideStep ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateVerifySettingRequest::setResultStep(bool resultStep)
|
||||
{
|
||||
resultStep_ = resultStep;
|
||||
setParameter("ResultStep", resultStep ? "true" : "false");
|
||||
bool CreateVerifySettingRequest::getResultStep() const {
|
||||
return resultStep_;
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
void CreateVerifySettingRequest::setResultStep(bool resultStep) {
|
||||
resultStep_ = resultStep;
|
||||
setParameter(std::string("ResultStep"), resultStep ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateVerifySettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
std::string CreateVerifySettingRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingRequest::getSolution()const
|
||||
{
|
||||
return solution_;
|
||||
void CreateVerifySettingRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
void CreateVerifySettingRequest::setSolution(const std::string& solution)
|
||||
{
|
||||
solution_ = solution;
|
||||
setParameter("Solution", solution);
|
||||
std::string CreateVerifySettingRequest::getSolution() const {
|
||||
return solution_;
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingRequest::getBizName()const
|
||||
{
|
||||
return bizName_;
|
||||
void CreateVerifySettingRequest::setSolution(const std::string &solution) {
|
||||
solution_ = solution;
|
||||
setParameter(std::string("Solution"), solution);
|
||||
}
|
||||
|
||||
void CreateVerifySettingRequest::setBizName(const std::string& bizName)
|
||||
{
|
||||
bizName_ = bizName;
|
||||
setParameter("BizName", bizName);
|
||||
std::string CreateVerifySettingRequest::getBizName() const {
|
||||
return bizName_;
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
void CreateVerifySettingRequest::setBizName(const std::string &bizName) {
|
||||
bizName_ = bizName;
|
||||
setParameter(std::string("BizName"), bizName);
|
||||
}
|
||||
|
||||
void CreateVerifySettingRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
std::string CreateVerifySettingRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
bool CreateVerifySettingRequest::getPrivacyStep()const
|
||||
{
|
||||
return privacyStep_;
|
||||
void CreateVerifySettingRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
void CreateVerifySettingRequest::setPrivacyStep(bool privacyStep)
|
||||
{
|
||||
privacyStep_ = privacyStep;
|
||||
setParameter("PrivacyStep", privacyStep ? "true" : "false");
|
||||
bool CreateVerifySettingRequest::getPrivacyStep() const {
|
||||
return privacyStep_;
|
||||
}
|
||||
|
||||
void CreateVerifySettingRequest::setPrivacyStep(bool privacyStep) {
|
||||
privacyStep_ = privacyStep;
|
||||
setParameter(std::string("PrivacyStep"), privacyStep ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void CreateVerifySettingResult::parse(const std::string &payload)
|
||||
auto allStepList = value["StepList"]["Step"];
|
||||
for (const auto &item : allStepList)
|
||||
stepList_.push_back(item.asString());
|
||||
if(!value["BizType"].isNull())
|
||||
bizType_ = value["BizType"].asString();
|
||||
if(!value["BizName"].isNull())
|
||||
bizName_ = value["BizName"].asString();
|
||||
if(!value["Solution"].isNull())
|
||||
solution_ = value["Solution"].asString();
|
||||
if(!value["BizType"].isNull())
|
||||
bizType_ = value["BizType"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -56,16 +56,16 @@ std::vector<std::string> CreateVerifySettingResult::getStepList()const
|
||||
return stepList_;
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingResult::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingResult::getBizName()const
|
||||
{
|
||||
return bizName_;
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingResult::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingResult::getSolution()const
|
||||
{
|
||||
return solution_;
|
||||
|
||||
@@ -1,139 +1,117 @@
|
||||
/*
|
||||
* 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", "2019-03-07", "DescribeDeviceInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getUserDeviceId()const
|
||||
{
|
||||
return userDeviceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest;
|
||||
|
||||
DescribeDeviceInfoRequest::DescribeDeviceInfoRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DescribeDeviceInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setParameter("UserDeviceId", userDeviceId);
|
||||
DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest() {}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getUserDeviceId() const {
|
||||
return userDeviceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
void DescribeDeviceInfoRequest::setUserDeviceId(const std::string &userDeviceId) {
|
||||
userDeviceId_ = userDeviceId;
|
||||
setParameter(std::string("UserDeviceId"), userDeviceId);
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
std::string DescribeDeviceInfoRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeDeviceInfoRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeDeviceInfoRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
void DescribeDeviceInfoRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
std::string DescribeDeviceInfoRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getExpiredStartDay()const
|
||||
{
|
||||
return expiredStartDay_;
|
||||
void DescribeDeviceInfoRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setExpiredStartDay(const std::string& expiredStartDay)
|
||||
{
|
||||
expiredStartDay_ = expiredStartDay;
|
||||
setParameter("ExpiredStartDay", expiredStartDay);
|
||||
std::string DescribeDeviceInfoRequest::getExpiredStartDay() const {
|
||||
return expiredStartDay_;
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
void DescribeDeviceInfoRequest::setExpiredStartDay(const std::string &expiredStartDay) {
|
||||
expiredStartDay_ = expiredStartDay;
|
||||
setParameter(std::string("ExpiredStartDay"), expiredStartDay);
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setTotalCount(int totalCount)
|
||||
{
|
||||
totalCount_ = totalCount;
|
||||
setParameter("TotalCount", std::to_string(totalCount));
|
||||
int DescribeDeviceInfoRequest::getTotalCount() const {
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void DescribeDeviceInfoRequest::setTotalCount(int totalCount) {
|
||||
totalCount_ = totalCount;
|
||||
setParameter(std::string("TotalCount"), std::to_string(totalCount));
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int DescribeDeviceInfoRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
void DescribeDeviceInfoRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
std::string DescribeDeviceInfoRequest::getDeviceId() const {
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
void DescribeDeviceInfoRequest::setDeviceId(const std::string &deviceId) {
|
||||
deviceId_ = deviceId;
|
||||
setParameter(std::string("DeviceId"), deviceId);
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
std::string DescribeDeviceInfoRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getExpiredEndDay()const
|
||||
{
|
||||
return expiredEndDay_;
|
||||
void DescribeDeviceInfoRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setExpiredEndDay(const std::string& expiredEndDay)
|
||||
{
|
||||
expiredEndDay_ = expiredEndDay;
|
||||
setParameter("ExpiredEndDay", expiredEndDay);
|
||||
std::string DescribeDeviceInfoRequest::getExpiredEndDay() const {
|
||||
return expiredEndDay_;
|
||||
}
|
||||
|
||||
void DescribeDeviceInfoRequest::setExpiredEndDay(const std::string &expiredEndDay) {
|
||||
expiredEndDay_ = expiredEndDay;
|
||||
setParameter(std::string("ExpiredEndDay"), expiredEndDay);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,22 +43,22 @@ void DescribeDeviceInfoResult::parse(const std::string &payload)
|
||||
for (auto valueDeviceInfoListDeviceInfo : allDeviceInfoListNode)
|
||||
{
|
||||
DeviceInfo deviceInfoListObject;
|
||||
if(!valueDeviceInfoListDeviceInfo["DeviceId"].isNull())
|
||||
deviceInfoListObject.deviceId = valueDeviceInfoListDeviceInfo["DeviceId"].asString();
|
||||
if(!valueDeviceInfoListDeviceInfo["UserDeviceId"].isNull())
|
||||
deviceInfoListObject.userDeviceId = valueDeviceInfoListDeviceInfo["UserDeviceId"].asString();
|
||||
if(!valueDeviceInfoListDeviceInfo["BizType"].isNull())
|
||||
deviceInfoListObject.bizType = valueDeviceInfoListDeviceInfo["BizType"].asString();
|
||||
if(!valueDeviceInfoListDeviceInfo["BeginDay"].isNull())
|
||||
deviceInfoListObject.beginDay = valueDeviceInfoListDeviceInfo["BeginDay"].asString();
|
||||
if(!valueDeviceInfoListDeviceInfo["ExpiredDay"].isNull())
|
||||
deviceInfoListObject.expiredDay = valueDeviceInfoListDeviceInfo["ExpiredDay"].asString();
|
||||
if(!valueDeviceInfoListDeviceInfo["UserDeviceId"].isNull())
|
||||
deviceInfoListObject.userDeviceId = valueDeviceInfoListDeviceInfo["UserDeviceId"].asString();
|
||||
if(!valueDeviceInfoListDeviceInfo["DeviceId"].isNull())
|
||||
deviceInfoListObject.deviceId = valueDeviceInfoListDeviceInfo["DeviceId"].asString();
|
||||
if(!valueDeviceInfoListDeviceInfo["BeginDay"].isNull())
|
||||
deviceInfoListObject.beginDay = valueDeviceInfoListDeviceInfo["BeginDay"].asString();
|
||||
if(!valueDeviceInfoListDeviceInfo["BizType"].isNull())
|
||||
deviceInfoListObject.bizType = valueDeviceInfoListDeviceInfo["BizType"].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["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/DescribeFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeFaceVerifyRequest;
|
||||
|
||||
DescribeFaceVerifyRequest::DescribeFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFaceVerifyRequest::~DescribeFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFaceVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeFaceVerifyRequest;
|
||||
|
||||
DescribeFaceVerifyRequest::DescribeFaceVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
DescribeFaceVerifyRequest::~DescribeFaceVerifyRequest() {}
|
||||
|
||||
std::string DescribeFaceVerifyRequest::getCertifyId() const {
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
std::string DescribeFaceVerifyRequest::getPictureReturnType()const
|
||||
{
|
||||
return pictureReturnType_;
|
||||
void DescribeFaceVerifyRequest::setCertifyId(const std::string &certifyId) {
|
||||
certifyId_ = certifyId;
|
||||
setParameter(std::string("CertifyId"), certifyId);
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setPictureReturnType(const std::string& pictureReturnType)
|
||||
{
|
||||
pictureReturnType_ = pictureReturnType;
|
||||
setParameter("PictureReturnType", pictureReturnType);
|
||||
std::string DescribeFaceVerifyRequest::getPictureReturnType() const {
|
||||
return pictureReturnType_;
|
||||
}
|
||||
|
||||
long DescribeFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
void DescribeFaceVerifyRequest::setPictureReturnType(const std::string &pictureReturnType) {
|
||||
pictureReturnType_ = pictureReturnType;
|
||||
setParameter(std::string("PictureReturnType"), pictureReturnType);
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
long DescribeFaceVerifyRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setSceneId(long sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setParameter(std::string("SceneId"), std::to_string(sceneId));
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,12 @@ void DescribeFaceVerifyResult::parse(const std::string &payload)
|
||||
resultObject_.deviceToken = resultObjectNode["DeviceToken"].asString();
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["DeviceRisk"].isNull())
|
||||
resultObject_.deviceRisk = resultObjectNode["DeviceRisk"].asString();
|
||||
if(!resultObjectNode["Success"].isNull())
|
||||
resultObject_.success = resultObjectNode["Success"].asString();
|
||||
if(!resultObjectNode["UserInfo"].isNull())
|
||||
resultObject_.userInfo = resultObjectNode["UserInfo"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/DescribeOssUploadTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeOssUploadTokenRequest;
|
||||
|
||||
DescribeOssUploadTokenRequest::DescribeOssUploadTokenRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeOssUploadToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOssUploadTokenRequest::~DescribeOssUploadTokenRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeOssUploadTokenRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeOssUploadTokenRequest;
|
||||
|
||||
DescribeOssUploadTokenRequest::DescribeOssUploadTokenRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DescribeOssUploadToken") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeOssUploadTokenRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
DescribeOssUploadTokenRequest::~DescribeOssUploadTokenRequest() {}
|
||||
|
||||
std::string DescribeOssUploadTokenRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeOssUploadTokenRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void DescribeOssUploadTokenResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto ossUploadTokenNode = value["OssUploadToken"];
|
||||
if(!ossUploadTokenNode["Bucket"].isNull())
|
||||
ossUploadToken_.bucket = ossUploadTokenNode["Bucket"].asString();
|
||||
if(!ossUploadTokenNode["EndPoint"].isNull())
|
||||
ossUploadToken_.endPoint = ossUploadTokenNode["EndPoint"].asString();
|
||||
if(!ossUploadTokenNode["Path"].isNull())
|
||||
ossUploadToken_.path = ossUploadTokenNode["Path"].asString();
|
||||
if(!ossUploadTokenNode["Expired"].isNull())
|
||||
ossUploadToken_.expired = std::stol(ossUploadTokenNode["Expired"].asString());
|
||||
if(!ossUploadTokenNode["Secret"].isNull())
|
||||
ossUploadToken_.secret = ossUploadTokenNode["Secret"].asString();
|
||||
if(!ossUploadTokenNode["Key"].isNull())
|
||||
ossUploadToken_.key = ossUploadTokenNode["Key"].asString();
|
||||
if(!ossUploadTokenNode["Token"].isNull())
|
||||
ossUploadToken_.token = ossUploadTokenNode["Token"].asString();
|
||||
if(!ossUploadTokenNode["Secret"].isNull())
|
||||
ossUploadToken_.secret = ossUploadTokenNode["Secret"].asString();
|
||||
if(!ossUploadTokenNode["Expired"].isNull())
|
||||
ossUploadToken_.expired = std::stol(ossUploadTokenNode["Expired"].asString());
|
||||
if(!ossUploadTokenNode["Path"].isNull())
|
||||
ossUploadToken_.path = ossUploadTokenNode["Path"].asString();
|
||||
if(!ossUploadTokenNode["EndPoint"].isNull())
|
||||
ossUploadToken_.endPoint = ossUploadTokenNode["EndPoint"].asString();
|
||||
if(!ossUploadTokenNode["Bucket"].isNull())
|
||||
ossUploadToken_.bucket = ossUploadTokenNode["Bucket"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
81
cloudauth/src/model/DescribePageFaceVerifyDataRequest.cc
Normal file
81
cloudauth/src/model/DescribePageFaceVerifyDataRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/DescribePageFaceVerifyDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribePageFaceVerifyDataRequest;
|
||||
|
||||
DescribePageFaceVerifyDataRequest::DescribePageFaceVerifyDataRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DescribePageFaceVerifyData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePageFaceVerifyDataRequest::~DescribePageFaceVerifyDataRequest() {}
|
||||
|
||||
std::string DescribePageFaceVerifyDataRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void DescribePageFaceVerifyDataRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
long DescribePageFaceVerifyDataRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePageFaceVerifyDataRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataRequest::getStartDate() const {
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribePageFaceVerifyDataRequest::setStartDate(const std::string &startDate) {
|
||||
startDate_ = startDate;
|
||||
setParameter(std::string("StartDate"), startDate);
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataRequest::getEndDate() const {
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribePageFaceVerifyDataRequest::setEndDate(const std::string &endDate) {
|
||||
endDate_ = endDate;
|
||||
setParameter(std::string("EndDate"), endDate);
|
||||
}
|
||||
|
||||
long DescribePageFaceVerifyDataRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribePageFaceVerifyDataRequest::setSceneId(long sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setParameter(std::string("SceneId"), std::to_string(sceneId));
|
||||
}
|
||||
|
||||
long DescribePageFaceVerifyDataRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePageFaceVerifyDataRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
116
cloudauth/src/model/DescribePageFaceVerifyDataResult.cc
Normal file
116
cloudauth/src/model/DescribePageFaceVerifyDataResult.cc
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* 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/DescribePageFaceVerifyDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribePageFaceVerifyDataResult::DescribePageFaceVerifyDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePageFaceVerifyDataResult::DescribePageFaceVerifyDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePageFaceVerifyDataResult::~DescribePageFaceVerifyDataResult()
|
||||
{}
|
||||
|
||||
void DescribePageFaceVerifyDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["ItemsItem"];
|
||||
for (auto valueItemsItemsItem : allItemsNode)
|
||||
{
|
||||
ItemsItem itemsObject;
|
||||
if(!valueItemsItemsItem["Date"].isNull())
|
||||
itemsObject.date = valueItemsItemsItem["Date"].asString();
|
||||
if(!valueItemsItemsItem["TotalCount"].isNull())
|
||||
itemsObject.totalCount = valueItemsItemsItem["TotalCount"].asString();
|
||||
if(!valueItemsItemsItem["SuccessCount"].isNull())
|
||||
itemsObject.successCount = valueItemsItemsItem["SuccessCount"].asString();
|
||||
if(!valueItemsItemsItem["SceneId"].isNull())
|
||||
itemsObject.sceneId = valueItemsItemsItem["SceneId"].asString();
|
||||
if(!valueItemsItemsItem["SceneName"].isNull())
|
||||
itemsObject.sceneName = valueItemsItemsItem["SceneName"].asString();
|
||||
if(!valueItemsItemsItem["ProductCode"].isNull())
|
||||
itemsObject.productCode = valueItemsItemsItem["ProductCode"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = value["TotalPage"].asString();
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = value["CurrentPage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribePageFaceVerifyDataResult::ItemsItem> DescribePageFaceVerifyDataResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DescribePageFaceVerifyDataResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeSmartStatisticsPageListRequest;
|
||||
|
||||
DescribeSmartStatisticsPageListRequest::DescribeSmartStatisticsPageListRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DescribeSmartStatisticsPageList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSmartStatisticsPageListRequest::~DescribeSmartStatisticsPageListRequest() {}
|
||||
|
||||
std::string DescribeSmartStatisticsPageListRequest::getStartDate() const {
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribeSmartStatisticsPageListRequest::setStartDate(const std::string &startDate) {
|
||||
startDate_ = startDate;
|
||||
setParameter(std::string("StartDate"), startDate);
|
||||
}
|
||||
|
||||
std::string DescribeSmartStatisticsPageListRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSmartStatisticsPageListRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSmartStatisticsPageListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSmartStatisticsPageListRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeSmartStatisticsPageListRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeSmartStatisticsPageListRequest::setCurrentPage(const std::string ¤tPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), currentPage);
|
||||
}
|
||||
|
||||
std::string DescribeSmartStatisticsPageListRequest::getEndDate() const {
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribeSmartStatisticsPageListRequest::setEndDate(const std::string &endDate) {
|
||||
endDate_ = endDate;
|
||||
setParameter(std::string("EndDate"), endDate);
|
||||
}
|
||||
|
||||
std::string DescribeSmartStatisticsPageListRequest::getServiceCode() const {
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DescribeSmartStatisticsPageListRequest::setServiceCode(const std::string &serviceCode) {
|
||||
serviceCode_ = serviceCode;
|
||||
setParameter(std::string("ServiceCode"), serviceCode);
|
||||
}
|
||||
|
||||
std::string DescribeSmartStatisticsPageListRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeSmartStatisticsPageListRequest::setSceneId(const std::string &sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setParameter(std::string("SceneId"), sceneId);
|
||||
}
|
||||
|
||||
97
cloudauth/src/model/DescribeSmartStatisticsPageListResult.cc
Normal file
97
cloudauth/src/model/DescribeSmartStatisticsPageListResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeSmartStatisticsPageListResult::DescribeSmartStatisticsPageListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSmartStatisticsPageListResult::DescribeSmartStatisticsPageListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSmartStatisticsPageListResult::~DescribeSmartStatisticsPageListResult()
|
||||
{}
|
||||
|
||||
void DescribeSmartStatisticsPageListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["ItemsItem"];
|
||||
for (auto valueItemsItemsItem : allItemsNode)
|
||||
{
|
||||
ItemsItem itemsObject;
|
||||
if(!valueItemsItemsItem["Date"].isNull())
|
||||
itemsObject.date = valueItemsItemsItem["Date"].asString();
|
||||
if(!valueItemsItemsItem["SceneId"].isNull())
|
||||
itemsObject.sceneId = std::stol(valueItemsItemsItem["SceneId"].asString());
|
||||
if(!valueItemsItemsItem["SceneName"].isNull())
|
||||
itemsObject.sceneName = valueItemsItemsItem["SceneName"].asString();
|
||||
if(!valueItemsItemsItem["TotalCount"].isNull())
|
||||
itemsObject.totalCount = std::stoi(valueItemsItemsItem["TotalCount"].asString());
|
||||
if(!valueItemsItemsItem["SuccessCount"].isNull())
|
||||
itemsObject.successCount = std::stoi(valueItemsItemsItem["SuccessCount"].asString());
|
||||
if(!valueItemsItemsItem["PassRate"].isNull())
|
||||
itemsObject.passRate = valueItemsItemsItem["PassRate"].asString();
|
||||
if(!valueItemsItemsItem["ProductCode"].isNull())
|
||||
itemsObject.productCode = valueItemsItemsItem["ProductCode"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeSmartStatisticsPageListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeSmartStatisticsPageListResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
int DescribeSmartStatisticsPageListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeSmartStatisticsPageListResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSmartStatisticsPageListResult::ItemsItem> DescribeSmartStatisticsPageListResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/DescribeVerifyResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifyResultRequest;
|
||||
|
||||
DescribeVerifyResultRequest::DescribeVerifyResultRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVerifyResultRequest::~DescribeVerifyResultRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVerifyResultRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeVerifyResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifyResultRequest;
|
||||
|
||||
DescribeVerifyResultRequest::DescribeVerifyResultRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeVerifyResultRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
DescribeVerifyResultRequest::~DescribeVerifyResultRequest() {}
|
||||
|
||||
std::string DescribeVerifyResultRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyResultRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
void DescribeVerifyResultRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
void DescribeVerifyResultRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
std::string DescribeVerifyResultRequest::getBizId() const {
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void DescribeVerifyResultRequest::setBizId(const std::string &bizId) {
|
||||
bizId_ = bizId;
|
||||
setParameter(std::string("BizId"), bizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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", "2019-03-07", "DescribeVerifySDK")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVerifySDKRequest::~DescribeVerifySDKRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest;
|
||||
|
||||
DescribeVerifySDKRequest::DescribeVerifySDKRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifySDK") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeVerifySDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
DescribeVerifySDKRequest::~DescribeVerifySDKRequest() {}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
void DescribeVerifySDKRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
void DescribeVerifySDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
std::string DescribeVerifySDKRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void DescribeVerifySDKRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
void DescribeVerifySDKRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
std::string DescribeVerifySDKRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeVerifySDKRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,194 +1,162 @@
|
||||
/*
|
||||
* 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/DescribeVerifyTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifyTokenRequest;
|
||||
|
||||
DescribeVerifyTokenRequest::DescribeVerifyTokenRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVerifyTokenRequest::~DescribeVerifyTokenRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getFaceRetainedImageUrl()const
|
||||
{
|
||||
return faceRetainedImageUrl_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeVerifyTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifyTokenRequest;
|
||||
|
||||
DescribeVerifyTokenRequest::DescribeVerifyTokenRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyToken") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setFaceRetainedImageUrl(const std::string& faceRetainedImageUrl)
|
||||
{
|
||||
faceRetainedImageUrl_ = faceRetainedImageUrl;
|
||||
setParameter("FaceRetainedImageUrl", faceRetainedImageUrl);
|
||||
DescribeVerifyTokenRequest::~DescribeVerifyTokenRequest() {}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getFaceRetainedImageUrl() const {
|
||||
return faceRetainedImageUrl_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void DescribeVerifyTokenRequest::setFaceRetainedImageUrl(const std::string &faceRetainedImageUrl) {
|
||||
faceRetainedImageUrl_ = faceRetainedImageUrl;
|
||||
setParameter(std::string("FaceRetainedImageUrl"), faceRetainedImageUrl);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
std::string DescribeVerifyTokenRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getCallbackSeed()const
|
||||
{
|
||||
return callbackSeed_;
|
||||
void DescribeVerifyTokenRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setCallbackSeed(const std::string& callbackSeed)
|
||||
{
|
||||
callbackSeed_ = callbackSeed;
|
||||
setParameter("CallbackSeed", callbackSeed);
|
||||
std::string DescribeVerifyTokenRequest::getCallbackSeed() const {
|
||||
return callbackSeed_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getUserIp()const
|
||||
{
|
||||
return userIp_;
|
||||
void DescribeVerifyTokenRequest::setCallbackSeed(const std::string &callbackSeed) {
|
||||
callbackSeed_ = callbackSeed;
|
||||
setParameter(std::string("CallbackSeed"), callbackSeed);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setUserIp(const std::string& userIp)
|
||||
{
|
||||
userIp_ = userIp;
|
||||
setParameter("UserIp", userIp);
|
||||
std::string DescribeVerifyTokenRequest::getUserIp() const {
|
||||
return userIp_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getIdCardBackImageUrl()const
|
||||
{
|
||||
return idCardBackImageUrl_;
|
||||
void DescribeVerifyTokenRequest::setUserIp(const std::string &userIp) {
|
||||
userIp_ = userIp;
|
||||
setParameter(std::string("UserIp"), userIp);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setIdCardBackImageUrl(const std::string& idCardBackImageUrl)
|
||||
{
|
||||
idCardBackImageUrl_ = idCardBackImageUrl;
|
||||
setParameter("IdCardBackImageUrl", idCardBackImageUrl);
|
||||
std::string DescribeVerifyTokenRequest::getIdCardBackImageUrl() const {
|
||||
return idCardBackImageUrl_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getIdCardNumber()const
|
||||
{
|
||||
return idCardNumber_;
|
||||
void DescribeVerifyTokenRequest::setIdCardBackImageUrl(const std::string &idCardBackImageUrl) {
|
||||
idCardBackImageUrl_ = idCardBackImageUrl;
|
||||
setParameter(std::string("IdCardBackImageUrl"), idCardBackImageUrl);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setIdCardNumber(const std::string& idCardNumber)
|
||||
{
|
||||
idCardNumber_ = idCardNumber;
|
||||
setParameter("IdCardNumber", idCardNumber);
|
||||
std::string DescribeVerifyTokenRequest::getIdCardNumber() const {
|
||||
return idCardNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getIdCardFrontImageUrl()const
|
||||
{
|
||||
return idCardFrontImageUrl_;
|
||||
void DescribeVerifyTokenRequest::setIdCardNumber(const std::string &idCardNumber) {
|
||||
idCardNumber_ = idCardNumber;
|
||||
setParameter(std::string("IdCardNumber"), idCardNumber);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setIdCardFrontImageUrl(const std::string& idCardFrontImageUrl)
|
||||
{
|
||||
idCardFrontImageUrl_ = idCardFrontImageUrl;
|
||||
setParameter("IdCardFrontImageUrl", idCardFrontImageUrl);
|
||||
std::string DescribeVerifyTokenRequest::getIdCardFrontImageUrl() const {
|
||||
return idCardFrontImageUrl_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
void DescribeVerifyTokenRequest::setIdCardFrontImageUrl(const std::string &idCardFrontImageUrl) {
|
||||
idCardFrontImageUrl_ = idCardFrontImageUrl;
|
||||
setParameter(std::string("IdCardFrontImageUrl"), idCardFrontImageUrl);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
std::string DescribeVerifyTokenRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getPassedRedirectUrl()const
|
||||
{
|
||||
return passedRedirectUrl_;
|
||||
void DescribeVerifyTokenRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setPassedRedirectUrl(const std::string& passedRedirectUrl)
|
||||
{
|
||||
passedRedirectUrl_ = passedRedirectUrl;
|
||||
setParameter("PassedRedirectUrl", passedRedirectUrl);
|
||||
std::string DescribeVerifyTokenRequest::getPassedRedirectUrl() const {
|
||||
return passedRedirectUrl_;
|
||||
}
|
||||
|
||||
long DescribeVerifyTokenRequest::getUserRegistTime()const
|
||||
{
|
||||
return userRegistTime_;
|
||||
void DescribeVerifyTokenRequest::setPassedRedirectUrl(const std::string &passedRedirectUrl) {
|
||||
passedRedirectUrl_ = passedRedirectUrl;
|
||||
setParameter(std::string("PassedRedirectUrl"), passedRedirectUrl);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setUserRegistTime(long userRegistTime)
|
||||
{
|
||||
userRegistTime_ = userRegistTime;
|
||||
setParameter("UserRegistTime", std::to_string(userRegistTime));
|
||||
long DescribeVerifyTokenRequest::getUserRegistTime() const {
|
||||
return userRegistTime_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
void DescribeVerifyTokenRequest::setUserRegistTime(long userRegistTime) {
|
||||
userRegistTime_ = userRegistTime;
|
||||
setParameter(std::string("UserRegistTime"), std::to_string(userRegistTime));
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
std::string DescribeVerifyTokenRequest::getBizId() const {
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void DescribeVerifyTokenRequest::setBizId(const std::string &bizId) {
|
||||
bizId_ = bizId;
|
||||
setParameter(std::string("BizId"), bizId);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string DescribeVerifyTokenRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getUserPhoneNumber()const
|
||||
{
|
||||
return userPhoneNumber_;
|
||||
void DescribeVerifyTokenRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setUserPhoneNumber(const std::string& userPhoneNumber)
|
||||
{
|
||||
userPhoneNumber_ = userPhoneNumber;
|
||||
setParameter("UserPhoneNumber", userPhoneNumber);
|
||||
std::string DescribeVerifyTokenRequest::getUserPhoneNumber() const {
|
||||
return userPhoneNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getCallbackUrl()const
|
||||
{
|
||||
return callbackUrl_;
|
||||
void DescribeVerifyTokenRequest::setUserPhoneNumber(const std::string &userPhoneNumber) {
|
||||
userPhoneNumber_ = userPhoneNumber;
|
||||
setParameter(std::string("UserPhoneNumber"), userPhoneNumber);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
{
|
||||
callbackUrl_ = callbackUrl;
|
||||
setParameter("CallbackUrl", callbackUrl);
|
||||
std::string DescribeVerifyTokenRequest::getCallbackUrl() const {
|
||||
return callbackUrl_;
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getFailedRedirectUrl()const
|
||||
{
|
||||
return failedRedirectUrl_;
|
||||
void DescribeVerifyTokenRequest::setCallbackUrl(const std::string &callbackUrl) {
|
||||
callbackUrl_ = callbackUrl;
|
||||
setParameter(std::string("CallbackUrl"), callbackUrl);
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setFailedRedirectUrl(const std::string& failedRedirectUrl)
|
||||
{
|
||||
failedRedirectUrl_ = failedRedirectUrl;
|
||||
setParameter("FailedRedirectUrl", failedRedirectUrl);
|
||||
std::string DescribeVerifyTokenRequest::getFailedRedirectUrl() const {
|
||||
return failedRedirectUrl_;
|
||||
}
|
||||
|
||||
void DescribeVerifyTokenRequest::setFailedRedirectUrl(const std::string &failedRedirectUrl) {
|
||||
failedRedirectUrl_ = failedRedirectUrl;
|
||||
setParameter(std::string("FailedRedirectUrl"), failedRedirectUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void DescribeVerifyTokenResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto ossUploadTokenNode = value["OssUploadToken"];
|
||||
if(!ossUploadTokenNode["Bucket"].isNull())
|
||||
ossUploadToken_.bucket = ossUploadTokenNode["Bucket"].asString();
|
||||
if(!ossUploadTokenNode["EndPoint"].isNull())
|
||||
ossUploadToken_.endPoint = ossUploadTokenNode["EndPoint"].asString();
|
||||
if(!ossUploadTokenNode["Path"].isNull())
|
||||
ossUploadToken_.path = ossUploadTokenNode["Path"].asString();
|
||||
if(!ossUploadTokenNode["Expired"].isNull())
|
||||
ossUploadToken_.expired = std::stol(ossUploadTokenNode["Expired"].asString());
|
||||
if(!ossUploadTokenNode["Secret"].isNull())
|
||||
ossUploadToken_.secret = ossUploadTokenNode["Secret"].asString();
|
||||
if(!ossUploadTokenNode["Key"].isNull())
|
||||
ossUploadToken_.key = ossUploadTokenNode["Key"].asString();
|
||||
if(!ossUploadTokenNode["Token"].isNull())
|
||||
ossUploadToken_.token = ossUploadTokenNode["Token"].asString();
|
||||
if(!ossUploadTokenNode["Secret"].isNull())
|
||||
ossUploadToken_.secret = ossUploadTokenNode["Secret"].asString();
|
||||
if(!ossUploadTokenNode["Expired"].isNull())
|
||||
ossUploadToken_.expired = std::stol(ossUploadTokenNode["Expired"].asString());
|
||||
if(!ossUploadTokenNode["Path"].isNull())
|
||||
ossUploadToken_.path = ossUploadTokenNode["Path"].asString();
|
||||
if(!ossUploadTokenNode["EndPoint"].isNull())
|
||||
ossUploadToken_.endPoint = ossUploadTokenNode["EndPoint"].asString();
|
||||
if(!ossUploadTokenNode["Bucket"].isNull())
|
||||
ossUploadToken_.bucket = ossUploadTokenNode["Bucket"].asString();
|
||||
if(!value["VerifyPageUrl"].isNull())
|
||||
verifyPageUrl_ = value["VerifyPageUrl"].asString();
|
||||
if(!value["VerifyToken"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/DetectFaceAttributesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DetectFaceAttributesRequest;
|
||||
|
||||
DetectFaceAttributesRequest::DetectFaceAttributesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DetectFaceAttributes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectFaceAttributesRequest::~DetectFaceAttributesRequest()
|
||||
{}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DetectFaceAttributesRequest;
|
||||
|
||||
DetectFaceAttributesRequest::DetectFaceAttributesRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "DetectFaceAttributes") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setBodyParameter("BizType", bizType);
|
||||
DetectFaceAttributesRequest::~DetectFaceAttributesRequest() {}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getMaterialValue()const
|
||||
{
|
||||
return materialValue_;
|
||||
void DetectFaceAttributesRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setBodyParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setMaterialValue(const std::string& materialValue)
|
||||
{
|
||||
materialValue_ = materialValue;
|
||||
setBodyParameter("MaterialValue", materialValue);
|
||||
std::string DetectFaceAttributesRequest::getMaterialValue() const {
|
||||
return materialValue_;
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setMaterialValue(const std::string &materialValue) {
|
||||
materialValue_ = materialValue;
|
||||
setBodyParameter(std::string("MaterialValue"), materialValue);
|
||||
}
|
||||
|
||||
|
||||
54
cloudauth/src/model/Id2MetaVerifyRequest.cc
Normal file
54
cloudauth/src/model/Id2MetaVerifyRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/Id2MetaVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::Id2MetaVerifyRequest;
|
||||
|
||||
Id2MetaVerifyRequest::Id2MetaVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "Id2MetaVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
Id2MetaVerifyRequest::~Id2MetaVerifyRequest() {}
|
||||
|
||||
std::string Id2MetaVerifyRequest::getParamType() const {
|
||||
return paramType_;
|
||||
}
|
||||
|
||||
void Id2MetaVerifyRequest::setParamType(const std::string ¶mType) {
|
||||
paramType_ = paramType;
|
||||
setParameter(std::string("ParamType"), paramType);
|
||||
}
|
||||
|
||||
std::string Id2MetaVerifyRequest::getIdentifyNum() const {
|
||||
return identifyNum_;
|
||||
}
|
||||
|
||||
void Id2MetaVerifyRequest::setIdentifyNum(const std::string &identifyNum) {
|
||||
identifyNum_ = identifyNum;
|
||||
setParameter(std::string("IdentifyNum"), identifyNum);
|
||||
}
|
||||
|
||||
std::string Id2MetaVerifyRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void Id2MetaVerifyRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
66
cloudauth/src/model/Id2MetaVerifyResult.cc
Normal file
66
cloudauth/src/model/Id2MetaVerifyResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/Id2MetaVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
Id2MetaVerifyResult::Id2MetaVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Id2MetaVerifyResult::Id2MetaVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Id2MetaVerifyResult::~Id2MetaVerifyResult()
|
||||
{}
|
||||
|
||||
void Id2MetaVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["BizCode"].isNull())
|
||||
resultObject_.bizCode = resultObjectNode["BizCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
Id2MetaVerifyResult::ResultObject Id2MetaVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string Id2MetaVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string Id2MetaVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,271 +1,324 @@
|
||||
/*
|
||||
* 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/InitFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::InitFaceVerifyRequest;
|
||||
|
||||
InitFaceVerifyRequest::InitFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "InitFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InitFaceVerifyRequest::~InitFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string InitFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/InitFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::InitFaceVerifyRequest;
|
||||
|
||||
InitFaceVerifyRequest::InitFaceVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "InitFaceVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
InitFaceVerifyRequest::~InitFaceVerifyRequest() {}
|
||||
|
||||
std::string InitFaceVerifyRequest::getBirthday() const {
|
||||
return birthday_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getFaceContrastPicture()const
|
||||
{
|
||||
return faceContrastPicture_;
|
||||
void InitFaceVerifyRequest::setBirthday(const std::string &birthday) {
|
||||
birthday_ = birthday;
|
||||
setParameter(std::string("Birthday"), birthday);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
|
||||
{
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setBodyParameter("FaceContrastPicture", faceContrastPicture);
|
||||
std::string InitFaceVerifyRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void InitFaceVerifyRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
std::string InitFaceVerifyRequest::getFaceContrastPicture() const {
|
||||
return faceContrastPicture_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
void InitFaceVerifyRequest::setFaceContrastPicture(const std::string &faceContrastPicture) {
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setBodyParameter(std::string("FaceContrastPicture"), faceContrastPicture);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
std::string InitFaceVerifyRequest::getReadImg() const {
|
||||
return readImg_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
void InitFaceVerifyRequest::setReadImg(const std::string &readImg) {
|
||||
readImg_ = readImg;
|
||||
setParameter(std::string("ReadImg"), readImg);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setParameter("CertNo", certNo);
|
||||
std::string InitFaceVerifyRequest::getRarelyCharacters() const {
|
||||
return rarelyCharacters_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
void InitFaceVerifyRequest::setRarelyCharacters(const std::string &rarelyCharacters) {
|
||||
rarelyCharacters_ = rarelyCharacters;
|
||||
setParameter(std::string("RarelyCharacters"), rarelyCharacters);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setParameter("OuterOrderNo", outerOrderNo);
|
||||
std::string InitFaceVerifyRequest::getVoluntaryCustomizedContent() const {
|
||||
return voluntaryCustomizedContent_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertType()const
|
||||
{
|
||||
return certType_;
|
||||
void InitFaceVerifyRequest::setVoluntaryCustomizedContent(const std::string &voluntaryCustomizedContent) {
|
||||
voluntaryCustomizedContent_ = voluntaryCustomizedContent;
|
||||
setParameter(std::string("VoluntaryCustomizedContent"), voluntaryCustomizedContent);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setParameter("CertType", certType);
|
||||
std::string InitFaceVerifyRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getFaceContrastPictureUrl()const
|
||||
{
|
||||
return faceContrastPictureUrl_;
|
||||
void InitFaceVerifyRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl)
|
||||
{
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
|
||||
std::string InitFaceVerifyRequest::getCertifyId() const {
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getModel()const
|
||||
{
|
||||
return model_;
|
||||
void InitFaceVerifyRequest::setCertifyId(const std::string &certifyId) {
|
||||
certifyId_ = certifyId;
|
||||
setParameter(std::string("CertifyId"), certifyId);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setModel(const std::string& model)
|
||||
{
|
||||
model_ = model;
|
||||
setBodyParameter("Model", model);
|
||||
std::string InitFaceVerifyRequest::getEncryptType() const {
|
||||
return encryptType_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getMetaInfo()const
|
||||
{
|
||||
return metaInfo_;
|
||||
void InitFaceVerifyRequest::setEncryptType(const std::string &encryptType) {
|
||||
encryptType_ = encryptType;
|
||||
setParameter(std::string("EncryptType"), encryptType);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setMetaInfo(const std::string& metaInfo)
|
||||
{
|
||||
metaInfo_ = metaInfo;
|
||||
setParameter("MetaInfo", metaInfo);
|
||||
std::string InitFaceVerifyRequest::getMode() const {
|
||||
return mode_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getOssObjectName()const
|
||||
{
|
||||
return ossObjectName_;
|
||||
void InitFaceVerifyRequest::setMode(const std::string &mode) {
|
||||
mode_ = mode;
|
||||
setParameter(std::string("Mode"), mode);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setParameter("OssObjectName", ossObjectName);
|
||||
std::string InitFaceVerifyRequest::getCertNo() const {
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
void InitFaceVerifyRequest::setCertNo(const std::string &certNo) {
|
||||
certNo_ = certNo;
|
||||
setParameter(std::string("CertNo"), certNo);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setParameter("CertName", certName);
|
||||
std::string InitFaceVerifyRequest::getOuterOrderNo() const {
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
void InitFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) {
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setParameter(std::string("OuterOrderNo"), outerOrderNo);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setParameter("Ip", ip);
|
||||
std::string InitFaceVerifyRequest::getCertType() const {
|
||||
return certType_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
void InitFaceVerifyRequest::setCertType(const std::string &certType) {
|
||||
certType_ = certType;
|
||||
setParameter(std::string("CertType"), certType);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setParameter("Mobile", mobile);
|
||||
std::string InitFaceVerifyRequest::getFaceContrastPictureUrl() const {
|
||||
return faceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getAuthId()const
|
||||
{
|
||||
return authId_;
|
||||
void InitFaceVerifyRequest::setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl) {
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setParameter(std::string("FaceContrastPictureUrl"), faceContrastPictureUrl);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setAuthId(const std::string& authId)
|
||||
{
|
||||
authId_ = authId;
|
||||
setBodyParameter("AuthId", authId);
|
||||
std::string InitFaceVerifyRequest::getModel() const {
|
||||
return model_;
|
||||
}
|
||||
|
||||
long InitFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
void InitFaceVerifyRequest::setModel(const std::string &model) {
|
||||
model_ = model;
|
||||
setBodyParameter(std::string("Model"), model);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
std::string InitFaceVerifyRequest::getSuitableType() const {
|
||||
return suitableType_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
void InitFaceVerifyRequest::setSuitableType(const std::string &suitableType) {
|
||||
suitableType_ = suitableType;
|
||||
setParameter(std::string("SuitableType"), suitableType);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter("OssBucketName", ossBucketName);
|
||||
std::string InitFaceVerifyRequest::getCertifyUrlStyle() const {
|
||||
return certifyUrlStyle_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCallbackToken()const
|
||||
{
|
||||
return callbackToken_;
|
||||
void InitFaceVerifyRequest::setCertifyUrlStyle(const std::string &certifyUrlStyle) {
|
||||
certifyUrlStyle_ = certifyUrlStyle;
|
||||
setParameter(std::string("CertifyUrlStyle"), certifyUrlStyle);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCallbackToken(const std::string& callbackToken)
|
||||
{
|
||||
callbackToken_ = callbackToken;
|
||||
setParameter("CallbackToken", callbackToken);
|
||||
std::string InitFaceVerifyRequest::getMetaInfo() const {
|
||||
return metaInfo_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getReturnUrl()const
|
||||
{
|
||||
return returnUrl_;
|
||||
void InitFaceVerifyRequest::setMetaInfo(const std::string &metaInfo) {
|
||||
metaInfo_ = metaInfo;
|
||||
setParameter(std::string("MetaInfo"), metaInfo);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setReturnUrl(const std::string& returnUrl)
|
||||
{
|
||||
returnUrl_ = returnUrl;
|
||||
setParameter("ReturnUrl", returnUrl);
|
||||
std::string InitFaceVerifyRequest::getOssObjectName() const {
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCallbackUrl()const
|
||||
{
|
||||
return callbackUrl_;
|
||||
void InitFaceVerifyRequest::setOssObjectName(const std::string &ossObjectName) {
|
||||
ossObjectName_ = ossObjectName;
|
||||
setParameter(std::string("OssObjectName"), ossObjectName);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
{
|
||||
callbackUrl_ = callbackUrl;
|
||||
setParameter("CallbackUrl", callbackUrl);
|
||||
std::string InitFaceVerifyRequest::getValidityDate() const {
|
||||
return validityDate_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
void InitFaceVerifyRequest::setValidityDate(const std::string &validityDate) {
|
||||
validityDate_ = validityDate;
|
||||
setParameter(std::string("ValidityDate"), validityDate);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCrop(const std::string& crop)
|
||||
{
|
||||
crop_ = crop;
|
||||
setBodyParameter("Crop", crop);
|
||||
std::string InitFaceVerifyRequest::getCertName() const {
|
||||
return certName_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertifyUrlType()const
|
||||
{
|
||||
return certifyUrlType_;
|
||||
void InitFaceVerifyRequest::setCertName(const std::string &certName) {
|
||||
certName_ = certName;
|
||||
setParameter(std::string("CertName"), certName);
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertifyUrlType(const std::string& certifyUrlType)
|
||||
{
|
||||
certifyUrlType_ = certifyUrlType;
|
||||
setParameter("CertifyUrlType", certifyUrlType);
|
||||
std::string InitFaceVerifyRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getMobile() const {
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setMobile(const std::string &mobile) {
|
||||
mobile_ = mobile;
|
||||
setParameter(std::string("Mobile"), mobile);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getFaceGuardOutput() const {
|
||||
return faceGuardOutput_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setFaceGuardOutput(const std::string &faceGuardOutput) {
|
||||
faceGuardOutput_ = faceGuardOutput;
|
||||
setParameter(std::string("FaceGuardOutput"), faceGuardOutput);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getAuthId() const {
|
||||
return authId_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setAuthId(const std::string &authId) {
|
||||
authId_ = authId;
|
||||
setBodyParameter(std::string("AuthId"), authId);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getProcedurePriority() const {
|
||||
return procedurePriority_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setProcedurePriority(const std::string &procedurePriority) {
|
||||
procedurePriority_ = procedurePriority;
|
||||
setParameter(std::string("ProcedurePriority"), procedurePriority);
|
||||
}
|
||||
|
||||
long InitFaceVerifyRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setSceneId(long sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setParameter(std::string("SceneId"), std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getOssBucketName() const {
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setOssBucketName(const std::string &ossBucketName) {
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter(std::string("OssBucketName"), ossBucketName);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCallbackToken() const {
|
||||
return callbackToken_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCallbackToken(const std::string &callbackToken) {
|
||||
callbackToken_ = callbackToken;
|
||||
setParameter(std::string("CallbackToken"), callbackToken);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getReturnUrl() const {
|
||||
return returnUrl_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setReturnUrl(const std::string &returnUrl) {
|
||||
returnUrl_ = returnUrl;
|
||||
setParameter(std::string("ReturnUrl"), returnUrl);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCallbackUrl() const {
|
||||
return callbackUrl_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCallbackUrl(const std::string &callbackUrl) {
|
||||
callbackUrl_ = callbackUrl;
|
||||
setParameter(std::string("CallbackUrl"), callbackUrl);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCrop() const {
|
||||
return crop_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCrop(const std::string &crop) {
|
||||
crop_ = crop;
|
||||
setBodyParameter(std::string("Crop"), crop);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertifyUrlType() const {
|
||||
return certifyUrlType_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertifyUrlType(const std::string &certifyUrlType) {
|
||||
certifyUrlType_ = certifyUrlType;
|
||||
setParameter(std::string("CertifyUrlType"), certifyUrlType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,183 +1,153 @@
|
||||
/*
|
||||
* 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/LivenessFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::LivenessFaceVerifyRequest;
|
||||
|
||||
LivenessFaceVerifyRequest::LivenessFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "LivenessFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LivenessFaceVerifyRequest::~LivenessFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::LivenessFaceVerifyRequest;
|
||||
|
||||
LivenessFaceVerifyRequest::LivenessFaceVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "LivenessFaceVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
LivenessFaceVerifyRequest::~LivenessFaceVerifyRequest() {}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getFaceContrastPicture()const
|
||||
{
|
||||
return faceContrastPicture_;
|
||||
void LivenessFaceVerifyRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setBodyParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
|
||||
{
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setBodyParameter("FaceContrastPicture", faceContrastPicture);
|
||||
std::string LivenessFaceVerifyRequest::getFaceContrastPicture() const {
|
||||
return faceContrastPicture_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getDeviceToken()const
|
||||
{
|
||||
return deviceToken_;
|
||||
void LivenessFaceVerifyRequest::setFaceContrastPicture(const std::string &faceContrastPicture) {
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setBodyParameter(std::string("FaceContrastPicture"), faceContrastPicture);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setDeviceToken(const std::string& deviceToken)
|
||||
{
|
||||
deviceToken_ = deviceToken;
|
||||
setBodyParameter("DeviceToken", deviceToken);
|
||||
std::string LivenessFaceVerifyRequest::getDeviceToken() const {
|
||||
return deviceToken_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void LivenessFaceVerifyRequest::setDeviceToken(const std::string &deviceToken) {
|
||||
deviceToken_ = deviceToken;
|
||||
setBodyParameter(std::string("DeviceToken"), deviceToken);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
std::string LivenessFaceVerifyRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
void LivenessFaceVerifyRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setBodyParameter("CertifyId", certifyId);
|
||||
std::string LivenessFaceVerifyRequest::getCertifyId() const {
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
void LivenessFaceVerifyRequest::setCertifyId(const std::string &certifyId) {
|
||||
certifyId_ = certifyId;
|
||||
setBodyParameter(std::string("CertifyId"), certifyId);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
std::string LivenessFaceVerifyRequest::getOuterOrderNo() const {
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getFaceContrastPictureUrl()const
|
||||
{
|
||||
return faceContrastPictureUrl_;
|
||||
void LivenessFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) {
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter(std::string("OuterOrderNo"), outerOrderNo);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl)
|
||||
{
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
|
||||
std::string LivenessFaceVerifyRequest::getFaceContrastPictureUrl() const {
|
||||
return faceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getModel()const
|
||||
{
|
||||
return model_;
|
||||
void LivenessFaceVerifyRequest::setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl) {
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setBodyParameter(std::string("FaceContrastPictureUrl"), faceContrastPictureUrl);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setModel(const std::string& model)
|
||||
{
|
||||
model_ = model;
|
||||
setParameter("Model", model);
|
||||
std::string LivenessFaceVerifyRequest::getModel() const {
|
||||
return model_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getOssObjectName()const
|
||||
{
|
||||
return ossObjectName_;
|
||||
void LivenessFaceVerifyRequest::setModel(const std::string &model) {
|
||||
model_ = model;
|
||||
setParameter(std::string("Model"), model);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter("OssObjectName", ossObjectName);
|
||||
std::string LivenessFaceVerifyRequest::getOssObjectName() const {
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
void LivenessFaceVerifyRequest::setOssObjectName(const std::string &ossObjectName) {
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter(std::string("OssObjectName"), ossObjectName);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
std::string LivenessFaceVerifyRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
void LivenessFaceVerifyRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setBodyParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
std::string LivenessFaceVerifyRequest::getMobile() const {
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
long LivenessFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
void LivenessFaceVerifyRequest::setMobile(const std::string &mobile) {
|
||||
mobile_ = mobile;
|
||||
setBodyParameter(std::string("Mobile"), mobile);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
long LivenessFaceVerifyRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
void LivenessFaceVerifyRequest::setSceneId(long sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter(std::string("SceneId"), std::to_string(sceneId));
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setBodyParameter("OssBucketName", ossBucketName);
|
||||
std::string LivenessFaceVerifyRequest::getOssBucketName() const {
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
void LivenessFaceVerifyRequest::setOssBucketName(const std::string &ossBucketName) {
|
||||
ossBucketName_ = ossBucketName;
|
||||
setBodyParameter(std::string("OssBucketName"), ossBucketName);
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setCrop(const std::string& crop)
|
||||
{
|
||||
crop_ = crop;
|
||||
setBodyParameter("Crop", crop);
|
||||
std::string LivenessFaceVerifyRequest::getCrop() const {
|
||||
return crop_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setCrop(const std::string &crop) {
|
||||
crop_ = crop;
|
||||
setBodyParameter(std::string("Crop"), crop);
|
||||
}
|
||||
|
||||
|
||||
63
cloudauth/src/model/Mobile3MetaDetailVerifyRequest.cc
Normal file
63
cloudauth/src/model/Mobile3MetaDetailVerifyRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/Mobile3MetaDetailVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::Mobile3MetaDetailVerifyRequest;
|
||||
|
||||
Mobile3MetaDetailVerifyRequest::Mobile3MetaDetailVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "Mobile3MetaDetailVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
Mobile3MetaDetailVerifyRequest::~Mobile3MetaDetailVerifyRequest() {}
|
||||
|
||||
std::string Mobile3MetaDetailVerifyRequest::getParamType() const {
|
||||
return paramType_;
|
||||
}
|
||||
|
||||
void Mobile3MetaDetailVerifyRequest::setParamType(const std::string ¶mType) {
|
||||
paramType_ = paramType;
|
||||
setParameter(std::string("ParamType"), paramType);
|
||||
}
|
||||
|
||||
std::string Mobile3MetaDetailVerifyRequest::getMobile() const {
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void Mobile3MetaDetailVerifyRequest::setMobile(const std::string &mobile) {
|
||||
mobile_ = mobile;
|
||||
setParameter(std::string("Mobile"), mobile);
|
||||
}
|
||||
|
||||
std::string Mobile3MetaDetailVerifyRequest::getIdentifyNum() const {
|
||||
return identifyNum_;
|
||||
}
|
||||
|
||||
void Mobile3MetaDetailVerifyRequest::setIdentifyNum(const std::string &identifyNum) {
|
||||
identifyNum_ = identifyNum;
|
||||
setParameter(std::string("IdentifyNum"), identifyNum);
|
||||
}
|
||||
|
||||
std::string Mobile3MetaDetailVerifyRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void Mobile3MetaDetailVerifyRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
70
cloudauth/src/model/Mobile3MetaDetailVerifyResult.cc
Normal file
70
cloudauth/src/model/Mobile3MetaDetailVerifyResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/Mobile3MetaDetailVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
Mobile3MetaDetailVerifyResult::Mobile3MetaDetailVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Mobile3MetaDetailVerifyResult::Mobile3MetaDetailVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Mobile3MetaDetailVerifyResult::~Mobile3MetaDetailVerifyResult()
|
||||
{}
|
||||
|
||||
void Mobile3MetaDetailVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["BizCode"].isNull())
|
||||
resultObject_.bizCode = resultObjectNode["BizCode"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["IspName"].isNull())
|
||||
resultObject_.ispName = resultObjectNode["IspName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
Mobile3MetaDetailVerifyResult::ResultObject Mobile3MetaDetailVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string Mobile3MetaDetailVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string Mobile3MetaDetailVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
cloudauth/src/model/Mobile3MetaSimpleVerifyRequest.cc
Normal file
63
cloudauth/src/model/Mobile3MetaSimpleVerifyRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/Mobile3MetaSimpleVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::Mobile3MetaSimpleVerifyRequest;
|
||||
|
||||
Mobile3MetaSimpleVerifyRequest::Mobile3MetaSimpleVerifyRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "Mobile3MetaSimpleVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
Mobile3MetaSimpleVerifyRequest::~Mobile3MetaSimpleVerifyRequest() {}
|
||||
|
||||
std::string Mobile3MetaSimpleVerifyRequest::getParamType() const {
|
||||
return paramType_;
|
||||
}
|
||||
|
||||
void Mobile3MetaSimpleVerifyRequest::setParamType(const std::string ¶mType) {
|
||||
paramType_ = paramType;
|
||||
setParameter(std::string("ParamType"), paramType);
|
||||
}
|
||||
|
||||
std::string Mobile3MetaSimpleVerifyRequest::getMobile() const {
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void Mobile3MetaSimpleVerifyRequest::setMobile(const std::string &mobile) {
|
||||
mobile_ = mobile;
|
||||
setParameter(std::string("Mobile"), mobile);
|
||||
}
|
||||
|
||||
std::string Mobile3MetaSimpleVerifyRequest::getIdentifyNum() const {
|
||||
return identifyNum_;
|
||||
}
|
||||
|
||||
void Mobile3MetaSimpleVerifyRequest::setIdentifyNum(const std::string &identifyNum) {
|
||||
identifyNum_ = identifyNum;
|
||||
setParameter(std::string("IdentifyNum"), identifyNum);
|
||||
}
|
||||
|
||||
std::string Mobile3MetaSimpleVerifyRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void Mobile3MetaSimpleVerifyRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
68
cloudauth/src/model/Mobile3MetaSimpleVerifyResult.cc
Normal file
68
cloudauth/src/model/Mobile3MetaSimpleVerifyResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/Mobile3MetaSimpleVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
Mobile3MetaSimpleVerifyResult::Mobile3MetaSimpleVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Mobile3MetaSimpleVerifyResult::Mobile3MetaSimpleVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Mobile3MetaSimpleVerifyResult::~Mobile3MetaSimpleVerifyResult()
|
||||
{}
|
||||
|
||||
void Mobile3MetaSimpleVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["BizCode"].isNull())
|
||||
resultObject_.bizCode = resultObjectNode["BizCode"].asString();
|
||||
if(!resultObjectNode["IspName"].isNull())
|
||||
resultObject_.ispName = resultObjectNode["IspName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
Mobile3MetaSimpleVerifyResult::ResultObject Mobile3MetaSimpleVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string Mobile3MetaSimpleVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string Mobile3MetaSimpleVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest;
|
||||
|
||||
ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "ModifyDeviceInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getUserDeviceId()const
|
||||
{
|
||||
return userDeviceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest;
|
||||
|
||||
ModifyDeviceInfoRequest::ModifyDeviceInfoRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "ModifyDeviceInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setParameter("UserDeviceId", userDeviceId);
|
||||
ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest() {}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getUserDeviceId() const {
|
||||
return userDeviceId_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
void ModifyDeviceInfoRequest::setUserDeviceId(const std::string &userDeviceId) {
|
||||
userDeviceId_ = userDeviceId;
|
||||
setParameter(std::string("UserDeviceId"), userDeviceId);
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
std::string ModifyDeviceInfoRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getExpiredDay()const
|
||||
{
|
||||
return expiredDay_;
|
||||
void ModifyDeviceInfoRequest::setDuration(const std::string &duration) {
|
||||
duration_ = duration;
|
||||
setParameter(std::string("Duration"), duration);
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setExpiredDay(const std::string& expiredDay)
|
||||
{
|
||||
expiredDay_ = expiredDay;
|
||||
setParameter("ExpiredDay", expiredDay);
|
||||
std::string ModifyDeviceInfoRequest::getExpiredDay() const {
|
||||
return expiredDay_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
void ModifyDeviceInfoRequest::setExpiredDay(const std::string &expiredDay) {
|
||||
expiredDay_ = expiredDay;
|
||||
setParameter(std::string("ExpiredDay"), expiredDay);
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
std::string ModifyDeviceInfoRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
void ModifyDeviceInfoRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
std::string ModifyDeviceInfoRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
void ModifyDeviceInfoRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
std::string ModifyDeviceInfoRequest::getDeviceId() const {
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
void ModifyDeviceInfoRequest::setDeviceId(const std::string &deviceId) {
|
||||
deviceId_ = deviceId;
|
||||
setParameter(std::string("DeviceId"), deviceId);
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
std::string ModifyDeviceInfoRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void ModifyDeviceInfoRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void ModifyDeviceInfoResult::parse(const std::string &payload)
|
||||
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["DeviceId"].isNull())
|
||||
deviceId_ = value["DeviceId"].asString();
|
||||
if(!value["ExpiredDay"].isNull())
|
||||
expiredDay_ = value["ExpiredDay"].asString();
|
||||
if(!value["BeginDay"].isNull())
|
||||
beginDay_ = value["BeginDay"].asString();
|
||||
if(!value["BizType"].isNull())
|
||||
bizType_ = value["BizType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/VerifyMaterialRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::VerifyMaterialRequest;
|
||||
|
||||
VerifyMaterialRequest::VerifyMaterialRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "VerifyMaterial")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VerifyMaterialRequest::~VerifyMaterialRequest()
|
||||
{}
|
||||
|
||||
std::string VerifyMaterialRequest::getFaceImageUrl()const
|
||||
{
|
||||
return faceImageUrl_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/VerifyMaterialRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::VerifyMaterialRequest;
|
||||
|
||||
VerifyMaterialRequest::VerifyMaterialRequest()
|
||||
: RpcServiceRequest("cloudauth", "2019-03-07", "VerifyMaterial") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setFaceImageUrl(const std::string& faceImageUrl)
|
||||
{
|
||||
faceImageUrl_ = faceImageUrl;
|
||||
setParameter("FaceImageUrl", faceImageUrl);
|
||||
VerifyMaterialRequest::~VerifyMaterialRequest() {}
|
||||
|
||||
std::string VerifyMaterialRequest::getFaceImageUrl() const {
|
||||
return faceImageUrl_;
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void VerifyMaterialRequest::setFaceImageUrl(const std::string &faceImageUrl) {
|
||||
faceImageUrl_ = faceImageUrl;
|
||||
setParameter(std::string("FaceImageUrl"), faceImageUrl);
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
std::string VerifyMaterialRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getIdCardBackImageUrl()const
|
||||
{
|
||||
return idCardBackImageUrl_;
|
||||
void VerifyMaterialRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setIdCardBackImageUrl(const std::string& idCardBackImageUrl)
|
||||
{
|
||||
idCardBackImageUrl_ = idCardBackImageUrl;
|
||||
setParameter("IdCardBackImageUrl", idCardBackImageUrl);
|
||||
std::string VerifyMaterialRequest::getIdCardBackImageUrl() const {
|
||||
return idCardBackImageUrl_;
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getIdCardNumber()const
|
||||
{
|
||||
return idCardNumber_;
|
||||
void VerifyMaterialRequest::setIdCardBackImageUrl(const std::string &idCardBackImageUrl) {
|
||||
idCardBackImageUrl_ = idCardBackImageUrl;
|
||||
setParameter(std::string("IdCardBackImageUrl"), idCardBackImageUrl);
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setIdCardNumber(const std::string& idCardNumber)
|
||||
{
|
||||
idCardNumber_ = idCardNumber;
|
||||
setParameter("IdCardNumber", idCardNumber);
|
||||
std::string VerifyMaterialRequest::getIdCardNumber() const {
|
||||
return idCardNumber_;
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getIdCardFrontImageUrl()const
|
||||
{
|
||||
return idCardFrontImageUrl_;
|
||||
void VerifyMaterialRequest::setIdCardNumber(const std::string &idCardNumber) {
|
||||
idCardNumber_ = idCardNumber;
|
||||
setParameter(std::string("IdCardNumber"), idCardNumber);
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setIdCardFrontImageUrl(const std::string& idCardFrontImageUrl)
|
||||
{
|
||||
idCardFrontImageUrl_ = idCardFrontImageUrl;
|
||||
setParameter("IdCardFrontImageUrl", idCardFrontImageUrl);
|
||||
std::string VerifyMaterialRequest::getIdCardFrontImageUrl() const {
|
||||
return idCardFrontImageUrl_;
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
void VerifyMaterialRequest::setIdCardFrontImageUrl(const std::string &idCardFrontImageUrl) {
|
||||
idCardFrontImageUrl_ = idCardFrontImageUrl;
|
||||
setParameter(std::string("IdCardFrontImageUrl"), idCardFrontImageUrl);
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
std::string VerifyMaterialRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
void VerifyMaterialRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
std::string VerifyMaterialRequest::getBizId() const {
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void VerifyMaterialRequest::setBizId(const std::string &bizId) {
|
||||
bizId_ = bizId;
|
||||
setParameter(std::string("BizId"), bizId);
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string VerifyMaterialRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void VerifyMaterialRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,47 +40,47 @@ void VerifyMaterialResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto materialNode = value["Material"];
|
||||
if(!materialNode["FaceImageUrl"].isNull())
|
||||
material_.faceImageUrl = materialNode["FaceImageUrl"].asString();
|
||||
if(!materialNode["IdCardName"].isNull())
|
||||
material_.idCardName = materialNode["IdCardName"].asString();
|
||||
if(!materialNode["IdCardNumber"].isNull())
|
||||
material_.idCardNumber = materialNode["IdCardNumber"].asString();
|
||||
if(!materialNode["FaceQuality"].isNull())
|
||||
material_.faceQuality = materialNode["FaceQuality"].asString();
|
||||
if(!materialNode["FaceGlobalUrl"].isNull())
|
||||
material_.faceGlobalUrl = materialNode["FaceGlobalUrl"].asString();
|
||||
if(!materialNode["FaceImageUrl"].isNull())
|
||||
material_.faceImageUrl = materialNode["FaceImageUrl"].asString();
|
||||
if(!materialNode["FaceMask"].isNull())
|
||||
material_.faceMask = materialNode["FaceMask"].asString();
|
||||
if(!materialNode["IdCardName"].isNull())
|
||||
material_.idCardName = materialNode["IdCardName"].asString();
|
||||
if(!materialNode["FaceQuality"].isNull())
|
||||
material_.faceQuality = materialNode["FaceQuality"].asString();
|
||||
auto idCardInfoNode = materialNode["IdCardInfo"];
|
||||
if(!idCardInfoNode["Number"].isNull())
|
||||
material_.idCardInfo.number = idCardInfoNode["Number"].asString();
|
||||
if(!idCardInfoNode["Address"].isNull())
|
||||
material_.idCardInfo.address = idCardInfoNode["Address"].asString();
|
||||
if(!idCardInfoNode["Nationality"].isNull())
|
||||
material_.idCardInfo.nationality = idCardInfoNode["Nationality"].asString();
|
||||
if(!idCardInfoNode["EndDate"].isNull())
|
||||
material_.idCardInfo.endDate = idCardInfoNode["EndDate"].asString();
|
||||
if(!idCardInfoNode["FrontImageUrl"].isNull())
|
||||
material_.idCardInfo.frontImageUrl = idCardInfoNode["FrontImageUrl"].asString();
|
||||
if(!idCardInfoNode["Authority"].isNull())
|
||||
material_.idCardInfo.authority = idCardInfoNode["Authority"].asString();
|
||||
if(!idCardInfoNode["Sex"].isNull())
|
||||
material_.idCardInfo.sex = idCardInfoNode["Sex"].asString();
|
||||
if(!idCardInfoNode["Name"].isNull())
|
||||
material_.idCardInfo.name = idCardInfoNode["Name"].asString();
|
||||
if(!idCardInfoNode["Birth"].isNull())
|
||||
material_.idCardInfo.birth = idCardInfoNode["Birth"].asString();
|
||||
if(!idCardInfoNode["BackImageUrl"].isNull())
|
||||
material_.idCardInfo.backImageUrl = idCardInfoNode["BackImageUrl"].asString();
|
||||
if(!idCardInfoNode["EndDate"].isNull())
|
||||
material_.idCardInfo.endDate = idCardInfoNode["EndDate"].asString();
|
||||
if(!idCardInfoNode["Authority"].isNull())
|
||||
material_.idCardInfo.authority = idCardInfoNode["Authority"].asString();
|
||||
if(!idCardInfoNode["Address"].isNull())
|
||||
material_.idCardInfo.address = idCardInfoNode["Address"].asString();
|
||||
if(!idCardInfoNode["Number"].isNull())
|
||||
material_.idCardInfo.number = idCardInfoNode["Number"].asString();
|
||||
if(!idCardInfoNode["StartDate"].isNull())
|
||||
material_.idCardInfo.startDate = idCardInfoNode["StartDate"].asString();
|
||||
if(!value["VerifyToken"].isNull())
|
||||
verifyToken_ = value["VerifyToken"].asString();
|
||||
if(!value["VerifyStatus"].isNull())
|
||||
verifyStatus_ = std::stoi(value["VerifyStatus"].asString());
|
||||
if(!idCardInfoNode["BackImageUrl"].isNull())
|
||||
material_.idCardInfo.backImageUrl = idCardInfoNode["BackImageUrl"].asString();
|
||||
if(!idCardInfoNode["Nationality"].isNull())
|
||||
material_.idCardInfo.nationality = idCardInfoNode["Nationality"].asString();
|
||||
if(!idCardInfoNode["Birth"].isNull())
|
||||
material_.idCardInfo.birth = idCardInfoNode["Birth"].asString();
|
||||
if(!idCardInfoNode["Name"].isNull())
|
||||
material_.idCardInfo.name = idCardInfoNode["Name"].asString();
|
||||
if(!idCardInfoNode["FrontImageUrl"].isNull())
|
||||
material_.idCardInfo.frontImageUrl = idCardInfoNode["FrontImageUrl"].asString();
|
||||
if(!value["AuthorityComparisionScore"].isNull())
|
||||
authorityComparisionScore_ = std::stof(value["AuthorityComparisionScore"].asString());
|
||||
if(!value["VerifyStatus"].isNull())
|
||||
verifyStatus_ = std::stoi(value["VerifyStatus"].asString());
|
||||
if(!value["VerifyToken"].isNull())
|
||||
verifyToken_ = value["VerifyToken"].asString();
|
||||
if(!value["IdCardFaceComparisonScore"].isNull())
|
||||
idCardFaceComparisonScore_ = std::stof(value["IdCardFaceComparisonScore"].asString());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user