Support SubmitOperationAuditInfo for Support self-service submission of approval information.
This commit is contained in:
@@ -231,6 +231,42 @@ DomainClient::CancelDomainVerificationOutcomeCallable DomainClient::cancelDomain
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::CancelOperationAuditOutcome DomainClient::cancelOperationAudit(const CancelOperationAuditRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelOperationAuditOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelOperationAuditOutcome(CancelOperationAuditResult(outcome.result()));
|
||||
else
|
||||
return CancelOperationAuditOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::cancelOperationAuditAsync(const CancelOperationAuditRequest& request, const CancelOperationAuditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelOperationAudit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::CancelOperationAuditOutcomeCallable DomainClient::cancelOperationAuditCallable(const CancelOperationAuditRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelOperationAuditOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelOperationAudit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::CancelQualificationVerificationOutcome DomainClient::cancelQualificationVerification(const CancelQualificationVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +339,42 @@ DomainClient::CancelTaskOutcomeCallable DomainClient::cancelTaskCallable(const C
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::ChangeAuctionOutcome DomainClient::changeAuction(const ChangeAuctionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeAuctionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeAuctionOutcome(ChangeAuctionResult(outcome.result()));
|
||||
else
|
||||
return ChangeAuctionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::changeAuctionAsync(const ChangeAuctionRequest& request, const ChangeAuctionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeAuction(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::ChangeAuctionOutcomeCallable DomainClient::changeAuctionCallable(const ChangeAuctionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeAuctionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeAuction(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::CheckDomainOutcome DomainClient::checkDomain(const CheckDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +843,42 @@ DomainClient::FuzzyMatchDomainSensitiveWordOutcomeCallable DomainClient::fuzzyMa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::GetOperationOssUploadPolicyOutcome DomainClient::getOperationOssUploadPolicy(const GetOperationOssUploadPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetOperationOssUploadPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetOperationOssUploadPolicyOutcome(GetOperationOssUploadPolicyResult(outcome.result()));
|
||||
else
|
||||
return GetOperationOssUploadPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::getOperationOssUploadPolicyAsync(const GetOperationOssUploadPolicyRequest& request, const GetOperationOssUploadPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getOperationOssUploadPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::GetOperationOssUploadPolicyOutcomeCallable DomainClient::getOperationOssUploadPolicyCallable(const GetOperationOssUploadPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetOperationOssUploadPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getOperationOssUploadPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::GetQualificationUploadPolicyOutcome DomainClient::getQualificationUploadPolicy(const GetQualificationUploadPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1779,42 @@ DomainClient::QueryDomainSuffixOutcomeCallable DomainClient::queryDomainSuffixCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::QueryDomainTransferStatusOutcome DomainClient::queryDomainTransferStatus(const QueryDomainTransferStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryDomainTransferStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryDomainTransferStatusOutcome(QueryDomainTransferStatusResult(outcome.result()));
|
||||
else
|
||||
return QueryDomainTransferStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::queryDomainTransferStatusAsync(const QueryDomainTransferStatusRequest& request, const QueryDomainTransferStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryDomainTransferStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::QueryDomainTransferStatusOutcomeCallable DomainClient::queryDomainTransferStatusCallable(const QueryDomainTransferStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryDomainTransferStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryDomainTransferStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::QueryEmailVerificationOutcome DomainClient::queryEmailVerification(const QueryEmailVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1887,6 +2031,78 @@ DomainClient::QueryLocalEnsAssociationOutcomeCallable DomainClient::queryLocalEn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::QueryOperationAuditInfoDetailOutcome DomainClient::queryOperationAuditInfoDetail(const QueryOperationAuditInfoDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryOperationAuditInfoDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryOperationAuditInfoDetailOutcome(QueryOperationAuditInfoDetailResult(outcome.result()));
|
||||
else
|
||||
return QueryOperationAuditInfoDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::queryOperationAuditInfoDetailAsync(const QueryOperationAuditInfoDetailRequest& request, const QueryOperationAuditInfoDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryOperationAuditInfoDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::QueryOperationAuditInfoDetailOutcomeCallable DomainClient::queryOperationAuditInfoDetailCallable(const QueryOperationAuditInfoDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryOperationAuditInfoDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryOperationAuditInfoDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::QueryOperationAuditInfoListOutcome DomainClient::queryOperationAuditInfoList(const QueryOperationAuditInfoListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryOperationAuditInfoListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryOperationAuditInfoListOutcome(QueryOperationAuditInfoListResult(outcome.result()));
|
||||
else
|
||||
return QueryOperationAuditInfoListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::queryOperationAuditInfoListAsync(const QueryOperationAuditInfoListRequest& request, const QueryOperationAuditInfoListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryOperationAuditInfoList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::QueryOperationAuditInfoListOutcomeCallable DomainClient::queryOperationAuditInfoListCallable(const QueryOperationAuditInfoListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryOperationAuditInfoListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryOperationAuditInfoList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::QueryQualificationDetailOutcome DomainClient::queryQualificationDetail(const QueryQualificationDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4083,6 +4299,78 @@ DomainClient::SubmitEmailVerificationOutcomeCallable DomainClient::submitEmailVe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::SubmitOperationAuditInfoOutcome DomainClient::submitOperationAuditInfo(const SubmitOperationAuditInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitOperationAuditInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitOperationAuditInfoOutcome(SubmitOperationAuditInfoResult(outcome.result()));
|
||||
else
|
||||
return SubmitOperationAuditInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::submitOperationAuditInfoAsync(const SubmitOperationAuditInfoRequest& request, const SubmitOperationAuditInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitOperationAuditInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::SubmitOperationAuditInfoOutcomeCallable DomainClient::submitOperationAuditInfoCallable(const SubmitOperationAuditInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitOperationAuditInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitOperationAuditInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::SubmitOperationCredentialsOutcome DomainClient::submitOperationCredentials(const SubmitOperationCredentialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitOperationCredentialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitOperationCredentialsOutcome(SubmitOperationCredentialsResult(outcome.result()));
|
||||
else
|
||||
return SubmitOperationCredentialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::submitOperationCredentialsAsync(const SubmitOperationCredentialsRequest& request, const SubmitOperationCredentialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitOperationCredentials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::SubmitOperationCredentialsOutcomeCallable DomainClient::submitOperationCredentialsCallable(const SubmitOperationCredentialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitOperationCredentialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitOperationCredentials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::TransferInCheckMailTokenOutcome DomainClient::transferInCheckMailToken(const TransferInCheckMailTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::AcceptDemandRequest;
|
||||
|
||||
AcceptDemandRequest::AcceptDemandRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "AcceptDemand")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AcceptDemandRequest::~AcceptDemandRequest()
|
||||
{}
|
||||
|
||||
@@ -38,7 +38,6 @@ void AcceptDemandResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::BidDomainRequest;
|
||||
|
||||
BidDomainRequest::BidDomainRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "BidDomain")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BidDomainRequest::~BidDomainRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string BidDomainRequest::getAuctionId()const
|
||||
void BidDomainRequest::setAuctionId(const std::string& auctionId)
|
||||
{
|
||||
auctionId_ = auctionId;
|
||||
setParameter("AuctionId", auctionId);
|
||||
setBodyParameter("AuctionId", auctionId);
|
||||
}
|
||||
|
||||
float BidDomainRequest::getMaxBid()const
|
||||
@@ -44,7 +46,7 @@ float BidDomainRequest::getMaxBid()const
|
||||
void BidDomainRequest::setMaxBid(float maxBid)
|
||||
{
|
||||
maxBid_ = maxBid;
|
||||
setParameter("MaxBid", std::to_string(maxBid));
|
||||
setBodyParameter("MaxBid", std::to_string(maxBid));
|
||||
}
|
||||
|
||||
std::string BidDomainRequest::getCurrency()const
|
||||
@@ -55,6 +57,6 @@ std::string BidDomainRequest::getCurrency()const
|
||||
void BidDomainRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setParameter("Currency", currency);
|
||||
setBodyParameter("Currency", currency);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ void BidDomainResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AuctionId"].isNull())
|
||||
auctionId_ = value["AuctionId"].asString();
|
||||
|
||||
51
domain/src/model/CancelOperationAuditRequest.cc
Normal file
51
domain/src/model/CancelOperationAuditRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/CancelOperationAuditRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::CancelOperationAuditRequest;
|
||||
|
||||
CancelOperationAuditRequest::CancelOperationAuditRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "CancelOperationAudit")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelOperationAuditRequest::~CancelOperationAuditRequest()
|
||||
{}
|
||||
|
||||
long CancelOperationAuditRequest::getAuditRecordId()const
|
||||
{
|
||||
return auditRecordId_;
|
||||
}
|
||||
|
||||
void CancelOperationAuditRequest::setAuditRecordId(long auditRecordId)
|
||||
{
|
||||
auditRecordId_ = auditRecordId;
|
||||
setParameter("AuditRecordId", std::to_string(auditRecordId));
|
||||
}
|
||||
|
||||
std::string CancelOperationAuditRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CancelOperationAuditRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
domain/src/model/CancelOperationAuditResult.cc
Normal file
44
domain/src/model/CancelOperationAuditResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/domain/model/CancelOperationAuditResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
CancelOperationAuditResult::CancelOperationAuditResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelOperationAuditResult::CancelOperationAuditResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelOperationAuditResult::~CancelOperationAuditResult()
|
||||
{}
|
||||
|
||||
void CancelOperationAuditResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
59
domain/src/model/ChangeAuctionRequest.cc
Normal file
59
domain/src/model/ChangeAuctionRequest.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/ChangeAuctionRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::ChangeAuctionRequest;
|
||||
|
||||
ChangeAuctionRequest::ChangeAuctionRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "ChangeAuction")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeAuctionRequest::~ChangeAuctionRequest()
|
||||
{}
|
||||
|
||||
std::vector<ChangeAuctionRequest::AuctionList> ChangeAuctionRequest::getAuctionList()const
|
||||
{
|
||||
return auctionList_;
|
||||
}
|
||||
|
||||
void ChangeAuctionRequest::setAuctionList(const std::vector<AuctionList>& auctionList)
|
||||
{
|
||||
auctionList_ = auctionList;
|
||||
for(int dep1 = 0; dep1!= auctionList.size(); dep1++) {
|
||||
auto auctionListObj = auctionList.at(dep1);
|
||||
std::string auctionListObjStr = "AuctionList." + std::to_string(dep1 + 1);
|
||||
setParameter(auctionListObjStr + ".Winner", auctionListObj.winner);
|
||||
setParameter(auctionListObjStr + ".ReserveRange", auctionListObj.reserveRange);
|
||||
setParameter(auctionListObjStr + ".DomainName", auctionListObj.domainName);
|
||||
setParameter(auctionListObjStr + ".EndTime", auctionListObj.endTime);
|
||||
setParameter(auctionListObjStr + ".TimeLeft", std::to_string(auctionListObj.timeLeft));
|
||||
setParameter(auctionListObjStr + ".IsReserve", std::to_string(auctionListObj.isReserve));
|
||||
for(int dep2 = 0; dep2!= auctionListObj.bidRecords.size(); dep2++) {
|
||||
auto bidRecordsObj = auctionListObj.bidRecords.at(dep2);
|
||||
std::string bidRecordsObjStr = auctionListObjStr + "BidRecords." + std::to_string(dep2 + 1);
|
||||
setParameter(bidRecordsObjStr + ".CreateTime", bidRecordsObj.createTime);
|
||||
setParameter(bidRecordsObjStr + ".Price", std::to_string(bidRecordsObj.price));
|
||||
setParameter(bidRecordsObjStr + ".UserId", bidRecordsObj.userId);
|
||||
}
|
||||
setParameter(auctionListObjStr + ".WinnerPrice", std::to_string(auctionListObj.winnerPrice));
|
||||
setParameter(auctionListObjStr + ".Status", auctionListObj.status);
|
||||
setParameter(auctionListObjStr + ".ReservePrice", std::to_string(auctionListObj.reservePrice));
|
||||
}
|
||||
}
|
||||
|
||||
44
domain/src/model/ChangeAuctionResult.cc
Normal file
44
domain/src/model/ChangeAuctionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/domain/model/ChangeAuctionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
ChangeAuctionResult::ChangeAuctionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeAuctionResult::ChangeAuctionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeAuctionResult::~ChangeAuctionResult()
|
||||
{}
|
||||
|
||||
void ChangeAuctionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::FailDemandRequest;
|
||||
|
||||
FailDemandRequest::FailDemandRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "FailDemand")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FailDemandRequest::~FailDemandRequest()
|
||||
{}
|
||||
|
||||
@@ -38,7 +38,6 @@ void FailDemandResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::FinishDemandRequest;
|
||||
|
||||
FinishDemandRequest::FinishDemandRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "FinishDemand")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FinishDemandRequest::~FinishDemandRequest()
|
||||
{}
|
||||
|
||||
@@ -38,7 +38,6 @@ void FinishDemandResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
domain/src/model/GetOperationOssUploadPolicyRequest.cc
Normal file
51
domain/src/model/GetOperationOssUploadPolicyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/GetOperationOssUploadPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::GetOperationOssUploadPolicyRequest;
|
||||
|
||||
GetOperationOssUploadPolicyRequest::GetOperationOssUploadPolicyRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "GetOperationOssUploadPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOperationOssUploadPolicyRequest::~GetOperationOssUploadPolicyRequest()
|
||||
{}
|
||||
|
||||
int GetOperationOssUploadPolicyRequest::getAuditType()const
|
||||
{
|
||||
return auditType_;
|
||||
}
|
||||
|
||||
void GetOperationOssUploadPolicyRequest::setAuditType(int auditType)
|
||||
{
|
||||
auditType_ = auditType;
|
||||
setParameter("AuditType", std::to_string(auditType));
|
||||
}
|
||||
|
||||
std::string GetOperationOssUploadPolicyRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void GetOperationOssUploadPolicyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
86
domain/src/model/GetOperationOssUploadPolicyResult.cc
Normal file
86
domain/src/model/GetOperationOssUploadPolicyResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/GetOperationOssUploadPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
GetOperationOssUploadPolicyResult::GetOperationOssUploadPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetOperationOssUploadPolicyResult::GetOperationOssUploadPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetOperationOssUploadPolicyResult::~GetOperationOssUploadPolicyResult()
|
||||
{}
|
||||
|
||||
void GetOperationOssUploadPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Accessid"].isNull())
|
||||
accessid_ = value["Accessid"].asString();
|
||||
if(!value["EncodedPolicy"].isNull())
|
||||
encodedPolicy_ = value["EncodedPolicy"].asString();
|
||||
if(!value["Signature"].isNull())
|
||||
signature_ = value["Signature"].asString();
|
||||
if(!value["FileDir"].isNull())
|
||||
fileDir_ = value["FileDir"].asString();
|
||||
if(!value["Host"].isNull())
|
||||
host_ = value["Host"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetOperationOssUploadPolicyResult::getFileDir()const
|
||||
{
|
||||
return fileDir_;
|
||||
}
|
||||
|
||||
std::string GetOperationOssUploadPolicyResult::getEncodedPolicy()const
|
||||
{
|
||||
return encodedPolicy_;
|
||||
}
|
||||
|
||||
std::string GetOperationOssUploadPolicyResult::getAccessid()const
|
||||
{
|
||||
return accessid_;
|
||||
}
|
||||
|
||||
std::string GetOperationOssUploadPolicyResult::getSignature()const
|
||||
{
|
||||
return signature_;
|
||||
}
|
||||
|
||||
std::string GetOperationOssUploadPolicyResult::getHost()const
|
||||
{
|
||||
return host_;
|
||||
}
|
||||
|
||||
std::string GetOperationOssUploadPolicyResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::GetReserveDomainUrlRequest;
|
||||
|
||||
GetReserveDomainUrlRequest::GetReserveDomainUrlRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "GetReserveDomainUrl")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetReserveDomainUrlRequest::~GetReserveDomainUrlRequest()
|
||||
{}
|
||||
|
||||
@@ -38,7 +38,6 @@ void GetReserveDomainUrlResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::QueryAuctionDetailRequest;
|
||||
|
||||
QueryAuctionDetailRequest::QueryAuctionDetailRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "QueryAuctionDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAuctionDetailRequest::~QueryAuctionDetailRequest()
|
||||
{}
|
||||
@@ -33,6 +35,6 @@ std::string QueryAuctionDetailRequest::getAuctionId()const
|
||||
void QueryAuctionDetailRequest::setAuctionId(const std::string& auctionId)
|
||||
{
|
||||
auctionId_ = auctionId;
|
||||
setParameter("AuctionId", auctionId);
|
||||
setBodyParameter("AuctionId", auctionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ void QueryAuctionDetailResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::QueryAuctionsRequest;
|
||||
|
||||
QueryAuctionsRequest::QueryAuctionsRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "QueryAuctions")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAuctionsRequest::~QueryAuctionsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int QueryAuctionsRequest::getPageSize()const
|
||||
void QueryAuctionsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int QueryAuctionsRequest::getCurrentPage()const
|
||||
@@ -44,7 +46,7 @@ int QueryAuctionsRequest::getCurrentPage()const
|
||||
void QueryAuctionsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
setBodyParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string QueryAuctionsRequest::getStatus()const
|
||||
@@ -55,6 +57,6 @@ std::string QueryAuctionsRequest::getStatus()const
|
||||
void QueryAuctionsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
setBodyParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,56 +38,55 @@ void QueryAuctionsResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["AuctionDetail"];
|
||||
for (auto value : allData)
|
||||
auto allDataNode = value["Data"]["AuctionDetail"];
|
||||
for (auto valueDataAuctionDetail : allDataNode)
|
||||
{
|
||||
AuctionDetail dataObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
dataObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AuctionId"].isNull())
|
||||
dataObject.auctionId = value["AuctionId"].asString();
|
||||
if(!value["DomainType"].isNull())
|
||||
dataObject.domainType = value["DomainType"].asString();
|
||||
if(!value["BookedPartner"].isNull())
|
||||
dataObject.bookedPartner = value["BookedPartner"].asString();
|
||||
if(!value["PartnerType"].isNull())
|
||||
dataObject.partnerType = value["PartnerType"].asString();
|
||||
if(!value["Currency"].isNull())
|
||||
dataObject.currency = value["Currency"].asString();
|
||||
if(!value["YourCurrentBid"].isNull())
|
||||
dataObject.yourCurrentBid = std::stof(value["YourCurrentBid"].asString());
|
||||
if(!value["YourMaxBid"].isNull())
|
||||
dataObject.yourMaxBid = std::stof(value["YourMaxBid"].asString());
|
||||
if(!value["HighBid"].isNull())
|
||||
dataObject.highBid = std::stof(value["HighBid"].asString());
|
||||
if(!value["NextValidBid"].isNull())
|
||||
dataObject.nextValidBid = std::stof(value["NextValidBid"].asString());
|
||||
if(!value["ReserveMet"].isNull())
|
||||
dataObject.reserveMet = value["ReserveMet"].asString() == "true";
|
||||
if(!value["TransferInPrice"].isNull())
|
||||
dataObject.transferInPrice = std::stof(value["TransferInPrice"].asString());
|
||||
if(!value["PayPrice"].isNull())
|
||||
dataObject.payPrice = std::stof(value["PayPrice"].asString());
|
||||
if(!value["HighBidder"].isNull())
|
||||
dataObject.highBidder = value["HighBidder"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
dataObject.status = value["Status"].asString();
|
||||
if(!value["PayStatus"].isNull())
|
||||
dataObject.payStatus = value["PayStatus"].asString();
|
||||
if(!value["ProduceStatus"].isNull())
|
||||
dataObject.produceStatus = value["ProduceStatus"].asString();
|
||||
if(!value["AuctionEndTime"].isNull())
|
||||
dataObject.auctionEndTime = std::stol(value["AuctionEndTime"].asString());
|
||||
if(!value["BookEndTime"].isNull())
|
||||
dataObject.bookEndTime = std::stol(value["BookEndTime"].asString());
|
||||
if(!value["PayEndTime"].isNull())
|
||||
dataObject.payEndTime = std::stol(value["PayEndTime"].asString());
|
||||
if(!value["DeliveryTime"].isNull())
|
||||
dataObject.deliveryTime = std::stol(value["DeliveryTime"].asString());
|
||||
if(!value["FailCode"].isNull())
|
||||
dataObject.failCode = value["FailCode"].asString();
|
||||
if(!valueDataAuctionDetail["DomainName"].isNull())
|
||||
dataObject.domainName = valueDataAuctionDetail["DomainName"].asString();
|
||||
if(!valueDataAuctionDetail["AuctionId"].isNull())
|
||||
dataObject.auctionId = valueDataAuctionDetail["AuctionId"].asString();
|
||||
if(!valueDataAuctionDetail["DomainType"].isNull())
|
||||
dataObject.domainType = valueDataAuctionDetail["DomainType"].asString();
|
||||
if(!valueDataAuctionDetail["BookedPartner"].isNull())
|
||||
dataObject.bookedPartner = valueDataAuctionDetail["BookedPartner"].asString();
|
||||
if(!valueDataAuctionDetail["PartnerType"].isNull())
|
||||
dataObject.partnerType = valueDataAuctionDetail["PartnerType"].asString();
|
||||
if(!valueDataAuctionDetail["Currency"].isNull())
|
||||
dataObject.currency = valueDataAuctionDetail["Currency"].asString();
|
||||
if(!valueDataAuctionDetail["YourCurrentBid"].isNull())
|
||||
dataObject.yourCurrentBid = std::stof(valueDataAuctionDetail["YourCurrentBid"].asString());
|
||||
if(!valueDataAuctionDetail["YourMaxBid"].isNull())
|
||||
dataObject.yourMaxBid = std::stof(valueDataAuctionDetail["YourMaxBid"].asString());
|
||||
if(!valueDataAuctionDetail["HighBid"].isNull())
|
||||
dataObject.highBid = std::stof(valueDataAuctionDetail["HighBid"].asString());
|
||||
if(!valueDataAuctionDetail["NextValidBid"].isNull())
|
||||
dataObject.nextValidBid = std::stof(valueDataAuctionDetail["NextValidBid"].asString());
|
||||
if(!valueDataAuctionDetail["ReserveMet"].isNull())
|
||||
dataObject.reserveMet = valueDataAuctionDetail["ReserveMet"].asString() == "true";
|
||||
if(!valueDataAuctionDetail["TransferInPrice"].isNull())
|
||||
dataObject.transferInPrice = std::stof(valueDataAuctionDetail["TransferInPrice"].asString());
|
||||
if(!valueDataAuctionDetail["PayPrice"].isNull())
|
||||
dataObject.payPrice = std::stof(valueDataAuctionDetail["PayPrice"].asString());
|
||||
if(!valueDataAuctionDetail["HighBidder"].isNull())
|
||||
dataObject.highBidder = valueDataAuctionDetail["HighBidder"].asString();
|
||||
if(!valueDataAuctionDetail["Status"].isNull())
|
||||
dataObject.status = valueDataAuctionDetail["Status"].asString();
|
||||
if(!valueDataAuctionDetail["PayStatus"].isNull())
|
||||
dataObject.payStatus = valueDataAuctionDetail["PayStatus"].asString();
|
||||
if(!valueDataAuctionDetail["ProduceStatus"].isNull())
|
||||
dataObject.produceStatus = valueDataAuctionDetail["ProduceStatus"].asString();
|
||||
if(!valueDataAuctionDetail["AuctionEndTime"].isNull())
|
||||
dataObject.auctionEndTime = std::stol(valueDataAuctionDetail["AuctionEndTime"].asString());
|
||||
if(!valueDataAuctionDetail["BookEndTime"].isNull())
|
||||
dataObject.bookEndTime = std::stol(valueDataAuctionDetail["BookEndTime"].asString());
|
||||
if(!valueDataAuctionDetail["PayEndTime"].isNull())
|
||||
dataObject.payEndTime = std::stol(valueDataAuctionDetail["PayEndTime"].asString());
|
||||
if(!valueDataAuctionDetail["DeliveryTime"].isNull())
|
||||
dataObject.deliveryTime = std::stol(valueDataAuctionDetail["DeliveryTime"].asString());
|
||||
if(!valueDataAuctionDetail["FailCode"].isNull())
|
||||
dataObject.failCode = valueDataAuctionDetail["FailCode"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalItemNum"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::QueryBidRecordsRequest;
|
||||
|
||||
QueryBidRecordsRequest::QueryBidRecordsRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "QueryBidRecords")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryBidRecordsRequest::~QueryBidRecordsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string QueryBidRecordsRequest::getAuctionId()const
|
||||
void QueryBidRecordsRequest::setAuctionId(const std::string& auctionId)
|
||||
{
|
||||
auctionId_ = auctionId;
|
||||
setParameter("AuctionId", auctionId);
|
||||
setBodyParameter("AuctionId", auctionId);
|
||||
}
|
||||
|
||||
int QueryBidRecordsRequest::getPageSize()const
|
||||
@@ -44,7 +46,7 @@ int QueryBidRecordsRequest::getPageSize()const
|
||||
void QueryBidRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int QueryBidRecordsRequest::getCurrentPage()const
|
||||
@@ -55,6 +57,6 @@ int QueryBidRecordsRequest::getCurrentPage()const
|
||||
void QueryBidRecordsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
setBodyParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
|
||||
@@ -38,22 +38,21 @@ void QueryBidRecordsResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["BidRecord"];
|
||||
for (auto value : allData)
|
||||
auto allDataNode = value["Data"]["BidRecord"];
|
||||
for (auto valueDataBidRecord : allDataNode)
|
||||
{
|
||||
BidRecord dataObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
dataObject.domainName = value["DomainName"].asString();
|
||||
if(!value["Currency"].isNull())
|
||||
dataObject.currency = value["Currency"].asString();
|
||||
if(!value["Bid"].isNull())
|
||||
dataObject.bid = std::stof(value["Bid"].asString());
|
||||
if(!value["BidTime"].isNull())
|
||||
dataObject.bidTime = std::stol(value["BidTime"].asString());
|
||||
if(!value["Bidder"].isNull())
|
||||
dataObject.bidder = value["Bidder"].asString();
|
||||
if(!valueDataBidRecord["DomainName"].isNull())
|
||||
dataObject.domainName = valueDataBidRecord["DomainName"].asString();
|
||||
if(!valueDataBidRecord["Currency"].isNull())
|
||||
dataObject.currency = valueDataBidRecord["Currency"].asString();
|
||||
if(!valueDataBidRecord["Bid"].isNull())
|
||||
dataObject.bid = std::stof(valueDataBidRecord["Bid"].asString());
|
||||
if(!valueDataBidRecord["BidTime"].isNull())
|
||||
dataObject.bidTime = std::stol(valueDataBidRecord["BidTime"].asString());
|
||||
if(!valueDataBidRecord["Bidder"].isNull())
|
||||
dataObject.bidder = valueDataBidRecord["Bidder"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalItemNum"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::QueryBookingDomainInfoRequest;
|
||||
|
||||
QueryBookingDomainInfoRequest::QueryBookingDomainInfoRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "QueryBookingDomainInfo")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryBookingDomainInfoRequest::~QueryBookingDomainInfoRequest()
|
||||
{}
|
||||
@@ -33,6 +35,6 @@ std::string QueryBookingDomainInfoRequest::getDomainName()const
|
||||
void QueryBookingDomainInfoRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
setBodyParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ void QueryBookingDomainInfoResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AuctionId"].isNull())
|
||||
auctionId_ = std::stoi(value["AuctionId"].asString());
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::QueryBrokerDemandRecordRequest;
|
||||
|
||||
QueryBrokerDemandRecordRequest::QueryBrokerDemandRecordRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "QueryBrokerDemandRecord")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryBrokerDemandRecordRequest::~QueryBrokerDemandRecordRequest()
|
||||
{}
|
||||
|
||||
@@ -38,18 +38,17 @@ void QueryBrokerDemandRecordResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["BrokerDemandRecord"];
|
||||
for (auto value : allData)
|
||||
auto allDataNode = value["Data"]["BrokerDemandRecord"];
|
||||
for (auto valueDataBrokerDemandRecord : allDataNode)
|
||||
{
|
||||
BrokerDemandRecord dataObject;
|
||||
if(!value["BizId"].isNull())
|
||||
dataObject.bizId = value["BizId"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
dataObject.description = value["Description"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
dataObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
if(!valueDataBrokerDemandRecord["BizId"].isNull())
|
||||
dataObject.bizId = valueDataBrokerDemandRecord["BizId"].asString();
|
||||
if(!valueDataBrokerDemandRecord["Description"].isNull())
|
||||
dataObject.description = valueDataBrokerDemandRecord["Description"].asString();
|
||||
if(!valueDataBrokerDemandRecord["CreateTime"].isNull())
|
||||
dataObject.createTime = std::stol(valueDataBrokerDemandRecord["CreateTime"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalItemNum"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::QueryBrokerDemandRequest;
|
||||
|
||||
QueryBrokerDemandRequest::QueryBrokerDemandRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "QueryBrokerDemand")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryBrokerDemandRequest::~QueryBrokerDemandRequest()
|
||||
{}
|
||||
|
||||
@@ -38,34 +38,39 @@ void QueryBrokerDemandResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Demand"];
|
||||
for (auto value : allData)
|
||||
auto allDataNode = value["Data"]["Demand"];
|
||||
for (auto valueDataDemand : allDataNode)
|
||||
{
|
||||
Demand dataObject;
|
||||
if(!value["BizId"].isNull())
|
||||
dataObject.bizId = value["BizId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
dataObject.status = value["Status"].asString();
|
||||
if(!value["DemandDomain"].isNull())
|
||||
dataObject.demandDomain = value["DemandDomain"].asString();
|
||||
if(!value["DemandPrice"].isNull())
|
||||
dataObject.demandPrice = std::stof(value["DemandPrice"].asString());
|
||||
if(!value["Mobile"].isNull())
|
||||
dataObject.mobile = value["Mobile"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
dataObject.description = value["Description"].asString();
|
||||
if(!value["PublishTime"].isNull())
|
||||
dataObject.publishTime = std::stol(value["PublishTime"].asString());
|
||||
if(!value["PayDomain"].isNull())
|
||||
dataObject.payDomain = value["PayDomain"].asString();
|
||||
if(!value["PayPrice"].isNull())
|
||||
dataObject.payPrice = std::stof(value["PayPrice"].asString());
|
||||
if(!value["PayTime"].isNull())
|
||||
dataObject.payTime = std::stol(value["PayTime"].asString());
|
||||
if(!value["ProduceType"].isNull())
|
||||
dataObject.produceType = std::stoi(value["ProduceType"].asString());
|
||||
if(!valueDataDemand["BizId"].isNull())
|
||||
dataObject.bizId = valueDataDemand["BizId"].asString();
|
||||
if(!valueDataDemand["Status"].isNull())
|
||||
dataObject.status = valueDataDemand["Status"].asString();
|
||||
if(!valueDataDemand["DemandDomain"].isNull())
|
||||
dataObject.demandDomain = valueDataDemand["DemandDomain"].asString();
|
||||
if(!valueDataDemand["DemandPrice"].isNull())
|
||||
dataObject.demandPrice = std::stof(valueDataDemand["DemandPrice"].asString());
|
||||
if(!valueDataDemand["Mobile"].isNull())
|
||||
dataObject.mobile = valueDataDemand["Mobile"].asString();
|
||||
if(!valueDataDemand["Description"].isNull())
|
||||
dataObject.description = valueDataDemand["Description"].asString();
|
||||
if(!valueDataDemand["PublishTime"].isNull())
|
||||
dataObject.publishTime = std::stol(valueDataDemand["PublishTime"].asString());
|
||||
if(!valueDataDemand["PayDomain"].isNull())
|
||||
dataObject.payDomain = valueDataDemand["PayDomain"].asString();
|
||||
if(!valueDataDemand["PayPrice"].isNull())
|
||||
dataObject.payPrice = std::stof(valueDataDemand["PayPrice"].asString());
|
||||
if(!valueDataDemand["PayTime"].isNull())
|
||||
dataObject.payTime = std::stol(valueDataDemand["PayTime"].asString());
|
||||
if(!valueDataDemand["ProduceType"].isNull())
|
||||
dataObject.produceType = std::stoi(valueDataDemand["ProduceType"].asString());
|
||||
if(!valueDataDemand["BargainSellerPrice"].isNull())
|
||||
dataObject.bargainSellerPrice = std::stof(valueDataDemand["BargainSellerPrice"].asString());
|
||||
if(!valueDataDemand["BargainSellerMobile"].isNull())
|
||||
dataObject.bargainSellerMobile = valueDataDemand["BargainSellerMobile"].asString();
|
||||
if(!valueDataDemand["ServicePayPrice"].isNull())
|
||||
dataObject.servicePayPrice = std::stof(valueDataDemand["ServicePayPrice"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalItemNum"].isNull())
|
||||
|
||||
40
domain/src/model/QueryDomainTransferStatusRequest.cc
Normal file
40
domain/src/model/QueryDomainTransferStatusRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/domain/model/QueryDomainTransferStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::QueryDomainTransferStatusRequest;
|
||||
|
||||
QueryDomainTransferStatusRequest::QueryDomainTransferStatusRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "QueryDomainTransferStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryDomainTransferStatusRequest::~QueryDomainTransferStatusRequest()
|
||||
{}
|
||||
|
||||
std::string QueryDomainTransferStatusRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void QueryDomainTransferStatusRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setBodyParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
59
domain/src/model/QueryDomainTransferStatusResult.cc
Normal file
59
domain/src/model/QueryDomainTransferStatusResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/QueryDomainTransferStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
QueryDomainTransferStatusResult::QueryDomainTransferStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDomainTransferStatusResult::QueryDomainTransferStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDomainTransferStatusResult::~QueryDomainTransferStatusResult()
|
||||
{}
|
||||
|
||||
void QueryDomainTransferStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainTransferStatusNode = value["DomainTransferStatus"]["DomainTransferStatusItem"];
|
||||
for (auto valueDomainTransferStatusDomainTransferStatusItem : allDomainTransferStatusNode)
|
||||
{
|
||||
DomainTransferStatusItem domainTransferStatusObject;
|
||||
if(!valueDomainTransferStatusDomainTransferStatusItem["DomainStatusDescription"].isNull())
|
||||
domainTransferStatusObject.domainStatusDescription = valueDomainTransferStatusDomainTransferStatusItem["DomainStatusDescription"].asString();
|
||||
if(!valueDomainTransferStatusDomainTransferStatusItem["DomainName"].isNull())
|
||||
domainTransferStatusObject.domainName = valueDomainTransferStatusDomainTransferStatusItem["DomainName"].asString();
|
||||
domainTransferStatus_.push_back(domainTransferStatusObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryDomainTransferStatusResult::DomainTransferStatusItem> QueryDomainTransferStatusResult::getDomainTransferStatus()const
|
||||
{
|
||||
return domainTransferStatus_;
|
||||
}
|
||||
|
||||
51
domain/src/model/QueryOperationAuditInfoDetailRequest.cc
Normal file
51
domain/src/model/QueryOperationAuditInfoDetailRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/QueryOperationAuditInfoDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::QueryOperationAuditInfoDetailRequest;
|
||||
|
||||
QueryOperationAuditInfoDetailRequest::QueryOperationAuditInfoDetailRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "QueryOperationAuditInfoDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryOperationAuditInfoDetailRequest::~QueryOperationAuditInfoDetailRequest()
|
||||
{}
|
||||
|
||||
long QueryOperationAuditInfoDetailRequest::getAuditRecordId()const
|
||||
{
|
||||
return auditRecordId_;
|
||||
}
|
||||
|
||||
void QueryOperationAuditInfoDetailRequest::setAuditRecordId(long auditRecordId)
|
||||
{
|
||||
auditRecordId_ = auditRecordId;
|
||||
setParameter("AuditRecordId", std::to_string(auditRecordId));
|
||||
}
|
||||
|
||||
std::string QueryOperationAuditInfoDetailRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void QueryOperationAuditInfoDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
107
domain/src/model/QueryOperationAuditInfoDetailResult.cc
Normal file
107
domain/src/model/QueryOperationAuditInfoDetailResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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/domain/model/QueryOperationAuditInfoDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
QueryOperationAuditInfoDetailResult::QueryOperationAuditInfoDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryOperationAuditInfoDetailResult::QueryOperationAuditInfoDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryOperationAuditInfoDetailResult::~QueryOperationAuditInfoDetailResult()
|
||||
{}
|
||||
|
||||
void QueryOperationAuditInfoDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
if(!value["UpdateTime"].isNull())
|
||||
updateTime_ = std::stol(value["UpdateTime"].asString());
|
||||
if(!value["BusinessName"].isNull())
|
||||
businessName_ = value["BusinessName"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["AuditType"].isNull())
|
||||
auditType_ = std::stoi(value["AuditType"].asString());
|
||||
if(!value["AuditStatus"].isNull())
|
||||
auditStatus_ = std::stoi(value["AuditStatus"].asString());
|
||||
if(!value["AuditInfo"].isNull())
|
||||
auditInfo_ = value["AuditInfo"].asString();
|
||||
if(!value["Remark"].isNull())
|
||||
remark_ = value["Remark"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryOperationAuditInfoDetailResult::getAuditInfo()const
|
||||
{
|
||||
return auditInfo_;
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoDetailResult::getAuditStatus()const
|
||||
{
|
||||
return auditStatus_;
|
||||
}
|
||||
|
||||
std::string QueryOperationAuditInfoDetailResult::getBusinessName()const
|
||||
{
|
||||
return businessName_;
|
||||
}
|
||||
|
||||
std::string QueryOperationAuditInfoDetailResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoDetailResult::getAuditType()const
|
||||
{
|
||||
return auditType_;
|
||||
}
|
||||
|
||||
long QueryOperationAuditInfoDetailResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
long QueryOperationAuditInfoDetailResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
std::string QueryOperationAuditInfoDetailResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string QueryOperationAuditInfoDetailResult::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
95
domain/src/model/QueryOperationAuditInfoListRequest.cc
Normal file
95
domain/src/model/QueryOperationAuditInfoListRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/QueryOperationAuditInfoListRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::QueryOperationAuditInfoListRequest;
|
||||
|
||||
QueryOperationAuditInfoListRequest::QueryOperationAuditInfoListRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "QueryOperationAuditInfoList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryOperationAuditInfoListRequest::~QueryOperationAuditInfoListRequest()
|
||||
{}
|
||||
|
||||
int QueryOperationAuditInfoListRequest::getAuditStatus()const
|
||||
{
|
||||
return auditStatus_;
|
||||
}
|
||||
|
||||
void QueryOperationAuditInfoListRequest::setAuditStatus(int auditStatus)
|
||||
{
|
||||
auditStatus_ = auditStatus;
|
||||
setParameter("AuditStatus", std::to_string(auditStatus));
|
||||
}
|
||||
|
||||
std::string QueryOperationAuditInfoListRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void QueryOperationAuditInfoListRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryOperationAuditInfoListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryOperationAuditInfoListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoListRequest::getAuditType()const
|
||||
{
|
||||
return auditType_;
|
||||
}
|
||||
|
||||
void QueryOperationAuditInfoListRequest::setAuditType(int auditType)
|
||||
{
|
||||
auditType_ = auditType;
|
||||
setParameter("AuditType", std::to_string(auditType));
|
||||
}
|
||||
|
||||
std::string QueryOperationAuditInfoListRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void QueryOperationAuditInfoListRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
115
domain/src/model/QueryOperationAuditInfoListResult.cc
Normal file
115
domain/src/model/QueryOperationAuditInfoListResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/domain/model/QueryOperationAuditInfoListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
QueryOperationAuditInfoListResult::QueryOperationAuditInfoListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryOperationAuditInfoListResult::QueryOperationAuditInfoListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryOperationAuditInfoListResult::~QueryOperationAuditInfoListResult()
|
||||
{}
|
||||
|
||||
void QueryOperationAuditInfoListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["OperationAuditRecord"];
|
||||
for (auto valueDataOperationAuditRecord : allDataNode)
|
||||
{
|
||||
OperationAuditRecord dataObject;
|
||||
if(!valueDataOperationAuditRecord["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDataOperationAuditRecord["Id"].asString());
|
||||
if(!valueDataOperationAuditRecord["CreateTime"].isNull())
|
||||
dataObject.createTime = std::stol(valueDataOperationAuditRecord["CreateTime"].asString());
|
||||
if(!valueDataOperationAuditRecord["UpdateTime"].isNull())
|
||||
dataObject.updateTime = std::stol(valueDataOperationAuditRecord["UpdateTime"].asString());
|
||||
if(!valueDataOperationAuditRecord["BusinessName"].isNull())
|
||||
dataObject.businessName = valueDataOperationAuditRecord["BusinessName"].asString();
|
||||
if(!valueDataOperationAuditRecord["DomainName"].isNull())
|
||||
dataObject.domainName = valueDataOperationAuditRecord["DomainName"].asString();
|
||||
if(!valueDataOperationAuditRecord["AuditType"].isNull())
|
||||
dataObject.auditType = std::stoi(valueDataOperationAuditRecord["AuditType"].asString());
|
||||
if(!valueDataOperationAuditRecord["AuditStatus"].isNull())
|
||||
dataObject.auditStatus = std::stoi(valueDataOperationAuditRecord["AuditStatus"].asString());
|
||||
if(!valueDataOperationAuditRecord["AuditInfo"].isNull())
|
||||
dataObject.auditInfo = valueDataOperationAuditRecord["AuditInfo"].asString();
|
||||
if(!valueDataOperationAuditRecord["Remark"].isNull())
|
||||
dataObject.remark = valueDataOperationAuditRecord["Remark"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalItemNum"].isNull())
|
||||
totalItemNum_ = std::stoi(value["TotalItemNum"].asString());
|
||||
if(!value["CurrentPageNum"].isNull())
|
||||
currentPageNum_ = std::stoi(value["CurrentPageNum"].asString());
|
||||
if(!value["TotalPageNum"].isNull())
|
||||
totalPageNum_ = std::stoi(value["TotalPageNum"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PrePage"].isNull())
|
||||
prePage_ = value["PrePage"].asString() == "true";
|
||||
if(!value["NextPage"].isNull())
|
||||
nextPage_ = value["NextPage"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool QueryOperationAuditInfoListResult::getPrePage()const
|
||||
{
|
||||
return prePage_;
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoListResult::getCurrentPageNum()const
|
||||
{
|
||||
return currentPageNum_;
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoListResult::getTotalPageNum()const
|
||||
{
|
||||
return totalPageNum_;
|
||||
}
|
||||
|
||||
std::vector<QueryOperationAuditInfoListResult::OperationAuditRecord> QueryOperationAuditInfoListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int QueryOperationAuditInfoListResult::getTotalItemNum()const
|
||||
{
|
||||
return totalItemNum_;
|
||||
}
|
||||
|
||||
bool QueryOperationAuditInfoListResult::getNextPage()const
|
||||
{
|
||||
return nextPage_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::RecordDemandRequest;
|
||||
|
||||
RecordDemandRequest::RecordDemandRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "RecordDemand")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RecordDemandRequest::~RecordDemandRequest()
|
||||
{}
|
||||
|
||||
@@ -38,7 +38,6 @@ void RecordDemandResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::RefuseDemandRequest;
|
||||
|
||||
RefuseDemandRequest::RefuseDemandRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "RefuseDemand")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RefuseDemandRequest::~RefuseDemandRequest()
|
||||
{}
|
||||
|
||||
@@ -38,7 +38,6 @@ void RefuseDemandResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::RequestPayDemandRequest;
|
||||
|
||||
RequestPayDemandRequest::RequestPayDemandRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "RequestPayDemand")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RequestPayDemandRequest::~RequestPayDemandRequest()
|
||||
{}
|
||||
|
||||
@@ -38,7 +38,6 @@ void RequestPayDemandResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Domain::Model::ReserveDomainRequest;
|
||||
|
||||
ReserveDomainRequest::ReserveDomainRequest() :
|
||||
RpcServiceRequest("domain", "2018-02-08", "ReserveDomain")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReserveDomainRequest::~ReserveDomainRequest()
|
||||
{}
|
||||
@@ -33,8 +35,9 @@ std::vector<std::string> ReserveDomainRequest::getChannels()const
|
||||
void ReserveDomainRequest::setChannels(const std::vector<std::string>& channels)
|
||||
{
|
||||
channels_ = channels;
|
||||
for(int i = 0; i!= channels.size(); i++)
|
||||
setParameter("Channels."+ std::to_string(i), channels.at(i));
|
||||
for(int dep1 = 0; dep1!= channels.size(); dep1++) {
|
||||
setBodyParameter("Channels."+ std::to_string(dep1), channels.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ReserveDomainRequest::getDomainName()const
|
||||
@@ -45,6 +48,6 @@ std::string ReserveDomainRequest::getDomainName()const
|
||||
void ReserveDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
setBodyParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ void ReserveDomainResult::parse(const std::string &payload)
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AuctionId"].isNull())
|
||||
auctionId_ = value["AuctionId"].asString();
|
||||
|
||||
84
domain/src/model/SubmitOperationAuditInfoRequest.cc
Normal file
84
domain/src/model/SubmitOperationAuditInfoRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/SubmitOperationAuditInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::SubmitOperationAuditInfoRequest;
|
||||
|
||||
SubmitOperationAuditInfoRequest::SubmitOperationAuditInfoRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "SubmitOperationAuditInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitOperationAuditInfoRequest::~SubmitOperationAuditInfoRequest()
|
||||
{}
|
||||
|
||||
std::string SubmitOperationAuditInfoRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void SubmitOperationAuditInfoRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string SubmitOperationAuditInfoRequest::getAuditInfo()const
|
||||
{
|
||||
return auditInfo_;
|
||||
}
|
||||
|
||||
void SubmitOperationAuditInfoRequest::setAuditInfo(const std::string& auditInfo)
|
||||
{
|
||||
auditInfo_ = auditInfo;
|
||||
setParameter("AuditInfo", auditInfo);
|
||||
}
|
||||
|
||||
int SubmitOperationAuditInfoRequest::getAuditType()const
|
||||
{
|
||||
return auditType_;
|
||||
}
|
||||
|
||||
void SubmitOperationAuditInfoRequest::setAuditType(int auditType)
|
||||
{
|
||||
auditType_ = auditType;
|
||||
setParameter("AuditType", std::to_string(auditType));
|
||||
}
|
||||
|
||||
long SubmitOperationAuditInfoRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void SubmitOperationAuditInfoRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string SubmitOperationAuditInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void SubmitOperationAuditInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
51
domain/src/model/SubmitOperationAuditInfoResult.cc
Normal file
51
domain/src/model/SubmitOperationAuditInfoResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/SubmitOperationAuditInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
SubmitOperationAuditInfoResult::SubmitOperationAuditInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitOperationAuditInfoResult::SubmitOperationAuditInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitOperationAuditInfoResult::~SubmitOperationAuditInfoResult()
|
||||
{}
|
||||
|
||||
void SubmitOperationAuditInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stol(value["Id"].asString());
|
||||
|
||||
}
|
||||
|
||||
long SubmitOperationAuditInfoResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
84
domain/src/model/SubmitOperationCredentialsRequest.cc
Normal file
84
domain/src/model/SubmitOperationCredentialsRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/SubmitOperationCredentialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::SubmitOperationCredentialsRequest;
|
||||
|
||||
SubmitOperationCredentialsRequest::SubmitOperationCredentialsRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "SubmitOperationCredentials")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitOperationCredentialsRequest::~SubmitOperationCredentialsRequest()
|
||||
{}
|
||||
|
||||
std::string SubmitOperationCredentialsRequest::getCredentials()const
|
||||
{
|
||||
return credentials_;
|
||||
}
|
||||
|
||||
void SubmitOperationCredentialsRequest::setCredentials(const std::string& credentials)
|
||||
{
|
||||
credentials_ = credentials;
|
||||
setParameter("Credentials", credentials);
|
||||
}
|
||||
|
||||
long SubmitOperationCredentialsRequest::getAuditRecordId()const
|
||||
{
|
||||
return auditRecordId_;
|
||||
}
|
||||
|
||||
void SubmitOperationCredentialsRequest::setAuditRecordId(long auditRecordId)
|
||||
{
|
||||
auditRecordId_ = auditRecordId;
|
||||
setParameter("AuditRecordId", std::to_string(auditRecordId));
|
||||
}
|
||||
|
||||
int SubmitOperationCredentialsRequest::getRegType()const
|
||||
{
|
||||
return regType_;
|
||||
}
|
||||
|
||||
void SubmitOperationCredentialsRequest::setRegType(int regType)
|
||||
{
|
||||
regType_ = regType;
|
||||
setParameter("RegType", std::to_string(regType));
|
||||
}
|
||||
|
||||
int SubmitOperationCredentialsRequest::getAuditType()const
|
||||
{
|
||||
return auditType_;
|
||||
}
|
||||
|
||||
void SubmitOperationCredentialsRequest::setAuditType(int auditType)
|
||||
{
|
||||
auditType_ = auditType;
|
||||
setParameter("AuditType", std::to_string(auditType));
|
||||
}
|
||||
|
||||
std::string SubmitOperationCredentialsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void SubmitOperationCredentialsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
domain/src/model/SubmitOperationCredentialsResult.cc
Normal file
44
domain/src/model/SubmitOperationCredentialsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/domain/model/SubmitOperationCredentialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
SubmitOperationCredentialsResult::SubmitOperationCredentialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitOperationCredentialsResult::SubmitOperationCredentialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitOperationCredentialsResult::~SubmitOperationCredentialsResult()
|
||||
{}
|
||||
|
||||
void SubmitOperationCredentialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user