Support New API for Dypnsapi.
This commit is contained in:
@@ -29,14 +29,24 @@ set(dypnsapi_public_header_model
|
||||
include/alibabacloud/dypnsapi/model/DescribeVerifySchemeResult.h
|
||||
include/alibabacloud/dypnsapi/model/GetAuthTokenRequest.h
|
||||
include/alibabacloud/dypnsapi/model/GetAuthTokenResult.h
|
||||
include/alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h
|
||||
include/alibabacloud/dypnsapi/model/GetAuthorizationUrlResult.h
|
||||
include/alibabacloud/dypnsapi/model/GetCertifyResultRequest.h
|
||||
include/alibabacloud/dypnsapi/model/GetCertifyResultResult.h
|
||||
include/alibabacloud/dypnsapi/model/GetMobileRequest.h
|
||||
include/alibabacloud/dypnsapi/model/GetMobileResult.h
|
||||
include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h
|
||||
include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h
|
||||
include/alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h
|
||||
include/alibabacloud/dypnsapi/model/GetSmsAuthTokensResult.h
|
||||
include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h
|
||||
include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicResult.h
|
||||
include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h
|
||||
include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicResult.h
|
||||
include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h
|
||||
include/alibabacloud/dypnsapi/model/VerifyMobileResult.h
|
||||
include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h
|
||||
include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenResult.h )
|
||||
include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenResult.h
|
||||
include/alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h
|
||||
include/alibabacloud/dypnsapi/model/VerifySmsCodeResult.h )
|
||||
|
||||
set(dypnsapi_src
|
||||
src/DypnsapiClient.cc
|
||||
@@ -48,14 +58,24 @@ set(dypnsapi_src
|
||||
src/model/DescribeVerifySchemeResult.cc
|
||||
src/model/GetAuthTokenRequest.cc
|
||||
src/model/GetAuthTokenResult.cc
|
||||
src/model/GetAuthorizationUrlRequest.cc
|
||||
src/model/GetAuthorizationUrlResult.cc
|
||||
src/model/GetCertifyResultRequest.cc
|
||||
src/model/GetCertifyResultResult.cc
|
||||
src/model/GetMobileRequest.cc
|
||||
src/model/GetMobileResult.cc
|
||||
src/model/TwiceTelVerifyRequest.cc
|
||||
src/model/TwiceTelVerifyResult.cc
|
||||
src/model/GetSmsAuthTokensRequest.cc
|
||||
src/model/GetSmsAuthTokensResult.cc
|
||||
src/model/QueryGateVerifyBillingPublicRequest.cc
|
||||
src/model/QueryGateVerifyBillingPublicResult.cc
|
||||
src/model/QueryGateVerifyStatisticPublicRequest.cc
|
||||
src/model/QueryGateVerifyStatisticPublicResult.cc
|
||||
src/model/VerifyMobileRequest.cc
|
||||
src/model/VerifyMobileResult.cc
|
||||
src/model/VerifyPhoneWithTokenRequest.cc
|
||||
src/model/VerifyPhoneWithTokenResult.cc )
|
||||
src/model/VerifyPhoneWithTokenResult.cc
|
||||
src/model/VerifySmsCodeRequest.cc
|
||||
src/model/VerifySmsCodeResult.cc )
|
||||
|
||||
add_library(dypnsapi ${LIB_TYPE}
|
||||
${dypnsapi_public_header}
|
||||
|
||||
@@ -30,14 +30,24 @@
|
||||
#include "model/DescribeVerifySchemeResult.h"
|
||||
#include "model/GetAuthTokenRequest.h"
|
||||
#include "model/GetAuthTokenResult.h"
|
||||
#include "model/GetAuthorizationUrlRequest.h"
|
||||
#include "model/GetAuthorizationUrlResult.h"
|
||||
#include "model/GetCertifyResultRequest.h"
|
||||
#include "model/GetCertifyResultResult.h"
|
||||
#include "model/GetMobileRequest.h"
|
||||
#include "model/GetMobileResult.h"
|
||||
#include "model/TwiceTelVerifyRequest.h"
|
||||
#include "model/TwiceTelVerifyResult.h"
|
||||
#include "model/GetSmsAuthTokensRequest.h"
|
||||
#include "model/GetSmsAuthTokensResult.h"
|
||||
#include "model/QueryGateVerifyBillingPublicRequest.h"
|
||||
#include "model/QueryGateVerifyBillingPublicResult.h"
|
||||
#include "model/QueryGateVerifyStatisticPublicRequest.h"
|
||||
#include "model/QueryGateVerifyStatisticPublicResult.h"
|
||||
#include "model/VerifyMobileRequest.h"
|
||||
#include "model/VerifyMobileResult.h"
|
||||
#include "model/VerifyPhoneWithTokenRequest.h"
|
||||
#include "model/VerifyPhoneWithTokenResult.h"
|
||||
#include "model/VerifySmsCodeRequest.h"
|
||||
#include "model/VerifySmsCodeResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -59,18 +69,33 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetAuthTokenResult> GetAuthTokenOutcome;
|
||||
typedef std::future<GetAuthTokenOutcome> GetAuthTokenOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::GetAuthTokenRequest&, const GetAuthTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAuthTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAuthorizationUrlResult> GetAuthorizationUrlOutcome;
|
||||
typedef std::future<GetAuthorizationUrlOutcome> GetAuthorizationUrlOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::GetAuthorizationUrlRequest&, const GetAuthorizationUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAuthorizationUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCertifyResultResult> GetCertifyResultOutcome;
|
||||
typedef std::future<GetCertifyResultOutcome> GetCertifyResultOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::GetCertifyResultRequest&, const GetCertifyResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCertifyResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMobileResult> GetMobileOutcome;
|
||||
typedef std::future<GetMobileOutcome> GetMobileOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::GetMobileRequest&, const GetMobileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMobileAsyncHandler;
|
||||
typedef Outcome<Error, Model::TwiceTelVerifyResult> TwiceTelVerifyOutcome;
|
||||
typedef std::future<TwiceTelVerifyOutcome> TwiceTelVerifyOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::TwiceTelVerifyRequest&, const TwiceTelVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TwiceTelVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSmsAuthTokensResult> GetSmsAuthTokensOutcome;
|
||||
typedef std::future<GetSmsAuthTokensOutcome> GetSmsAuthTokensOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::GetSmsAuthTokensRequest&, const GetSmsAuthTokensOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSmsAuthTokensAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryGateVerifyBillingPublicResult> QueryGateVerifyBillingPublicOutcome;
|
||||
typedef std::future<QueryGateVerifyBillingPublicOutcome> QueryGateVerifyBillingPublicOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::QueryGateVerifyBillingPublicRequest&, const QueryGateVerifyBillingPublicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryGateVerifyBillingPublicAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryGateVerifyStatisticPublicResult> QueryGateVerifyStatisticPublicOutcome;
|
||||
typedef std::future<QueryGateVerifyStatisticPublicOutcome> QueryGateVerifyStatisticPublicOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::QueryGateVerifyStatisticPublicRequest&, const QueryGateVerifyStatisticPublicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryGateVerifyStatisticPublicAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyMobileResult> VerifyMobileOutcome;
|
||||
typedef std::future<VerifyMobileOutcome> VerifyMobileOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::VerifyMobileRequest&, const VerifyMobileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyMobileAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyPhoneWithTokenResult> VerifyPhoneWithTokenOutcome;
|
||||
typedef std::future<VerifyPhoneWithTokenOutcome> VerifyPhoneWithTokenOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::VerifyPhoneWithTokenRequest&, const VerifyPhoneWithTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyPhoneWithTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifySmsCodeResult> VerifySmsCodeOutcome;
|
||||
typedef std::future<VerifySmsCodeOutcome> VerifySmsCodeOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::VerifySmsCodeRequest&, const VerifySmsCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifySmsCodeAsyncHandler;
|
||||
|
||||
DypnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DypnsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -88,18 +113,33 @@ namespace AlibabaCloud
|
||||
GetAuthTokenOutcome getAuthToken(const Model::GetAuthTokenRequest &request)const;
|
||||
void getAuthTokenAsync(const Model::GetAuthTokenRequest& request, const GetAuthTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAuthTokenOutcomeCallable getAuthTokenCallable(const Model::GetAuthTokenRequest& request) const;
|
||||
GetAuthorizationUrlOutcome getAuthorizationUrl(const Model::GetAuthorizationUrlRequest &request)const;
|
||||
void getAuthorizationUrlAsync(const Model::GetAuthorizationUrlRequest& request, const GetAuthorizationUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAuthorizationUrlOutcomeCallable getAuthorizationUrlCallable(const Model::GetAuthorizationUrlRequest& request) const;
|
||||
GetCertifyResultOutcome getCertifyResult(const Model::GetCertifyResultRequest &request)const;
|
||||
void getCertifyResultAsync(const Model::GetCertifyResultRequest& request, const GetCertifyResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCertifyResultOutcomeCallable getCertifyResultCallable(const Model::GetCertifyResultRequest& request) const;
|
||||
GetMobileOutcome getMobile(const Model::GetMobileRequest &request)const;
|
||||
void getMobileAsync(const Model::GetMobileRequest& request, const GetMobileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMobileOutcomeCallable getMobileCallable(const Model::GetMobileRequest& request) const;
|
||||
TwiceTelVerifyOutcome twiceTelVerify(const Model::TwiceTelVerifyRequest &request)const;
|
||||
void twiceTelVerifyAsync(const Model::TwiceTelVerifyRequest& request, const TwiceTelVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TwiceTelVerifyOutcomeCallable twiceTelVerifyCallable(const Model::TwiceTelVerifyRequest& request) const;
|
||||
GetSmsAuthTokensOutcome getSmsAuthTokens(const Model::GetSmsAuthTokensRequest &request)const;
|
||||
void getSmsAuthTokensAsync(const Model::GetSmsAuthTokensRequest& request, const GetSmsAuthTokensAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSmsAuthTokensOutcomeCallable getSmsAuthTokensCallable(const Model::GetSmsAuthTokensRequest& request) const;
|
||||
QueryGateVerifyBillingPublicOutcome queryGateVerifyBillingPublic(const Model::QueryGateVerifyBillingPublicRequest &request)const;
|
||||
void queryGateVerifyBillingPublicAsync(const Model::QueryGateVerifyBillingPublicRequest& request, const QueryGateVerifyBillingPublicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryGateVerifyBillingPublicOutcomeCallable queryGateVerifyBillingPublicCallable(const Model::QueryGateVerifyBillingPublicRequest& request) const;
|
||||
QueryGateVerifyStatisticPublicOutcome queryGateVerifyStatisticPublic(const Model::QueryGateVerifyStatisticPublicRequest &request)const;
|
||||
void queryGateVerifyStatisticPublicAsync(const Model::QueryGateVerifyStatisticPublicRequest& request, const QueryGateVerifyStatisticPublicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryGateVerifyStatisticPublicOutcomeCallable queryGateVerifyStatisticPublicCallable(const Model::QueryGateVerifyStatisticPublicRequest& request) const;
|
||||
VerifyMobileOutcome verifyMobile(const Model::VerifyMobileRequest &request)const;
|
||||
void verifyMobileAsync(const Model::VerifyMobileRequest& request, const VerifyMobileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyMobileOutcomeCallable verifyMobileCallable(const Model::VerifyMobileRequest& request) const;
|
||||
VerifyPhoneWithTokenOutcome verifyPhoneWithToken(const Model::VerifyPhoneWithTokenRequest &request)const;
|
||||
void verifyPhoneWithTokenAsync(const Model::VerifyPhoneWithTokenRequest& request, const VerifyPhoneWithTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyPhoneWithTokenOutcomeCallable verifyPhoneWithTokenCallable(const Model::VerifyPhoneWithTokenRequest& request) const;
|
||||
VerifySmsCodeOutcome verifySmsCode(const Model::VerifySmsCodeRequest &request)const;
|
||||
void verifySmsCodeAsync(const Model::VerifySmsCodeRequest& request, const VerifySmsCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifySmsCodeOutcomeCallable verifySmsCodeCallable(const Model::VerifySmsCodeRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT GetAuthorizationUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAuthorizationUrlRequest();
|
||||
~GetAuthorizationUrlRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getSchemeId()const;
|
||||
void setSchemeId(long schemeId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPhoneNo()const;
|
||||
void setPhoneNo(const std::string& phoneNo);
|
||||
std::string getEndDate()const;
|
||||
void setEndDate(const std::string& endDate);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long schemeId_;
|
||||
long ownerId_;
|
||||
std::string phoneNo_;
|
||||
std::string endDate_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,32 +29,31 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyResult : public ServiceResult
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT GetAuthorizationUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
struct Data
|
||||
{
|
||||
std::string carrier;
|
||||
int verifyResult;
|
||||
std::string authorizationUrl;
|
||||
};
|
||||
|
||||
|
||||
TwiceTelVerifyResult();
|
||||
explicit TwiceTelVerifyResult(const std::string &payload);
|
||||
~TwiceTelVerifyResult();
|
||||
GetAuthorizationUrlResult();
|
||||
explicit GetAuthorizationUrlResult(const std::string &payload);
|
||||
~GetAuthorizationUrlResult();
|
||||
std::string getMessage()const;
|
||||
Result getTwiceTelVerifyResult()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Result twiceTelVerifyResult_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,36 +28,36 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT GetCertifyResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TwiceTelVerifyRequest();
|
||||
~TwiceTelVerifyRequest();
|
||||
GetCertifyResultRequest();
|
||||
~GetCertifyResultRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getPhoneNumber()const;
|
||||
void setPhoneNumber(const std::string& phoneNumber);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSince()const;
|
||||
void setSince(const std::string& since);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getToken()const;
|
||||
void setToken(const std::string& token);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string phoneNumber_;
|
||||
long ownerId_;
|
||||
std::string productCode_;
|
||||
std::string accessKeyId_;
|
||||
std::string since_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string token_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT GetCertifyResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string deviceToken;
|
||||
std::string identityInfo;
|
||||
std::string materialInfo;
|
||||
std::string verifyResult;
|
||||
std::string verifyDesc;
|
||||
};
|
||||
|
||||
|
||||
GetCertifyResultResult();
|
||||
explicit GetCertifyResultResult(const std::string &payload);
|
||||
~GetCertifyResultResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT GetSmsAuthTokensRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetSmsAuthTokensRequest();
|
||||
~GetSmsAuthTokensRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getBundleId()const;
|
||||
void setBundleId(const std::string& bundleId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSignName()const;
|
||||
void setSignName(const std::string& signName);
|
||||
std::string getSceneCode()const;
|
||||
void setSceneCode(const std::string& sceneCode);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
int getSmsCodeExpire()const;
|
||||
void setSmsCodeExpire(int smsCodeExpire);
|
||||
std::string getPackageName()const;
|
||||
void setPackageName(const std::string& packageName);
|
||||
std::string getOsType()const;
|
||||
void setOsType(const std::string& osType);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSmsTemplateCode()const;
|
||||
void setSmsTemplateCode(const std::string& smsTemplateCode);
|
||||
long getExpire()const;
|
||||
void setExpire(long expire);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string productCode_;
|
||||
std::string bundleId_;
|
||||
std::string accessKeyId_;
|
||||
std::string signName_;
|
||||
std::string sceneCode_;
|
||||
std::string resourceOwnerAccount_;
|
||||
int smsCodeExpire_;
|
||||
std::string packageName_;
|
||||
std::string osType_;
|
||||
long ownerId_;
|
||||
std::string smsTemplateCode_;
|
||||
long expire_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT GetSmsAuthTokensResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string stsAccessKeyId;
|
||||
std::string stsToken;
|
||||
std::string bizToken;
|
||||
long expireTime;
|
||||
std::string stsAccessKeySecret;
|
||||
};
|
||||
|
||||
|
||||
GetSmsAuthTokensResult();
|
||||
explicit GetSmsAuthTokensResult(const std::string &payload);
|
||||
~GetSmsAuthTokensResult();
|
||||
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_DYPNSAPI_MODEL_GETSMSAUTHTOKENSRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT QueryGateVerifyBillingPublicRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryGateVerifyBillingPublicRequest();
|
||||
~QueryGateVerifyBillingPublicRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getAuthenticationType()const;
|
||||
void setAuthenticationType(int authenticationType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getProdCode()const;
|
||||
void setProdCode(const std::string& prodCode);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getMonth()const;
|
||||
void setMonth(const std::string& month);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int authenticationType_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string prodCode_;
|
||||
long ownerId_;
|
||||
std::string month_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT QueryGateVerifyBillingPublicResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct SceneBillingListItem
|
||||
{
|
||||
std::string add;
|
||||
std::string sceneName;
|
||||
std::string amount;
|
||||
std::string sceneCode;
|
||||
std::string itemName;
|
||||
std::string singlePrice;
|
||||
std::string appName;
|
||||
};
|
||||
std::vector<SceneBillingListItem> sceneBillingList;
|
||||
std::string amountSum;
|
||||
};
|
||||
|
||||
|
||||
QueryGateVerifyBillingPublicResult();
|
||||
explicit QueryGateVerifyBillingPublicResult(const std::string &payload);
|
||||
~QueryGateVerifyBillingPublicResult();
|
||||
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_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICRESULT_H_
|
||||
@@ -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_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT QueryGateVerifyStatisticPublicRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryGateVerifyStatisticPublicRequest();
|
||||
~QueryGateVerifyStatisticPublicRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getAuthenticationType()const;
|
||||
void setAuthenticationType(int authenticationType);
|
||||
std::string getStartDate()const;
|
||||
void setStartDate(const std::string& startDate);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSceneCode()const;
|
||||
void setSceneCode(const std::string& sceneCode);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getProdCode()const;
|
||||
void setProdCode(const std::string& prodCode);
|
||||
std::string getOsType()const;
|
||||
void setOsType(const std::string& osType);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getEndDate()const;
|
||||
void setEndDate(const std::string& endDate);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int authenticationType_;
|
||||
std::string startDate_;
|
||||
std::string accessKeyId_;
|
||||
std::string sceneCode_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string prodCode_;
|
||||
std::string osType_;
|
||||
long ownerId_;
|
||||
std::string endDate_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT QueryGateVerifyStatisticPublicResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct DayStatisticItem
|
||||
{
|
||||
long totalUnknown;
|
||||
long totalFail;
|
||||
std::string statisticDateStr;
|
||||
long totalSuccess;
|
||||
};
|
||||
long totalUnknown;
|
||||
long totalFail;
|
||||
std::vector<DayStatisticItem> dayStatistic;
|
||||
long total;
|
||||
long totalSuccess;
|
||||
};
|
||||
|
||||
|
||||
QueryGateVerifyStatisticPublicResult();
|
||||
explicit QueryGateVerifyStatisticPublicResult(const std::string &payload);
|
||||
~QueryGateVerifyStatisticPublicResult();
|
||||
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_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICRESULT_H_
|
||||
@@ -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_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT VerifySmsCodeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VerifySmsCodeRequest();
|
||||
~VerifySmsCodeRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getSmsToken()const;
|
||||
void setSmsToken(const std::string& smsToken);
|
||||
std::string getPhoneNumber()const;
|
||||
void setPhoneNumber(const std::string& phoneNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSmsCode()const;
|
||||
void setSmsCode(const std::string& smsCode);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string productCode_;
|
||||
std::string smsToken_;
|
||||
std::string phoneNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string smsCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_DYPNSAPI_MODEL_VERIFYSMSCODERESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dypnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT VerifySmsCodeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
VerifySmsCodeResult();
|
||||
explicit VerifySmsCodeResult(const std::string &payload);
|
||||
~VerifySmsCodeResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODERESULT_H_
|
||||
@@ -31,21 +31,21 @@ DypnsapiClient::DypnsapiClient(const Credentials &credentials, const ClientConfi
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypns");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
DypnsapiClient::DypnsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypns");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
DypnsapiClient::DypnsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypns");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
DypnsapiClient::~DypnsapiClient()
|
||||
@@ -195,6 +195,78 @@ DypnsapiClient::GetAuthTokenOutcomeCallable DypnsapiClient::getAuthTokenCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DypnsapiClient::GetAuthorizationUrlOutcome DypnsapiClient::getAuthorizationUrl(const GetAuthorizationUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAuthorizationUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAuthorizationUrlOutcome(GetAuthorizationUrlResult(outcome.result()));
|
||||
else
|
||||
return GetAuthorizationUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DypnsapiClient::getAuthorizationUrlAsync(const GetAuthorizationUrlRequest& request, const GetAuthorizationUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAuthorizationUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DypnsapiClient::GetAuthorizationUrlOutcomeCallable DypnsapiClient::getAuthorizationUrlCallable(const GetAuthorizationUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAuthorizationUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAuthorizationUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DypnsapiClient::GetCertifyResultOutcome DypnsapiClient::getCertifyResult(const GetCertifyResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetCertifyResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetCertifyResultOutcome(GetCertifyResultResult(outcome.result()));
|
||||
else
|
||||
return GetCertifyResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DypnsapiClient::getCertifyResultAsync(const GetCertifyResultRequest& request, const GetCertifyResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getCertifyResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DypnsapiClient::GetCertifyResultOutcomeCallable DypnsapiClient::getCertifyResultCallable(const GetCertifyResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetCertifyResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getCertifyResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DypnsapiClient::GetMobileOutcome DypnsapiClient::getMobile(const GetMobileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,36 +303,108 @@ DypnsapiClient::GetMobileOutcomeCallable DypnsapiClient::getMobileCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DypnsapiClient::TwiceTelVerifyOutcome DypnsapiClient::twiceTelVerify(const TwiceTelVerifyRequest &request) const
|
||||
DypnsapiClient::GetSmsAuthTokensOutcome DypnsapiClient::getSmsAuthTokens(const GetSmsAuthTokensRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TwiceTelVerifyOutcome(endpointOutcome.error());
|
||||
return GetSmsAuthTokensOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TwiceTelVerifyOutcome(TwiceTelVerifyResult(outcome.result()));
|
||||
return GetSmsAuthTokensOutcome(GetSmsAuthTokensResult(outcome.result()));
|
||||
else
|
||||
return TwiceTelVerifyOutcome(outcome.error());
|
||||
return GetSmsAuthTokensOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DypnsapiClient::twiceTelVerifyAsync(const TwiceTelVerifyRequest& request, const TwiceTelVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void DypnsapiClient::getSmsAuthTokensAsync(const GetSmsAuthTokensRequest& request, const GetSmsAuthTokensAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, twiceTelVerify(request), context);
|
||||
handler(this, request, getSmsAuthTokens(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DypnsapiClient::TwiceTelVerifyOutcomeCallable DypnsapiClient::twiceTelVerifyCallable(const TwiceTelVerifyRequest &request) const
|
||||
DypnsapiClient::GetSmsAuthTokensOutcomeCallable DypnsapiClient::getSmsAuthTokensCallable(const GetSmsAuthTokensRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TwiceTelVerifyOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<GetSmsAuthTokensOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->twiceTelVerify(request);
|
||||
return this->getSmsAuthTokens(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DypnsapiClient::QueryGateVerifyBillingPublicOutcome DypnsapiClient::queryGateVerifyBillingPublic(const QueryGateVerifyBillingPublicRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryGateVerifyBillingPublicOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryGateVerifyBillingPublicOutcome(QueryGateVerifyBillingPublicResult(outcome.result()));
|
||||
else
|
||||
return QueryGateVerifyBillingPublicOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DypnsapiClient::queryGateVerifyBillingPublicAsync(const QueryGateVerifyBillingPublicRequest& request, const QueryGateVerifyBillingPublicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryGateVerifyBillingPublic(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DypnsapiClient::QueryGateVerifyBillingPublicOutcomeCallable DypnsapiClient::queryGateVerifyBillingPublicCallable(const QueryGateVerifyBillingPublicRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryGateVerifyBillingPublicOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryGateVerifyBillingPublic(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DypnsapiClient::QueryGateVerifyStatisticPublicOutcome DypnsapiClient::queryGateVerifyStatisticPublic(const QueryGateVerifyStatisticPublicRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryGateVerifyStatisticPublicOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryGateVerifyStatisticPublicOutcome(QueryGateVerifyStatisticPublicResult(outcome.result()));
|
||||
else
|
||||
return QueryGateVerifyStatisticPublicOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DypnsapiClient::queryGateVerifyStatisticPublicAsync(const QueryGateVerifyStatisticPublicRequest& request, const QueryGateVerifyStatisticPublicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryGateVerifyStatisticPublic(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DypnsapiClient::QueryGateVerifyStatisticPublicOutcomeCallable DypnsapiClient::queryGateVerifyStatisticPublicCallable(const QueryGateVerifyStatisticPublicRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryGateVerifyStatisticPublicOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryGateVerifyStatisticPublic(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -339,3 +483,39 @@ DypnsapiClient::VerifyPhoneWithTokenOutcomeCallable DypnsapiClient::verifyPhoneW
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DypnsapiClient::VerifySmsCodeOutcome DypnsapiClient::verifySmsCode(const VerifySmsCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VerifySmsCodeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VerifySmsCodeOutcome(VerifySmsCodeResult(outcome.result()));
|
||||
else
|
||||
return VerifySmsCodeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DypnsapiClient::verifySmsCodeAsync(const VerifySmsCodeRequest& request, const VerifySmsCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, verifySmsCode(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DypnsapiClient::VerifySmsCodeOutcomeCallable DypnsapiClient::verifySmsCodeCallable(const VerifySmsCodeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VerifySmsCodeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->verifySmsCode(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
106
dypnsapi/src/model/GetAuthorizationUrlRequest.cc
Normal file
106
dypnsapi/src/model/GetAuthorizationUrlRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/GetAuthorizationUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Dypnsapi::Model::GetAuthorizationUrlRequest;
|
||||
|
||||
GetAuthorizationUrlRequest::GetAuthorizationUrlRequest() :
|
||||
RpcServiceRequest("dypnsapi", "2017-05-25", "GetAuthorizationUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAuthorizationUrlRequest::~GetAuthorizationUrlRequest()
|
||||
{}
|
||||
|
||||
long GetAuthorizationUrlRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetAuthorizationUrlRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetAuthorizationUrlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetAuthorizationUrlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetAuthorizationUrlRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void GetAuthorizationUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long GetAuthorizationUrlRequest::getSchemeId()const
|
||||
{
|
||||
return schemeId_;
|
||||
}
|
||||
|
||||
void GetAuthorizationUrlRequest::setSchemeId(long schemeId)
|
||||
{
|
||||
schemeId_ = schemeId;
|
||||
setParameter("SchemeId", std::to_string(schemeId));
|
||||
}
|
||||
|
||||
long GetAuthorizationUrlRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void GetAuthorizationUrlRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetAuthorizationUrlRequest::getPhoneNo()const
|
||||
{
|
||||
return phoneNo_;
|
||||
}
|
||||
|
||||
void GetAuthorizationUrlRequest::setPhoneNo(const std::string& phoneNo)
|
||||
{
|
||||
phoneNo_ = phoneNo;
|
||||
setParameter("PhoneNo", phoneNo);
|
||||
}
|
||||
|
||||
std::string GetAuthorizationUrlRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void GetAuthorizationUrlRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
@@ -14,36 +14,34 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h>
|
||||
#include <alibabacloud/dypnsapi/model/GetAuthorizationUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dypnsapi;
|
||||
using namespace AlibabaCloud::Dypnsapi::Model;
|
||||
|
||||
TwiceTelVerifyResult::TwiceTelVerifyResult() :
|
||||
GetAuthorizationUrlResult::GetAuthorizationUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TwiceTelVerifyResult::TwiceTelVerifyResult(const std::string &payload) :
|
||||
GetAuthorizationUrlResult::GetAuthorizationUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TwiceTelVerifyResult::~TwiceTelVerifyResult()
|
||||
GetAuthorizationUrlResult::~GetAuthorizationUrlResult()
|
||||
{}
|
||||
|
||||
void TwiceTelVerifyResult::parse(const std::string &payload)
|
||||
void GetAuthorizationUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto twiceTelVerifyResultNode = value["TwiceTelVerifyResult"];
|
||||
if(!twiceTelVerifyResultNode["Carrier"].isNull())
|
||||
result_.carrier = twiceTelVerifyResultNode["Carrier"].asString();
|
||||
if(!twiceTelVerifyResultNode["VerifyResult"].isNull())
|
||||
result_.verifyResult = std::stoi(twiceTelVerifyResultNode["VerifyResult"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AuthorizationUrl"].isNull())
|
||||
data_.authorizationUrl = dataNode["AuthorizationUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
@@ -51,17 +49,17 @@ void TwiceTelVerifyResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string TwiceTelVerifyResult::getMessage()const
|
||||
std::string GetAuthorizationUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
TwiceTelVerifyResult::Result TwiceTelVerifyResult::getTwiceTelVerifyResult()const
|
||||
GetAuthorizationUrlResult::Data GetAuthorizationUrlResult::getData()const
|
||||
{
|
||||
return twiceTelVerifyResult_;
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string TwiceTelVerifyResult::getCode()const
|
||||
std::string GetAuthorizationUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
95
dypnsapi/src/model/GetCertifyResultRequest.cc
Normal file
95
dypnsapi/src/model/GetCertifyResultRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/GetCertifyResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Dypnsapi::Model::GetCertifyResultRequest;
|
||||
|
||||
GetCertifyResultRequest::GetCertifyResultRequest() :
|
||||
RpcServiceRequest("dypnsapi", "2017-05-25", "GetCertifyResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCertifyResultRequest::~GetCertifyResultRequest()
|
||||
{}
|
||||
|
||||
long GetCertifyResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetCertifyResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetCertifyResultRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void GetCertifyResultRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetCertifyResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetCertifyResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetCertifyResultRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void GetCertifyResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long GetCertifyResultRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void GetCertifyResultRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetCertifyResultRequest::getToken()const
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
void GetCertifyResultRequest::setToken(const std::string& token)
|
||||
{
|
||||
token_ = token;
|
||||
setParameter("Token", token);
|
||||
}
|
||||
|
||||
79
dypnsapi/src/model/GetCertifyResultResult.cc
Normal file
79
dypnsapi/src/model/GetCertifyResultResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/GetCertifyResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dypnsapi;
|
||||
using namespace AlibabaCloud::Dypnsapi::Model;
|
||||
|
||||
GetCertifyResultResult::GetCertifyResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCertifyResultResult::GetCertifyResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCertifyResultResult::~GetCertifyResultResult()
|
||||
{}
|
||||
|
||||
void GetCertifyResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["MaterialInfo"].isNull())
|
||||
dataObject.materialInfo = valueDataDataItem["MaterialInfo"].asString();
|
||||
if(!valueDataDataItem["IdentityInfo"].isNull())
|
||||
dataObject.identityInfo = valueDataDataItem["IdentityInfo"].asString();
|
||||
if(!valueDataDataItem["VerifyDesc"].isNull())
|
||||
dataObject.verifyDesc = valueDataDataItem["VerifyDesc"].asString();
|
||||
if(!valueDataDataItem["VerifyResult"].isNull())
|
||||
dataObject.verifyResult = valueDataDataItem["VerifyResult"].asString();
|
||||
if(!valueDataDataItem["DeviceToken"].isNull())
|
||||
dataObject.deviceToken = valueDataDataItem["DeviceToken"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetCertifyResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetCertifyResultResult::DataItem> GetCertifyResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetCertifyResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
172
dypnsapi/src/model/GetSmsAuthTokensRequest.cc
Normal file
172
dypnsapi/src/model/GetSmsAuthTokensRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/GetSmsAuthTokensRequest.h>
|
||||
|
||||
using AlibabaCloud::Dypnsapi::Model::GetSmsAuthTokensRequest;
|
||||
|
||||
GetSmsAuthTokensRequest::GetSmsAuthTokensRequest() :
|
||||
RpcServiceRequest("dypnsapi", "2017-05-25", "GetSmsAuthTokens")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSmsAuthTokensRequest::~GetSmsAuthTokensRequest()
|
||||
{}
|
||||
|
||||
long GetSmsAuthTokensRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getBundleId()const
|
||||
{
|
||||
return bundleId_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setBundleId(const std::string& bundleId)
|
||||
{
|
||||
bundleId_ = bundleId;
|
||||
setParameter("BundleId", bundleId);
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setSignName(const std::string& signName)
|
||||
{
|
||||
signName_ = signName;
|
||||
setParameter("SignName", signName);
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getSceneCode()const
|
||||
{
|
||||
return sceneCode_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setSceneCode(const std::string& sceneCode)
|
||||
{
|
||||
sceneCode_ = sceneCode;
|
||||
setParameter("SceneCode", sceneCode);
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int GetSmsAuthTokensRequest::getSmsCodeExpire()const
|
||||
{
|
||||
return smsCodeExpire_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setSmsCodeExpire(int smsCodeExpire)
|
||||
{
|
||||
smsCodeExpire_ = smsCodeExpire;
|
||||
setParameter("SmsCodeExpire", std::to_string(smsCodeExpire));
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getPackageName()const
|
||||
{
|
||||
return packageName_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setPackageName(const std::string& packageName)
|
||||
{
|
||||
packageName_ = packageName;
|
||||
setParameter("PackageName", packageName);
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getOsType()const
|
||||
{
|
||||
return osType_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setOsType(const std::string& osType)
|
||||
{
|
||||
osType_ = osType;
|
||||
setParameter("OsType", osType);
|
||||
}
|
||||
|
||||
long GetSmsAuthTokensRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensRequest::getSmsTemplateCode()const
|
||||
{
|
||||
return smsTemplateCode_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setSmsTemplateCode(const std::string& smsTemplateCode)
|
||||
{
|
||||
smsTemplateCode_ = smsTemplateCode;
|
||||
setParameter("SmsTemplateCode", smsTemplateCode);
|
||||
}
|
||||
|
||||
long GetSmsAuthTokensRequest::getExpire()const
|
||||
{
|
||||
return expire_;
|
||||
}
|
||||
|
||||
void GetSmsAuthTokensRequest::setExpire(long expire)
|
||||
{
|
||||
expire_ = expire;
|
||||
setParameter("Expire", std::to_string(expire));
|
||||
}
|
||||
|
||||
74
dypnsapi/src/model/GetSmsAuthTokensResult.cc
Normal file
74
dypnsapi/src/model/GetSmsAuthTokensResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/GetSmsAuthTokensResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dypnsapi;
|
||||
using namespace AlibabaCloud::Dypnsapi::Model;
|
||||
|
||||
GetSmsAuthTokensResult::GetSmsAuthTokensResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSmsAuthTokensResult::GetSmsAuthTokensResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSmsAuthTokensResult::~GetSmsAuthTokensResult()
|
||||
{}
|
||||
|
||||
void GetSmsAuthTokensResult::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["BizToken"].isNull())
|
||||
data_.bizToken = dataNode["BizToken"].asString();
|
||||
if(!dataNode["StsAccessKeySecret"].isNull())
|
||||
data_.stsAccessKeySecret = dataNode["StsAccessKeySecret"].asString();
|
||||
if(!dataNode["StsAccessKeyId"].isNull())
|
||||
data_.stsAccessKeyId = dataNode["StsAccessKeyId"].asString();
|
||||
if(!dataNode["ExpireTime"].isNull())
|
||||
data_.expireTime = std::stol(dataNode["ExpireTime"].asString());
|
||||
if(!dataNode["StsToken"].isNull())
|
||||
data_.stsToken = dataNode["StsToken"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetSmsAuthTokensResult::Data GetSmsAuthTokensResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetSmsAuthTokensResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
106
dypnsapi/src/model/QueryGateVerifyBillingPublicRequest.cc
Normal file
106
dypnsapi/src/model/QueryGateVerifyBillingPublicRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h>
|
||||
|
||||
using AlibabaCloud::Dypnsapi::Model::QueryGateVerifyBillingPublicRequest;
|
||||
|
||||
QueryGateVerifyBillingPublicRequest::QueryGateVerifyBillingPublicRequest() :
|
||||
RpcServiceRequest("dypnsapi", "2017-05-25", "QueryGateVerifyBillingPublic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryGateVerifyBillingPublicRequest::~QueryGateVerifyBillingPublicRequest()
|
||||
{}
|
||||
|
||||
long QueryGateVerifyBillingPublicRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyBillingPublicRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int QueryGateVerifyBillingPublicRequest::getAuthenticationType()const
|
||||
{
|
||||
return authenticationType_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyBillingPublicRequest::setAuthenticationType(int authenticationType)
|
||||
{
|
||||
authenticationType_ = authenticationType;
|
||||
setParameter("AuthenticationType", std::to_string(authenticationType));
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyBillingPublicRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyBillingPublicRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyBillingPublicRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyBillingPublicRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyBillingPublicRequest::getProdCode()const
|
||||
{
|
||||
return prodCode_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyBillingPublicRequest::setProdCode(const std::string& prodCode)
|
||||
{
|
||||
prodCode_ = prodCode;
|
||||
setParameter("ProdCode", prodCode);
|
||||
}
|
||||
|
||||
long QueryGateVerifyBillingPublicRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyBillingPublicRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyBillingPublicRequest::getMonth()const
|
||||
{
|
||||
return month_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyBillingPublicRequest::setMonth(const std::string& month)
|
||||
{
|
||||
month_ = month;
|
||||
setParameter("Month", month);
|
||||
}
|
||||
|
||||
86
dypnsapi/src/model/QueryGateVerifyBillingPublicResult.cc
Normal file
86
dypnsapi/src/model/QueryGateVerifyBillingPublicResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/QueryGateVerifyBillingPublicResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dypnsapi;
|
||||
using namespace AlibabaCloud::Dypnsapi::Model;
|
||||
|
||||
QueryGateVerifyBillingPublicResult::QueryGateVerifyBillingPublicResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryGateVerifyBillingPublicResult::QueryGateVerifyBillingPublicResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryGateVerifyBillingPublicResult::~QueryGateVerifyBillingPublicResult()
|
||||
{}
|
||||
|
||||
void QueryGateVerifyBillingPublicResult::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["AmountSum"].isNull())
|
||||
data_.amountSum = dataNode["AmountSum"].asString();
|
||||
auto allSceneBillingListNode = dataNode["SceneBillingList"]["SceneBillingListItem"];
|
||||
for (auto dataNodeSceneBillingListSceneBillingListItem : allSceneBillingListNode)
|
||||
{
|
||||
Data::SceneBillingListItem sceneBillingListItemObject;
|
||||
if(!dataNodeSceneBillingListSceneBillingListItem["Add"].isNull())
|
||||
sceneBillingListItemObject.add = dataNodeSceneBillingListSceneBillingListItem["Add"].asString();
|
||||
if(!dataNodeSceneBillingListSceneBillingListItem["SinglePrice"].isNull())
|
||||
sceneBillingListItemObject.singlePrice = dataNodeSceneBillingListSceneBillingListItem["SinglePrice"].asString();
|
||||
if(!dataNodeSceneBillingListSceneBillingListItem["Amount"].isNull())
|
||||
sceneBillingListItemObject.amount = dataNodeSceneBillingListSceneBillingListItem["Amount"].asString();
|
||||
if(!dataNodeSceneBillingListSceneBillingListItem["ItemName"].isNull())
|
||||
sceneBillingListItemObject.itemName = dataNodeSceneBillingListSceneBillingListItem["ItemName"].asString();
|
||||
if(!dataNodeSceneBillingListSceneBillingListItem["SceneCode"].isNull())
|
||||
sceneBillingListItemObject.sceneCode = dataNodeSceneBillingListSceneBillingListItem["SceneCode"].asString();
|
||||
if(!dataNodeSceneBillingListSceneBillingListItem["AppName"].isNull())
|
||||
sceneBillingListItemObject.appName = dataNodeSceneBillingListSceneBillingListItem["AppName"].asString();
|
||||
if(!dataNodeSceneBillingListSceneBillingListItem["SceneName"].isNull())
|
||||
sceneBillingListItemObject.sceneName = dataNodeSceneBillingListSceneBillingListItem["SceneName"].asString();
|
||||
data_.sceneBillingList.push_back(sceneBillingListItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyBillingPublicResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryGateVerifyBillingPublicResult::Data QueryGateVerifyBillingPublicResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyBillingPublicResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
139
dypnsapi/src/model/QueryGateVerifyStatisticPublicRequest.cc
Normal file
139
dypnsapi/src/model/QueryGateVerifyStatisticPublicRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h>
|
||||
|
||||
using AlibabaCloud::Dypnsapi::Model::QueryGateVerifyStatisticPublicRequest;
|
||||
|
||||
QueryGateVerifyStatisticPublicRequest::QueryGateVerifyStatisticPublicRequest() :
|
||||
RpcServiceRequest("dypnsapi", "2017-05-25", "QueryGateVerifyStatisticPublic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryGateVerifyStatisticPublicRequest::~QueryGateVerifyStatisticPublicRequest()
|
||||
{}
|
||||
|
||||
long QueryGateVerifyStatisticPublicRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int QueryGateVerifyStatisticPublicRequest::getAuthenticationType()const
|
||||
{
|
||||
return authenticationType_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setAuthenticationType(int authenticationType)
|
||||
{
|
||||
authenticationType_ = authenticationType;
|
||||
setParameter("AuthenticationType", std::to_string(authenticationType));
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicRequest::getSceneCode()const
|
||||
{
|
||||
return sceneCode_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setSceneCode(const std::string& sceneCode)
|
||||
{
|
||||
sceneCode_ = sceneCode;
|
||||
setParameter("SceneCode", sceneCode);
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicRequest::getProdCode()const
|
||||
{
|
||||
return prodCode_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setProdCode(const std::string& prodCode)
|
||||
{
|
||||
prodCode_ = prodCode;
|
||||
setParameter("ProdCode", prodCode);
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicRequest::getOsType()const
|
||||
{
|
||||
return osType_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setOsType(const std::string& osType)
|
||||
{
|
||||
osType_ = osType;
|
||||
setParameter("OsType", osType);
|
||||
}
|
||||
|
||||
long QueryGateVerifyStatisticPublicRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void QueryGateVerifyStatisticPublicRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
86
dypnsapi/src/model/QueryGateVerifyStatisticPublicResult.cc
Normal file
86
dypnsapi/src/model/QueryGateVerifyStatisticPublicResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/QueryGateVerifyStatisticPublicResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dypnsapi;
|
||||
using namespace AlibabaCloud::Dypnsapi::Model;
|
||||
|
||||
QueryGateVerifyStatisticPublicResult::QueryGateVerifyStatisticPublicResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryGateVerifyStatisticPublicResult::QueryGateVerifyStatisticPublicResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryGateVerifyStatisticPublicResult::~QueryGateVerifyStatisticPublicResult()
|
||||
{}
|
||||
|
||||
void QueryGateVerifyStatisticPublicResult::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["TotalFail"].isNull())
|
||||
data_.totalFail = std::stol(dataNode["TotalFail"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
if(!dataNode["TotalSuccess"].isNull())
|
||||
data_.totalSuccess = std::stol(dataNode["TotalSuccess"].asString());
|
||||
if(!dataNode["TotalUnknown"].isNull())
|
||||
data_.totalUnknown = std::stol(dataNode["TotalUnknown"].asString());
|
||||
auto allDayStatisticNode = dataNode["DayStatistic"]["DayStatisticItem"];
|
||||
for (auto dataNodeDayStatisticDayStatisticItem : allDayStatisticNode)
|
||||
{
|
||||
Data::DayStatisticItem dayStatisticItemObject;
|
||||
if(!dataNodeDayStatisticDayStatisticItem["StatisticDateStr"].isNull())
|
||||
dayStatisticItemObject.statisticDateStr = dataNodeDayStatisticDayStatisticItem["StatisticDateStr"].asString();
|
||||
if(!dataNodeDayStatisticDayStatisticItem["TotalSuccess"].isNull())
|
||||
dayStatisticItemObject.totalSuccess = std::stol(dataNodeDayStatisticDayStatisticItem["TotalSuccess"].asString());
|
||||
if(!dataNodeDayStatisticDayStatisticItem["TotalFail"].isNull())
|
||||
dayStatisticItemObject.totalFail = std::stol(dataNodeDayStatisticDayStatisticItem["TotalFail"].asString());
|
||||
if(!dataNodeDayStatisticDayStatisticItem["TotalUnknown"].isNull())
|
||||
dayStatisticItemObject.totalUnknown = std::stol(dataNodeDayStatisticDayStatisticItem["TotalUnknown"].asString());
|
||||
data_.dayStatistic.push_back(dayStatisticItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryGateVerifyStatisticPublicResult::Data QueryGateVerifyStatisticPublicResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryGateVerifyStatisticPublicResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,95 +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/dypnsapi/model/TwiceTelVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dypnsapi::Model::TwiceTelVerifyRequest;
|
||||
|
||||
TwiceTelVerifyRequest::TwiceTelVerifyRequest() :
|
||||
RpcServiceRequest("dypnsapi", "2017-05-25", "TwiceTelVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TwiceTelVerifyRequest::~TwiceTelVerifyRequest()
|
||||
{}
|
||||
|
||||
long TwiceTelVerifyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void TwiceTelVerifyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string TwiceTelVerifyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void TwiceTelVerifyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string TwiceTelVerifyRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void TwiceTelVerifyRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
long TwiceTelVerifyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void TwiceTelVerifyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string TwiceTelVerifyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void TwiceTelVerifyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string TwiceTelVerifyRequest::getSince()const
|
||||
{
|
||||
return since_;
|
||||
}
|
||||
|
||||
void TwiceTelVerifyRequest::setSince(const std::string& since)
|
||||
{
|
||||
since_ = since;
|
||||
setParameter("Since", since);
|
||||
}
|
||||
|
||||
@@ -40,10 +40,10 @@ void VerifyPhoneWithTokenResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto gateVerifyNode = value["GateVerify"];
|
||||
if(!gateVerifyNode["VerifyId"].isNull())
|
||||
gateVerify_.verifyId = gateVerifyNode["VerifyId"].asString();
|
||||
if(!gateVerifyNode["VerifyResult"].isNull())
|
||||
gateVerify_.verifyResult = gateVerifyNode["VerifyResult"].asString();
|
||||
if(!gateVerifyNode["VerifyId"].isNull())
|
||||
gateVerify_.verifyId = gateVerifyNode["VerifyId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
117
dypnsapi/src/model/VerifySmsCodeRequest.cc
Normal file
117
dypnsapi/src/model/VerifySmsCodeRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dypnsapi::Model::VerifySmsCodeRequest;
|
||||
|
||||
VerifySmsCodeRequest::VerifySmsCodeRequest() :
|
||||
RpcServiceRequest("dypnsapi", "2017-05-25", "VerifySmsCode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VerifySmsCodeRequest::~VerifySmsCodeRequest()
|
||||
{}
|
||||
|
||||
long VerifySmsCodeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void VerifySmsCodeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string VerifySmsCodeRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void VerifySmsCodeRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string VerifySmsCodeRequest::getSmsToken()const
|
||||
{
|
||||
return smsToken_;
|
||||
}
|
||||
|
||||
void VerifySmsCodeRequest::setSmsToken(const std::string& smsToken)
|
||||
{
|
||||
smsToken_ = smsToken;
|
||||
setParameter("SmsToken", smsToken);
|
||||
}
|
||||
|
||||
std::string VerifySmsCodeRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void VerifySmsCodeRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string VerifySmsCodeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void VerifySmsCodeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string VerifySmsCodeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void VerifySmsCodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long VerifySmsCodeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void VerifySmsCodeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string VerifySmsCodeRequest::getSmsCode()const
|
||||
{
|
||||
return smsCode_;
|
||||
}
|
||||
|
||||
void VerifySmsCodeRequest::setSmsCode(const std::string& smsCode)
|
||||
{
|
||||
smsCode_ = smsCode;
|
||||
setParameter("SmsCode", smsCode);
|
||||
}
|
||||
|
||||
65
dypnsapi/src/model/VerifySmsCodeResult.cc
Normal file
65
dypnsapi/src/model/VerifySmsCodeResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/dypnsapi/model/VerifySmsCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dypnsapi;
|
||||
using namespace AlibabaCloud::Dypnsapi::Model;
|
||||
|
||||
VerifySmsCodeResult::VerifySmsCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VerifySmsCodeResult::VerifySmsCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VerifySmsCodeResult::~VerifySmsCodeResult()
|
||||
{}
|
||||
|
||||
void VerifySmsCodeResult::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();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string VerifySmsCodeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool VerifySmsCodeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string VerifySmsCodeResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user