DYSMSAPI SDK Auto Released By zhangzifa,Version:1.34.62
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
126
dysmsapi/src/model/QuerySendDetailsRequest.cc
Normal file
126
dysmsapi/src/model/QuerySendDetailsRequest.cc
Normal 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/dysmsapi/model/QuerySendDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::QuerySendDetailsRequest;
|
||||
|
||||
QuerySendDetailsRequest::QuerySendDetailsRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySendDetails")
|
||||
{}
|
||||
|
||||
QuerySendDetailsRequest::~QuerySendDetailsRequest()
|
||||
{}
|
||||
|
||||
long QuerySendDetailsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getSendDate()const
|
||||
{
|
||||
return sendDate_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setSendDate(const std::string& sendDate)
|
||||
{
|
||||
sendDate_ = sendDate;
|
||||
setParameter("SendDate", sendDate);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
93
dysmsapi/src/model/QuerySendDetailsResult.cc
Normal file
93
dysmsapi/src/model/QuerySendDetailsResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/dysmsapi/model/QuerySendDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dysmsapi;
|
||||
using namespace AlibabaCloud::Dysmsapi::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 allSmsSendDetailDTOs = value["SmsSendDetailDTOs"]["SmsSendDetailDTO"];
|
||||
for (auto value : allSmsSendDetailDTOs)
|
||||
{
|
||||
SmsSendDetailDTO smsSendDetailDTOsObject;
|
||||
if(!value["PhoneNum"].isNull())
|
||||
smsSendDetailDTOsObject.phoneNum = value["PhoneNum"].asString();
|
||||
if(!value["SendStatus"].isNull())
|
||||
smsSendDetailDTOsObject.sendStatus = std::stol(value["SendStatus"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
smsSendDetailDTOsObject.errCode = value["ErrCode"].asString();
|
||||
if(!value["TemplateCode"].isNull())
|
||||
smsSendDetailDTOsObject.templateCode = value["TemplateCode"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
smsSendDetailDTOsObject.content = value["Content"].asString();
|
||||
if(!value["SendDate"].isNull())
|
||||
smsSendDetailDTOsObject.sendDate = value["SendDate"].asString();
|
||||
if(!value["ReceiveDate"].isNull())
|
||||
smsSendDetailDTOsObject.receiveDate = value["ReceiveDate"].asString();
|
||||
if(!value["OutId"].isNull())
|
||||
smsSendDetailDTOsObject.outId = value["OutId"].asString();
|
||||
smsSendDetailDTOs_.push_back(smsSendDetailDTOsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::vector<QuerySendDetailsResult::SmsSendDetailDTO> QuerySendDetailsResult::getSmsSendDetailDTOs()const
|
||||
{
|
||||
return smsSendDetailDTOs_;
|
||||
}
|
||||
|
||||
126
dysmsapi/src/model/SendBatchSmsRequest.cc
Normal file
126
dysmsapi/src/model/SendBatchSmsRequest.cc
Normal 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/dysmsapi/model/SendBatchSmsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::SendBatchSmsRequest;
|
||||
|
||||
SendBatchSmsRequest::SendBatchSmsRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "SendBatchSms")
|
||||
{}
|
||||
|
||||
SendBatchSmsRequest::~SendBatchSmsRequest()
|
||||
{}
|
||||
|
||||
std::string SendBatchSmsRequest::getTemplateParamJson()const
|
||||
{
|
||||
return templateParamJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson)
|
||||
{
|
||||
templateParamJson_ = templateParamJson;
|
||||
setParameter("TemplateParamJson", templateParamJson);
|
||||
}
|
||||
|
||||
long SendBatchSmsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
|
||||
{
|
||||
return smsUpExtendCodeJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson)
|
||||
{
|
||||
smsUpExtendCodeJson_ = smsUpExtendCodeJson;
|
||||
setParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
|
||||
}
|
||||
|
||||
long SendBatchSmsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSignNameJson()const
|
||||
{
|
||||
return signNameJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setSignNameJson(const std::string& signNameJson)
|
||||
{
|
||||
signNameJson_ = signNameJson;
|
||||
setParameter("SignNameJson", signNameJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getTemplateCode()const
|
||||
{
|
||||
return templateCode_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getPhoneNumberJson()const
|
||||
{
|
||||
return phoneNumberJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setPhoneNumberJson(const std::string& phoneNumberJson)
|
||||
{
|
||||
phoneNumberJson_ = phoneNumberJson;
|
||||
setParameter("PhoneNumberJson", phoneNumberJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dysmsapi/src/model/SendBatchSmsResult.cc
Normal file
66
dysmsapi/src/model/SendBatchSmsResult.cc
Normal 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/dysmsapi/model/SendBatchSmsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dysmsapi;
|
||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||
|
||||
SendBatchSmsResult::SendBatchSmsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendBatchSmsResult::SendBatchSmsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendBatchSmsResult::~SendBatchSmsResult()
|
||||
{}
|
||||
|
||||
void SendBatchSmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SendBatchSmsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SendBatchSmsResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
std::string SendBatchSmsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
137
dysmsapi/src/model/SendSmsRequest.cc
Normal file
137
dysmsapi/src/model/SendSmsRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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/dysmsapi/model/SendSmsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::SendSmsRequest;
|
||||
|
||||
SendSmsRequest::SendSmsRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "SendSms")
|
||||
{}
|
||||
|
||||
SendSmsRequest::~SendSmsRequest()
|
||||
{}
|
||||
|
||||
std::string SendSmsRequest::getSmsUpExtendCode()const
|
||||
{
|
||||
return smsUpExtendCode_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode)
|
||||
{
|
||||
smsUpExtendCode_ = smsUpExtendCode;
|
||||
setParameter("SmsUpExtendCode", smsUpExtendCode);
|
||||
}
|
||||
|
||||
long SendSmsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setSignName(const std::string& signName)
|
||||
{
|
||||
signName_ = signName;
|
||||
setParameter("SignName", signName);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getPhoneNumbers()const
|
||||
{
|
||||
return phoneNumbers_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setPhoneNumbers(const std::string& phoneNumbers)
|
||||
{
|
||||
phoneNumbers_ = phoneNumbers;
|
||||
setParameter("PhoneNumbers", phoneNumbers);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
}
|
||||
|
||||
long SendSmsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getTemplateCode()const
|
||||
{
|
||||
return templateCode_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getTemplateParam()const
|
||||
{
|
||||
return templateParam_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setTemplateParam(const std::string& templateParam)
|
||||
{
|
||||
templateParam_ = templateParam;
|
||||
setParameter("TemplateParam", templateParam);
|
||||
}
|
||||
|
||||
66
dysmsapi/src/model/SendSmsResult.cc
Normal file
66
dysmsapi/src/model/SendSmsResult.cc
Normal 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/dysmsapi/model/SendSmsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dysmsapi;
|
||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||
|
||||
SendSmsResult::SendSmsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendSmsResult::SendSmsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendSmsResult::~SendSmsResult()
|
||||
{}
|
||||
|
||||
void SendSmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SendSmsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SendSmsResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
std::string SendSmsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user