Add new pop api.

This commit is contained in:
sdk-team
2019-11-20 19:55:20 +08:00
parent 0db2a87588
commit 18e5c75e02
17 changed files with 673 additions and 5 deletions

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dypnsapi::Model::CreateVerifySchemeRequest;
CreateVerifySchemeRequest::CreateVerifySchemeRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "CreateVerifyScheme")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateVerifySchemeRequest::~CreateVerifySchemeRequest()
{}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dypnsapi/model/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_;
}
void DeleteVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteVerifySchemeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteVerifySchemeRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteVerifySchemeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteVerifySchemeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteVerifySchemeRequest::getSchemeCode()const
{
return schemeCode_;
}
void DeleteVerifySchemeRequest::setSchemeCode(const std::string& schemeCode)
{
schemeCode_ = schemeCode;
setCoreParameter("SchemeCode", schemeCode);
}
long DeleteVerifySchemeRequest::getCustomerId()const
{
return customerId_;
}
void DeleteVerifySchemeRequest::setCustomerId(long customerId)
{
customerId_ = customerId;
setCoreParameter("CustomerId", std::to_string(customerId));
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dypnsapi/model/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_;
}
void DescribeVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeVerifySchemeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DescribeVerifySchemeRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVerifySchemeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeVerifySchemeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeVerifySchemeRequest::getSchemeCode()const
{
return schemeCode_;
}
void DescribeVerifySchemeRequest::setSchemeCode(const std::string& schemeCode)
{
schemeCode_ = schemeCode;
setCoreParameter("SchemeCode", schemeCode);
}
long DescribeVerifySchemeRequest::getCustomerId()const
{
return customerId_;
}
void DescribeVerifySchemeRequest::setCustomerId(long customerId)
{
customerId_ = customerId;
setCoreParameter("CustomerId", std::to_string(customerId));
}

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/DescribeVerifySchemeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
DescribeVerifySchemeResult::DescribeVerifySchemeResult() :
ServiceResult()
{}
DescribeVerifySchemeResult::DescribeVerifySchemeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifySchemeResult::~DescribeVerifySchemeResult()
{}
void DescribeVerifySchemeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto schemeQueryResultDTONode = value["SchemeQueryResultDTO"];
if(!schemeQueryResultDTONode["AppEncryptInfo"].isNull())
schemeQueryResultDTO_.appEncryptInfo = schemeQueryResultDTONode["AppEncryptInfo"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeVerifySchemeResult::getMessage()const
{
return message_;
}
std::string DescribeVerifySchemeResult::getCode()const
{
return code_;
}
DescribeVerifySchemeResult::SchemeQueryResultDTO DescribeVerifySchemeResult::getSchemeQueryResultDTO()const
{
return schemeQueryResultDTO_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dypnsapi::Model::GetMobileRequest;
GetMobileRequest::GetMobileRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "GetMobile")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetMobileRequest::~GetMobileRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dypnsapi::Model::TwiceTelVerifyRequest;
TwiceTelVerifyRequest::TwiceTelVerifyRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "TwiceTelVerify")
{}
{
setMethod(HttpRequest::Method::Post);
}
TwiceTelVerifyRequest::~TwiceTelVerifyRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest;
VerifyMobileRequest::VerifyMobileRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile")
{}
{
setMethod(HttpRequest::Method::Post);
}
VerifyMobileRequest::~VerifyMobileRequest()
{}