Publish sdk.

This commit is contained in:
sdk-team
2023-10-11 05:26:41 +00:00
parent 1b19d44bc2
commit 99697bde91
63 changed files with 4109 additions and 1825 deletions

View File

@@ -51,6 +51,78 @@ DypnsapiClient::DypnsapiClient(const std::string & accessKeyId, const std::strin
DypnsapiClient::~DypnsapiClient()
{}
DypnsapiClient::CheckSmsVerifyCodeOutcome DypnsapiClient::checkSmsVerifyCode(const CheckSmsVerifyCodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CheckSmsVerifyCodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CheckSmsVerifyCodeOutcome(CheckSmsVerifyCodeResult(outcome.result()));
else
return CheckSmsVerifyCodeOutcome(outcome.error());
}
void DypnsapiClient::checkSmsVerifyCodeAsync(const CheckSmsVerifyCodeRequest& request, const CheckSmsVerifyCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, checkSmsVerifyCode(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::CheckSmsVerifyCodeOutcomeCallable DypnsapiClient::checkSmsVerifyCodeCallable(const CheckSmsVerifyCodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CheckSmsVerifyCodeOutcome()>>(
[this, request]()
{
return this->checkSmsVerifyCode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::CreateSchemeConfigOutcome DypnsapiClient::createSchemeConfig(const CreateSchemeConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateSchemeConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateSchemeConfigOutcome(CreateSchemeConfigResult(outcome.result()));
else
return CreateSchemeConfigOutcome(outcome.error());
}
void DypnsapiClient::createSchemeConfigAsync(const CreateSchemeConfigRequest& request, const CreateSchemeConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createSchemeConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::CreateSchemeConfigOutcomeCallable DypnsapiClient::createSchemeConfigCallable(const CreateSchemeConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateSchemeConfigOutcome()>>(
[this, request]()
{
return this->createSchemeConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::CreateVerifySchemeOutcome DypnsapiClient::createVerifyScheme(const CreateVerifySchemeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,36 +303,36 @@ DypnsapiClient::GetAuthorizationUrlOutcomeCallable DypnsapiClient::getAuthorizat
return task->get_future();
}
DypnsapiClient::GetCertifyResultOutcome DypnsapiClient::getCertifyResult(const GetCertifyResultRequest &request) const
DypnsapiClient::GetFusionAuthTokenOutcome DypnsapiClient::getFusionAuthToken(const GetFusionAuthTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetCertifyResultOutcome(endpointOutcome.error());
return GetFusionAuthTokenOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetCertifyResultOutcome(GetCertifyResultResult(outcome.result()));
return GetFusionAuthTokenOutcome(GetFusionAuthTokenResult(outcome.result()));
else
return GetCertifyResultOutcome(outcome.error());
return GetFusionAuthTokenOutcome(outcome.error());
}
void DypnsapiClient::getCertifyResultAsync(const GetCertifyResultRequest& request, const GetCertifyResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
void DypnsapiClient::getFusionAuthTokenAsync(const GetFusionAuthTokenRequest& request, const GetFusionAuthTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getCertifyResult(request), context);
handler(this, request, getFusionAuthToken(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::GetCertifyResultOutcomeCallable DypnsapiClient::getCertifyResultCallable(const GetCertifyResultRequest &request) const
DypnsapiClient::GetFusionAuthTokenOutcomeCallable DypnsapiClient::getFusionAuthTokenCallable(const GetFusionAuthTokenRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetCertifyResultOutcome()>>(
auto task = std::make_shared<std::packaged_task<GetFusionAuthTokenOutcome()>>(
[this, request]()
{
return this->getCertifyResult(request);
return this->getFusionAuthToken(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
@@ -303,6 +375,42 @@ DypnsapiClient::GetMobileOutcomeCallable DypnsapiClient::getMobileCallable(const
return task->get_future();
}
DypnsapiClient::GetPhoneWithTokenOutcome DypnsapiClient::getPhoneWithToken(const GetPhoneWithTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetPhoneWithTokenOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetPhoneWithTokenOutcome(GetPhoneWithTokenResult(outcome.result()));
else
return GetPhoneWithTokenOutcome(outcome.error());
}
void DypnsapiClient::getPhoneWithTokenAsync(const GetPhoneWithTokenRequest& request, const GetPhoneWithTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getPhoneWithToken(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::GetPhoneWithTokenOutcomeCallable DypnsapiClient::getPhoneWithTokenCallable(const GetPhoneWithTokenRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetPhoneWithTokenOutcome()>>(
[this, request]()
{
return this->getPhoneWithToken(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::GetSmsAuthTokensOutcome DypnsapiClient::getSmsAuthTokens(const GetSmsAuthTokensRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -411,6 +519,78 @@ DypnsapiClient::QueryGateVerifyStatisticPublicOutcomeCallable DypnsapiClient::qu
return task->get_future();
}
DypnsapiClient::QuerySendDetailsOutcome DypnsapiClient::querySendDetails(const QuerySendDetailsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QuerySendDetailsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QuerySendDetailsOutcome(QuerySendDetailsResult(outcome.result()));
else
return QuerySendDetailsOutcome(outcome.error());
}
void DypnsapiClient::querySendDetailsAsync(const QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, querySendDetails(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::QuerySendDetailsOutcomeCallable DypnsapiClient::querySendDetailsCallable(const QuerySendDetailsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QuerySendDetailsOutcome()>>(
[this, request]()
{
return this->querySendDetails(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::SendSmsVerifyCodeOutcome DypnsapiClient::sendSmsVerifyCode(const SendSmsVerifyCodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SendSmsVerifyCodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SendSmsVerifyCodeOutcome(SendSmsVerifyCodeResult(outcome.result()));
else
return SendSmsVerifyCodeOutcome(outcome.error());
}
void DypnsapiClient::sendSmsVerifyCodeAsync(const SendSmsVerifyCodeRequest& request, const SendSmsVerifyCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, sendSmsVerifyCode(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::SendSmsVerifyCodeOutcomeCallable DypnsapiClient::sendSmsVerifyCodeCallable(const SendSmsVerifyCodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SendSmsVerifyCodeOutcome()>>(
[this, request]()
{
return this->sendSmsVerifyCode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::VerifyMobileOutcome DypnsapiClient::verifyMobile(const VerifyMobileRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,3 +699,39 @@ DypnsapiClient::VerifySmsCodeOutcomeCallable DypnsapiClient::verifySmsCodeCallab
return task->get_future();
}
DypnsapiClient::VerifyWithFusionAuthTokenOutcome DypnsapiClient::verifyWithFusionAuthToken(const VerifyWithFusionAuthTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VerifyWithFusionAuthTokenOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VerifyWithFusionAuthTokenOutcome(VerifyWithFusionAuthTokenResult(outcome.result()));
else
return VerifyWithFusionAuthTokenOutcome(outcome.error());
}
void DypnsapiClient::verifyWithFusionAuthTokenAsync(const VerifyWithFusionAuthTokenRequest& request, const VerifyWithFusionAuthTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, verifyWithFusionAuthToken(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::VerifyWithFusionAuthTokenOutcomeCallable DypnsapiClient::verifyWithFusionAuthTokenCallable(const VerifyWithFusionAuthTokenRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VerifyWithFusionAuthTokenOutcome()>>(
[this, request]()
{
return this->verifyWithFusionAuthToken(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,135 @@
/*
* 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/CheckSmsVerifyCodeRequest.h>
using AlibabaCloud::Dypnsapi::Model::CheckSmsVerifyCodeRequest;
CheckSmsVerifyCodeRequest::CheckSmsVerifyCodeRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "CheckSmsVerifyCode") {
setMethod(HttpRequest::Method::Post);
}
CheckSmsVerifyCodeRequest::~CheckSmsVerifyCodeRequest() {}
long CheckSmsVerifyCodeRequest::getCaseAuthPolicy() const {
return caseAuthPolicy_;
}
void CheckSmsVerifyCodeRequest::setCaseAuthPolicy(long caseAuthPolicy) {
caseAuthPolicy_ = caseAuthPolicy;
setParameter(std::string("CaseAuthPolicy"), std::to_string(caseAuthPolicy));
}
long CheckSmsVerifyCodeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void CheckSmsVerifyCodeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string CheckSmsVerifyCodeRequest::getCountryCode() const {
return countryCode_;
}
void CheckSmsVerifyCodeRequest::setCountryCode(const std::string &countryCode) {
countryCode_ = countryCode;
setParameter(std::string("CountryCode"), countryCode);
}
std::string CheckSmsVerifyCodeRequest::getPhoneNumber() const {
return phoneNumber_;
}
void CheckSmsVerifyCodeRequest::setPhoneNumber(const std::string &phoneNumber) {
phoneNumber_ = phoneNumber;
setParameter(std::string("PhoneNumber"), phoneNumber);
}
std::string CheckSmsVerifyCodeRequest::getExtendFunction() const {
return extendFunction_;
}
void CheckSmsVerifyCodeRequest::setExtendFunction(const std::string &extendFunction) {
extendFunction_ = extendFunction;
setParameter(std::string("ExtendFunction"), extendFunction);
}
std::string CheckSmsVerifyCodeRequest::getAccessKeyId() const {
return accessKeyId_;
}
void CheckSmsVerifyCodeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string CheckSmsVerifyCodeRequest::getVerifyCode() const {
return verifyCode_;
}
void CheckSmsVerifyCodeRequest::setVerifyCode(const std::string &verifyCode) {
verifyCode_ = verifyCode;
setParameter(std::string("VerifyCode"), verifyCode);
}
std::string CheckSmsVerifyCodeRequest::getRouteName() const {
return routeName_;
}
void CheckSmsVerifyCodeRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string CheckSmsVerifyCodeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CheckSmsVerifyCodeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long CheckSmsVerifyCodeRequest::getOwnerId() const {
return ownerId_;
}
void CheckSmsVerifyCodeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CheckSmsVerifyCodeRequest::getSchemeName() const {
return schemeName_;
}
void CheckSmsVerifyCodeRequest::setSchemeName(const std::string &schemeName) {
schemeName_ = schemeName;
setParameter(std::string("SchemeName"), schemeName);
}
std::string CheckSmsVerifyCodeRequest::getOutId() const {
return outId_;
}
void CheckSmsVerifyCodeRequest::setOutId(const std::string &outId) {
outId_ = outId;
setParameter(std::string("OutId"), outId);
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dypnsapi/model/CheckSmsVerifyCodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
CheckSmsVerifyCodeResult::CheckSmsVerifyCodeResult() :
ServiceResult()
{}
CheckSmsVerifyCodeResult::CheckSmsVerifyCodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckSmsVerifyCodeResult::~CheckSmsVerifyCodeResult()
{}
void CheckSmsVerifyCodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto modelNode = value["Model"];
if(!modelNode["OutId"].isNull())
model_.outId = modelNode["OutId"].asString();
if(!modelNode["VerifyResult"].isNull())
model_.verifyResult = modelNode["VerifyResult"].asString();
if(!value["AccessDeniedDetail"].isNull())
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CheckSmsVerifyCodeResult::getAccessDeniedDetail()const
{
return accessDeniedDetail_;
}
std::string CheckSmsVerifyCodeResult::getMessage()const
{
return message_;
}
CheckSmsVerifyCodeResult::Model CheckSmsVerifyCodeResult::getModel()const
{
return model_;
}
std::string CheckSmsVerifyCodeResult::getCode()const
{
return code_;
}
bool CheckSmsVerifyCodeResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,144 @@
/*
* 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/CreateSchemeConfigRequest.h>
using AlibabaCloud::Dypnsapi::Model::CreateSchemeConfigRequest;
CreateSchemeConfigRequest::CreateSchemeConfigRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "CreateSchemeConfig") {
setMethod(HttpRequest::Method::Post);
}
CreateSchemeConfigRequest::~CreateSchemeConfigRequest() {}
long CreateSchemeConfigRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void CreateSchemeConfigRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string CreateSchemeConfigRequest::getAndroidPackageSign() const {
return androidPackageSign_;
}
void CreateSchemeConfigRequest::setAndroidPackageSign(const std::string &androidPackageSign) {
androidPackageSign_ = androidPackageSign;
setParameter(std::string("AndroidPackageSign"), androidPackageSign);
}
std::string CreateSchemeConfigRequest::getPlatform() const {
return platform_;
}
void CreateSchemeConfigRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setParameter(std::string("Platform"), platform);
}
std::string CreateSchemeConfigRequest::getAccessKeyId() const {
return accessKeyId_;
}
void CreateSchemeConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string CreateSchemeConfigRequest::getH5Url() const {
return h5Url_;
}
void CreateSchemeConfigRequest::setH5Url(const std::string &h5Url) {
h5Url_ = h5Url;
setParameter(std::string("H5Url"), h5Url);
}
std::string CreateSchemeConfigRequest::getIosBundleId() const {
return iosBundleId_;
}
void CreateSchemeConfigRequest::setIosBundleId(const std::string &iosBundleId) {
iosBundleId_ = iosBundleId;
setParameter(std::string("IosBundleId"), iosBundleId);
}
std::string CreateSchemeConfigRequest::getAppName() const {
return appName_;
}
void CreateSchemeConfigRequest::setAppName(const std::string &appName) {
appName_ = appName;
setParameter(std::string("AppName"), appName);
}
std::string CreateSchemeConfigRequest::getRouteName() const {
return routeName_;
}
void CreateSchemeConfigRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string CreateSchemeConfigRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CreateSchemeConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long CreateSchemeConfigRequest::getOwnerId() const {
return ownerId_;
}
void CreateSchemeConfigRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateSchemeConfigRequest::getH5Origin() const {
return h5Origin_;
}
void CreateSchemeConfigRequest::setH5Origin(const std::string &h5Origin) {
h5Origin_ = h5Origin;
setParameter(std::string("H5Origin"), h5Origin);
}
std::string CreateSchemeConfigRequest::getSchemeName() const {
return schemeName_;
}
void CreateSchemeConfigRequest::setSchemeName(const std::string &schemeName) {
schemeName_ = schemeName;
setParameter(std::string("SchemeName"), schemeName);
}
std::string CreateSchemeConfigRequest::getAndroidPackageName() const {
return androidPackageName_;
}
void CreateSchemeConfigRequest::setAndroidPackageName(const std::string &androidPackageName) {
androidPackageName_ = androidPackageName;
setParameter(std::string("AndroidPackageName"), androidPackageName);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dypnsapi/model/CreateSchemeConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
CreateSchemeConfigResult::CreateSchemeConfigResult() :
ServiceResult()
{}
CreateSchemeConfigResult::CreateSchemeConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSchemeConfigResult::~CreateSchemeConfigResult()
{}
void CreateSchemeConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto modelNode = value["Model"];
if(!modelNode["SchemeCode"].isNull())
model_.schemeCode = modelNode["SchemeCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateSchemeConfigResult::getMessage()const
{
return message_;
}
CreateSchemeConfigResult::Model CreateSchemeConfigResult::getModel()const
{
return model_;
}
std::string CreateSchemeConfigResult::getCode()const
{
return code_;
}
bool CreateSchemeConfigResult::getSuccess()const
{
return success_;
}

View File

@@ -1,139 +1,216 @@
/*
* 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/CreateVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::CreateVerifySchemeRequest;
CreateVerifySchemeRequest::CreateVerifySchemeRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "CreateVerifyScheme")
{
setMethod(HttpRequest::Method::Post);
}
CreateVerifySchemeRequest::~CreateVerifySchemeRequest()
{}
long CreateVerifySchemeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::CreateVerifySchemeRequest;
CreateVerifySchemeRequest::CreateVerifySchemeRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "CreateVerifyScheme") {
setMethod(HttpRequest::Method::Post);
}
void CreateVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateVerifySchemeRequest::~CreateVerifySchemeRequest() {}
long CreateVerifySchemeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateVerifySchemeRequest::getBundleId()const
{
return bundleId_;
void CreateVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateVerifySchemeRequest::setBundleId(const std::string& bundleId)
{
bundleId_ = bundleId;
setParameter("BundleId", bundleId);
std::string CreateVerifySchemeRequest::getOrigin() const {
return origin_;
}
std::string CreateVerifySchemeRequest::getAccessKeyId()const
{
return accessKeyId_;
void CreateVerifySchemeRequest::setOrigin(const std::string &origin) {
origin_ = origin;
setParameter(std::string("Origin"), origin);
}
void CreateVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string CreateVerifySchemeRequest::getBundleId() const {
return bundleId_;
}
std::string CreateVerifySchemeRequest::getAppName()const
{
return appName_;
void CreateVerifySchemeRequest::setBundleId(const std::string &bundleId) {
bundleId_ = bundleId;
setParameter(std::string("BundleId"), bundleId);
}
void CreateVerifySchemeRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
std::string CreateVerifySchemeRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string CreateVerifySchemeRequest::getPackSign()const
{
return packSign_;
void CreateVerifySchemeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void CreateVerifySchemeRequest::setPackSign(const std::string& packSign)
{
packSign_ = packSign;
setParameter("PackSign", packSign);
std::string CreateVerifySchemeRequest::getAuthType() const {
return authType_;
}
std::string CreateVerifySchemeRequest::getPackName()const
{
return packName_;
void CreateVerifySchemeRequest::setAuthType(const std::string &authType) {
authType_ = authType;
setParameter(std::string("AuthType"), authType);
}
void CreateVerifySchemeRequest::setPackName(const std::string& packName)
{
packName_ = packName;
setParameter("PackName", packName);
std::string CreateVerifySchemeRequest::getAppName() const {
return appName_;
}
std::string CreateVerifySchemeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateVerifySchemeRequest::setAppName(const std::string &appName) {
appName_ = appName;
setParameter(std::string("AppName"), appName);
}
void CreateVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateVerifySchemeRequest::getIpWhiteList() const {
return ipWhiteList_;
}
std::string CreateVerifySchemeRequest::getOsType()const
{
return osType_;
void CreateVerifySchemeRequest::setIpWhiteList(const std::string &ipWhiteList) {
ipWhiteList_ = ipWhiteList;
setParameter(std::string("IpWhiteList"), ipWhiteList);
}
void CreateVerifySchemeRequest::setOsType(const std::string& osType)
{
osType_ = osType;
setParameter("OsType", osType);
std::string CreateVerifySchemeRequest::getRouteName() const {
return routeName_;
}
long CreateVerifySchemeRequest::getOwnerId()const
{
return ownerId_;
void CreateVerifySchemeRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
void CreateVerifySchemeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
std::string CreateVerifySchemeRequest::getEmail() const {
return email_;
}
std::string CreateVerifySchemeRequest::getSchemeName()const
{
return schemeName_;
void CreateVerifySchemeRequest::setEmail(const std::string &email) {
email_ = email;
setParameter(std::string("Email"), email);
}
void CreateVerifySchemeRequest::setSchemeName(const std::string& schemeName)
{
schemeName_ = schemeName;
setParameter("SchemeName", schemeName);
std::string CreateVerifySchemeRequest::getPackSign() const {
return packSign_;
}
void CreateVerifySchemeRequest::setPackSign(const std::string &packSign) {
packSign_ = packSign;
setParameter(std::string("PackSign"), packSign);
}
std::string CreateVerifySchemeRequest::getPackName() const {
return packName_;
}
void CreateVerifySchemeRequest::setPackName(const std::string &packName) {
packName_ = packName;
setParameter(std::string("PackName"), packName);
}
long CreateVerifySchemeRequest::getCuApiCode() const {
return cuApiCode_;
}
void CreateVerifySchemeRequest::setCuApiCode(long cuApiCode) {
cuApiCode_ = cuApiCode;
setParameter(std::string("CuApiCode"), std::to_string(cuApiCode));
}
std::string CreateVerifySchemeRequest::getSceneType() const {
return sceneType_;
}
void CreateVerifySchemeRequest::setSceneType(const std::string &sceneType) {
sceneType_ = sceneType;
setParameter(std::string("SceneType"), sceneType);
}
std::string CreateVerifySchemeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CreateVerifySchemeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long CreateVerifySchemeRequest::getCtApiCode() const {
return ctApiCode_;
}
void CreateVerifySchemeRequest::setCtApiCode(long ctApiCode) {
ctApiCode_ = ctApiCode;
setParameter(std::string("CtApiCode"), std::to_string(ctApiCode));
}
std::string CreateVerifySchemeRequest::getOsType() const {
return osType_;
}
void CreateVerifySchemeRequest::setOsType(const std::string &osType) {
osType_ = osType;
setParameter(std::string("OsType"), osType);
}
long CreateVerifySchemeRequest::getOwnerId() const {
return ownerId_;
}
void CreateVerifySchemeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateVerifySchemeRequest::getUrl() const {
return url_;
}
void CreateVerifySchemeRequest::setUrl(const std::string &url) {
url_ = url;
setParameter(std::string("Url"), url);
}
long CreateVerifySchemeRequest::getCmApiCode() const {
return cmApiCode_;
}
void CreateVerifySchemeRequest::setCmApiCode(long cmApiCode) {
cmApiCode_ = cmApiCode;
setParameter(std::string("CmApiCode"), std::to_string(cmApiCode));
}
std::string CreateVerifySchemeRequest::getSchemeName() const {
return schemeName_;
}
void CreateVerifySchemeRequest::setSchemeName(const std::string &schemeName) {
schemeName_ = schemeName;
setParameter(std::string("SchemeName"), schemeName);
}
std::string CreateVerifySchemeRequest::getSmsSignName() const {
return smsSignName_;
}
void CreateVerifySchemeRequest::setSmsSignName(const std::string &smsSignName) {
smsSignName_ = smsSignName;
setParameter(std::string("SmsSignName"), smsSignName);
}

View File

@@ -42,10 +42,14 @@ void CreateVerifySchemeResult::parse(const std::string &payload)
auto gateVerifySchemeDTONode = value["GateVerifySchemeDTO"];
if(!gateVerifySchemeDTONode["SchemeCode"].isNull())
gateVerifySchemeDTO_.schemeCode = gateVerifySchemeDTONode["SchemeCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stol(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -59,8 +63,18 @@ CreateVerifySchemeResult::GateVerifySchemeDTO CreateVerifySchemeResult::getGateV
return gateVerifySchemeDTO_;
}
long CreateVerifySchemeResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateVerifySchemeResult::getCode()const
{
return code_;
}
bool CreateVerifySchemeResult::getSuccess()const
{
return success_;
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::DeleteVerifySchemeRequest;
DeleteVerifySchemeRequest::DeleteVerifySchemeRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "DeleteVerifyScheme")
{
setMethod(HttpRequest::Method::Post);
}
DeleteVerifySchemeRequest::~DeleteVerifySchemeRequest()
{}
long DeleteVerifySchemeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::DeleteVerifySchemeRequest;
DeleteVerifySchemeRequest::DeleteVerifySchemeRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "DeleteVerifyScheme") {
setMethod(HttpRequest::Method::Post);
}
void DeleteVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteVerifySchemeRequest::~DeleteVerifySchemeRequest() {}
long DeleteVerifySchemeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteVerifySchemeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteVerifySchemeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long DeleteVerifySchemeRequest::getOwnerId()const
{
return ownerId_;
void DeleteVerifySchemeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteVerifySchemeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteVerifySchemeRequest::getOwnerId() const {
return ownerId_;
}
std::string DeleteVerifySchemeRequest::getAccessKeyId()const
{
return accessKeyId_;
void DeleteVerifySchemeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string DeleteVerifySchemeRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string DeleteVerifySchemeRequest::getSchemeCode()const
{
return schemeCode_;
void DeleteVerifySchemeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void DeleteVerifySchemeRequest::setSchemeCode(const std::string& schemeCode)
{
schemeCode_ = schemeCode;
setParameter("SchemeCode", schemeCode);
std::string DeleteVerifySchemeRequest::getSchemeCode() const {
return schemeCode_;
}
long DeleteVerifySchemeRequest::getCustomerId()const
{
return customerId_;
void DeleteVerifySchemeRequest::setSchemeCode(const std::string &schemeCode) {
schemeCode_ = schemeCode;
setParameter(std::string("SchemeCode"), schemeCode);
}
void DeleteVerifySchemeRequest::setCustomerId(long customerId)
{
customerId_ = customerId;
setParameter("CustomerId", std::to_string(customerId));
long DeleteVerifySchemeRequest::getCustomerId() const {
return customerId_;
}
void DeleteVerifySchemeRequest::setCustomerId(long customerId) {
customerId_ = customerId;
setParameter(std::string("CustomerId"), std::to_string(customerId));
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DescribeVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::DescribeVerifySchemeRequest;
DescribeVerifySchemeRequest::DescribeVerifySchemeRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "DescribeVerifyScheme")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifySchemeRequest::~DescribeVerifySchemeRequest()
{}
long DescribeVerifySchemeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/dypnsapi/model/DescribeVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::DescribeVerifySchemeRequest;
DescribeVerifySchemeRequest::DescribeVerifySchemeRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "DescribeVerifyScheme") {
setMethod(HttpRequest::Method::Post);
}
void DescribeVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DescribeVerifySchemeRequest::~DescribeVerifySchemeRequest() {}
long DescribeVerifySchemeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DescribeVerifySchemeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DescribeVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DescribeVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DescribeVerifySchemeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long DescribeVerifySchemeRequest::getOwnerId()const
{
return ownerId_;
void DescribeVerifySchemeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DescribeVerifySchemeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DescribeVerifySchemeRequest::getOwnerId() const {
return ownerId_;
}
std::string DescribeVerifySchemeRequest::getAccessKeyId()const
{
return accessKeyId_;
void DescribeVerifySchemeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DescribeVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string DescribeVerifySchemeRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string DescribeVerifySchemeRequest::getSchemeCode()const
{
return schemeCode_;
void DescribeVerifySchemeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void DescribeVerifySchemeRequest::setSchemeCode(const std::string& schemeCode)
{
schemeCode_ = schemeCode;
setParameter("SchemeCode", schemeCode);
std::string DescribeVerifySchemeRequest::getSchemeCode() const {
return schemeCode_;
}
long DescribeVerifySchemeRequest::getCustomerId()const
{
return customerId_;
void DescribeVerifySchemeRequest::setSchemeCode(const std::string &schemeCode) {
schemeCode_ = schemeCode;
setParameter(std::string("SchemeCode"), schemeCode);
}
void DescribeVerifySchemeRequest::setCustomerId(long customerId)
{
customerId_ = customerId;
setParameter("CustomerId", std::to_string(customerId));
long DescribeVerifySchemeRequest::getCustomerId() const {
return customerId_;
}
void DescribeVerifySchemeRequest::setCustomerId(long customerId) {
customerId_ = customerId;
setParameter(std::string("CustomerId"), std::to_string(customerId));
}

View File

@@ -1,95 +1,81 @@
/*
* 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/GetAuthTokenRequest.h>
using AlibabaCloud::Dypnsapi::Model::GetAuthTokenRequest;
GetAuthTokenRequest::GetAuthTokenRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "GetAuthToken")
{
setMethod(HttpRequest::Method::Post);
}
GetAuthTokenRequest::~GetAuthTokenRequest()
{}
long GetAuthTokenRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/dypnsapi/model/GetAuthTokenRequest.h>
using AlibabaCloud::Dypnsapi::Model::GetAuthTokenRequest;
GetAuthTokenRequest::GetAuthTokenRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "GetAuthToken") {
setMethod(HttpRequest::Method::Post);
}
void GetAuthTokenRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
GetAuthTokenRequest::~GetAuthTokenRequest() {}
long GetAuthTokenRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string GetAuthTokenRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void GetAuthTokenRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void GetAuthTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string GetAuthTokenRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string GetAuthTokenRequest::getOrigin()const
{
return origin_;
void GetAuthTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void GetAuthTokenRequest::setOrigin(const std::string& origin)
{
origin_ = origin;
setParameter("Origin", origin);
std::string GetAuthTokenRequest::getOrigin() const {
return origin_;
}
long GetAuthTokenRequest::getOwnerId()const
{
return ownerId_;
void GetAuthTokenRequest::setOrigin(const std::string &origin) {
origin_ = origin;
setParameter(std::string("Origin"), origin);
}
void GetAuthTokenRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long GetAuthTokenRequest::getOwnerId() const {
return ownerId_;
}
std::string GetAuthTokenRequest::getUrl()const
{
return url_;
void GetAuthTokenRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void GetAuthTokenRequest::setUrl(const std::string& url)
{
url_ = url;
setParameter("Url", url);
std::string GetAuthTokenRequest::getUrl() const {
return url_;
}
std::string GetAuthTokenRequest::getAccessKeyId()const
{
return accessKeyId_;
void GetAuthTokenRequest::setUrl(const std::string &url) {
url_ = url;
setParameter(std::string("Url"), url);
}
void GetAuthTokenRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string GetAuthTokenRequest::getAccessKeyId() const {
return accessKeyId_;
}
void GetAuthTokenRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}

View File

@@ -40,10 +40,10 @@ void GetAuthTokenResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto tokenInfoNode = value["TokenInfo"];
if(!tokenInfoNode["JwtToken"].isNull())
tokenInfo_.jwtToken = tokenInfoNode["JwtToken"].asString();
if(!tokenInfoNode["AccessToken"].isNull())
tokenInfo_.accessToken = tokenInfoNode["AccessToken"].asString();
if(!tokenInfoNode["JwtToken"].isNull())
tokenInfo_.jwtToken = tokenInfoNode["JwtToken"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())

View File

@@ -1,106 +1,90 @@
/*
* 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_;
*/
#include <alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h>
using AlibabaCloud::Dypnsapi::Model::GetAuthorizationUrlRequest;
GetAuthorizationUrlRequest::GetAuthorizationUrlRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "GetAuthorizationUrl") {
setMethod(HttpRequest::Method::Post);
}
void GetAuthorizationUrlRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
GetAuthorizationUrlRequest::~GetAuthorizationUrlRequest() {}
long GetAuthorizationUrlRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string GetAuthorizationUrlRequest::getAccessKeyId()const
{
return accessKeyId_;
void GetAuthorizationUrlRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void GetAuthorizationUrlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string GetAuthorizationUrlRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string GetAuthorizationUrlRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void GetAuthorizationUrlRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void GetAuthorizationUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string GetAuthorizationUrlRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long GetAuthorizationUrlRequest::getSchemeId()const
{
return schemeId_;
void GetAuthorizationUrlRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void GetAuthorizationUrlRequest::setSchemeId(long schemeId)
{
schemeId_ = schemeId;
setParameter("SchemeId", std::to_string(schemeId));
long GetAuthorizationUrlRequest::getSchemeId() const {
return schemeId_;
}
long GetAuthorizationUrlRequest::getOwnerId()const
{
return ownerId_;
void GetAuthorizationUrlRequest::setSchemeId(long schemeId) {
schemeId_ = schemeId;
setParameter(std::string("SchemeId"), std::to_string(schemeId));
}
void GetAuthorizationUrlRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long GetAuthorizationUrlRequest::getOwnerId() const {
return ownerId_;
}
std::string GetAuthorizationUrlRequest::getPhoneNo()const
{
return phoneNo_;
void GetAuthorizationUrlRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void GetAuthorizationUrlRequest::setPhoneNo(const std::string& phoneNo)
{
phoneNo_ = phoneNo;
setParameter("PhoneNo", phoneNo);
std::string GetAuthorizationUrlRequest::getPhoneNo() const {
return phoneNo_;
}
std::string GetAuthorizationUrlRequest::getEndDate()const
{
return endDate_;
void GetAuthorizationUrlRequest::setPhoneNo(const std::string &phoneNo) {
phoneNo_ = phoneNo;
setParameter(std::string("PhoneNo"), phoneNo);
}
void GetAuthorizationUrlRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
std::string GetAuthorizationUrlRequest::getEndDate() const {
return endDate_;
}
void GetAuthorizationUrlRequest::setEndDate(const std::string &endDate) {
endDate_ = endDate;
setParameter(std::string("EndDate"), endDate);
}

View File

@@ -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/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);
}

View File

@@ -1,79 +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/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_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/GetFusionAuthTokenRequest.h>
using AlibabaCloud::Dypnsapi::Model::GetFusionAuthTokenRequest;
GetFusionAuthTokenRequest::GetFusionAuthTokenRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "GetFusionAuthToken") {
setMethod(HttpRequest::Method::Post);
}
GetFusionAuthTokenRequest::~GetFusionAuthTokenRequest() {}
long GetFusionAuthTokenRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void GetFusionAuthTokenRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string GetFusionAuthTokenRequest::getBundleId() const {
return bundleId_;
}
void GetFusionAuthTokenRequest::setBundleId(const std::string &bundleId) {
bundleId_ = bundleId;
setParameter(std::string("BundleId"), bundleId);
}
std::string GetFusionAuthTokenRequest::getPlatform() const {
return platform_;
}
void GetFusionAuthTokenRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setParameter(std::string("Platform"), platform);
}
std::string GetFusionAuthTokenRequest::getAccessKeyId() const {
return accessKeyId_;
}
void GetFusionAuthTokenRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string GetFusionAuthTokenRequest::getSchemeCode() const {
return schemeCode_;
}
void GetFusionAuthTokenRequest::setSchemeCode(const std::string &schemeCode) {
schemeCode_ = schemeCode;
setParameter(std::string("SchemeCode"), schemeCode);
}
std::string GetFusionAuthTokenRequest::getRouteName() const {
return routeName_;
}
void GetFusionAuthTokenRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string GetFusionAuthTokenRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void GetFusionAuthTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string GetFusionAuthTokenRequest::getPackageName() const {
return packageName_;
}
void GetFusionAuthTokenRequest::setPackageName(const std::string &packageName) {
packageName_ = packageName;
setParameter(std::string("PackageName"), packageName);
}
long GetFusionAuthTokenRequest::getOwnerId() const {
return ownerId_;
}
void GetFusionAuthTokenRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string GetFusionAuthTokenRequest::getPackageSign() const {
return packageSign_;
}
void GetFusionAuthTokenRequest::setPackageSign(const std::string &packageSign) {
packageSign_ = packageSign;
setParameter(std::string("PackageSign"), packageSign);
}
long GetFusionAuthTokenRequest::getDurationSeconds() const {
return durationSeconds_;
}
void GetFusionAuthTokenRequest::setDurationSeconds(long durationSeconds) {
durationSeconds_ = durationSeconds;
setParameter(std::string("DurationSeconds"), std::to_string(durationSeconds));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dypnsapi/model/GetFusionAuthTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
GetFusionAuthTokenResult::GetFusionAuthTokenResult() :
ServiceResult()
{}
GetFusionAuthTokenResult::GetFusionAuthTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFusionAuthTokenResult::~GetFusionAuthTokenResult()
{}
void GetFusionAuthTokenResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Model"].isNull())
model_ = value["Model"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetFusionAuthTokenResult::getMessage()const
{
return message_;
}
std::string GetFusionAuthTokenResult::getModel()const
{
return model_;
}
std::string GetFusionAuthTokenResult::getCode()const
{
return code_;
}
bool GetFusionAuthTokenResult::getSuccess()const
{
return success_;
}

View File

@@ -1,95 +1,81 @@
/*
* 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/GetMobileRequest.h>
using AlibabaCloud::Dypnsapi::Model::GetMobileRequest;
GetMobileRequest::GetMobileRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "GetMobile")
{
setMethod(HttpRequest::Method::Post);
}
GetMobileRequest::~GetMobileRequest()
{}
long GetMobileRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/dypnsapi/model/GetMobileRequest.h>
using AlibabaCloud::Dypnsapi::Model::GetMobileRequest;
GetMobileRequest::GetMobileRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "GetMobile") {
setMethod(HttpRequest::Method::Post);
}
void GetMobileRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
GetMobileRequest::~GetMobileRequest() {}
long GetMobileRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string GetMobileRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void GetMobileRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void GetMobileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string GetMobileRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string GetMobileRequest::getAccessToken()const
{
return accessToken_;
void GetMobileRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void GetMobileRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
std::string GetMobileRequest::getAccessToken() const {
return accessToken_;
}
long GetMobileRequest::getOwnerId()const
{
return ownerId_;
void GetMobileRequest::setAccessToken(const std::string &accessToken) {
accessToken_ = accessToken;
setParameter(std::string("AccessToken"), accessToken);
}
void GetMobileRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long GetMobileRequest::getOwnerId() const {
return ownerId_;
}
std::string GetMobileRequest::getAccessKeyId()const
{
return accessKeyId_;
void GetMobileRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void GetMobileRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string GetMobileRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string GetMobileRequest::getOutId()const
{
return outId_;
void GetMobileRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void GetMobileRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
std::string GetMobileRequest::getOutId() const {
return outId_;
}
void GetMobileRequest::setOutId(const std::string &outId) {
outId_ = outId;
setParameter(std::string("OutId"), outId);
}

View File

@@ -0,0 +1,81 @@
/*
* 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/GetPhoneWithTokenRequest.h>
using AlibabaCloud::Dypnsapi::Model::GetPhoneWithTokenRequest;
GetPhoneWithTokenRequest::GetPhoneWithTokenRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "GetPhoneWithToken") {
setMethod(HttpRequest::Method::Post);
}
GetPhoneWithTokenRequest::~GetPhoneWithTokenRequest() {}
long GetPhoneWithTokenRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void GetPhoneWithTokenRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string GetPhoneWithTokenRequest::getProductCode() const {
return productCode_;
}
void GetPhoneWithTokenRequest::setProductCode(const std::string &productCode) {
productCode_ = productCode;
setParameter(std::string("ProductCode"), productCode);
}
std::string GetPhoneWithTokenRequest::getAccessKeyId() const {
return accessKeyId_;
}
void GetPhoneWithTokenRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string GetPhoneWithTokenRequest::getSpToken() const {
return spToken_;
}
void GetPhoneWithTokenRequest::setSpToken(const std::string &spToken) {
spToken_ = spToken;
setParameter(std::string("SpToken"), spToken);
}
std::string GetPhoneWithTokenRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void GetPhoneWithTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long GetPhoneWithTokenRequest::getOwnerId() const {
return ownerId_;
}
void GetPhoneWithTokenRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dypnsapi/model/GetPhoneWithTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
GetPhoneWithTokenResult::GetPhoneWithTokenResult() :
ServiceResult()
{}
GetPhoneWithTokenResult::GetPhoneWithTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPhoneWithTokenResult::~GetPhoneWithTokenResult()
{}
void GetPhoneWithTokenResult::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["Mobile"].isNull())
data_.mobile = dataNode["Mobile"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetPhoneWithTokenResult::getMessage()const
{
return message_;
}
GetPhoneWithTokenResult::Data GetPhoneWithTokenResult::getData()const
{
return data_;
}
std::string GetPhoneWithTokenResult::getCode()const
{
return code_;
}

View File

@@ -1,172 +1,144 @@
/*
* 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_;
*/
#include <alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h>
using AlibabaCloud::Dypnsapi::Model::GetSmsAuthTokensRequest;
GetSmsAuthTokensRequest::GetSmsAuthTokensRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "GetSmsAuthTokens") {
setMethod(HttpRequest::Method::Post);
}
void GetSmsAuthTokensRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
GetSmsAuthTokensRequest::~GetSmsAuthTokensRequest() {}
long GetSmsAuthTokensRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string GetSmsAuthTokensRequest::getProductCode()const
{
return productCode_;
void GetSmsAuthTokensRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void GetSmsAuthTokensRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
std::string GetSmsAuthTokensRequest::getProductCode() const {
return productCode_;
}
std::string GetSmsAuthTokensRequest::getBundleId()const
{
return bundleId_;
void GetSmsAuthTokensRequest::setProductCode(const std::string &productCode) {
productCode_ = productCode;
setParameter(std::string("ProductCode"), productCode);
}
void GetSmsAuthTokensRequest::setBundleId(const std::string& bundleId)
{
bundleId_ = bundleId;
setParameter("BundleId", bundleId);
std::string GetSmsAuthTokensRequest::getBundleId() const {
return bundleId_;
}
std::string GetSmsAuthTokensRequest::getAccessKeyId()const
{
return accessKeyId_;
void GetSmsAuthTokensRequest::setBundleId(const std::string &bundleId) {
bundleId_ = bundleId;
setParameter(std::string("BundleId"), bundleId);
}
void GetSmsAuthTokensRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string GetSmsAuthTokensRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string GetSmsAuthTokensRequest::getSignName()const
{
return signName_;
void GetSmsAuthTokensRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void GetSmsAuthTokensRequest::setSignName(const std::string& signName)
{
signName_ = signName;
setParameter("SignName", signName);
std::string GetSmsAuthTokensRequest::getSignName() const {
return signName_;
}
std::string GetSmsAuthTokensRequest::getSceneCode()const
{
return sceneCode_;
void GetSmsAuthTokensRequest::setSignName(const std::string &signName) {
signName_ = signName;
setParameter(std::string("SignName"), signName);
}
void GetSmsAuthTokensRequest::setSceneCode(const std::string& sceneCode)
{
sceneCode_ = sceneCode;
setParameter("SceneCode", sceneCode);
std::string GetSmsAuthTokensRequest::getSceneCode() const {
return sceneCode_;
}
std::string GetSmsAuthTokensRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void GetSmsAuthTokensRequest::setSceneCode(const std::string &sceneCode) {
sceneCode_ = sceneCode;
setParameter(std::string("SceneCode"), sceneCode);
}
void GetSmsAuthTokensRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string GetSmsAuthTokensRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
int GetSmsAuthTokensRequest::getSmsCodeExpire()const
{
return smsCodeExpire_;
void GetSmsAuthTokensRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void GetSmsAuthTokensRequest::setSmsCodeExpire(int smsCodeExpire)
{
smsCodeExpire_ = smsCodeExpire;
setParameter("SmsCodeExpire", std::to_string(smsCodeExpire));
int GetSmsAuthTokensRequest::getSmsCodeExpire() const {
return smsCodeExpire_;
}
std::string GetSmsAuthTokensRequest::getPackageName()const
{
return packageName_;
void GetSmsAuthTokensRequest::setSmsCodeExpire(int smsCodeExpire) {
smsCodeExpire_ = smsCodeExpire;
setParameter(std::string("SmsCodeExpire"), std::to_string(smsCodeExpire));
}
void GetSmsAuthTokensRequest::setPackageName(const std::string& packageName)
{
packageName_ = packageName;
setParameter("PackageName", packageName);
std::string GetSmsAuthTokensRequest::getPackageName() const {
return packageName_;
}
std::string GetSmsAuthTokensRequest::getOsType()const
{
return osType_;
void GetSmsAuthTokensRequest::setPackageName(const std::string &packageName) {
packageName_ = packageName;
setParameter(std::string("PackageName"), packageName);
}
void GetSmsAuthTokensRequest::setOsType(const std::string& osType)
{
osType_ = osType;
setParameter("OsType", osType);
std::string GetSmsAuthTokensRequest::getOsType() const {
return osType_;
}
long GetSmsAuthTokensRequest::getOwnerId()const
{
return ownerId_;
void GetSmsAuthTokensRequest::setOsType(const std::string &osType) {
osType_ = osType;
setParameter(std::string("OsType"), osType);
}
void GetSmsAuthTokensRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long GetSmsAuthTokensRequest::getOwnerId() const {
return ownerId_;
}
std::string GetSmsAuthTokensRequest::getSmsTemplateCode()const
{
return smsTemplateCode_;
void GetSmsAuthTokensRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void GetSmsAuthTokensRequest::setSmsTemplateCode(const std::string& smsTemplateCode)
{
smsTemplateCode_ = smsTemplateCode;
setParameter("SmsTemplateCode", smsTemplateCode);
std::string GetSmsAuthTokensRequest::getSmsTemplateCode() const {
return smsTemplateCode_;
}
long GetSmsAuthTokensRequest::getExpire()const
{
return expire_;
void GetSmsAuthTokensRequest::setSmsTemplateCode(const std::string &smsTemplateCode) {
smsTemplateCode_ = smsTemplateCode;
setParameter(std::string("SmsTemplateCode"), smsTemplateCode);
}
void GetSmsAuthTokensRequest::setExpire(long expire)
{
expire_ = expire;
setParameter("Expire", std::to_string(expire));
long GetSmsAuthTokensRequest::getExpire() const {
return expire_;
}
void GetSmsAuthTokensRequest::setExpire(long expire) {
expire_ = expire;
setParameter(std::string("Expire"), std::to_string(expire));
}

View File

@@ -1,106 +1,90 @@
/*
* 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_;
*/
#include <alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h>
using AlibabaCloud::Dypnsapi::Model::QueryGateVerifyBillingPublicRequest;
QueryGateVerifyBillingPublicRequest::QueryGateVerifyBillingPublicRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "QueryGateVerifyBillingPublic") {
setMethod(HttpRequest::Method::Post);
}
void QueryGateVerifyBillingPublicRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
QueryGateVerifyBillingPublicRequest::~QueryGateVerifyBillingPublicRequest() {}
long QueryGateVerifyBillingPublicRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
int QueryGateVerifyBillingPublicRequest::getAuthenticationType()const
{
return authenticationType_;
void QueryGateVerifyBillingPublicRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void QueryGateVerifyBillingPublicRequest::setAuthenticationType(int authenticationType)
{
authenticationType_ = authenticationType;
setParameter("AuthenticationType", std::to_string(authenticationType));
int QueryGateVerifyBillingPublicRequest::getAuthenticationType() const {
return authenticationType_;
}
std::string QueryGateVerifyBillingPublicRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryGateVerifyBillingPublicRequest::setAuthenticationType(int authenticationType) {
authenticationType_ = authenticationType;
setParameter(std::string("AuthenticationType"), std::to_string(authenticationType));
}
void QueryGateVerifyBillingPublicRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryGateVerifyBillingPublicRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string QueryGateVerifyBillingPublicRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void QueryGateVerifyBillingPublicRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryGateVerifyBillingPublicRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string QueryGateVerifyBillingPublicRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string QueryGateVerifyBillingPublicRequest::getProdCode()const
{
return prodCode_;
void QueryGateVerifyBillingPublicRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void QueryGateVerifyBillingPublicRequest::setProdCode(const std::string& prodCode)
{
prodCode_ = prodCode;
setParameter("ProdCode", prodCode);
std::string QueryGateVerifyBillingPublicRequest::getProdCode() const {
return prodCode_;
}
long QueryGateVerifyBillingPublicRequest::getOwnerId()const
{
return ownerId_;
void QueryGateVerifyBillingPublicRequest::setProdCode(const std::string &prodCode) {
prodCode_ = prodCode;
setParameter(std::string("ProdCode"), prodCode);
}
void QueryGateVerifyBillingPublicRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long QueryGateVerifyBillingPublicRequest::getOwnerId() const {
return ownerId_;
}
std::string QueryGateVerifyBillingPublicRequest::getMonth()const
{
return month_;
void QueryGateVerifyBillingPublicRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void QueryGateVerifyBillingPublicRequest::setMonth(const std::string& month)
{
month_ = month;
setParameter("Month", month);
std::string QueryGateVerifyBillingPublicRequest::getMonth() const {
return month_;
}
void QueryGateVerifyBillingPublicRequest::setMonth(const std::string &month) {
month_ = month;
setParameter(std::string("Month"), month);
}

View File

@@ -1,139 +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/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_;
*/
#include <alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h>
using AlibabaCloud::Dypnsapi::Model::QueryGateVerifyStatisticPublicRequest;
QueryGateVerifyStatisticPublicRequest::QueryGateVerifyStatisticPublicRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "QueryGateVerifyStatisticPublic") {
setMethod(HttpRequest::Method::Post);
}
void QueryGateVerifyStatisticPublicRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
QueryGateVerifyStatisticPublicRequest::~QueryGateVerifyStatisticPublicRequest() {}
long QueryGateVerifyStatisticPublicRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
int QueryGateVerifyStatisticPublicRequest::getAuthenticationType()const
{
return authenticationType_;
void QueryGateVerifyStatisticPublicRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void QueryGateVerifyStatisticPublicRequest::setAuthenticationType(int authenticationType)
{
authenticationType_ = authenticationType;
setParameter("AuthenticationType", std::to_string(authenticationType));
int QueryGateVerifyStatisticPublicRequest::getAuthenticationType() const {
return authenticationType_;
}
std::string QueryGateVerifyStatisticPublicRequest::getStartDate()const
{
return startDate_;
void QueryGateVerifyStatisticPublicRequest::setAuthenticationType(int authenticationType) {
authenticationType_ = authenticationType;
setParameter(std::string("AuthenticationType"), std::to_string(authenticationType));
}
void QueryGateVerifyStatisticPublicRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
std::string QueryGateVerifyStatisticPublicRequest::getStartDate() const {
return startDate_;
}
std::string QueryGateVerifyStatisticPublicRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryGateVerifyStatisticPublicRequest::setStartDate(const std::string &startDate) {
startDate_ = startDate;
setParameter(std::string("StartDate"), startDate);
}
void QueryGateVerifyStatisticPublicRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryGateVerifyStatisticPublicRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string QueryGateVerifyStatisticPublicRequest::getSceneCode()const
{
return sceneCode_;
void QueryGateVerifyStatisticPublicRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryGateVerifyStatisticPublicRequest::setSceneCode(const std::string& sceneCode)
{
sceneCode_ = sceneCode;
setParameter("SceneCode", sceneCode);
std::string QueryGateVerifyStatisticPublicRequest::getSceneCode() const {
return sceneCode_;
}
std::string QueryGateVerifyStatisticPublicRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void QueryGateVerifyStatisticPublicRequest::setSceneCode(const std::string &sceneCode) {
sceneCode_ = sceneCode;
setParameter(std::string("SceneCode"), sceneCode);
}
void QueryGateVerifyStatisticPublicRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string QueryGateVerifyStatisticPublicRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string QueryGateVerifyStatisticPublicRequest::getProdCode()const
{
return prodCode_;
void QueryGateVerifyStatisticPublicRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void QueryGateVerifyStatisticPublicRequest::setProdCode(const std::string& prodCode)
{
prodCode_ = prodCode;
setParameter("ProdCode", prodCode);
std::string QueryGateVerifyStatisticPublicRequest::getProdCode() const {
return prodCode_;
}
std::string QueryGateVerifyStatisticPublicRequest::getOsType()const
{
return osType_;
void QueryGateVerifyStatisticPublicRequest::setProdCode(const std::string &prodCode) {
prodCode_ = prodCode;
setParameter(std::string("ProdCode"), prodCode);
}
void QueryGateVerifyStatisticPublicRequest::setOsType(const std::string& osType)
{
osType_ = osType;
setParameter("OsType", osType);
std::string QueryGateVerifyStatisticPublicRequest::getOsType() const {
return osType_;
}
long QueryGateVerifyStatisticPublicRequest::getOwnerId()const
{
return ownerId_;
void QueryGateVerifyStatisticPublicRequest::setOsType(const std::string &osType) {
osType_ = osType;
setParameter(std::string("OsType"), osType);
}
void QueryGateVerifyStatisticPublicRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long QueryGateVerifyStatisticPublicRequest::getOwnerId() const {
return ownerId_;
}
std::string QueryGateVerifyStatisticPublicRequest::getEndDate()const
{
return endDate_;
void QueryGateVerifyStatisticPublicRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void QueryGateVerifyStatisticPublicRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
std::string QueryGateVerifyStatisticPublicRequest::getEndDate() const {
return endDate_;
}
void QueryGateVerifyStatisticPublicRequest::setEndDate(const std::string &endDate) {
endDate_ = endDate;
setParameter(std::string("EndDate"), endDate);
}

View File

@@ -0,0 +1,126 @@
/*
* 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/QuerySendDetailsRequest.h>
using AlibabaCloud::Dypnsapi::Model::QuerySendDetailsRequest;
QuerySendDetailsRequest::QuerySendDetailsRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "QuerySendDetails") {
setMethod(HttpRequest::Method::Post);
}
QuerySendDetailsRequest::~QuerySendDetailsRequest() {}
long QuerySendDetailsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string QuerySendDetailsRequest::getPhoneNumber() const {
return phoneNumber_;
}
void QuerySendDetailsRequest::setPhoneNumber(const std::string &phoneNumber) {
phoneNumber_ = phoneNumber;
setParameter(std::string("PhoneNumber"), phoneNumber);
}
std::string QuerySendDetailsRequest::getExtendFunction() const {
return extendFunction_;
}
void QuerySendDetailsRequest::setExtendFunction(const std::string &extendFunction) {
extendFunction_ = extendFunction;
setParameter(std::string("ExtendFunction"), extendFunction);
}
std::string QuerySendDetailsRequest::getAccessKeyId() const {
return accessKeyId_;
}
void QuerySendDetailsRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string QuerySendDetailsRequest::getSendDate() const {
return sendDate_;
}
void QuerySendDetailsRequest::setSendDate(const std::string &sendDate) {
sendDate_ = sendDate;
setParameter(std::string("SendDate"), sendDate);
}
long QuerySendDetailsRequest::getPageSize() const {
return pageSize_;
}
void QuerySendDetailsRequest::setPageSize(long pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string QuerySendDetailsRequest::getRouteName() const {
return routeName_;
}
void QuerySendDetailsRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string QuerySendDetailsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long QuerySendDetailsRequest::getCurrentPage() const {
return currentPage_;
}
void QuerySendDetailsRequest::setCurrentPage(long currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
long QuerySendDetailsRequest::getOwnerId() const {
return ownerId_;
}
void QuerySendDetailsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string QuerySendDetailsRequest::getBizId() const {
return bizId_;
}
void QuerySendDetailsRequest::setBizId(const std::string &bizId) {
bizId_ = bizId;
setParameter(std::string("BizId"), bizId);
}

View 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/QuerySendDetailsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
QuerySendDetailsResult::QuerySendDetailsResult() :
ServiceResult()
{}
QuerySendDetailsResult::QuerySendDetailsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySendDetailsResult::~QuerySendDetailsResult()
{}
void QuerySendDetailsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allModelNode = value["Model"]["modelItem"];
for (auto valueModelmodelItem : allModelNode)
{
ModelItem modelObject;
if(!valueModelmodelItem["TemplateCode"].isNull())
modelObject.templateCode = valueModelmodelItem["TemplateCode"].asString();
if(!valueModelmodelItem["ReceiveDate"].isNull())
modelObject.receiveDate = valueModelmodelItem["ReceiveDate"].asString();
if(!valueModelmodelItem["PhoneNum"].isNull())
modelObject.phoneNum = valueModelmodelItem["PhoneNum"].asString();
if(!valueModelmodelItem["Content"].isNull())
modelObject.content = valueModelmodelItem["Content"].asString();
if(!valueModelmodelItem["SendStatus"].isNull())
modelObject.sendStatus = std::stol(valueModelmodelItem["SendStatus"].asString());
if(!valueModelmodelItem["OutId"].isNull())
modelObject.outId = valueModelmodelItem["OutId"].asString();
if(!valueModelmodelItem["SendDate"].isNull())
modelObject.sendDate = valueModelmodelItem["SendDate"].asString();
if(!valueModelmodelItem["ErrCode"].isNull())
modelObject.errCode = valueModelmodelItem["ErrCode"].asString();
model_.push_back(modelObject);
}
if(!value["AccessDeniedDetail"].isNull())
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QuerySendDetailsResult::getAccessDeniedDetail()const
{
return accessDeniedDetail_;
}
long QuerySendDetailsResult::getTotalCount()const
{
return totalCount_;
}
std::string QuerySendDetailsResult::getMessage()const
{
return message_;
}
std::vector<QuerySendDetailsResult::ModelItem> QuerySendDetailsResult::getModel()const
{
return model_;
}
std::string QuerySendDetailsResult::getCode()const
{
return code_;
}
bool QuerySendDetailsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,207 @@
/*
* 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/SendSmsVerifyCodeRequest.h>
using AlibabaCloud::Dypnsapi::Model::SendSmsVerifyCodeRequest;
SendSmsVerifyCodeRequest::SendSmsVerifyCodeRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "SendSmsVerifyCode") {
setMethod(HttpRequest::Method::Post);
}
SendSmsVerifyCodeRequest::~SendSmsVerifyCodeRequest() {}
long SendSmsVerifyCodeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void SendSmsVerifyCodeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string SendSmsVerifyCodeRequest::getCountryCode() const {
return countryCode_;
}
void SendSmsVerifyCodeRequest::setCountryCode(const std::string &countryCode) {
countryCode_ = countryCode;
setParameter(std::string("CountryCode"), countryCode);
}
std::string SendSmsVerifyCodeRequest::getPhoneNumber() const {
return phoneNumber_;
}
void SendSmsVerifyCodeRequest::setPhoneNumber(const std::string &phoneNumber) {
phoneNumber_ = phoneNumber;
setParameter(std::string("PhoneNumber"), phoneNumber);
}
std::string SendSmsVerifyCodeRequest::getExtendFunction() const {
return extendFunction_;
}
void SendSmsVerifyCodeRequest::setExtendFunction(const std::string &extendFunction) {
extendFunction_ = extendFunction;
setParameter(std::string("ExtendFunction"), extendFunction);
}
std::string SendSmsVerifyCodeRequest::getAccessKeyId() const {
return accessKeyId_;
}
void SendSmsVerifyCodeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string SendSmsVerifyCodeRequest::getSmsUpExtendCode() const {
return smsUpExtendCode_;
}
void SendSmsVerifyCodeRequest::setSmsUpExtendCode(const std::string &smsUpExtendCode) {
smsUpExtendCode_ = smsUpExtendCode;
setParameter(std::string("SmsUpExtendCode"), smsUpExtendCode);
}
std::string SendSmsVerifyCodeRequest::getSignName() const {
return signName_;
}
void SendSmsVerifyCodeRequest::setSignName(const std::string &signName) {
signName_ = signName;
setParameter(std::string("SignName"), signName);
}
std::string SendSmsVerifyCodeRequest::getRouteName() const {
return routeName_;
}
void SendSmsVerifyCodeRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string SendSmsVerifyCodeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void SendSmsVerifyCodeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long SendSmsVerifyCodeRequest::getValidTime() const {
return validTime_;
}
void SendSmsVerifyCodeRequest::setValidTime(long validTime) {
validTime_ = validTime;
setParameter(std::string("ValidTime"), std::to_string(validTime));
}
long SendSmsVerifyCodeRequest::getOwnerId() const {
return ownerId_;
}
void SendSmsVerifyCodeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
bool SendSmsVerifyCodeRequest::getReturnVerifyCode() const {
return returnVerifyCode_;
}
void SendSmsVerifyCodeRequest::setReturnVerifyCode(bool returnVerifyCode) {
returnVerifyCode_ = returnVerifyCode;
setParameter(std::string("ReturnVerifyCode"), returnVerifyCode ? "true" : "false");
}
long SendSmsVerifyCodeRequest::getCodeType() const {
return codeType_;
}
void SendSmsVerifyCodeRequest::setCodeType(long codeType) {
codeType_ = codeType;
setParameter(std::string("CodeType"), std::to_string(codeType));
}
std::string SendSmsVerifyCodeRequest::getSchemeName() const {
return schemeName_;
}
void SendSmsVerifyCodeRequest::setSchemeName(const std::string &schemeName) {
schemeName_ = schemeName;
setParameter(std::string("SchemeName"), schemeName);
}
long SendSmsVerifyCodeRequest::getDuplicatePolicy() const {
return duplicatePolicy_;
}
void SendSmsVerifyCodeRequest::setDuplicatePolicy(long duplicatePolicy) {
duplicatePolicy_ = duplicatePolicy;
setParameter(std::string("DuplicatePolicy"), std::to_string(duplicatePolicy));
}
std::string SendSmsVerifyCodeRequest::getOutId() const {
return outId_;
}
void SendSmsVerifyCodeRequest::setOutId(const std::string &outId) {
outId_ = outId;
setParameter(std::string("OutId"), outId);
}
long SendSmsVerifyCodeRequest::getInterval() const {
return interval_;
}
void SendSmsVerifyCodeRequest::setInterval(long interval) {
interval_ = interval;
setParameter(std::string("Interval"), std::to_string(interval));
}
std::string SendSmsVerifyCodeRequest::getTemplateCode() const {
return templateCode_;
}
void SendSmsVerifyCodeRequest::setTemplateCode(const std::string &templateCode) {
templateCode_ = templateCode;
setParameter(std::string("TemplateCode"), templateCode);
}
std::string SendSmsVerifyCodeRequest::getTemplateParam() const {
return templateParam_;
}
void SendSmsVerifyCodeRequest::setTemplateParam(const std::string &templateParam) {
templateParam_ = templateParam;
setParameter(std::string("TemplateParam"), templateParam);
}
long SendSmsVerifyCodeRequest::getCodeLength() const {
return codeLength_;
}
void SendSmsVerifyCodeRequest::setCodeLength(long codeLength) {
codeLength_ = codeLength;
setParameter(std::string("CodeLength"), std::to_string(codeLength));
}

View 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/SendSmsVerifyCodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
SendSmsVerifyCodeResult::SendSmsVerifyCodeResult() :
ServiceResult()
{}
SendSmsVerifyCodeResult::SendSmsVerifyCodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SendSmsVerifyCodeResult::~SendSmsVerifyCodeResult()
{}
void SendSmsVerifyCodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto modelNode = value["Model"];
if(!modelNode["VerifyCode"].isNull())
model_.verifyCode = modelNode["VerifyCode"].asString();
if(!modelNode["RequestId"].isNull())
model_.requestId = modelNode["RequestId"].asString();
if(!modelNode["OutId"].isNull())
model_.outId = modelNode["OutId"].asString();
if(!modelNode["BizId"].isNull())
model_.bizId = modelNode["BizId"].asString();
if(!value["AccessDeniedDetail"].isNull())
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string SendSmsVerifyCodeResult::getAccessDeniedDetail()const
{
return accessDeniedDetail_;
}
std::string SendSmsVerifyCodeResult::getMessage()const
{
return message_;
}
SendSmsVerifyCodeResult::Model SendSmsVerifyCodeResult::getModel()const
{
return model_;
}
std::string SendSmsVerifyCodeResult::getCode()const
{
return code_;
}
bool SendSmsVerifyCodeResult::getSuccess()const
{
return success_;
}

View File

@@ -1,106 +1,90 @@
/*
* 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/VerifyMobileRequest.h>
using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest;
VerifyMobileRequest::VerifyMobileRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile")
{
setMethod(HttpRequest::Method::Post);
}
VerifyMobileRequest::~VerifyMobileRequest()
{}
long VerifyMobileRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/dypnsapi/model/VerifyMobileRequest.h>
using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest;
VerifyMobileRequest::VerifyMobileRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile") {
setMethod(HttpRequest::Method::Post);
}
void VerifyMobileRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
VerifyMobileRequest::~VerifyMobileRequest() {}
long VerifyMobileRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string VerifyMobileRequest::getPhoneNumber()const
{
return phoneNumber_;
void VerifyMobileRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void VerifyMobileRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
std::string VerifyMobileRequest::getPhoneNumber() const {
return phoneNumber_;
}
std::string VerifyMobileRequest::getAccessKeyId()const
{
return accessKeyId_;
void VerifyMobileRequest::setPhoneNumber(const std::string &phoneNumber) {
phoneNumber_ = phoneNumber;
setParameter(std::string("PhoneNumber"), phoneNumber);
}
void VerifyMobileRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string VerifyMobileRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string VerifyMobileRequest::getAccessCode()const
{
return accessCode_;
void VerifyMobileRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void VerifyMobileRequest::setAccessCode(const std::string& accessCode)
{
accessCode_ = accessCode;
setParameter("AccessCode", accessCode);
std::string VerifyMobileRequest::getAccessCode() const {
return accessCode_;
}
std::string VerifyMobileRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void VerifyMobileRequest::setAccessCode(const std::string &accessCode) {
accessCode_ = accessCode;
setParameter(std::string("AccessCode"), accessCode);
}
void VerifyMobileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string VerifyMobileRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long VerifyMobileRequest::getOwnerId()const
{
return ownerId_;
void VerifyMobileRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void VerifyMobileRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long VerifyMobileRequest::getOwnerId() const {
return ownerId_;
}
std::string VerifyMobileRequest::getOutId()const
{
return outId_;
void VerifyMobileRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void VerifyMobileRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
std::string VerifyMobileRequest::getOutId() const {
return outId_;
}
void VerifyMobileRequest::setOutId(const std::string &outId) {
outId_ = outId;
setParameter(std::string("OutId"), outId);
}

View File

@@ -40,10 +40,10 @@ void VerifyMobileResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto gateVerifyResultDTONode = value["GateVerifyResultDTO"];
if(!gateVerifyResultDTONode["VerifyId"].isNull())
gateVerifyResultDTO_.verifyId = gateVerifyResultDTONode["VerifyId"].asString();
if(!gateVerifyResultDTONode["VerifyResult"].isNull())
gateVerifyResultDTO_.verifyResult = gateVerifyResultDTONode["VerifyResult"].asString();
if(!gateVerifyResultDTONode["VerifyId"].isNull())
gateVerifyResultDTO_.verifyId = gateVerifyResultDTONode["VerifyId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())

View File

@@ -1,95 +1,81 @@
/*
* 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/VerifyPhoneWithTokenRequest.h>
using AlibabaCloud::Dypnsapi::Model::VerifyPhoneWithTokenRequest;
VerifyPhoneWithTokenRequest::VerifyPhoneWithTokenRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyPhoneWithToken")
{
setMethod(HttpRequest::Method::Post);
}
VerifyPhoneWithTokenRequest::~VerifyPhoneWithTokenRequest()
{}
long VerifyPhoneWithTokenRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h>
using AlibabaCloud::Dypnsapi::Model::VerifyPhoneWithTokenRequest;
VerifyPhoneWithTokenRequest::VerifyPhoneWithTokenRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyPhoneWithToken") {
setMethod(HttpRequest::Method::Post);
}
void VerifyPhoneWithTokenRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
VerifyPhoneWithTokenRequest::~VerifyPhoneWithTokenRequest() {}
long VerifyPhoneWithTokenRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string VerifyPhoneWithTokenRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void VerifyPhoneWithTokenRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void VerifyPhoneWithTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string VerifyPhoneWithTokenRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string VerifyPhoneWithTokenRequest::getPhoneNumber()const
{
return phoneNumber_;
void VerifyPhoneWithTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void VerifyPhoneWithTokenRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
std::string VerifyPhoneWithTokenRequest::getPhoneNumber() const {
return phoneNumber_;
}
long VerifyPhoneWithTokenRequest::getOwnerId()const
{
return ownerId_;
void VerifyPhoneWithTokenRequest::setPhoneNumber(const std::string &phoneNumber) {
phoneNumber_ = phoneNumber;
setParameter(std::string("PhoneNumber"), phoneNumber);
}
void VerifyPhoneWithTokenRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long VerifyPhoneWithTokenRequest::getOwnerId() const {
return ownerId_;
}
std::string VerifyPhoneWithTokenRequest::getAccessKeyId()const
{
return accessKeyId_;
void VerifyPhoneWithTokenRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void VerifyPhoneWithTokenRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string VerifyPhoneWithTokenRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string VerifyPhoneWithTokenRequest::getSpToken()const
{
return spToken_;
void VerifyPhoneWithTokenRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void VerifyPhoneWithTokenRequest::setSpToken(const std::string& spToken)
{
spToken_ = spToken;
setParameter("SpToken", spToken);
std::string VerifyPhoneWithTokenRequest::getSpToken() const {
return spToken_;
}
void VerifyPhoneWithTokenRequest::setSpToken(const std::string &spToken) {
spToken_ = spToken;
setParameter(std::string("SpToken"), spToken);
}

View File

@@ -1,117 +1,99 @@
/*
* 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_;
*/
#include <alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h>
using AlibabaCloud::Dypnsapi::Model::VerifySmsCodeRequest;
VerifySmsCodeRequest::VerifySmsCodeRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "VerifySmsCode") {
setMethod(HttpRequest::Method::Post);
}
void VerifySmsCodeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
VerifySmsCodeRequest::~VerifySmsCodeRequest() {}
long VerifySmsCodeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string VerifySmsCodeRequest::getProductCode()const
{
return productCode_;
void VerifySmsCodeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void VerifySmsCodeRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
std::string VerifySmsCodeRequest::getProductCode() const {
return productCode_;
}
std::string VerifySmsCodeRequest::getSmsToken()const
{
return smsToken_;
void VerifySmsCodeRequest::setProductCode(const std::string &productCode) {
productCode_ = productCode;
setParameter(std::string("ProductCode"), productCode);
}
void VerifySmsCodeRequest::setSmsToken(const std::string& smsToken)
{
smsToken_ = smsToken;
setParameter("SmsToken", smsToken);
std::string VerifySmsCodeRequest::getSmsToken() const {
return smsToken_;
}
std::string VerifySmsCodeRequest::getPhoneNumber()const
{
return phoneNumber_;
void VerifySmsCodeRequest::setSmsToken(const std::string &smsToken) {
smsToken_ = smsToken;
setParameter(std::string("SmsToken"), smsToken);
}
void VerifySmsCodeRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
std::string VerifySmsCodeRequest::getPhoneNumber() const {
return phoneNumber_;
}
std::string VerifySmsCodeRequest::getAccessKeyId()const
{
return accessKeyId_;
void VerifySmsCodeRequest::setPhoneNumber(const std::string &phoneNumber) {
phoneNumber_ = phoneNumber;
setParameter(std::string("PhoneNumber"), phoneNumber);
}
void VerifySmsCodeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string VerifySmsCodeRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string VerifySmsCodeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void VerifySmsCodeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void VerifySmsCodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string VerifySmsCodeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long VerifySmsCodeRequest::getOwnerId()const
{
return ownerId_;
void VerifySmsCodeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void VerifySmsCodeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long VerifySmsCodeRequest::getOwnerId() const {
return ownerId_;
}
std::string VerifySmsCodeRequest::getSmsCode()const
{
return smsCode_;
void VerifySmsCodeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void VerifySmsCodeRequest::setSmsCode(const std::string& smsCode)
{
smsCode_ = smsCode;
setParameter("SmsCode", smsCode);
std::string VerifySmsCodeRequest::getSmsCode() const {
return smsCode_;
}
void VerifySmsCodeRequest::setSmsCode(const std::string &smsCode) {
smsCode_ = smsCode;
setParameter(std::string("SmsCode"), smsCode);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/VerifyWithFusionAuthTokenRequest.h>
using AlibabaCloud::Dypnsapi::Model::VerifyWithFusionAuthTokenRequest;
VerifyWithFusionAuthTokenRequest::VerifyWithFusionAuthTokenRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyWithFusionAuthToken") {
setMethod(HttpRequest::Method::Post);
}
VerifyWithFusionAuthTokenRequest::~VerifyWithFusionAuthTokenRequest() {}
long VerifyWithFusionAuthTokenRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void VerifyWithFusionAuthTokenRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string VerifyWithFusionAuthTokenRequest::getExtendFunction() const {
return extendFunction_;
}
void VerifyWithFusionAuthTokenRequest::setExtendFunction(const std::string &extendFunction) {
extendFunction_ = extendFunction;
setParameter(std::string("ExtendFunction"), extendFunction);
}
std::string VerifyWithFusionAuthTokenRequest::getAccessKeyId() const {
return accessKeyId_;
}
void VerifyWithFusionAuthTokenRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string VerifyWithFusionAuthTokenRequest::getRouteName() const {
return routeName_;
}
void VerifyWithFusionAuthTokenRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string VerifyWithFusionAuthTokenRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void VerifyWithFusionAuthTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string VerifyWithFusionAuthTokenRequest::getVerifyToken() const {
return verifyToken_;
}
void VerifyWithFusionAuthTokenRequest::setVerifyToken(const std::string &verifyToken) {
verifyToken_ = verifyToken;
setParameter(std::string("VerifyToken"), verifyToken);
}
long VerifyWithFusionAuthTokenRequest::getOwnerId() const {
return ownerId_;
}
void VerifyWithFusionAuthTokenRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
VerifyWithFusionAuthTokenResult::VerifyWithFusionAuthTokenResult() :
ServiceResult()
{}
VerifyWithFusionAuthTokenResult::VerifyWithFusionAuthTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
VerifyWithFusionAuthTokenResult::~VerifyWithFusionAuthTokenResult()
{}
void VerifyWithFusionAuthTokenResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto modelNode = value["Model"];
if(!modelNode["PhoneNumber"].isNull())
model_.phoneNumber = modelNode["PhoneNumber"].asString();
if(!modelNode["VerifyResult"].isNull())
model_.verifyResult = modelNode["VerifyResult"].asString();
if(!modelNode["PhoneScore"].isNull())
model_.phoneScore = std::stol(modelNode["PhoneScore"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string VerifyWithFusionAuthTokenResult::getMessage()const
{
return message_;
}
VerifyWithFusionAuthTokenResult::Model VerifyWithFusionAuthTokenResult::getModel()const
{
return model_;
}
std::string VerifyWithFusionAuthTokenResult::getCode()const
{
return code_;
}
bool VerifyWithFusionAuthTokenResult::getSuccess()const
{
return success_;
}