Add LivenessDetect API.

This commit is contained in:
sdk-team
2020-11-23 03:12:35 +00:00
parent b1e826e6d7
commit 70ddae4685
24 changed files with 1501 additions and 0 deletions

View File

@@ -30,6 +30,8 @@
#include "model/ContrastFaceVerifyResult.h"
#include "model/CreateAuthKeyRequest.h"
#include "model/CreateAuthKeyResult.h"
#include "model/CreateFaceConfigRequest.h"
#include "model/CreateFaceConfigResult.h"
#include "model/CreateRPSDKRequest.h"
#include "model/CreateRPSDKResult.h"
#include "model/CreateVerifySDKRequest.h"
@@ -40,6 +42,8 @@
#include "model/DescribeAppInfoResult.h"
#include "model/DescribeDeviceInfoRequest.h"
#include "model/DescribeDeviceInfoResult.h"
#include "model/DescribeFaceConfigRequest.h"
#include "model/DescribeFaceConfigResult.h"
#include "model/DescribeFaceUsageRequest.h"
#include "model/DescribeFaceUsageResult.h"
#include "model/DescribeFaceVerifyRequest.h"
@@ -72,6 +76,8 @@
#include "model/DescribeVerifyUsageResult.h"
#include "model/DetectFaceAttributesRequest.h"
#include "model/DetectFaceAttributesResult.h"
#include "model/ElementSmartVerifyRequest.h"
#include "model/ElementSmartVerifyResult.h"
#include "model/GetMaterialsRequest.h"
#include "model/GetMaterialsResult.h"
#include "model/GetStatusRequest.h"
@@ -84,6 +90,8 @@
#include "model/InitFaceVerifyResult.h"
#include "model/InitSmartVerifyRequest.h"
#include "model/InitSmartVerifyResult.h"
#include "model/LivenessDetectRequest.h"
#include "model/LivenessDetectResult.h"
#include "model/LivenessFaceVerifyRequest.h"
#include "model/LivenessFaceVerifyResult.h"
#include "model/ModifyDeviceInfoRequest.h"
@@ -94,6 +102,8 @@
#include "model/SubmitVerificationResult.h"
#include "model/UpdateAppPackageRequest.h"
#include "model/UpdateAppPackageResult.h"
#include "model/UpdateFaceConfigRequest.h"
#include "model/UpdateFaceConfigResult.h"
#include "model/UpdateVerifySettingRequest.h"
#include "model/UpdateVerifySettingResult.h"
#include "model/VerifyDeviceRequest.h"
@@ -121,6 +131,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
typedef Outcome<Error, Model::CreateFaceConfigResult> CreateFaceConfigOutcome;
typedef std::future<CreateFaceConfigOutcome> CreateFaceConfigOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateFaceConfigRequest&, const CreateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceConfigAsyncHandler;
typedef Outcome<Error, Model::CreateRPSDKResult> CreateRPSDKOutcome;
typedef std::future<CreateRPSDKOutcome> CreateRPSDKOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateRPSDKRequest&, const CreateRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRPSDKAsyncHandler;
@@ -136,6 +149,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeFaceConfigResult> DescribeFaceConfigOutcome;
typedef std::future<DescribeFaceConfigOutcome> DescribeFaceConfigOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceConfigRequest&, const DescribeFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeFaceUsageResult> DescribeFaceUsageOutcome;
typedef std::future<DescribeFaceUsageOutcome> DescribeFaceUsageOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceUsageRequest&, const DescribeFaceUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceUsageAsyncHandler;
@@ -184,6 +200,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
typedef Outcome<Error, Model::ElementSmartVerifyResult> ElementSmartVerifyOutcome;
typedef std::future<ElementSmartVerifyOutcome> ElementSmartVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::ElementSmartVerifyRequest&, const ElementSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ElementSmartVerifyAsyncHandler;
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
@@ -202,6 +221,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
typedef Outcome<Error, Model::LivenessDetectResult> LivenessDetectOutcome;
typedef std::future<LivenessDetectOutcome> LivenessDetectOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::LivenessDetectRequest&, const LivenessDetectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessDetectAsyncHandler;
typedef Outcome<Error, Model::LivenessFaceVerifyResult> LivenessFaceVerifyOutcome;
typedef std::future<LivenessFaceVerifyOutcome> LivenessFaceVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::LivenessFaceVerifyRequest&, const LivenessFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessFaceVerifyAsyncHandler;
@@ -217,6 +239,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
typedef Outcome<Error, Model::UpdateFaceConfigResult> UpdateFaceConfigOutcome;
typedef std::future<UpdateFaceConfigOutcome> UpdateFaceConfigOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateFaceConfigRequest&, const UpdateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFaceConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
@@ -243,6 +268,9 @@ namespace AlibabaCloud
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
CreateFaceConfigOutcome createFaceConfig(const Model::CreateFaceConfigRequest &request)const;
void createFaceConfigAsync(const Model::CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFaceConfigOutcomeCallable createFaceConfigCallable(const Model::CreateFaceConfigRequest& request) const;
CreateRPSDKOutcome createRPSDK(const Model::CreateRPSDKRequest &request)const;
void createRPSDKAsync(const Model::CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRPSDKOutcomeCallable createRPSDKCallable(const Model::CreateRPSDKRequest& request) const;
@@ -258,6 +286,9 @@ namespace AlibabaCloud
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
DescribeFaceConfigOutcome describeFaceConfig(const Model::DescribeFaceConfigRequest &request)const;
void describeFaceConfigAsync(const Model::DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFaceConfigOutcomeCallable describeFaceConfigCallable(const Model::DescribeFaceConfigRequest& request) const;
DescribeFaceUsageOutcome describeFaceUsage(const Model::DescribeFaceUsageRequest &request)const;
void describeFaceUsageAsync(const Model::DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFaceUsageOutcomeCallable describeFaceUsageCallable(const Model::DescribeFaceUsageRequest& request) const;
@@ -306,6 +337,9 @@ namespace AlibabaCloud
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
ElementSmartVerifyOutcome elementSmartVerify(const Model::ElementSmartVerifyRequest &request)const;
void elementSmartVerifyAsync(const Model::ElementSmartVerifyRequest& request, const ElementSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ElementSmartVerifyOutcomeCallable elementSmartVerifyCallable(const Model::ElementSmartVerifyRequest& request) const;
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
@@ -324,6 +358,9 @@ namespace AlibabaCloud
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
LivenessDetectOutcome livenessDetect(const Model::LivenessDetectRequest &request)const;
void livenessDetectAsync(const Model::LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LivenessDetectOutcomeCallable livenessDetectCallable(const Model::LivenessDetectRequest& request) const;
LivenessFaceVerifyOutcome livenessFaceVerify(const Model::LivenessFaceVerifyRequest &request)const;
void livenessFaceVerifyAsync(const Model::LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LivenessFaceVerifyOutcomeCallable livenessFaceVerifyCallable(const Model::LivenessFaceVerifyRequest& request) const;
@@ -339,6 +376,9 @@ namespace AlibabaCloud
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;
UpdateFaceConfigOutcome updateFaceConfig(const Model::UpdateFaceConfigRequest &request)const;
void updateFaceConfigAsync(const Model::UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateFaceConfigOutcomeCallable updateFaceConfigCallable(const Model::UpdateFaceConfigRequest& request) const;
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;

View File

@@ -0,0 +1,57 @@
/*
* 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_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateFaceConfigRequest : public RpcServiceRequest
{
public:
CreateFaceConfigRequest();
~CreateFaceConfigRequest();
std::string getBizName()const;
void setBizName(const std::string& bizName);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string bizName_;
std::string bizType_;
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateFaceConfigResult : public ServiceResult
{
public:
CreateFaceConfigResult();
explicit CreateFaceConfigResult(const std::string &payload);
~CreateFaceConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceConfigRequest : public RpcServiceRequest
{
public:
DescribeFaceConfigRequest();
~DescribeFaceConfigRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceConfigResult : public ServiceResult
{
public:
struct ItemsItem
{
long gmtUpdated;
std::string bizType;
std::string bizName;
};
DescribeFaceConfigResult();
explicit DescribeFaceConfigResult(const std::string &payload);
~DescribeFaceConfigResult();
std::vector<ItemsItem> getItems()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ItemsItem> items_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* 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_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT ElementSmartVerifyRequest : public RpcServiceRequest
{
public:
ElementSmartVerifyRequest();
~ElementSmartVerifyRequest();
std::string getCertFile()const;
void setCertFile(const std::string& certFile);
std::string getCertName()const;
void setCertName(const std::string& certName);
std::string getMode()const;
void setMode(const std::string& mode);
std::string getCertNo()const;
void setCertNo(const std::string& certNo);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getCertUrl()const;
void setCertUrl(const std::string& certUrl);
std::string getCertType()const;
void setCertType(const std::string& certType);
long getSceneId()const;
void setSceneId(long sceneId);
private:
std::string certFile_;
std::string certName_;
std::string mode_;
std::string certNo_;
std::string outerOrderNo_;
std::string certUrl_;
std::string certType_;
long sceneId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT ElementSmartVerifyResult : public ServiceResult
{
public:
struct ResultObject
{
std::string passed;
std::string materialInfo;
std::string subCode;
};
ElementSmartVerifyResult();
explicit ElementSmartVerifyResult(const std::string &payload);
~ElementSmartVerifyResult();
ResultObject getResultObject()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
ResultObject resultObject_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectRequest : public RpcServiceRequest
{
public:
LivenessDetectRequest();
~LivenessDetectRequest();
std::string getMediaCategory()const;
void setMediaCategory(const std::string& mediaCategory);
std::string getMediaUrl()const;
void setMediaUrl(const std::string& mediaUrl);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getMediaFile()const;
void setMediaFile(const std::string& mediaFile);
private:
std::string mediaCategory_;
std::string mediaUrl_;
std::string bizType_;
std::string bizId_;
std::string mediaFile_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectResult : public ServiceResult
{
public:
struct ResultObject
{
std::string passed;
float score;
std::string frameUrl;
};
LivenessDetectResult();
explicit LivenessDetectResult(const std::string &payload);
~LivenessDetectResult();
ResultObject getResultObject()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
ResultObject resultObject_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigRequest : public RpcServiceRequest
{
public:
UpdateFaceConfigRequest();
~UpdateFaceConfigRequest();
std::string getBizName()const;
void setBizName(const std::string& bizName);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string bizName_;
std::string bizType_;
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigResult : public ServiceResult
{
public:
UpdateFaceConfigResult();
explicit UpdateFaceConfigResult(const std::string &payload);
~UpdateFaceConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_