Add InitFaceVerify and DescribeFaceVerify API.

This commit is contained in:
sdk-team
2020-02-26 11:16:37 +08:00
parent cca2dd1b12
commit 20fc16db11
42 changed files with 1500 additions and 116 deletions

View File

@@ -36,6 +36,8 @@
#include "model/DescribeDeviceInfoResult.h"
#include "model/DescribeFaceUsageRequest.h"
#include "model/DescribeFaceUsageResult.h"
#include "model/DescribeFaceVerifyRequest.h"
#include "model/DescribeFaceVerifyResult.h"
#include "model/DescribeOssUploadTokenRequest.h"
#include "model/DescribeOssUploadTokenResult.h"
#include "model/DescribeRPSDKRequest.h"
@@ -58,10 +60,16 @@
#include "model/DescribeVerifyUsageResult.h"
#include "model/DetectFaceAttributesRequest.h"
#include "model/DetectFaceAttributesResult.h"
#include "model/InitDeviceRequest.h"
#include "model/InitDeviceResult.h"
#include "model/InitFaceVerifyRequest.h"
#include "model/InitFaceVerifyResult.h"
#include "model/ModifyDeviceInfoRequest.h"
#include "model/ModifyDeviceInfoResult.h"
#include "model/UpdateVerifySettingRequest.h"
#include "model/UpdateVerifySettingResult.h"
#include "model/VerifyDeviceRequest.h"
#include "model/VerifyDeviceResult.h"
#include "model/VerifyMaterialRequest.h"
#include "model/VerifyMaterialResult.h"
@@ -94,6 +102,9 @@ namespace AlibabaCloud
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;
typedef Outcome<Error, Model::DescribeFaceVerifyResult> DescribeFaceVerifyOutcome;
typedef std::future<DescribeFaceVerifyOutcome> DescribeFaceVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceVerifyRequest&, const DescribeFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceVerifyAsyncHandler;
typedef Outcome<Error, Model::DescribeOssUploadTokenResult> DescribeOssUploadTokenOutcome;
typedef std::future<DescribeOssUploadTokenOutcome> DescribeOssUploadTokenOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeOssUploadTokenRequest&, const DescribeOssUploadTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOssUploadTokenAsyncHandler;
@@ -127,12 +138,21 @@ 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::InitDeviceResult> InitDeviceOutcome;
typedef std::future<InitDeviceOutcome> InitDeviceOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitDeviceRequest&, const InitDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitDeviceAsyncHandler;
typedef Outcome<Error, Model::InitFaceVerifyResult> InitFaceVerifyOutcome;
typedef std::future<InitFaceVerifyOutcome> InitFaceVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitFaceVerifyRequest&, const InitFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitFaceVerifyAsyncHandler;
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
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;
typedef Outcome<Error, Model::VerifyDeviceResult> VerifyDeviceOutcome;
typedef std::future<VerifyDeviceOutcome> VerifyDeviceOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::VerifyDeviceRequest&, const VerifyDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDeviceAsyncHandler;
typedef Outcome<Error, Model::VerifyMaterialResult> VerifyMaterialOutcome;
typedef std::future<VerifyMaterialOutcome> VerifyMaterialOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::VerifyMaterialRequest&, const VerifyMaterialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyMaterialAsyncHandler;
@@ -162,6 +182,9 @@ namespace AlibabaCloud
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;
DescribeFaceVerifyOutcome describeFaceVerify(const Model::DescribeFaceVerifyRequest &request)const;
void describeFaceVerifyAsync(const Model::DescribeFaceVerifyRequest& request, const DescribeFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFaceVerifyOutcomeCallable describeFaceVerifyCallable(const Model::DescribeFaceVerifyRequest& request) const;
DescribeOssUploadTokenOutcome describeOssUploadToken(const Model::DescribeOssUploadTokenRequest &request)const;
void describeOssUploadTokenAsync(const Model::DescribeOssUploadTokenRequest& request, const DescribeOssUploadTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeOssUploadTokenOutcomeCallable describeOssUploadTokenCallable(const Model::DescribeOssUploadTokenRequest& request) const;
@@ -195,12 +218,21 @@ 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;
InitDeviceOutcome initDevice(const Model::InitDeviceRequest &request)const;
void initDeviceAsync(const Model::InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitDeviceOutcomeCallable initDeviceCallable(const Model::InitDeviceRequest& request) const;
InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const;
void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const;
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& 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;
VerifyDeviceOutcome verifyDevice(const Model::VerifyDeviceRequest &request)const;
void verifyDeviceAsync(const Model::VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyDeviceOutcomeCallable verifyDeviceCallable(const Model::VerifyDeviceRequest& request) const;
VerifyMaterialOutcome verifyMaterial(const Model::VerifyMaterialRequest &request)const;
void verifyMaterialAsync(const Model::VerifyMaterialRequest& request, const VerifyMaterialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyMaterialOutcomeCallable verifyMaterialCallable(const Model::VerifyMaterialRequest& request) const;

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_DESCRIBEFACEVERIFYREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_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 DescribeFaceVerifyRequest : public RpcServiceRequest
{
public:
DescribeFaceVerifyRequest();
~DescribeFaceVerifyRequest();
long getSceneId()const;
void setSceneId(long sceneId);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
private:
long sceneId_;
std::string certifyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_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_DESCRIBEFACEVERIFYRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYRESULT_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 DescribeFaceVerifyResult : public ServiceResult
{
public:
struct ResultObject
{
std::string passed;
std::string identityInfo;
std::string materialInfo;
};
DescribeFaceVerifyResult();
explicit DescribeFaceVerifyResult(const std::string &payload);
~DescribeFaceVerifyResult();
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_DESCRIBEFACEVERIFYRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_INITDEVICEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_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 InitDeviceRequest : public RpcServiceRequest
{
public:
InitDeviceRequest();
~InitDeviceRequest();
std::string getChannel()const;
void setChannel(const std::string& channel);
std::string getBizData()const;
void setBizData(const std::string& bizData);
std::string getMerchant()const;
void setMerchant(const std::string& merchant);
std::string getAppVersion()const;
void setAppVersion(const std::string& appVersion);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getProduceNode()const;
void setProduceNode(const std::string& produceNode);
std::string getProductName()const;
void setProductName(const std::string& productName);
std::string getCertifyPrincipal()const;
void setCertifyPrincipal(const std::string& certifyPrincipal);
std::string getMetaInfo()const;
void setMetaInfo(const std::string& metaInfo);
private:
std::string channel_;
std::string bizData_;
std::string merchant_;
std::string appVersion_;
std::string certifyId_;
std::string outerOrderNo_;
std::string produceNode_;
std::string productName_;
std::string certifyPrincipal_;
std::string metaInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICERESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICERESULT_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 InitDeviceResult : public ServiceResult
{
public:
struct ResultObject
{
std::string retMessageSub;
std::string certifyId;
std::string message;
std::string extParams;
std::string accessKeySecret;
std::string ossEndPoint;
std::string securityToken;
std::string bucketName;
std::string retCode;
std::string fileNamePrefix;
std::string accessKeyId;
std::string retCodeSub;
std::string protocol;
};
InitDeviceResult();
explicit InitDeviceResult(const std::string &payload);
~InitDeviceResult();
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_INITDEVICERESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_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 InitFaceVerifyRequest : public RpcServiceRequest
{
public:
InitFaceVerifyRequest();
~InitFaceVerifyRequest();
std::string getProductCode()const;
void setProductCode(const std::string& productCode);
std::string getFaceContrastPicture()const;
void setFaceContrastPicture(const std::string& faceContrastPicture);
std::string getCertName()const;
void setCertName(const std::string& certName);
std::string getCertNo()const;
void setCertNo(const std::string& certNo);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getCertType()const;
void setCertType(const std::string& certType);
long getSceneId()const;
void setSceneId(long sceneId);
std::string getReturnUrl()const;
void setReturnUrl(const std::string& returnUrl);
std::string getMetaInfo()const;
void setMetaInfo(const std::string& metaInfo);
private:
std::string productCode_;
std::string faceContrastPicture_;
std::string certName_;
std::string certNo_;
std::string outerOrderNo_;
std::string certType_;
long sceneId_;
std::string returnUrl_;
std::string metaInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_INITFACEVERIFYRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYRESULT_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 InitFaceVerifyResult : public ServiceResult
{
public:
struct ResultObject
{
std::string certifyId;
};
InitFaceVerifyResult();
explicit InitFaceVerifyResult(const std::string &payload);
~InitFaceVerifyResult();
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_INITFACEVERIFYRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_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 VerifyDeviceRequest : public RpcServiceRequest
{
public:
VerifyDeviceRequest();
~VerifyDeviceRequest();
std::string getCertifyData()const;
void setCertifyData(const std::string& certifyData);
std::string getAppVersion()const;
void setAppVersion(const std::string& appVersion);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
private:
std::string certifyData_;
std::string appVersion_;
std::string certifyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* 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_VERIFYDEVICERESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICERESULT_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 VerifyDeviceResult : public ServiceResult
{
public:
struct ResultObject
{
std::string validationRetCode;
std::string productRetCode;
std::string retMessageSub;
std::string extParams;
std::string retCodeSub;
std::string hasNext;
};
VerifyDeviceResult();
explicit VerifyDeviceResult(const std::string &payload);
~VerifyDeviceResult();
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_VERIFYDEVICERESULT_H_