Publish Swift.

This commit is contained in:
sdk-team
2022-12-05 03:17:56 +00:00
parent f5fc8b1bdb
commit 9b3d0e6145
40 changed files with 1 additions and 2805 deletions

View File

@@ -21,8 +21,6 @@ set(facebody_public_header
include/alibabacloud/facebody/FacebodyExport.h )
set(facebody_public_header_model
include/alibabacloud/facebody/model/AddBodyTraceRequest.h
include/alibabacloud/facebody/model/AddBodyTraceResult.h
include/alibabacloud/facebody/model/AddFaceRequest.h
include/alibabacloud/facebody/model/AddFaceResult.h
include/alibabacloud/facebody/model/AddFaceEntityRequest.h
@@ -41,16 +39,8 @@ set(facebody_public_header_model
include/alibabacloud/facebody/model/CompareFaceResult.h
include/alibabacloud/facebody/model/CountCrowdRequest.h
include/alibabacloud/facebody/model/CountCrowdResult.h
include/alibabacloud/facebody/model/CreateBodyDbRequest.h
include/alibabacloud/facebody/model/CreateBodyDbResult.h
include/alibabacloud/facebody/model/CreateBodyPersonRequest.h
include/alibabacloud/facebody/model/CreateBodyPersonResult.h
include/alibabacloud/facebody/model/CreateFaceDbRequest.h
include/alibabacloud/facebody/model/CreateFaceDbResult.h
include/alibabacloud/facebody/model/DeleteBodyDbRequest.h
include/alibabacloud/facebody/model/DeleteBodyDbResult.h
include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h
include/alibabacloud/facebody/model/DeleteBodyPersonResult.h
include/alibabacloud/facebody/model/DeleteFaceRequest.h
include/alibabacloud/facebody/model/DeleteFaceResult.h
include/alibabacloud/facebody/model/DeleteFaceDbRequest.h
@@ -97,8 +87,6 @@ set(facebody_public_header_model
include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h
include/alibabacloud/facebody/model/GenerateHumanSketchStyleRequest.h
include/alibabacloud/facebody/model/GenerateHumanSketchStyleResult.h
include/alibabacloud/facebody/model/GetBodyPersonRequest.h
include/alibabacloud/facebody/model/GetBodyPersonResult.h
include/alibabacloud/facebody/model/GetFaceEntityRequest.h
include/alibabacloud/facebody/model/GetFaceEntityResult.h
include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h
@@ -107,10 +95,6 @@ set(facebody_public_header_model
include/alibabacloud/facebody/model/HandPostureResult.h
include/alibabacloud/facebody/model/LiquifyFaceRequest.h
include/alibabacloud/facebody/model/LiquifyFaceResult.h
include/alibabacloud/facebody/model/ListBodyDbsRequest.h
include/alibabacloud/facebody/model/ListBodyDbsResult.h
include/alibabacloud/facebody/model/ListBodyPersonRequest.h
include/alibabacloud/facebody/model/ListBodyPersonResult.h
include/alibabacloud/facebody/model/ListFaceDbsRequest.h
include/alibabacloud/facebody/model/ListFaceDbsResult.h
include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h
@@ -137,8 +121,6 @@ set(facebody_public_header_model
include/alibabacloud/facebody/model/RetouchBodyResult.h
include/alibabacloud/facebody/model/RetouchSkinRequest.h
include/alibabacloud/facebody/model/RetouchSkinResult.h
include/alibabacloud/facebody/model/SearchBodyTraceRequest.h
include/alibabacloud/facebody/model/SearchBodyTraceResult.h
include/alibabacloud/facebody/model/SearchFaceRequest.h
include/alibabacloud/facebody/model/SearchFaceResult.h
include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h
@@ -150,8 +132,6 @@ set(facebody_public_header_model
set(facebody_src
src/FacebodyClient.cc
src/model/AddBodyTraceRequest.cc
src/model/AddBodyTraceResult.cc
src/model/AddFaceRequest.cc
src/model/AddFaceResult.cc
src/model/AddFaceEntityRequest.cc
@@ -170,16 +150,8 @@ set(facebody_src
src/model/CompareFaceResult.cc
src/model/CountCrowdRequest.cc
src/model/CountCrowdResult.cc
src/model/CreateBodyDbRequest.cc
src/model/CreateBodyDbResult.cc
src/model/CreateBodyPersonRequest.cc
src/model/CreateBodyPersonResult.cc
src/model/CreateFaceDbRequest.cc
src/model/CreateFaceDbResult.cc
src/model/DeleteBodyDbRequest.cc
src/model/DeleteBodyDbResult.cc
src/model/DeleteBodyPersonRequest.cc
src/model/DeleteBodyPersonResult.cc
src/model/DeleteFaceRequest.cc
src/model/DeleteFaceResult.cc
src/model/DeleteFaceDbRequest.cc
@@ -226,8 +198,6 @@ set(facebody_src
src/model/GenerateHumanAnimeStyleResult.cc
src/model/GenerateHumanSketchStyleRequest.cc
src/model/GenerateHumanSketchStyleResult.cc
src/model/GetBodyPersonRequest.cc
src/model/GetBodyPersonResult.cc
src/model/GetFaceEntityRequest.cc
src/model/GetFaceEntityResult.cc
src/model/GetRealPersonVerificationResultRequest.cc
@@ -236,10 +206,6 @@ set(facebody_src
src/model/HandPostureResult.cc
src/model/LiquifyFaceRequest.cc
src/model/LiquifyFaceResult.cc
src/model/ListBodyDbsRequest.cc
src/model/ListBodyDbsResult.cc
src/model/ListBodyPersonRequest.cc
src/model/ListBodyPersonResult.cc
src/model/ListFaceDbsRequest.cc
src/model/ListFaceDbsResult.cc
src/model/ListFaceEntitiesRequest.cc
@@ -266,8 +232,6 @@ set(facebody_src
src/model/RetouchBodyResult.cc
src/model/RetouchSkinRequest.cc
src/model/RetouchSkinResult.cc
src/model/SearchBodyTraceRequest.cc
src/model/SearchBodyTraceResult.cc
src/model/SearchFaceRequest.cc
src/model/SearchFaceResult.cc
src/model/SwapFacialFeaturesRequest.cc

View File

@@ -22,8 +22,6 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "FacebodyExport.h"
#include "model/AddBodyTraceRequest.h"
#include "model/AddBodyTraceResult.h"
#include "model/AddFaceRequest.h"
#include "model/AddFaceResult.h"
#include "model/AddFaceEntityRequest.h"
@@ -42,16 +40,8 @@
#include "model/CompareFaceResult.h"
#include "model/CountCrowdRequest.h"
#include "model/CountCrowdResult.h"
#include "model/CreateBodyDbRequest.h"
#include "model/CreateBodyDbResult.h"
#include "model/CreateBodyPersonRequest.h"
#include "model/CreateBodyPersonResult.h"
#include "model/CreateFaceDbRequest.h"
#include "model/CreateFaceDbResult.h"
#include "model/DeleteBodyDbRequest.h"
#include "model/DeleteBodyDbResult.h"
#include "model/DeleteBodyPersonRequest.h"
#include "model/DeleteBodyPersonResult.h"
#include "model/DeleteFaceRequest.h"
#include "model/DeleteFaceResult.h"
#include "model/DeleteFaceDbRequest.h"
@@ -98,8 +88,6 @@
#include "model/GenerateHumanAnimeStyleResult.h"
#include "model/GenerateHumanSketchStyleRequest.h"
#include "model/GenerateHumanSketchStyleResult.h"
#include "model/GetBodyPersonRequest.h"
#include "model/GetBodyPersonResult.h"
#include "model/GetFaceEntityRequest.h"
#include "model/GetFaceEntityResult.h"
#include "model/GetRealPersonVerificationResultRequest.h"
@@ -108,10 +96,6 @@
#include "model/HandPostureResult.h"
#include "model/LiquifyFaceRequest.h"
#include "model/LiquifyFaceResult.h"
#include "model/ListBodyDbsRequest.h"
#include "model/ListBodyDbsResult.h"
#include "model/ListBodyPersonRequest.h"
#include "model/ListBodyPersonResult.h"
#include "model/ListFaceDbsRequest.h"
#include "model/ListFaceDbsResult.h"
#include "model/ListFaceEntitiesRequest.h"
@@ -138,8 +122,6 @@
#include "model/RetouchBodyResult.h"
#include "model/RetouchSkinRequest.h"
#include "model/RetouchSkinResult.h"
#include "model/SearchBodyTraceRequest.h"
#include "model/SearchBodyTraceResult.h"
#include "model/SearchFaceRequest.h"
#include "model/SearchFaceResult.h"
#include "model/SwapFacialFeaturesRequest.h"
@@ -157,9 +139,6 @@ namespace AlibabaCloud
class ALIBABACLOUD_FACEBODY_EXPORT FacebodyClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddBodyTraceResult> AddBodyTraceOutcome;
typedef std::future<AddBodyTraceOutcome> AddBodyTraceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::AddBodyTraceRequest&, const AddBodyTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddBodyTraceAsyncHandler;
typedef Outcome<Error, Model::AddFaceResult> AddFaceOutcome;
typedef std::future<AddFaceOutcome> AddFaceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::AddFaceRequest&, const AddFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddFaceAsyncHandler;
@@ -187,21 +166,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CountCrowdResult> CountCrowdOutcome;
typedef std::future<CountCrowdOutcome> CountCrowdOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::CountCrowdRequest&, const CountCrowdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CountCrowdAsyncHandler;
typedef Outcome<Error, Model::CreateBodyDbResult> CreateBodyDbOutcome;
typedef std::future<CreateBodyDbOutcome> CreateBodyDbOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::CreateBodyDbRequest&, const CreateBodyDbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBodyDbAsyncHandler;
typedef Outcome<Error, Model::CreateBodyPersonResult> CreateBodyPersonOutcome;
typedef std::future<CreateBodyPersonOutcome> CreateBodyPersonOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::CreateBodyPersonRequest&, const CreateBodyPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBodyPersonAsyncHandler;
typedef Outcome<Error, Model::CreateFaceDbResult> CreateFaceDbOutcome;
typedef std::future<CreateFaceDbOutcome> CreateFaceDbOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::CreateFaceDbRequest&, const CreateFaceDbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceDbAsyncHandler;
typedef Outcome<Error, Model::DeleteBodyDbResult> DeleteBodyDbOutcome;
typedef std::future<DeleteBodyDbOutcome> DeleteBodyDbOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DeleteBodyDbRequest&, const DeleteBodyDbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBodyDbAsyncHandler;
typedef Outcome<Error, Model::DeleteBodyPersonResult> DeleteBodyPersonOutcome;
typedef std::future<DeleteBodyPersonOutcome> DeleteBodyPersonOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DeleteBodyPersonRequest&, const DeleteBodyPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBodyPersonAsyncHandler;
typedef Outcome<Error, Model::DeleteFaceResult> DeleteFaceOutcome;
typedef std::future<DeleteFaceOutcome> DeleteFaceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DeleteFaceRequest&, const DeleteFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFaceAsyncHandler;
@@ -271,9 +238,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GenerateHumanSketchStyleResult> GenerateHumanSketchStyleOutcome;
typedef std::future<GenerateHumanSketchStyleOutcome> GenerateHumanSketchStyleOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::GenerateHumanSketchStyleRequest&, const GenerateHumanSketchStyleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateHumanSketchStyleAsyncHandler;
typedef Outcome<Error, Model::GetBodyPersonResult> GetBodyPersonOutcome;
typedef std::future<GetBodyPersonOutcome> GetBodyPersonOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::GetBodyPersonRequest&, const GetBodyPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBodyPersonAsyncHandler;
typedef Outcome<Error, Model::GetFaceEntityResult> GetFaceEntityOutcome;
typedef std::future<GetFaceEntityOutcome> GetFaceEntityOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::GetFaceEntityRequest&, const GetFaceEntityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFaceEntityAsyncHandler;
@@ -286,12 +250,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::LiquifyFaceResult> LiquifyFaceOutcome;
typedef std::future<LiquifyFaceOutcome> LiquifyFaceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::LiquifyFaceRequest&, const LiquifyFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LiquifyFaceAsyncHandler;
typedef Outcome<Error, Model::ListBodyDbsResult> ListBodyDbsOutcome;
typedef std::future<ListBodyDbsOutcome> ListBodyDbsOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::ListBodyDbsRequest&, const ListBodyDbsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBodyDbsAsyncHandler;
typedef Outcome<Error, Model::ListBodyPersonResult> ListBodyPersonOutcome;
typedef std::future<ListBodyPersonOutcome> ListBodyPersonOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::ListBodyPersonRequest&, const ListBodyPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBodyPersonAsyncHandler;
typedef Outcome<Error, Model::ListFaceDbsResult> ListFaceDbsOutcome;
typedef std::future<ListFaceDbsOutcome> ListFaceDbsOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::ListFaceDbsRequest&, const ListFaceDbsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFaceDbsAsyncHandler;
@@ -331,9 +289,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::RetouchSkinResult> RetouchSkinOutcome;
typedef std::future<RetouchSkinOutcome> RetouchSkinOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::RetouchSkinRequest&, const RetouchSkinOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetouchSkinAsyncHandler;
typedef Outcome<Error, Model::SearchBodyTraceResult> SearchBodyTraceOutcome;
typedef std::future<SearchBodyTraceOutcome> SearchBodyTraceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::SearchBodyTraceRequest&, const SearchBodyTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchBodyTraceAsyncHandler;
typedef Outcome<Error, Model::SearchFaceResult> SearchFaceOutcome;
typedef std::future<SearchFaceOutcome> SearchFaceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::SearchFaceRequest&, const SearchFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchFaceAsyncHandler;
@@ -351,9 +306,6 @@ namespace AlibabaCloud
FacebodyClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
FacebodyClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~FacebodyClient();
AddBodyTraceOutcome addBodyTrace(const Model::AddBodyTraceRequest &request)const;
void addBodyTraceAsync(const Model::AddBodyTraceRequest& request, const AddBodyTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddBodyTraceOutcomeCallable addBodyTraceCallable(const Model::AddBodyTraceRequest& request) const;
AddFaceOutcome addFace(const Model::AddFaceRequest &request)const;
void addFaceAsync(const Model::AddFaceRequest& request, const AddFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddFaceOutcomeCallable addFaceCallable(const Model::AddFaceRequest& request) const;
@@ -381,21 +333,9 @@ namespace AlibabaCloud
CountCrowdOutcome countCrowd(const Model::CountCrowdRequest &request)const;
void countCrowdAsync(const Model::CountCrowdRequest& request, const CountCrowdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CountCrowdOutcomeCallable countCrowdCallable(const Model::CountCrowdRequest& request) const;
CreateBodyDbOutcome createBodyDb(const Model::CreateBodyDbRequest &request)const;
void createBodyDbAsync(const Model::CreateBodyDbRequest& request, const CreateBodyDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateBodyDbOutcomeCallable createBodyDbCallable(const Model::CreateBodyDbRequest& request) const;
CreateBodyPersonOutcome createBodyPerson(const Model::CreateBodyPersonRequest &request)const;
void createBodyPersonAsync(const Model::CreateBodyPersonRequest& request, const CreateBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateBodyPersonOutcomeCallable createBodyPersonCallable(const Model::CreateBodyPersonRequest& request) const;
CreateFaceDbOutcome createFaceDb(const Model::CreateFaceDbRequest &request)const;
void createFaceDbAsync(const Model::CreateFaceDbRequest& request, const CreateFaceDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFaceDbOutcomeCallable createFaceDbCallable(const Model::CreateFaceDbRequest& request) const;
DeleteBodyDbOutcome deleteBodyDb(const Model::DeleteBodyDbRequest &request)const;
void deleteBodyDbAsync(const Model::DeleteBodyDbRequest& request, const DeleteBodyDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteBodyDbOutcomeCallable deleteBodyDbCallable(const Model::DeleteBodyDbRequest& request) const;
DeleteBodyPersonOutcome deleteBodyPerson(const Model::DeleteBodyPersonRequest &request)const;
void deleteBodyPersonAsync(const Model::DeleteBodyPersonRequest& request, const DeleteBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteBodyPersonOutcomeCallable deleteBodyPersonCallable(const Model::DeleteBodyPersonRequest& request) const;
DeleteFaceOutcome deleteFace(const Model::DeleteFaceRequest &request)const;
void deleteFaceAsync(const Model::DeleteFaceRequest& request, const DeleteFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFaceOutcomeCallable deleteFaceCallable(const Model::DeleteFaceRequest& request) const;
@@ -465,9 +405,6 @@ namespace AlibabaCloud
GenerateHumanSketchStyleOutcome generateHumanSketchStyle(const Model::GenerateHumanSketchStyleRequest &request)const;
void generateHumanSketchStyleAsync(const Model::GenerateHumanSketchStyleRequest& request, const GenerateHumanSketchStyleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GenerateHumanSketchStyleOutcomeCallable generateHumanSketchStyleCallable(const Model::GenerateHumanSketchStyleRequest& request) const;
GetBodyPersonOutcome getBodyPerson(const Model::GetBodyPersonRequest &request)const;
void getBodyPersonAsync(const Model::GetBodyPersonRequest& request, const GetBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetBodyPersonOutcomeCallable getBodyPersonCallable(const Model::GetBodyPersonRequest& request) const;
GetFaceEntityOutcome getFaceEntity(const Model::GetFaceEntityRequest &request)const;
void getFaceEntityAsync(const Model::GetFaceEntityRequest& request, const GetFaceEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFaceEntityOutcomeCallable getFaceEntityCallable(const Model::GetFaceEntityRequest& request) const;
@@ -480,12 +417,6 @@ namespace AlibabaCloud
LiquifyFaceOutcome liquifyFace(const Model::LiquifyFaceRequest &request)const;
void liquifyFaceAsync(const Model::LiquifyFaceRequest& request, const LiquifyFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LiquifyFaceOutcomeCallable liquifyFaceCallable(const Model::LiquifyFaceRequest& request) const;
ListBodyDbsOutcome listBodyDbs(const Model::ListBodyDbsRequest &request)const;
void listBodyDbsAsync(const Model::ListBodyDbsRequest& request, const ListBodyDbsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListBodyDbsOutcomeCallable listBodyDbsCallable(const Model::ListBodyDbsRequest& request) const;
ListBodyPersonOutcome listBodyPerson(const Model::ListBodyPersonRequest &request)const;
void listBodyPersonAsync(const Model::ListBodyPersonRequest& request, const ListBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListBodyPersonOutcomeCallable listBodyPersonCallable(const Model::ListBodyPersonRequest& request) const;
ListFaceDbsOutcome listFaceDbs(const Model::ListFaceDbsRequest &request)const;
void listFaceDbsAsync(const Model::ListFaceDbsRequest& request, const ListFaceDbsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFaceDbsOutcomeCallable listFaceDbsCallable(const Model::ListFaceDbsRequest& request) const;
@@ -525,9 +456,6 @@ namespace AlibabaCloud
RetouchSkinOutcome retouchSkin(const Model::RetouchSkinRequest &request)const;
void retouchSkinAsync(const Model::RetouchSkinRequest& request, const RetouchSkinAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RetouchSkinOutcomeCallable retouchSkinCallable(const Model::RetouchSkinRequest& request) const;
SearchBodyTraceOutcome searchBodyTrace(const Model::SearchBodyTraceRequest &request)const;
void searchBodyTraceAsync(const Model::SearchBodyTraceRequest& request, const SearchBodyTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchBodyTraceOutcomeCallable searchBodyTraceCallable(const Model::SearchBodyTraceRequest& request) const;
SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const;
void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const;

View File

@@ -1,64 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT AddBodyTraceRequest : public RpcServiceRequest {
public:
struct Images {
std::string imageURL;
std::string imageData;
};
AddBodyTraceRequest();
~AddBodyTraceRequest();
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
std::string getExtraData() const;
void setExtraData(const std::string &extraData);
long getPersonId() const;
void setPersonId(long personId);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
std::vector<Images> getImages() const;
void setImages(const std::vector<Images> &images);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
long getDbId() const;
void setDbId(long dbId);
private:
bool formatResultToJson_;
std::string extraData_;
long personId_;
std::string ossFile_;
std::vector<Images> images_;
std::string requestProxyBy_;
long dbId_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_

View File

@@ -1,59 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACERESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT AddBodyTraceResult : public ServiceResult
{
public:
struct Data
{
long id;
};
AddBodyTraceResult();
explicit AddBodyTraceResult(const std::string &payload);
~AddBodyTraceResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACERESULT_H_

View File

@@ -1,51 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbRequest : public RpcServiceRequest {
public:
CreateBodyDbRequest();
~CreateBodyDbRequest();
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
std::string getName() const;
void setName(const std::string &name);
private:
bool formatResultToJson_;
std::string ossFile_;
std::string requestProxyBy_;
std::string name_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_

View File

@@ -1,59 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbResult : public ServiceResult
{
public:
struct Data
{
long id;
};
CreateBodyDbResult();
explicit CreateBodyDbResult(const std::string &payload);
~CreateBodyDbResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_

View File

@@ -1,54 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyPersonRequest : public RpcServiceRequest {
public:
CreateBodyPersonRequest();
~CreateBodyPersonRequest();
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
long getDbId() const;
void setDbId(long dbId);
std::string getName() const;
void setName(const std::string &name);
private:
bool formatResultToJson_;
std::string ossFile_;
std::string requestProxyBy_;
long dbId_;
std::string name_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_

View File

@@ -1,59 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyPersonResult : public ServiceResult
{
public:
struct Data
{
long id;
};
CreateBodyPersonResult();
explicit CreateBodyPersonResult(const std::string &payload);
~CreateBodyPersonResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONRESULT_H_

View File

@@ -1,51 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyDbRequest : public RpcServiceRequest {
public:
DeleteBodyDbRequest();
~DeleteBodyDbRequest();
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
long getId() const;
void setId(long id);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
private:
bool formatResultToJson_;
long id_;
std::string ossFile_;
std::string requestProxyBy_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_

View File

@@ -1,53 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyDbResult : public ServiceResult
{
public:
DeleteBodyDbResult();
explicit DeleteBodyDbResult(const std::string &payload);
~DeleteBodyDbResult();
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBRESULT_H_

View File

@@ -1,54 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyPersonRequest : public RpcServiceRequest {
public:
DeleteBodyPersonRequest();
~DeleteBodyPersonRequest();
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
long getPersonId() const;
void setPersonId(long personId);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
long getDbId() const;
void setDbId(long dbId);
private:
bool formatResultToJson_;
long personId_;
std::string ossFile_;
std::string requestProxyBy_;
long dbId_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_

View File

@@ -1,53 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyPersonResult : public ServiceResult
{
public:
DeleteBodyPersonResult();
explicit DeleteBodyPersonResult(const std::string &payload);
~DeleteBodyPersonResult();
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONRESULT_H_

View File

@@ -1,54 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT GetBodyPersonRequest : public RpcServiceRequest {
public:
GetBodyPersonRequest();
~GetBodyPersonRequest();
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
long getPersonId() const;
void setPersonId(long personId);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
long getDbId() const;
void setDbId(long dbId);
private:
bool formatResultToJson_;
long personId_;
std::string ossFile_;
std::string requestProxyBy_;
long dbId_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_

View File

@@ -1,69 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT GetBodyPersonResult : public ServiceResult
{
public:
struct Data
{
struct Trace
{
long id;
std::string extraData;
};
long traceCount;
long instanceId;
std::vector<Trace> traceList;
long dbId;
long id;
std::string name;
};
GetBodyPersonResult();
explicit GetBodyPersonResult(const std::string &payload);
~GetBodyPersonResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONRESULT_H_

View File

@@ -1,54 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT ListBodyDbsRequest : public RpcServiceRequest {
public:
ListBodyDbsRequest();
~ListBodyDbsRequest();
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
long getLimit() const;
void setLimit(long limit);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
long getOffset() const;
void setOffset(long offset);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
private:
bool formatResultToJson_;
long limit_;
std::string ossFile_;
long offset_;
std::string requestProxyBy_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_

View File

@@ -1,65 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT ListBodyDbsResult : public ServiceResult
{
public:
struct Data
{
struct DbListItem
{
long id;
std::string name;
};
long total;
std::vector<DbListItem> dbList;
};
ListBodyDbsResult();
explicit ListBodyDbsResult(const std::string &payload);
~ListBodyDbsResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSRESULT_H_

View File

@@ -1,57 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT ListBodyPersonRequest : public RpcServiceRequest {
public:
ListBodyPersonRequest();
~ListBodyPersonRequest();
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
long getLimit() const;
void setLimit(long limit);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
long getOffset() const;
void setOffset(long offset);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
long getDbId() const;
void setDbId(long dbId);
private:
bool formatResultToJson_;
long limit_;
std::string ossFile_;
long offset_;
std::string requestProxyBy_;
long dbId_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_

View File

@@ -1,68 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT ListBodyPersonResult : public ServiceResult
{
public:
struct Data
{
struct Person
{
long traceCount;
long instanceId;
long dbId;
long id;
std::string name;
};
std::vector<Person> personList;
long total;
};
ListBodyPersonResult();
explicit ListBodyPersonResult(const std::string &payload);
~ListBodyPersonResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONRESULT_H_

View File

@@ -1,64 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Facebody {
namespace Model {
class ALIBABACLOUD_FACEBODY_EXPORT SearchBodyTraceRequest : public RpcServiceRequest {
public:
struct Images {
std::string imageURL;
std::string imageData;
};
SearchBodyTraceRequest();
~SearchBodyTraceRequest();
float getMinScore() const;
void setMinScore(float minScore);
bool getFormatResultToJson() const;
void setFormatResultToJson(bool formatResultToJson);
long getLimit() const;
void setLimit(long limit);
std::string getOssFile() const;
void setOssFile(const std::string &ossFile);
std::vector<Images> getImages() const;
void setImages(const std::vector<Images> &images);
std::string getRequestProxyBy() const;
void setRequestProxyBy(const std::string &requestProxyBy);
long getDbId() const;
void setDbId(long dbId);
private:
float minScore_;
bool formatResultToJson_;
long limit_;
std::string ossFile_;
std::vector<Images> images_;
std::string requestProxyBy_;
long dbId_;
};
} // namespace Model
} // namespace Facebody
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_

View File

@@ -1,67 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACERESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT SearchBodyTraceResult : public ServiceResult
{
public:
struct Data
{
struct Trace
{
float score;
long personId;
long dbId;
long traceId;
std::string extraData;
};
std::vector<Trace> matchList;
};
SearchBodyTraceResult();
explicit SearchBodyTraceResult(const std::string &payload);
~SearchBodyTraceResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACERESULT_H_

View File

@@ -51,42 +51,6 @@ 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();
@@ -411,78 +375,6 @@ 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();
@@ -519,78 +411,6 @@ 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();
@@ -1419,42 +1239,6 @@ FacebodyClient::GenerateHumanSketchStyleOutcomeCallable FacebodyClient::generate
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();
@@ -1599,78 +1383,6 @@ FacebodyClient::LiquifyFaceOutcomeCallable FacebodyClient::liquifyFaceCallable(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();
@@ -2139,42 +1851,6 @@ FacebodyClient::RetouchSkinOutcomeCallable FacebodyClient::retouchSkinCallable(c
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();

View File

@@ -1,93 +0,0 @@
/*
* 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() {}
bool AddBodyTraceRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void AddBodyTraceRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
std::string AddBodyTraceRequest::getExtraData() const {
return extraData_;
}
void AddBodyTraceRequest::setExtraData(const std::string &extraData) {
extraData_ = extraData;
setBodyParameter(std::string("ExtraData"), extraData);
}
long AddBodyTraceRequest::getPersonId() const {
return personId_;
}
void AddBodyTraceRequest::setPersonId(long personId) {
personId_ = personId;
setBodyParameter(std::string("PersonId"), std::to_string(personId));
}
std::string AddBodyTraceRequest::getOssFile() const {
return ossFile_;
}
void AddBodyTraceRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
std::vector<AddBodyTraceRequest::Images> AddBodyTraceRequest::getImages() const {
return images_;
}
void AddBodyTraceRequest::setImages(const std::vector<AddBodyTraceRequest::Images> &images) {
images_ = images;
for(int dep1 = 0; dep1 != images.size(); dep1++) {
setBodyParameter(std::string("Images") + "." + std::to_string(dep1 + 1) + ".ImageURL", images[dep1].imageURL);
setBodyParameter(std::string("Images") + "." + std::to_string(dep1 + 1) + ".ImageData", images[dep1].imageData);
}
}
std::string AddBodyTraceRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void AddBodyTraceRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}
long AddBodyTraceRequest::getDbId() const {
return dbId_;
}
void AddBodyTraceRequest::setDbId(long dbId) {
dbId_ = dbId;
setBodyParameter(std::string("DbId"), std::to_string(dbId));
}

View File

@@ -1,66 +0,0 @@
/*
* 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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string AddBodyTraceResult::getMessage()const
{
return message_;
}
AddBodyTraceResult::Data AddBodyTraceResult::getData()const
{
return data_;
}
std::string AddBodyTraceResult::getCode()const
{
return code_;
}

View File

@@ -1,63 +0,0 @@
/*
* 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() {}
bool CreateBodyDbRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void CreateBodyDbRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
std::string CreateBodyDbRequest::getOssFile() const {
return ossFile_;
}
void CreateBodyDbRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
std::string CreateBodyDbRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void CreateBodyDbRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}
std::string CreateBodyDbRequest::getName() const {
return name_;
}
void CreateBodyDbRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}

View File

@@ -1,66 +0,0 @@
/*
* 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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateBodyDbResult::getMessage()const
{
return message_;
}
CreateBodyDbResult::Data CreateBodyDbResult::getData()const
{
return data_;
}
std::string CreateBodyDbResult::getCode()const
{
return code_;
}

View File

@@ -1,72 +0,0 @@
/*
* 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() {}
bool CreateBodyPersonRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void CreateBodyPersonRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
std::string CreateBodyPersonRequest::getOssFile() const {
return ossFile_;
}
void CreateBodyPersonRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
std::string CreateBodyPersonRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void CreateBodyPersonRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}
long CreateBodyPersonRequest::getDbId() const {
return dbId_;
}
void CreateBodyPersonRequest::setDbId(long dbId) {
dbId_ = dbId;
setBodyParameter(std::string("DbId"), std::to_string(dbId));
}
std::string CreateBodyPersonRequest::getName() const {
return name_;
}
void CreateBodyPersonRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}

View File

@@ -1,66 +0,0 @@
/*
* 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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateBodyPersonResult::getMessage()const
{
return message_;
}
CreateBodyPersonResult::Data CreateBodyPersonResult::getData()const
{
return data_;
}
std::string CreateBodyPersonResult::getCode()const
{
return code_;
}

View File

@@ -1,63 +0,0 @@
/*
* 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() {}
bool DeleteBodyDbRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void DeleteBodyDbRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
long DeleteBodyDbRequest::getId() const {
return id_;
}
void DeleteBodyDbRequest::setId(long id) {
id_ = id;
setBodyParameter(std::string("Id"), std::to_string(id));
}
std::string DeleteBodyDbRequest::getOssFile() const {
return ossFile_;
}
void DeleteBodyDbRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
std::string DeleteBodyDbRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void DeleteBodyDbRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}

View File

@@ -1,58 +0,0 @@
/*
* 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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteBodyDbResult::getMessage()const
{
return message_;
}
std::string DeleteBodyDbResult::getCode()const
{
return code_;
}

View File

@@ -1,72 +0,0 @@
/*
* 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() {}
bool DeleteBodyPersonRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void DeleteBodyPersonRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
long DeleteBodyPersonRequest::getPersonId() const {
return personId_;
}
void DeleteBodyPersonRequest::setPersonId(long personId) {
personId_ = personId;
setBodyParameter(std::string("PersonId"), std::to_string(personId));
}
std::string DeleteBodyPersonRequest::getOssFile() const {
return ossFile_;
}
void DeleteBodyPersonRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
std::string DeleteBodyPersonRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void DeleteBodyPersonRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}
long DeleteBodyPersonRequest::getDbId() const {
return dbId_;
}
void DeleteBodyPersonRequest::setDbId(long dbId) {
dbId_ = dbId;
setBodyParameter(std::string("DbId"), std::to_string(dbId));
}

View File

@@ -1,58 +0,0 @@
/*
* 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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteBodyPersonResult::getMessage()const
{
return message_;
}
std::string DeleteBodyPersonResult::getCode()const
{
return code_;
}

View File

@@ -1,72 +0,0 @@
/*
* 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() {}
bool GetBodyPersonRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void GetBodyPersonRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
long GetBodyPersonRequest::getPersonId() const {
return personId_;
}
void GetBodyPersonRequest::setPersonId(long personId) {
personId_ = personId;
setParameter(std::string("PersonId"), std::to_string(personId));
}
std::string GetBodyPersonRequest::getOssFile() const {
return ossFile_;
}
void GetBodyPersonRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
std::string GetBodyPersonRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void GetBodyPersonRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}
long GetBodyPersonRequest::getDbId() const {
return dbId_;
}
void GetBodyPersonRequest::setDbId(long dbId) {
dbId_ = dbId;
setParameter(std::string("DbId"), std::to_string(dbId));
}

View File

@@ -1,84 +0,0 @@
/*
* 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["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();
if(!dataNode["TraceCount"].isNull())
data_.traceCount = std::stol(dataNode["TraceCount"].asString());
auto allTraceListNode = dataNode["TraceList"]["Trace"];
for (auto dataNodeTraceListTrace : allTraceListNode)
{
Data::Trace traceObject;
if(!dataNodeTraceListTrace["Id"].isNull())
traceObject.id = std::stol(dataNodeTraceListTrace["Id"].asString());
if(!dataNodeTraceListTrace["ExtraData"].isNull())
traceObject.extraData = dataNodeTraceListTrace["ExtraData"].asString();
data_.traceList.push_back(traceObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetBodyPersonResult::getMessage()const
{
return message_;
}
GetBodyPersonResult::Data GetBodyPersonResult::getData()const
{
return data_;
}
std::string GetBodyPersonResult::getCode()const
{
return code_;
}

View File

@@ -1,72 +0,0 @@
/*
* 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() {}
bool ListBodyDbsRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void ListBodyDbsRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
long ListBodyDbsRequest::getLimit() const {
return limit_;
}
void ListBodyDbsRequest::setLimit(long limit) {
limit_ = limit;
setParameter(std::string("Limit"), std::to_string(limit));
}
std::string ListBodyDbsRequest::getOssFile() const {
return ossFile_;
}
void ListBodyDbsRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
long ListBodyDbsRequest::getOffset() const {
return offset_;
}
void ListBodyDbsRequest::setOffset(long offset) {
offset_ = offset;
setParameter(std::string("Offset"), std::to_string(offset));
}
std::string ListBodyDbsRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void ListBodyDbsRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}

View File

@@ -1,76 +0,0 @@
/*
* 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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListBodyDbsResult::getMessage()const
{
return message_;
}
ListBodyDbsResult::Data ListBodyDbsResult::getData()const
{
return data_;
}
std::string ListBodyDbsResult::getCode()const
{
return code_;
}

View File

@@ -1,81 +0,0 @@
/*
* 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() {}
bool ListBodyPersonRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void ListBodyPersonRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
long ListBodyPersonRequest::getLimit() const {
return limit_;
}
void ListBodyPersonRequest::setLimit(long limit) {
limit_ = limit;
setParameter(std::string("Limit"), std::to_string(limit));
}
std::string ListBodyPersonRequest::getOssFile() const {
return ossFile_;
}
void ListBodyPersonRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
long ListBodyPersonRequest::getOffset() const {
return offset_;
}
void ListBodyPersonRequest::setOffset(long offset) {
offset_ = offset;
setParameter(std::string("Offset"), std::to_string(offset));
}
std::string ListBodyPersonRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void ListBodyPersonRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}
long ListBodyPersonRequest::getDbId() const {
return dbId_;
}
void ListBodyPersonRequest::setDbId(long dbId) {
dbId_ = dbId;
setParameter(std::string("DbId"), std::to_string(dbId));
}

View File

@@ -1,82 +0,0 @@
/*
* 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["InstanceId"].isNull())
personObject.instanceId = std::stol(dataNodePersonListPerson["InstanceId"].asString());
if(!dataNodePersonListPerson["DbId"].isNull())
personObject.dbId = std::stol(dataNodePersonListPerson["DbId"].asString());
if(!dataNodePersonListPerson["Name"].isNull())
personObject.name = dataNodePersonListPerson["Name"].asString();
if(!dataNodePersonListPerson["TraceCount"].isNull())
personObject.traceCount = std::stol(dataNodePersonListPerson["TraceCount"].asString());
if(!dataNodePersonListPerson["Id"].isNull())
personObject.id = std::stol(dataNodePersonListPerson["Id"].asString());
data_.personList.push_back(personObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListBodyPersonResult::getMessage()const
{
return message_;
}
ListBodyPersonResult::Data ListBodyPersonResult::getData()const
{
return data_;
}
std::string ListBodyPersonResult::getCode()const
{
return code_;
}

View File

@@ -1,93 +0,0 @@
/*
* 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(std::string("MinScore"), std::to_string(minScore));
}
bool SearchBodyTraceRequest::getFormatResultToJson() const {
return formatResultToJson_;
}
void SearchBodyTraceRequest::setFormatResultToJson(bool formatResultToJson) {
formatResultToJson_ = formatResultToJson;
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
}
long SearchBodyTraceRequest::getLimit() const {
return limit_;
}
void SearchBodyTraceRequest::setLimit(long limit) {
limit_ = limit;
setBodyParameter(std::string("Limit"), std::to_string(limit));
}
std::string SearchBodyTraceRequest::getOssFile() const {
return ossFile_;
}
void SearchBodyTraceRequest::setOssFile(const std::string &ossFile) {
ossFile_ = ossFile;
setParameter(std::string("OssFile"), ossFile);
}
std::vector<SearchBodyTraceRequest::Images> SearchBodyTraceRequest::getImages() const {
return images_;
}
void SearchBodyTraceRequest::setImages(const std::vector<SearchBodyTraceRequest::Images> &images) {
images_ = images;
for(int dep1 = 0; dep1 != images.size(); dep1++) {
setBodyParameter(std::string("Images") + "." + std::to_string(dep1 + 1) + ".ImageURL", images[dep1].imageURL);
setBodyParameter(std::string("Images") + "." + std::to_string(dep1 + 1) + ".ImageData", images[dep1].imageData);
}
}
std::string SearchBodyTraceRequest::getRequestProxyBy() const {
return requestProxyBy_;
}
void SearchBodyTraceRequest::setRequestProxyBy(const std::string &requestProxyBy) {
requestProxyBy_ = requestProxyBy;
setParameter(std::string("RequestProxyBy"), requestProxyBy);
}
long SearchBodyTraceRequest::getDbId() const {
return dbId_;
}
void SearchBodyTraceRequest::setDbId(long dbId) {
dbId_ = dbId;
setBodyParameter(std::string("DbId"), std::to_string(dbId));
}

View File

@@ -1,80 +0,0 @@
/*
* 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["DbId"].isNull())
traceObject.dbId = std::stol(dataNodeMatchListTrace["DbId"].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["Score"].isNull())
traceObject.score = std::stof(dataNodeMatchListTrace["Score"].asString());
if(!dataNodeMatchListTrace["ExtraData"].isNull())
traceObject.extraData = dataNodeMatchListTrace["ExtraData"].asString();
data_.matchList.push_back(traceObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SearchBodyTraceResult::getMessage()const
{
return message_;
}
SearchBodyTraceResult::Data SearchBodyTraceResult::getData()const
{
return data_;
}
std::string SearchBodyTraceResult::getCode()const
{
return code_;
}