@@ -33,7 +33,7 @@ long QuerySendDetailsRequest::getResourceOwnerId()const
|
||||
void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
|
||||
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getSendDate()const
|
||||
@@ -55,7 +55,7 @@ std::string QuerySendDetailsRequest::getSendDate()const
|
||||
void QuerySendDetailsRequest::setSendDate(const std::string& sendDate)
|
||||
{
|
||||
sendDate_ = sendDate;
|
||||
setParameter("SendDate", sendDate);
|
||||
setCoreParameter("SendDate", sendDate);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getPhoneNumber()const
|
||||
@@ -66,7 +66,7 @@ std::string QuerySendDetailsRequest::getPhoneNumber()const
|
||||
void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
setCoreParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getBizId()const
|
||||
@@ -77,7 +77,7 @@ std::string QuerySendDetailsRequest::getBizId()const
|
||||
void QuerySendDetailsRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
setCoreParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getPageSize()const
|
||||
@@ -88,7 +88,7 @@ long QuerySendDetailsRequest::getPageSize()const
|
||||
void QuerySendDetailsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getCurrentPage()const
|
||||
@@ -99,7 +99,7 @@ long QuerySendDetailsRequest::getCurrentPage()const
|
||||
void QuerySendDetailsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long QuerySendDetailsRequest::getOwnerId()const
|
||||
void QuerySendDetailsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getAccessKeyId()const
|
||||
@@ -121,6 +121,6 @@ std::string QuerySendDetailsRequest::getAccessKeyId()const
|
||||
void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ QuerySendDetailsResult::~QuerySendDetailsResult()
|
||||
|
||||
void QuerySendDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSmsSendDetailDTOs = value["SmsSendDetailDTOs"]["SmsSendDetailDTO"];
|
||||
for (auto value : allSmsSendDetailDTOs)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string SendBatchSmsRequest::getTemplateParamJson()const
|
||||
void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson)
|
||||
{
|
||||
templateParamJson_ = templateParamJson;
|
||||
setParameter("TemplateParamJson", templateParamJson);
|
||||
setCoreParameter("TemplateParamJson", templateParamJson);
|
||||
}
|
||||
|
||||
long SendBatchSmsRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long SendBatchSmsRequest::getResourceOwnerId()const
|
||||
void SendBatchSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string SendBatchSmsRequest::getResourceOwnerAccount()const
|
||||
void SendBatchSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
|
||||
@@ -66,7 +66,7 @@ std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
|
||||
void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson)
|
||||
{
|
||||
smsUpExtendCodeJson_ = smsUpExtendCodeJson;
|
||||
setParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
|
||||
setCoreParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
|
||||
}
|
||||
|
||||
long SendBatchSmsRequest::getOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long SendBatchSmsRequest::getOwnerId()const
|
||||
void SendBatchSmsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSignNameJson()const
|
||||
@@ -88,7 +88,7 @@ std::string SendBatchSmsRequest::getSignNameJson()const
|
||||
void SendBatchSmsRequest::setSignNameJson(const std::string& signNameJson)
|
||||
{
|
||||
signNameJson_ = signNameJson;
|
||||
setParameter("SignNameJson", signNameJson);
|
||||
setCoreParameter("SignNameJson", signNameJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getTemplateCode()const
|
||||
@@ -99,7 +99,7 @@ std::string SendBatchSmsRequest::getTemplateCode()const
|
||||
void SendBatchSmsRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
setCoreParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getPhoneNumberJson()const
|
||||
@@ -110,7 +110,7 @@ std::string SendBatchSmsRequest::getPhoneNumberJson()const
|
||||
void SendBatchSmsRequest::setPhoneNumberJson(const std::string& phoneNumberJson)
|
||||
{
|
||||
phoneNumberJson_ = phoneNumberJson;
|
||||
setParameter("PhoneNumberJson", phoneNumberJson);
|
||||
setCoreParameter("PhoneNumberJson", phoneNumberJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getAccessKeyId()const
|
||||
@@ -121,6 +121,6 @@ std::string SendBatchSmsRequest::getAccessKeyId()const
|
||||
void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ SendBatchSmsResult::~SendBatchSmsResult()
|
||||
|
||||
void SendBatchSmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string SendSmsRequest::getSmsUpExtendCode()const
|
||||
void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode)
|
||||
{
|
||||
smsUpExtendCode_ = smsUpExtendCode;
|
||||
setParameter("SmsUpExtendCode", smsUpExtendCode);
|
||||
setCoreParameter("SmsUpExtendCode", smsUpExtendCode);
|
||||
}
|
||||
|
||||
long SendSmsRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long SendSmsRequest::getResourceOwnerId()const
|
||||
void SendSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getSignName()const
|
||||
@@ -55,7 +55,7 @@ std::string SendSmsRequest::getSignName()const
|
||||
void SendSmsRequest::setSignName(const std::string& signName)
|
||||
{
|
||||
signName_ = signName;
|
||||
setParameter("SignName", signName);
|
||||
setCoreParameter("SignName", signName);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string SendSmsRequest::getResourceOwnerAccount()const
|
||||
void SendSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getPhoneNumbers()const
|
||||
@@ -77,7 +77,7 @@ std::string SendSmsRequest::getPhoneNumbers()const
|
||||
void SendSmsRequest::setPhoneNumbers(const std::string& phoneNumbers)
|
||||
{
|
||||
phoneNumbers_ = phoneNumbers;
|
||||
setParameter("PhoneNumbers", phoneNumbers);
|
||||
setCoreParameter("PhoneNumbers", phoneNumbers);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getOutId()const
|
||||
@@ -88,7 +88,7 @@ std::string SendSmsRequest::getOutId()const
|
||||
void SendSmsRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
long SendSmsRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long SendSmsRequest::getOwnerId()const
|
||||
void SendSmsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getTemplateCode()const
|
||||
@@ -110,7 +110,7 @@ std::string SendSmsRequest::getTemplateCode()const
|
||||
void SendSmsRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
setCoreParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string SendSmsRequest::getAccessKeyId()const
|
||||
void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getTemplateParam()const
|
||||
@@ -132,6 +132,6 @@ std::string SendSmsRequest::getTemplateParam()const
|
||||
void SendSmsRequest::setTemplateParam(const std::string& templateParam)
|
||||
{
|
||||
templateParam_ = templateParam;
|
||||
setParameter("TemplateParam", templateParam);
|
||||
setCoreParameter("TemplateParam", templateParam);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ SendSmsResult::~SendSmsResult()
|
||||
|
||||
void SendSmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
|
||||
Reference in New Issue
Block a user