Release GenRealPersonVerificationToken GetRealPersonVerificationResult.
This commit is contained in:
@@ -51,6 +51,42 @@ FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::strin
|
||||
FacebodyClient::~FacebodyClient()
|
||||
{}
|
||||
|
||||
FacebodyClient::AddBodyTraceOutcome FacebodyClient::addBodyTrace(const AddBodyTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddBodyTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddBodyTraceOutcome(AddBodyTraceResult(outcome.result()));
|
||||
else
|
||||
return AddBodyTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::addBodyTraceAsync(const AddBodyTraceRequest& request, const AddBodyTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addBodyTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::AddBodyTraceOutcomeCallable FacebodyClient::addBodyTraceCallable(const AddBodyTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddBodyTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addBodyTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::AddFaceOutcome FacebodyClient::addFace(const AddFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +303,78 @@ FacebodyClient::CountCrowdOutcomeCallable FacebodyClient::countCrowdCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::CreateBodyDbOutcome FacebodyClient::createBodyDb(const CreateBodyDbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBodyDbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBodyDbOutcome(CreateBodyDbResult(outcome.result()));
|
||||
else
|
||||
return CreateBodyDbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::createBodyDbAsync(const CreateBodyDbRequest& request, const CreateBodyDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBodyDb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::CreateBodyDbOutcomeCallable FacebodyClient::createBodyDbCallable(const CreateBodyDbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBodyDbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBodyDb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::CreateBodyPersonOutcome FacebodyClient::createBodyPerson(const CreateBodyPersonRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBodyPersonOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBodyPersonOutcome(CreateBodyPersonResult(outcome.result()));
|
||||
else
|
||||
return CreateBodyPersonOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::createBodyPersonAsync(const CreateBodyPersonRequest& request, const CreateBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBodyPerson(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::CreateBodyPersonOutcomeCallable FacebodyClient::createBodyPersonCallable(const CreateBodyPersonRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBodyPersonOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBodyPerson(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::CreateFaceDbOutcome FacebodyClient::createFaceDb(const CreateFaceDbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +411,78 @@ FacebodyClient::CreateFaceDbOutcomeCallable FacebodyClient::createFaceDbCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteBodyDbOutcome FacebodyClient::deleteBodyDb(const DeleteBodyDbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteBodyDbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteBodyDbOutcome(DeleteBodyDbResult(outcome.result()));
|
||||
else
|
||||
return DeleteBodyDbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::deleteBodyDbAsync(const DeleteBodyDbRequest& request, const DeleteBodyDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteBodyDb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteBodyDbOutcomeCallable FacebodyClient::deleteBodyDbCallable(const DeleteBodyDbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteBodyDbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteBodyDb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteBodyPersonOutcome FacebodyClient::deleteBodyPerson(const DeleteBodyPersonRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteBodyPersonOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteBodyPersonOutcome(DeleteBodyPersonResult(outcome.result()));
|
||||
else
|
||||
return DeleteBodyPersonOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::deleteBodyPersonAsync(const DeleteBodyPersonRequest& request, const DeleteBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteBodyPerson(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteBodyPersonOutcomeCallable FacebodyClient::deleteBodyPersonCallable(const DeleteBodyPersonRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteBodyPersonOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteBodyPerson(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteFaceOutcome FacebodyClient::deleteFace(const DeleteFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1203,42 @@ FacebodyClient::FaceTidyupOutcomeCallable FacebodyClient::faceTidyupCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GenRealPersonVerificationTokenOutcome FacebodyClient::genRealPersonVerificationToken(const GenRealPersonVerificationTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenRealPersonVerificationTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenRealPersonVerificationTokenOutcome(GenRealPersonVerificationTokenResult(outcome.result()));
|
||||
else
|
||||
return GenRealPersonVerificationTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::genRealPersonVerificationTokenAsync(const GenRealPersonVerificationTokenRequest& request, const GenRealPersonVerificationTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, genRealPersonVerificationToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::GenRealPersonVerificationTokenOutcomeCallable FacebodyClient::genRealPersonVerificationTokenCallable(const GenRealPersonVerificationTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenRealPersonVerificationTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->genRealPersonVerificationToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GenerateHumanAnimeStyleOutcome FacebodyClient::generateHumanAnimeStyle(const GenerateHumanAnimeStyleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1275,42 @@ FacebodyClient::GenerateHumanAnimeStyleOutcomeCallable FacebodyClient::generateH
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GetBodyPersonOutcome FacebodyClient::getBodyPerson(const GetBodyPersonRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetBodyPersonOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetBodyPersonOutcome(GetBodyPersonResult(outcome.result()));
|
||||
else
|
||||
return GetBodyPersonOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::getBodyPersonAsync(const GetBodyPersonRequest& request, const GetBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getBodyPerson(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::GetBodyPersonOutcomeCallable FacebodyClient::getBodyPersonCallable(const GetBodyPersonRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetBodyPersonOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getBodyPerson(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GetFaceEntityOutcome FacebodyClient::getFaceEntity(const GetFaceEntityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1347,42 @@ FacebodyClient::GetFaceEntityOutcomeCallable FacebodyClient::getFaceEntityCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GetRealPersonVerificationResultOutcome FacebodyClient::getRealPersonVerificationResult(const GetRealPersonVerificationResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRealPersonVerificationResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRealPersonVerificationResultOutcome(GetRealPersonVerificationResultResult(outcome.result()));
|
||||
else
|
||||
return GetRealPersonVerificationResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::getRealPersonVerificationResultAsync(const GetRealPersonVerificationResultRequest& request, const GetRealPersonVerificationResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRealPersonVerificationResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::GetRealPersonVerificationResultOutcomeCallable FacebodyClient::getRealPersonVerificationResultCallable(const GetRealPersonVerificationResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRealPersonVerificationResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRealPersonVerificationResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::HandPostureOutcome FacebodyClient::handPosture(const HandPostureRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1419,78 @@ FacebodyClient::HandPostureOutcomeCallable FacebodyClient::handPostureCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::ListBodyDbsOutcome FacebodyClient::listBodyDbs(const ListBodyDbsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListBodyDbsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListBodyDbsOutcome(ListBodyDbsResult(outcome.result()));
|
||||
else
|
||||
return ListBodyDbsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::listBodyDbsAsync(const ListBodyDbsRequest& request, const ListBodyDbsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listBodyDbs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::ListBodyDbsOutcomeCallable FacebodyClient::listBodyDbsCallable(const ListBodyDbsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListBodyDbsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listBodyDbs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::ListBodyPersonOutcome FacebodyClient::listBodyPerson(const ListBodyPersonRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListBodyPersonOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListBodyPersonOutcome(ListBodyPersonResult(outcome.result()));
|
||||
else
|
||||
return ListBodyPersonOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::listBodyPersonAsync(const ListBodyPersonRequest& request, const ListBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listBodyPerson(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::ListBodyPersonOutcomeCallable FacebodyClient::listBodyPersonCallable(const ListBodyPersonRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListBodyPersonOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listBodyPerson(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::ListFaceDbsOutcome FacebodyClient::listFaceDbs(const ListFaceDbsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,6 +1743,42 @@ FacebodyClient::RecognizePublicFaceOutcomeCallable FacebodyClient::recognizePubl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::SearchBodyTraceOutcome FacebodyClient::searchBodyTrace(const SearchBodyTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchBodyTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchBodyTraceOutcome(SearchBodyTraceResult(outcome.result()));
|
||||
else
|
||||
return SearchBodyTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::searchBodyTraceAsync(const SearchBodyTraceRequest& request, const SearchBodyTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchBodyTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::SearchBodyTraceOutcomeCallable FacebodyClient::searchBodyTraceCallable(const SearchBodyTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchBodyTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchBodyTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::SearchFaceOutcome FacebodyClient::searchFace(const SearchFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
73
facebody/src/model/AddBodyTraceRequest.cc
Normal file
73
facebody/src/model/AddBodyTraceRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/facebody/model/AddBodyTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::AddBodyTraceRequest;
|
||||
|
||||
AddBodyTraceRequest::AddBodyTraceRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "AddBodyTrace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddBodyTraceRequest::~AddBodyTraceRequest()
|
||||
{}
|
||||
|
||||
std::string AddBodyTraceRequest::getExtraData()const
|
||||
{
|
||||
return extraData_;
|
||||
}
|
||||
|
||||
void AddBodyTraceRequest::setExtraData(const std::string& extraData)
|
||||
{
|
||||
extraData_ = extraData;
|
||||
setBodyParameter("ExtraData", extraData);
|
||||
}
|
||||
|
||||
long AddBodyTraceRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void AddBodyTraceRequest::setPersonId(long personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", std::to_string(personId));
|
||||
}
|
||||
|
||||
Array AddBodyTraceRequest::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
void AddBodyTraceRequest::setImages(const Array& images)
|
||||
{
|
||||
images_ = images;
|
||||
setBodyParameter("Images", std::to_string(images));
|
||||
}
|
||||
|
||||
long AddBodyTraceRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void AddBodyTraceRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setBodyParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
66
facebody/src/model/AddBodyTraceResult.cc
Normal file
66
facebody/src/model/AddBodyTraceResult.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/facebody/model/AddBodyTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
AddBodyTraceResult::AddBodyTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddBodyTraceResult::AddBodyTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddBodyTraceResult::~AddBodyTraceResult()
|
||||
{}
|
||||
|
||||
void AddBodyTraceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddBodyTraceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddBodyTraceResult::Data AddBodyTraceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddBodyTraceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
facebody/src/model/CreateBodyDbRequest.cc
Normal file
40
facebody/src/model/CreateBodyDbRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/CreateBodyDbRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::CreateBodyDbRequest;
|
||||
|
||||
CreateBodyDbRequest::CreateBodyDbRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "CreateBodyDb")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBodyDbRequest::~CreateBodyDbRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBodyDbRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBodyDbRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
66
facebody/src/model/CreateBodyDbResult.cc
Normal file
66
facebody/src/model/CreateBodyDbResult.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/facebody/model/CreateBodyDbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
CreateBodyDbResult::CreateBodyDbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBodyDbResult::CreateBodyDbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBodyDbResult::~CreateBodyDbResult()
|
||||
{}
|
||||
|
||||
void CreateBodyDbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBodyDbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateBodyDbResult::Data CreateBodyDbResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateBodyDbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/CreateBodyPersonRequest.cc
Normal file
51
facebody/src/model/CreateBodyPersonRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/CreateBodyPersonRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::CreateBodyPersonRequest;
|
||||
|
||||
CreateBodyPersonRequest::CreateBodyPersonRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "CreateBodyPerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBodyPersonRequest::~CreateBodyPersonRequest()
|
||||
{}
|
||||
|
||||
long CreateBodyPersonRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void CreateBodyPersonRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setBodyParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
std::string CreateBodyPersonRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBodyPersonRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
66
facebody/src/model/CreateBodyPersonResult.cc
Normal file
66
facebody/src/model/CreateBodyPersonResult.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/facebody/model/CreateBodyPersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
CreateBodyPersonResult::CreateBodyPersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBodyPersonResult::CreateBodyPersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBodyPersonResult::~CreateBodyPersonResult()
|
||||
{}
|
||||
|
||||
void CreateBodyPersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBodyPersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateBodyPersonResult::Data CreateBodyPersonResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateBodyPersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
facebody/src/model/DeleteBodyDbRequest.cc
Normal file
40
facebody/src/model/DeleteBodyDbRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/DeleteBodyDbRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::DeleteBodyDbRequest;
|
||||
|
||||
DeleteBodyDbRequest::DeleteBodyDbRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyDb")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBodyDbRequest::~DeleteBodyDbRequest()
|
||||
{}
|
||||
|
||||
long DeleteBodyDbRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteBodyDbRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setBodyParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
58
facebody/src/model/DeleteBodyDbResult.cc
Normal file
58
facebody/src/model/DeleteBodyDbResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/facebody/model/DeleteBodyDbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
DeleteBodyDbResult::DeleteBodyDbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBodyDbResult::DeleteBodyDbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBodyDbResult::~DeleteBodyDbResult()
|
||||
{}
|
||||
|
||||
void DeleteBodyDbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBodyDbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteBodyDbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/DeleteBodyPersonRequest.cc
Normal file
51
facebody/src/model/DeleteBodyPersonRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/DeleteBodyPersonRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::DeleteBodyPersonRequest;
|
||||
|
||||
DeleteBodyPersonRequest::DeleteBodyPersonRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyPerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBodyPersonRequest::~DeleteBodyPersonRequest()
|
||||
{}
|
||||
|
||||
long DeleteBodyPersonRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void DeleteBodyPersonRequest::setPersonId(long personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", std::to_string(personId));
|
||||
}
|
||||
|
||||
long DeleteBodyPersonRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void DeleteBodyPersonRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setBodyParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
58
facebody/src/model/DeleteBodyPersonResult.cc
Normal file
58
facebody/src/model/DeleteBodyPersonResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/facebody/model/DeleteBodyPersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
DeleteBodyPersonResult::DeleteBodyPersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBodyPersonResult::DeleteBodyPersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBodyPersonResult::~DeleteBodyPersonResult()
|
||||
{}
|
||||
|
||||
void DeleteBodyPersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBodyPersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteBodyPersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
facebody/src/model/GenRealPersonVerificationTokenRequest.cc
Normal file
62
facebody/src/model/GenRealPersonVerificationTokenRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/facebody/model/GenRealPersonVerificationTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::GenRealPersonVerificationTokenRequest;
|
||||
|
||||
GenRealPersonVerificationTokenRequest::GenRealPersonVerificationTokenRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "GenRealPersonVerificationToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenRealPersonVerificationTokenRequest::~GenRealPersonVerificationTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GenRealPersonVerificationTokenRequest::getCertificateNumber()const
|
||||
{
|
||||
return certificateNumber_;
|
||||
}
|
||||
|
||||
void GenRealPersonVerificationTokenRequest::setCertificateNumber(const std::string& certificateNumber)
|
||||
{
|
||||
certificateNumber_ = certificateNumber;
|
||||
setBodyParameter("CertificateNumber", certificateNumber);
|
||||
}
|
||||
|
||||
std::string GenRealPersonVerificationTokenRequest::getCertificateName()const
|
||||
{
|
||||
return certificateName_;
|
||||
}
|
||||
|
||||
void GenRealPersonVerificationTokenRequest::setCertificateName(const std::string& certificateName)
|
||||
{
|
||||
certificateName_ = certificateName;
|
||||
setBodyParameter("CertificateName", certificateName);
|
||||
}
|
||||
|
||||
std::string GenRealPersonVerificationTokenRequest::getMetaInfo()const
|
||||
{
|
||||
return metaInfo_;
|
||||
}
|
||||
|
||||
void GenRealPersonVerificationTokenRequest::setMetaInfo(const std::string& metaInfo)
|
||||
{
|
||||
metaInfo_ = metaInfo;
|
||||
setBodyParameter("MetaInfo", metaInfo);
|
||||
}
|
||||
|
||||
73
facebody/src/model/GenRealPersonVerificationTokenResult.cc
Normal file
73
facebody/src/model/GenRealPersonVerificationTokenResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/facebody/model/GenRealPersonVerificationTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
GenRealPersonVerificationTokenResult::GenRealPersonVerificationTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenRealPersonVerificationTokenResult::GenRealPersonVerificationTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenRealPersonVerificationTokenResult::~GenRealPersonVerificationTokenResult()
|
||||
{}
|
||||
|
||||
void GenRealPersonVerificationTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["VerificationToken"].isNull())
|
||||
data_.verificationToken = dataNode["VerificationToken"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
GenRealPersonVerificationTokenResult::Data GenRealPersonVerificationTokenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GenRealPersonVerificationTokenResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GenRealPersonVerificationTokenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GenRealPersonVerificationTokenResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/GetBodyPersonRequest.cc
Normal file
51
facebody/src/model/GetBodyPersonRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/GetBodyPersonRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::GetBodyPersonRequest;
|
||||
|
||||
GetBodyPersonRequest::GetBodyPersonRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "GetBodyPerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetBodyPersonRequest::~GetBodyPersonRequest()
|
||||
{}
|
||||
|
||||
long GetBodyPersonRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void GetBodyPersonRequest::setPersonId(long personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setParameter("PersonId", std::to_string(personId));
|
||||
}
|
||||
|
||||
long GetBodyPersonRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void GetBodyPersonRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
84
facebody/src/model/GetBodyPersonResult.cc
Normal file
84
facebody/src/model/GetBodyPersonResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/facebody/model/GetBodyPersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
GetBodyPersonResult::GetBodyPersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBodyPersonResult::GetBodyPersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBodyPersonResult::~GetBodyPersonResult()
|
||||
{}
|
||||
|
||||
void GetBodyPersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TraceCount"].isNull())
|
||||
data_.traceCount = std::stol(dataNode["TraceCount"].asString());
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = std::stol(dataNode["InstanceId"].asString());
|
||||
if(!dataNode["DbId"].isNull())
|
||||
data_.dbId = std::stol(dataNode["DbId"].asString());
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
auto allTraceListNode = dataNode["TraceList"]["Trace"];
|
||||
for (auto dataNodeTraceListTrace : allTraceListNode)
|
||||
{
|
||||
Data::Trace traceObject;
|
||||
if(!dataNodeTraceListTrace["ExtraData"].isNull())
|
||||
traceObject.extraData = dataNodeTraceListTrace["ExtraData"].asString();
|
||||
if(!dataNodeTraceListTrace["Id"].isNull())
|
||||
traceObject.id = std::stol(dataNodeTraceListTrace["Id"].asString());
|
||||
data_.traceList.push_back(traceObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetBodyPersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetBodyPersonResult::Data GetBodyPersonResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetBodyPersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/GetRealPersonVerificationResultRequest.cc
Normal file
51
facebody/src/model/GetRealPersonVerificationResultRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::GetRealPersonVerificationResultRequest;
|
||||
|
||||
GetRealPersonVerificationResultRequest::GetRealPersonVerificationResultRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "GetRealPersonVerificationResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRealPersonVerificationResultRequest::~GetRealPersonVerificationResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetRealPersonVerificationResultRequest::getVerificationToken()const
|
||||
{
|
||||
return verificationToken_;
|
||||
}
|
||||
|
||||
void GetRealPersonVerificationResultRequest::setVerificationToken(const std::string& verificationToken)
|
||||
{
|
||||
verificationToken_ = verificationToken;
|
||||
setBodyParameter("VerificationToken", verificationToken);
|
||||
}
|
||||
|
||||
std::string GetRealPersonVerificationResultRequest::getMaterialHash()const
|
||||
{
|
||||
return materialHash_;
|
||||
}
|
||||
|
||||
void GetRealPersonVerificationResultRequest::setMaterialHash(const std::string& materialHash)
|
||||
{
|
||||
materialHash_ = materialHash;
|
||||
setBodyParameter("MaterialHash", materialHash);
|
||||
}
|
||||
|
||||
77
facebody/src/model/GetRealPersonVerificationResultResult.cc
Normal file
77
facebody/src/model/GetRealPersonVerificationResultResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/facebody/model/GetRealPersonVerificationResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
GetRealPersonVerificationResultResult::GetRealPersonVerificationResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRealPersonVerificationResultResult::GetRealPersonVerificationResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRealPersonVerificationResultResult::~GetRealPersonVerificationResultResult()
|
||||
{}
|
||||
|
||||
void GetRealPersonVerificationResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Pass"].isNull())
|
||||
data_.pass = dataNode["Pass"].asString() == "true";
|
||||
if(!dataNode["MaterialMatch"].isNull())
|
||||
data_.materialMatch = dataNode["MaterialMatch"].asString();
|
||||
if(!dataNode["IdentityInfo"].isNull())
|
||||
data_.identityInfo = dataNode["IdentityInfo"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
GetRealPersonVerificationResultResult::Data GetRealPersonVerificationResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetRealPersonVerificationResultResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetRealPersonVerificationResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetRealPersonVerificationResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/ListBodyDbsRequest.cc
Normal file
51
facebody/src/model/ListBodyDbsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/ListBodyDbsRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::ListBodyDbsRequest;
|
||||
|
||||
ListBodyDbsRequest::ListBodyDbsRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "ListBodyDbs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListBodyDbsRequest::~ListBodyDbsRequest()
|
||||
{}
|
||||
|
||||
long ListBodyDbsRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ListBodyDbsRequest::setLimit(long limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
long ListBodyDbsRequest::getOffset()const
|
||||
{
|
||||
return offset_;
|
||||
}
|
||||
|
||||
void ListBodyDbsRequest::setOffset(long offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setParameter("Offset", std::to_string(offset));
|
||||
}
|
||||
|
||||
76
facebody/src/model/ListBodyDbsResult.cc
Normal file
76
facebody/src/model/ListBodyDbsResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/ListBodyDbsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
ListBodyDbsResult::ListBodyDbsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListBodyDbsResult::ListBodyDbsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListBodyDbsResult::~ListBodyDbsResult()
|
||||
{}
|
||||
|
||||
void ListBodyDbsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allDbListNode = dataNode["DbList"]["DbListItem"];
|
||||
for (auto dataNodeDbListDbListItem : allDbListNode)
|
||||
{
|
||||
Data::DbListItem dbListItemObject;
|
||||
if(!dataNodeDbListDbListItem["Id"].isNull())
|
||||
dbListItemObject.id = std::stol(dataNodeDbListDbListItem["Id"].asString());
|
||||
if(!dataNodeDbListDbListItem["Name"].isNull())
|
||||
dbListItemObject.name = dataNodeDbListDbListItem["Name"].asString();
|
||||
data_.dbList.push_back(dbListItemObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListBodyDbsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListBodyDbsResult::Data ListBodyDbsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListBodyDbsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
facebody/src/model/ListBodyPersonRequest.cc
Normal file
62
facebody/src/model/ListBodyPersonRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/facebody/model/ListBodyPersonRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::ListBodyPersonRequest;
|
||||
|
||||
ListBodyPersonRequest::ListBodyPersonRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "ListBodyPerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListBodyPersonRequest::~ListBodyPersonRequest()
|
||||
{}
|
||||
|
||||
long ListBodyPersonRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ListBodyPersonRequest::setLimit(long limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
long ListBodyPersonRequest::getOffset()const
|
||||
{
|
||||
return offset_;
|
||||
}
|
||||
|
||||
void ListBodyPersonRequest::setOffset(long offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setParameter("Offset", std::to_string(offset));
|
||||
}
|
||||
|
||||
long ListBodyPersonRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void ListBodyPersonRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
82
facebody/src/model/ListBodyPersonResult.cc
Normal file
82
facebody/src/model/ListBodyPersonResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/ListBodyPersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
ListBodyPersonResult::ListBodyPersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListBodyPersonResult::ListBodyPersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListBodyPersonResult::~ListBodyPersonResult()
|
||||
{}
|
||||
|
||||
void ListBodyPersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allPersonListNode = dataNode["PersonList"]["Person"];
|
||||
for (auto dataNodePersonListPerson : allPersonListNode)
|
||||
{
|
||||
Data::Person personObject;
|
||||
if(!dataNodePersonListPerson["TraceCount"].isNull())
|
||||
personObject.traceCount = std::stol(dataNodePersonListPerson["TraceCount"].asString());
|
||||
if(!dataNodePersonListPerson["InstanceId"].isNull())
|
||||
personObject.instanceId = std::stol(dataNodePersonListPerson["InstanceId"].asString());
|
||||
if(!dataNodePersonListPerson["DbId"].isNull())
|
||||
personObject.dbId = std::stol(dataNodePersonListPerson["DbId"].asString());
|
||||
if(!dataNodePersonListPerson["Id"].isNull())
|
||||
personObject.id = std::stol(dataNodePersonListPerson["Id"].asString());
|
||||
if(!dataNodePersonListPerson["Name"].isNull())
|
||||
personObject.name = dataNodePersonListPerson["Name"].asString();
|
||||
data_.personList.push_back(personObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListBodyPersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListBodyPersonResult::Data ListBodyPersonResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListBodyPersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
facebody/src/model/SearchBodyTraceRequest.cc
Normal file
73
facebody/src/model/SearchBodyTraceRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/facebody/model/SearchBodyTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::SearchBodyTraceRequest;
|
||||
|
||||
SearchBodyTraceRequest::SearchBodyTraceRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "SearchBodyTrace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchBodyTraceRequest::~SearchBodyTraceRequest()
|
||||
{}
|
||||
|
||||
float SearchBodyTraceRequest::getMinScore()const
|
||||
{
|
||||
return minScore_;
|
||||
}
|
||||
|
||||
void SearchBodyTraceRequest::setMinScore(float minScore)
|
||||
{
|
||||
minScore_ = minScore;
|
||||
setBodyParameter("MinScore", std::to_string(minScore));
|
||||
}
|
||||
|
||||
long SearchBodyTraceRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void SearchBodyTraceRequest::setLimit(long limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setBodyParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
Array SearchBodyTraceRequest::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
void SearchBodyTraceRequest::setImages(const Array& images)
|
||||
{
|
||||
images_ = images;
|
||||
setBodyParameter("Images", std::to_string(images));
|
||||
}
|
||||
|
||||
long SearchBodyTraceRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void SearchBodyTraceRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setBodyParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
80
facebody/src/model/SearchBodyTraceResult.cc
Normal file
80
facebody/src/model/SearchBodyTraceResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/SearchBodyTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
SearchBodyTraceResult::SearchBodyTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchBodyTraceResult::SearchBodyTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchBodyTraceResult::~SearchBodyTraceResult()
|
||||
{}
|
||||
|
||||
void SearchBodyTraceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allMatchListNode = dataNode["MatchList"]["Trace"];
|
||||
for (auto dataNodeMatchListTrace : allMatchListNode)
|
||||
{
|
||||
Data::Trace traceObject;
|
||||
if(!dataNodeMatchListTrace["Score"].isNull())
|
||||
traceObject.score = std::stof(dataNodeMatchListTrace["Score"].asString());
|
||||
if(!dataNodeMatchListTrace["PersonId"].isNull())
|
||||
traceObject.personId = std::stol(dataNodeMatchListTrace["PersonId"].asString());
|
||||
if(!dataNodeMatchListTrace["TraceId"].isNull())
|
||||
traceObject.traceId = std::stol(dataNodeMatchListTrace["TraceId"].asString());
|
||||
if(!dataNodeMatchListTrace["DbId"].isNull())
|
||||
traceObject.dbId = std::stol(dataNodeMatchListTrace["DbId"].asString());
|
||||
if(!dataNodeMatchListTrace["ExtraData"].isNull())
|
||||
traceObject.extraData = dataNodeMatchListTrace["ExtraData"].asString();
|
||||
data_.matchList.push_back(traceObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SearchBodyTraceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SearchBodyTraceResult::Data SearchBodyTraceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SearchBodyTraceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user